/* ============================================================
   Aahil Tours & Travels - Reward Program
   Premium Light Theme Design System
   ============================================================ */

/* ===== IMPORTS ===== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ===== CSS CUSTOM PROPERTIES ===== */
:root {
    /* Primary Palette */
    --primary: #0A6CFF;
    --primary-mid: #4A90E2;
    --primary-light: #EAF4FF;
    --primary-dark: #0550C8;
    --primary-gradient: linear-gradient(135deg, #0A6CFF 0%, #4A90E2 60%, #6DB3F8 100%);

    /* Gold Accent */
    --gold: #D4AF37;
    --gold-bright: #FFD700;
    --gold-light: #F8E7A1;
    --gold-gradient: linear-gradient(135deg, #D4AF37 0%, #FFD700 50%, #F8E7A1 100%);

    /* Neutral */
    --white: #FFFFFF;
    --bg-main: #F8FAFC;
    --bg-section: #EEF2F7;
    --bg-muted: #DDE6F0;
    --bg-card: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.80);
    --bg-glass-strong: rgba(255, 255, 255, 0.92);

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #334155;
    --text-muted: #64748B;
    --text-faint: #94A3B8;

    /* Borders */
    --border-light: rgba(14, 165, 233, 0.08);
    --border-card: rgba(255, 255, 255, 0.6);
    --border-input: #DDE6F0;

    /* Status */
    --success: #10B981;
    --success-bg: #ECFDF5;
    --danger: #EF4444;
    --danger-bg: #FEF2F2;
    --warning: #F59E0B;
    --warning-bg: #FFFBEB;
    --info: #0A6CFF;
    --info-bg: #EAF4FF;
    --purple: #7C3AED;
    --purple-bg: #F3E8FF;

    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(10, 108, 255, 0.04);
    --shadow-sm: 0 2px 8px rgba(10, 108, 255, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 16px rgba(10, 108, 255, 0.08), 0 2px 6px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 30px rgba(10, 108, 255, 0.10), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 50px rgba(10, 108, 255, 0.14), 0 8px 20px rgba(0, 0, 0, 0.05);
    --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
    --shadow-glow: 0 0 24px rgba(10, 108, 255, 0.20);

    /* Typography */
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-heading: 'Outfit', 'Inter', sans-serif;

    /* Spacing / Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --t-fast: 150ms var(--ease-out);
    --t-base: 250ms var(--ease-out);
    --t-slow: 400ms var(--ease-out);
    --t-spring: 500ms var(--ease-spring);

    /* Layout */
    --header-height: 68px;
    --bottom-nav-height: 64px;
    --max-width: 1200px;
}

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    background: var(--bg-main);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Soft background decoration */
body::before {
    content: '';
    position: fixed;
    top: -40%;
    right: -25%;
    width: 70%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(10, 108, 255, 0.04) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -30%;
    left: -15%;
    width: 50%;
    height: 50%;
    background: radial-gradient(ellipse, rgba(212, 175, 55, 0.03) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p { margin-bottom: 0; }

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--t-fast);
}
a:hover { color: var(--primary-dark); }

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

@keyframes goldPulse {
    0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.5); }
    70% { box-shadow: 0 0 0 16px rgba(212, 175, 55, 0); }
    100% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0); }
}

@keyframes goldGlow {
    0%, 100% { box-shadow: 0 0 20px rgba(212, 175, 55, 0.3); }
    50% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.5); }
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes countUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardLift {
    from { transform: translateY(0); box-shadow: var(--shadow-md); }
    to { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
}

@keyframes bluePulse {
    0% { box-shadow: 0 0 0 0 rgba(10, 108, 255, 0.4); }
    70% { box-shadow: 0 0 0 12px rgba(10, 108, 255, 0); }
    100% { box-shadow: 0 0 0 0 rgba(10, 108, 255, 0); }
}

.animate-fade-in { animation: fadeIn 0.5s var(--ease-out) both; }
.animate-fade-up { animation: fadeInUp 0.6s var(--ease-out) both; }
.animate-scale-in { animation: scaleIn 0.4s var(--ease-out) both; }

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ===== GLOBAL HEADER ===== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    height: var(--header-height);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    flex-shrink: 0;
}

.header-logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.header-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.header-brand-name {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
}

.header-brand-sub {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

/* Desktop Nav */
.header-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-link {
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--t-fast);
}

.nav-link:hover {
    color: var(--primary);
    background: var(--primary-light);
}

.nav-link.active {
    color: var(--primary);
    background: var(--primary-light);
    font-weight: 600;
}

.nav-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: 12px;
    padding-left: 16px;
    border-left: 1px solid var(--border-input);
}

.nav-profile-name {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.nav-logout-btn {
    padding: 7px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--danger);
    background: var(--danger-bg);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-full);
    transition: all var(--t-base);
    text-decoration: none;
}

.nav-logout-btn:hover {
    background: var(--danger);
    color: var(--white);
}

/* Hamburger */
.hamburger-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1010;
}

.hamburger-line {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--t-base);
}

.hamburger-btn.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.hamburger-btn.active .hamburger-line:nth-child(2) {
    opacity: 0;
}
.hamburger-btn.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
    z-index: 1005;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: absolute;
    right: 0;
    top: 0;
    width: 280px;
    height: 100%;
    background: var(--white);
    box-shadow: var(--shadow-xl);
    padding: 0;
    transform: translateX(100%);
    transition: transform var(--t-slow);
}

.mobile-menu-overlay.active .mobile-menu {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 20px 16px;
    border-bottom: 1px solid var(--bg-section);
}

.mobile-menu-header .header-brand-name {
    font-size: 0.95rem;
}

.mobile-menu-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.mobile-menu-nav {
    padding: 12px;
}

.mobile-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--t-fast);
    text-decoration: none;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.mobile-nav-icon {
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

.mobile-menu-divider {
    height: 1px;
    background: var(--bg-section);
    margin: 8px 16px;
}

.mobile-menu-profile {
    padding: 12px 16px;
}

.mobile-profile-label {
    font-size: 0.75rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-profile-name {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 2px;
}

.mobile-nav-logout {
    color: var(--danger) !important;
}

/* ===== MOBILE BOTTOM NAVIGATION ===== */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 999;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-light);
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.06);
    height: var(--bottom-nav-height);
    padding: 4px 0 env(safe-area-inset-bottom, 0);
}

.bottom-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 100%;
    max-width: 500px;
    margin: 0 auto;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 6px 12px;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 0.68rem;
    font-weight: 600;
    transition: all var(--t-fast);
    border-radius: var(--radius-sm);
    cursor: pointer;
    background: none;
    border: none;
    font-family: var(--font-body);
}

.bottom-nav-item:hover,
.bottom-nav-item.active {
    color: var(--primary);
}

.bottom-nav-icon {
    font-size: 1.3rem;
    line-height: 1;
}

.bottom-nav-item.active .bottom-nav-icon {
    transform: scale(1.1);
}

.bottom-nav-item.claim-btn {
    color: var(--gold);
}

.bottom-nav-item.claim-btn .bottom-nav-icon {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== FOOTER ===== */
.site-footer {
    background: var(--white);
    border-top: 1px solid var(--bg-section);
    padding: 40px 24px 32px;
    position: relative;
    z-index: 1;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-logo {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    object-fit: contain;
}

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.footer-brand-sub {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--t-fast);
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-contact {
    font-size: 0.82rem;
    color: var(--text-faint);
    line-height: 1.8;
}

.footer-contact a {
    color: var(--primary);
}

.footer-copyright {
    font-size: 0.78rem;
    color: var(--text-faint);
    padding-top: 16px;
    border-top: 1px solid var(--bg-section);
    width: 100%;
}

/* ===== AUTH PAGE ===== */
.auth-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.auth-main {
    flex: 1;
    position: relative;
    z-index: 1;
}

.auth-hero {
    background: var(--primary-gradient);
    background-size: 200% 200%;
    animation: gradientShift 8s ease infinite;
    padding: 60px 24px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: 5%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.auth-hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.auth-hero h1 {
    color: var(--white);
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
    line-height: 1.2;
}

.auth-hero p {
    color: rgba(255, 255, 255, 0.88);
    font-size: 1.05rem;
    line-height: 1.6;
}

/* Login Card */
.auth-card-wrapper {
    max-width: 460px;
    margin: -40px auto 0;
    padding: 0 20px;
    position: relative;
    z-index: 3;
}

.auth-card {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-xl);
    padding: 40px 32px;
    animation: fadeInUp 0.7s var(--ease-out);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 20px;
    right: 20px;
    height: 4px;
    background: var(--gold-gradient);
    border-radius: 0 0 4px 4px;
}

.auth-card-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-card-header h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.auth-card-header p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

/* Auth Steps */
.auth-step {
    display: none;
}

.auth-step.active {
    display: block;
    animation: fadeInUp 0.5s var(--ease-out);
}

/* Benefits Section */
.auth-benefits {
    padding: 60px 24px;
    background: var(--white);
}

.auth-benefits-inner {
    max-width: var(--max-width);
    margin: 0 auto;
}

.auth-benefits h2 {
    text-align: center;
    margin-bottom: 40px;
    font-size: 1.6rem;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.benefit-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    text-align: center;
    box-shadow: var(--shadow-sm);
    transition: all var(--t-base);
}

.benefit-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.benefit-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    font-size: 28px;
}

.benefit-card:nth-child(1) .benefit-icon {
    background: var(--gold-light);
}
.benefit-card:nth-child(2) .benefit-icon {
    background: var(--primary-light);
}
.benefit-card:nth-child(3) .benefit-icon {
    background: var(--success-bg);
}

.benefit-card h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

.benefit-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Trust Section */
.auth-trust {
    padding: 48px 24px;
    text-align: center;
    background: var(--bg-section);
}

.auth-trust-inner {
    max-width: 600px;
    margin: 0 auto;
}

.auth-trust p {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
}

.auth-trust .trust-highlight {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== FORM ELEMENTS ===== */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.2px;
}

.form-input {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--border-input);
    border-radius: var(--radius-md);
    transition: all var(--t-base);
    outline: none;
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 108, 255, 0.10);
}

.form-input::placeholder {
    color: var(--text-faint);
}

.form-input.error {
    border-color: var(--danger);
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.08);
}

.form-input:disabled {
    background: var(--bg-section);
    color: var(--text-muted);
    cursor: not-allowed;
}

.form-select {
    width: 100%;
    padding: 13px 16px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--border-input);
    border-radius: var(--radius-md);
    outline: none;
    transition: all var(--t-base);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 40px;
}

.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 108, 255, 0.10);
}

/* Floating Label */
.floating-label {
    position: relative;
}

.floating-label .form-input {
    padding-top: 20px;
    padding-bottom: 8px;
}

.floating-label .form-label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    font-size: 15px;
    font-weight: 400;
    color: var(--text-faint);
    pointer-events: none;
    transition: all var(--t-fast);
    margin-bottom: 0;
}

.floating-label .form-input:focus ~ .form-label,
.floating-label .form-input:not(:placeholder-shown) ~ .form-label {
    top: 12px;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--primary);
    transform: translateY(0);
}

.input-with-prefix {
    display: flex;
    align-items: stretch;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--bg-section);
    border: 2px solid var(--border-input);
    border-right: none;
    border-radius: var(--radius-md) 0 0 var(--radius-md);
    font-weight: 600;
    color: var(--text-muted);
    font-size: 14px;
    white-space: nowrap;
}

.input-with-prefix .form-input {
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

/* OTP Inputs */
.otp-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 24px 0;
}

.otp-input {
    width: 50px;
    height: 58px;
    text-align: center;
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    background: var(--white);
    border: 2px solid var(--border-input);
    border-radius: var(--radius-md);
    transition: all var(--t-base);
    outline: none;
}

.otp-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(10, 108, 255, 0.10);
    transform: scale(1.04);
}

.otp-input.filled {
    border-color: var(--primary);
    background: var(--primary-light);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--t-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.btn-primary {
    background: var(--primary-gradient);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(10, 108, 255, 0.25);
}

.btn-primary:hover:not(:disabled) {
    box-shadow: 0 6px 22px rgba(10, 108, 255, 0.35);
    transform: translateY(-1px);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(0);
}

.btn-gold {
    background: var(--gold-gradient);
    color: #5C4A0E;
    box-shadow: var(--shadow-gold);
    font-weight: 700;
}

.btn-gold:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 28px rgba(212, 175, 55, 0.35);
}

.btn-full { width: 100%; }

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover:not(:disabled) {
    background: var(--primary-light);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: var(--radius-sm);
}

/* Button loading spinner */
.btn-loading .btn-text { visibility: hidden; }
.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Resend link */
.resend-row {
    text-align: center;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--text-muted);
}

.resend-link {
    font-weight: 600;
    cursor: pointer;
    color: var(--primary);
}

.resend-link.disabled {
    color: var(--text-faint);
    cursor: not-allowed;
    pointer-events: none;
}

.resend-timer {
    font-weight: 600;
    color: var(--primary);
}

.masked-email {
    font-weight: 600;
    color: var(--primary);
}

/* ===== GLASS CARD ===== */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-xl);
    padding: 24px;
    box-shadow: var(--shadow-md);
    transition: transform var(--t-base), box-shadow var(--t-base);
}

.glass-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* ===== TOAST NOTIFICATIONS ===== */
.toast-container {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    min-width: 280px;
    max-width: 400px;
    animation: fadeInDown 0.4s var(--ease-out);
    border-left: 4px solid var(--text-faint);
    position: relative;
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--primary); }

.toast-icon { font-size: 18px; flex-shrink: 0; }

.toast-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 16px;
    color: var(--text-faint);
    cursor: pointer;
    padding: 4px;
}

.toast.removing {
    animation: fadeIn 0.3s var(--ease-out) reverse;
}

/* ===== MODAL ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all var(--t-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-box {
    background: var(--white);
    border-radius: var(--radius-2xl);
    padding: 32px;
    max-width: 420px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-xl);
    transform: scale(0.92);
    transition: transform var(--t-spring);
}

.modal-overlay.active .modal-box {
    transform: scale(1);
}

.modal-icon { font-size: 48px; margin-bottom: 16px; }

.modal-box h3 { margin-bottom: 8px; }

.modal-box p {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 24px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.close-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-section);
    border: none;
    border-radius: var(--radius-sm);
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--t-fast);
}

.close-btn:hover {
    background: var(--danger-bg);
    color: var(--danger);
}

/* ===== LOADING SKELETON ===== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-section) 25%, var(--bg-main) 50%, var(--bg-section) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease infinite;
    border-radius: var(--radius-sm);
}

.skeleton-text { height: 16px; margin-bottom: 8px; width: 80%; }
.skeleton-text-sm { height: 12px; margin-bottom: 6px; width: 60%; }
.skeleton-img { width: 100px; height: 100px; border-radius: var(--radius-md); margin: 0 auto; }
.skeleton-card { height: 200px; border-radius: var(--radius-xl); }
.skeleton-circle { border-radius: 50%; }

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-faint);
}

.empty-state-icon { font-size: 48px; margin-bottom: 16px; }
.empty-state h3 { color: var(--text-muted); margin-bottom: 6px; }
.empty-state p { font-size: 0.88rem; }

/* ===== SECTION HELPER ===== */
.section {
    margin-bottom: 28px;
    animation: fadeInUp 0.6s var(--ease-out) both;
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.section-title-icon {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 18px;
}

/* ===== DASHBOARD WRAPPER ===== */
.dashboard-wrapper {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding-bottom: env(safe-area-inset-bottom, 0);
}

.dash-content {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px 24px 80px;
}

/* Month/Year Selector */
.month-selector-container {
    display: flex;
    gap: 8px;
}

.month-select,
.year-select {
    padding: 7px 12px;
    border-radius: var(--radius-full);
    border: 1.5px solid var(--border-input);
    background: var(--white);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.82rem;
    color: var(--text-secondary);
    outline: none;
    transition: all var(--t-fast);
    appearance: none;
    padding-right: 28px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' fill='%2364748b' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6.5 6.5-6.5'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}

.month-select:focus,
.year-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(10, 108, 255, 0.08);
}

/* ===== FORM GROUPS (Claim Modal) ===== */
.form-group-row {
    display: flex;
    gap: 15px;
}

.form-group-row .form-group {
    flex: 1;
}

.form-section-title {
    margin: 24px 0 12px 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 700;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--primary-light);
}

.required { color: var(--danger); }

/* ===== BADGES ===== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

/* ===== RESPONSIVE ===== */

/* Tablet and below: hide header and show bottom nav/footer links */
@media (max-width: 768px) {
    .site-header {
        display: none !important;
    }

    .mobile-menu-overlay {
        display: none !important;
    }

    .bottom-nav {
        display: block;
    }

    .dash-content {
        padding: 20px 16px 100px;
    }

    .auth-hero {
        padding: 40px 20px 60px;
    }

    .auth-hero h1 {
        font-size: 1.6rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .benefit-card {
        padding: 24px 20px;
    }

    .auth-card {
        padding: 32px 24px;
    }

    .otp-input {
        width: 44px;
        height: 52px;
        font-size: 20px;
    }

    .form-group-row {
        flex-direction: column;
        gap: 0;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .toast-container {
        left: 16px;
        right: 16px;
    }

    .toast {
        min-width: auto;
        max-width: none;
    }

    .site-footer {
        padding-bottom: calc(32px + var(--bottom-nav-height));
    }

    h1 { font-size: 1.6rem; }
}

/* Small mobile */
@media (max-width: 414px) {
    .header-brand-name {
        font-size: 0.92rem;
    }

    .header-brand-sub {
        font-size: 0.65rem;
    }

    .otp-container {
        gap: 6px;
    }

    .otp-input {
        width: 40px;
        height: 48px;
        font-size: 18px;
    }

    h1 { font-size: 1.4rem; }
}

/* Tiny mobile */
@media (max-width: 320px) {
    .header-logo {
        width: 36px;
        height: 36px;
    }

    .header-brand-name {
        font-size: 0.85rem;
    }

    .otp-input {
        width: 36px;
        height: 44px;
        font-size: 16px;
    }

    .auth-card {
        padding: 24px 16px;
    }
}

/* ===== PRINT ===== */
@media print {
    body { background: white; color: black; }
    body::before, body::after { display: none; }
    .site-header, .site-footer, .bottom-nav,
    .modal-overlay, .toast-container, .hamburger-btn,
    .mobile-menu-overlay { display: none !important; }
    .dash-content { padding: 0; }
}
