@import 'variables.css';

/* ═══════════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-hindi);
    font-size: var(--fs-base);
    color: var(--clr-text);
    background: var(--clr-bg);
    line-height: 1.7;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}
body.lang-en { font-family: var(--font-sans); }
img { max-width: 100%; display: block; }
a { color: var(--clr-primary); text-decoration: none; transition: color var(--dur-fast); }
a:hover { text-decoration: underline; color: var(--clr-primary-dark); }

/* ── Page enter animation ─────────────────────── */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}
.auth-split, .hero, .page-header, .page-wrap, .page-content, .auth-wrap {
    animation: pageIn var(--dur-slow) var(--ease-out) both;
}

/* ═══════════════════════════════════════════════
   TYPOGRAPHY
═══════════════════════════════════════════════ */
h1 { font-size: var(--fs-3xl); font-weight: 700; line-height: 1.2; }
h2 { font-size: var(--fs-2xl); font-weight: 600; line-height: 1.3; }
h3 { font-size: var(--fs-xl);  font-weight: 600; line-height: 1.35; }
h4 { font-size: var(--fs-lg);  font-weight: 500; }
p  { margin-bottom: var(--sp-4); }

/* ═══════════════════════════════════════════════
   LAYOUT
═══════════════════════════════════════════════ */
.container {
    width: 100%;
    max-width: 1140px;
    margin-inline: auto;
    padding-inline: var(--sp-6);
}
.page-wrap {
    padding-top: calc(var(--nav-h) + var(--sp-8));
    padding-bottom: var(--sp-16);
    min-height: 100vh;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-6); }
.flex    { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center  { display: flex; justify-content: center; align-items: center; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }

/* ═══════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: linear-gradient(90deg, #0d2d5e 0%, var(--clr-primary) 100%);
    display: flex;
    align-items: center;
    padding-inline: var(--sp-5);
    z-index: 1000;
    box-shadow: 0 2px 20px rgba(13,45,94,.35);
}
.navbar__brand {
    color: #fff;
    font-size: var(--fs-base);
    font-weight: 700;
    letter-spacing: -.2px;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    flex-shrink: 0;
}
.navbar__brand:hover { text-decoration: none; opacity: .9; }
.navbar__logo { width: 36px; height: 36px; flex-shrink: 0; }
.navbar__nav {
    display: flex;
    align-items: center;
    gap: var(--sp-1);
    margin-left: auto;
    list-style: none;
}
.navbar__nav a {
    color: rgba(255,255,255,.85);
    font-size: var(--fs-sm);
    font-weight: 500;
    padding: var(--sp-2) var(--sp-3);
    border-radius: var(--r-md);
    transition: background var(--dur-fast), color var(--dur-fast);
}
.navbar__nav a:hover,
.navbar__nav a.active {
    background: rgba(255,255,255,.15);
    color: #fff;
    text-decoration: none;
}
.navbar__nav .nav-badge {
    background: var(--clr-accent);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: var(--r-full);
    margin-left: 3px;
    vertical-align: middle;
}

/* ═══════════════════════════════════════════════
   PAGE HEADER BANNER (inner pages)
═══════════════════════════════════════════════ */
.page-header {
    background: linear-gradient(135deg, #0d2d5e 0%, var(--clr-primary) 60%, #2277c8 100%);
    color: #fff;
    padding: 2.5rem 0 3rem;
    margin-bottom: -1.5rem;
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: '';
    position: absolute;
    bottom: -40px; right: -60px;
    width: 220px; height: 220px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.page-header h1 { color: #fff; font-size: var(--fs-2xl); margin-bottom: .25rem; }
.page-header p  { color: rgba(255,255,255,.72); font-size: var(--fs-sm); margin: 0; }
.page-header .container { position: relative; z-index: 1; }
.page-header .flex-between { align-items: flex-end; gap: 1rem; }
.page-header .btn {
    flex-shrink: 0;
    background: rgba(255,255,255,.15);
    border-color: rgba(255,255,255,.3);
    color: #fff;
}
.page-header .btn:hover { background: rgba(255,255,255,.25); text-decoration: none; }
.page-header .btn-accent { background: var(--clr-accent); border-color: var(--clr-accent); }
.page-header .btn-accent:hover { background: var(--clr-accent-dark); }

/* Page content area (below header banner) */
.page-content {
    padding-top: 3rem;
    padding-bottom: var(--sp-16);
}

/* ═══════════════════════════════════════════════
   CARDS
═══════════════════════════════════════════════ */
.card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-lg);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    overflow: hidden;
    transition: box-shadow var(--dur-normal);
}
.card__header {
    padding: var(--sp-5) var(--sp-6);
    border-bottom: 1px solid var(--clr-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
}
.card__header h2, .card__header h3 {
    margin: 0;
    font-size: var(--fs-lg);
    font-weight: 600;
}
.card__body { padding: var(--sp-6); }
.card__footer {
    padding: var(--sp-4) var(--sp-6);
    border-top: 1px solid var(--clr-border);
    background: var(--clr-surface-alt);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--sp-3);
}

/* ═══════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    padding: 0.55rem var(--sp-5);
    font-size: var(--fs-sm);
    font-weight: 600;
    border-radius: var(--r-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background var(--dur-fast), box-shadow var(--dur-fast), transform var(--dur-fast);
    text-decoration: none;
    white-space: nowrap;
    font-family: inherit;
    letter-spacing: .01em;
    line-height: 1.4;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(.97); }

.btn-primary { background: var(--clr-primary); color: #fff; box-shadow: 0 2px 8px rgba(26,86,160,.25); }
.btn-primary:hover { background: var(--clr-primary-dark); box-shadow: 0 4px 14px rgba(26,86,160,.35); }

.btn-accent { background: var(--clr-accent); color: #fff; box-shadow: 0 2px 8px rgba(245,158,11,.25); }
.btn-accent:hover { background: var(--clr-accent-dark); }

.btn-outline { background: transparent; border-color: var(--clr-border-dark); color: var(--clr-text); }
.btn-outline:hover { background: var(--clr-surface-alt); }

.btn-danger { background: var(--clr-danger); color: #fff; }
.btn-danger:hover { background: #b91c1c; }

.btn-success { background: var(--clr-success); color: #fff; }
.btn-success:hover { background: #15803d; }

.btn-sm { padding: 0.35rem var(--sp-3); font-size: var(--fs-xs); }
.btn-lg { padding: 0.8rem var(--sp-8); font-size: var(--fs-base); border-radius: var(--r-lg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ═══════════════════════════════════════════════
   FORMS
═══════════════════════════════════════════════ */
.form-group { margin-bottom: var(--sp-5); }
.form-label {
    display: block;
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: var(--sp-2);
    color: var(--clr-text);
}
.form-label .req { color: var(--clr-danger); margin-left: 2px; }
.form-control {
    width: 100%;
    padding: .7rem var(--sp-4);
    font-size: var(--fs-base);
    font-family: inherit;
    color: var(--clr-text);
    background: var(--clr-surface);
    border: 1.5px solid var(--clr-border-dark);
    border-radius: var(--r-md);
    transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
    outline: none;
}
.form-control:focus {
    border-color: var(--clr-primary);
    box-shadow: 0 0 0 3px rgba(26,86,160,.12);
}
.form-control::placeholder { color: var(--clr-text-muted); opacity: .75; }
.form-hint { font-size: var(--fs-xs); color: var(--clr-text-muted); margin-top: var(--sp-1); }
.form-error { font-size: var(--fs-xs); color: var(--clr-danger); margin-top: var(--sp-1); }
select.form-control { cursor: pointer; }

/* District picker */
.district-picker { display: flex; flex-direction: column; gap: var(--sp-3); }
.district-picker__search { position: relative; }
.district-picker__list {
    border: 1.5px solid var(--clr-border-dark);
    border-radius: var(--r-md);
    max-height: 200px;
    overflow-y: auto;
    background: var(--clr-surface);
}
.district-picker__item {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-2) var(--sp-4);
    cursor: pointer;
    transition: background var(--dur-fast);
    font-size: var(--fs-sm);
    border-bottom: 1px solid var(--clr-border);
}
.district-picker__item:last-child { border-bottom: none; }
.district-picker__item:hover { background: var(--clr-primary-light); }
.district-picker__item.selected { background: var(--clr-primary-light); }
.district-picker__item input[type="checkbox"] { accent-color: var(--clr-primary); }
.district-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--sp-2);
    min-height: 44px;
    padding: var(--sp-2);
    border: 1.5px dashed var(--clr-border-dark);
    border-radius: var(--r-md);
}
.district-pill {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    background: var(--clr-primary);
    color: #fff;
    padding: 3px var(--sp-3);
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    cursor: pointer;
    user-select: none;
}
.district-pill__num {
    background: rgba(255,255,255,.25);
    border-radius: var(--r-full);
    width: 16px; height: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700;
}
.district-pill .pill-remove { margin-left: var(--sp-1); opacity: .7; }
.district-pill .pill-remove:hover { opacity: 1; }
.pref-count { font-size: var(--fs-xs); color: var(--clr-text-muted); }
.pref-count.warn { color: var(--clr-danger); }

/* ═══════════════════════════════════════════════
   ALERTS
═══════════════════════════════════════════════ */
.alert {
    padding: var(--sp-4) var(--sp-5);
    border-radius: var(--r-md);
    border-left: 4px solid;
    font-size: var(--fs-sm);
    margin-bottom: var(--sp-5);
    display: flex;
    align-items: flex-start;
    gap: var(--sp-3);
}
.alert-success { background: var(--clr-success-bg); border-color: var(--clr-success); color: #14532d; }
.alert-danger  { background: var(--clr-danger-bg);  border-color: var(--clr-danger);  color: #7f1d1d; }
.alert-warning { background: var(--clr-warning-bg); border-color: var(--clr-warning); color: #78350f; }
.alert-info    { background: var(--clr-info-bg);    border-color: var(--clr-info);    color: #0c4a6e; }

/* ═══════════════════════════════════════════════
   BADGES
═══════════════════════════════════════════════ */
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: 600;
}
.badge-pending  { background: var(--clr-warning-bg); color: var(--clr-warning); }
.badge-accepted { background: var(--clr-success-bg); color: var(--clr-success); }
.badge-rejected { background: var(--clr-danger-bg);  color: var(--clr-danger);  }
.badge-cancelled{ background: #f1f5f9; color: #64748b; }
.badge-active   { background: var(--clr-success-bg); color: var(--clr-success); }
.badge-inactive { background: #f1f5f9; color: #64748b; }

/* ═══════════════════════════════════════════════
   TABLES
═══════════════════════════════════════════════ */
.table-wrap { overflow-x: auto; }
.table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--fs-sm);
}
.table th {
    text-align: left;
    padding: var(--sp-3) var(--sp-4);
    background: var(--clr-surface-alt);
    border-bottom: 2px solid var(--clr-border);
    font-weight: 600;
    color: var(--clr-text-muted);
    white-space: nowrap;
    font-size: var(--fs-xs);
    text-transform: uppercase;
    letter-spacing: .5px;
}
.table td {
    padding: var(--sp-3) var(--sp-4);
    border-bottom: 1px solid var(--clr-border);
    vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: #fafbff; }

/* ═══════════════════════════════════════════════
   STATS GRID
═══════════════════════════════════════════════ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--sp-4);
    margin-bottom: var(--sp-8);
}
.stat-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-lg);
    padding: var(--sp-5) var(--sp-6);
    position: relative;
    overflow: hidden;
    transition: transform var(--dur-normal), box-shadow var(--dur-normal);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card__icon {
    font-size: 1.6rem;
    margin-bottom: var(--sp-3);
    display: block;
    filter: saturate(1.2);
}
.stat-card__num {
    font-size: var(--fs-3xl);
    font-weight: 700;
    color: var(--clr-primary);
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.stat-card__label {
    font-size: var(--fs-xs);
    color: var(--clr-text-muted);
    margin-top: var(--sp-2);
    font-weight: 500;
}
.stat-card--blue   { border-top: 3px solid var(--clr-primary); }
.stat-card--blue   .stat-card__num { color: var(--clr-primary); }
.stat-card--green  { border-top: 3px solid var(--clr-success); }
.stat-card--green  .stat-card__num { color: var(--clr-success); }
.stat-card--amber  { border-top: 3px solid var(--clr-accent); }
.stat-card--amber  .stat-card__num { color: var(--clr-accent-dark); }
.stat-card--purple { border-top: 3px solid #7c3aed; }
.stat-card--purple .stat-card__num { color: #7c3aed; }

/* ═══════════════════════════════════════════════
   MATCH CARDS
═══════════════════════════════════════════════ */
.match-card {
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-lg);
    padding: var(--sp-5);
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow var(--dur-normal), transform var(--dur-normal);
    display: flex;
    flex-direction: column;
}
.match-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.match-card__header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--sp-3); }
.match-card__name { font-size: var(--fs-base); font-weight: 700; }
.match-card__meta { font-size: var(--fs-xs); color: var(--clr-text-muted); margin-top: 2px; }
.match-card__district {
    display: inline-flex;
    align-items: center;
    gap: var(--sp-1);
    background: var(--clr-primary-light);
    color: var(--clr-primary);
    padding: 4px var(--sp-3);
    border-radius: var(--r-full);
    font-size: var(--fs-xs);
    font-weight: 600;
    margin-bottom: var(--sp-3);
}
.match-card__body { font-size: var(--fs-sm); color: var(--clr-text-muted); margin-bottom: var(--sp-4); flex: 1; }
.match-card__actions { display: flex; gap: var(--sp-2); margin-top: auto; }

/* ═══════════════════════════════════════════════
   TABS (pill style)
═══════════════════════════════════════════════ */
.tabs-wrap {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--clr-border);
}
.tab-link {
    padding: .65rem 1.25rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    color: var(--clr-text-muted);
    text-decoration: none;
    transition: color var(--dur-fast), border-color var(--dur-fast);
    white-space: nowrap;
}
.tab-link:hover { color: var(--clr-primary); text-decoration: none; }
.tab-link.active { border-bottom-color: var(--clr-primary); color: var(--clr-primary); }

/* ═══════════════════════════════════════════════
   INFO ROWS (profile display)
═══════════════════════════════════════════════ */
.info-rows { display: flex; flex-direction: column; }
.info-row {
    display: flex;
    gap: var(--sp-4);
    padding: .7rem 0;
    border-bottom: 1px solid var(--clr-border);
    font-size: .9rem;
    align-items: baseline;
}
.info-row:last-child { border-bottom: none; }
.info-row__label { width: 42%; color: var(--clr-text-muted); flex-shrink: 0; font-size: var(--fs-sm); }
.info-row__val { font-weight: 500; flex: 1; }

/* ═══════════════════════════════════════════════
   AVATAR
═══════════════════════════════════════════════ */
.avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--clr-primary), #2277c8);
    color: #fff;
    font-size: 1.3rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(26,86,160,.3);
}

/* ═══════════════════════════════════════════════
   EMPTY STATE
═══════════════════════════════════════════════ */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}
.empty-state__icon { font-size: 3.5rem; margin-bottom: 1rem; display: block; }
.empty-state h3 { margin-bottom: .5rem; font-size: var(--fs-xl); }
.empty-state p { color: var(--clr-text-muted); font-size: .9rem; margin-bottom: 1.5rem; max-width: 360px; margin-inline: auto; }

/* ═══════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════ */
.pagination {
    display: flex;
    gap: var(--sp-2);
    justify-content: center;
    margin-top: var(--sp-8);
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px; height: 36px;
    padding: 0 var(--sp-3);
    border-radius: var(--r-md);
    font-size: var(--fs-sm);
    font-weight: 500;
    border: 1px solid var(--clr-border);
    background: var(--clr-surface);
    color: var(--clr-text);
    transition: background var(--dur-fast);
}
.pagination a:hover { background: var(--clr-primary-light); text-decoration: none; }
.pagination span.active { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }

/* ═══════════════════════════════════════════════
   HERO / HOMEPAGE
═══════════════════════════════════════════════ */
.hero {
    position: relative;
    background: linear-gradient(150deg, #061d40 0%, #0d2d5e 25%, #1a56a0 65%, #2277c8 100%);
    color: #fff;
    padding: calc(var(--nav-h) + 4rem) var(--sp-6) 6rem;
    text-align: center;
    overflow: hidden;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
/* Decorative rings */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    width: 600px; height: 600px;
    top: -200px; right: -150px;
    background: radial-gradient(circle, rgba(255,255,255,.06) 0%, transparent 70%);
}
.hero::after {
    width: 400px; height: 400px;
    bottom: -100px; left: -80px;
    background: radial-gradient(circle, rgba(255,255,255,.05) 0%, transparent 70%);
}
.hero__decor {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    pointer-events: none;
    animation: slowSpin 40s linear infinite;
}
.hero__decor-1 { width: 500px; height: 500px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.hero__decor-2 { width: 700px; height: 700px; top: 50%; left: 50%; transform: translate(-50%,-50%); }
@keyframes slowSpin { to { transform: translate(-50%,-50%) rotate(360deg); } }

.hero__content { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

/* Handshake icon in hero */
.hero__handshake {
    margin: 0 auto var(--sp-6);
    width: 96px; height: 96px;
    background: rgba(255,255,255,.1);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 0 16px rgba(255,255,255,.05), 0 0 0 32px rgba(255,255,255,.025);
    animation: pulseGlow 3s ease-in-out infinite;
    position: relative;
}
.hero__handshake::before {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.2);
    animation: pulseGlow 3s ease-in-out infinite reverse;
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 16px rgba(255,255,255,.05), 0 0 0 32px rgba(255,255,255,.025); }
    50%       { box-shadow: 0 0 0 20px rgba(255,255,255,.08), 0 0 0 40px rgba(255,255,255,.04); }
}

.hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: var(--sp-4);
    line-height: 1.2;
    text-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.hero p {
    color: rgba(255,255,255,.85);
    font-size: var(--fs-lg);
    max-width: 540px;
    margin-inline: auto;
    margin-bottom: var(--sp-8);
    line-height: 1.7;
}
.hero__actions { display: flex; gap: var(--sp-4); justify-content: center; flex-wrap: wrap; }
.btn-hero-primary {
    background: #fff;
    color: var(--clr-primary);
    font-weight: 700;
    box-shadow: 0 6px 24px rgba(0,0,0,.25);
    font-size: var(--fs-base);
    padding: .85rem 2.25rem;
    border-radius: var(--r-lg);
}
.btn-hero-primary:hover { background: #f0f6ff; transform: translateY(-2px); box-shadow: 0 10px 30px rgba(0,0,0,.3); text-decoration: none; }
.btn-hero-outline {
    background: transparent;
    border: 2px solid rgba(255,255,255,.45);
    color: #fff;
    font-size: var(--fs-base);
    padding: .85rem 2.25rem;
    border-radius: var(--r-lg);
}
.btn-hero-outline:hover { background: rgba(255,255,255,.12); text-decoration: none; border-color: rgba(255,255,255,.7); }

/* Trust / stats bar below hero buttons */
.hero__trust {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-top: 3rem;
    padding: 1.25rem 2rem;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-xl);
    backdrop-filter: blur(8px);
}
.trust-item { text-align: center; }
.trust-item__num { font-size: 1.6rem; font-weight: 700; line-height: 1; color: #fff; }
.trust-item__label { font-size: .72rem; color: rgba(255,255,255,.7); margin-top: .2rem; letter-spacing: .4px; }

/* Language toggle */
.lang-toggle {
    position: absolute;
    top: calc(var(--nav-h) + var(--sp-4));
    right: var(--sp-6);
    z-index: 2;
    display: flex;
    background: rgba(255,255,255,.12);
    border-radius: var(--r-full);
    padding: 3px;
    gap: 2px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.2);
}
.lang-btn {
    padding: 5px 16px;
    font-size: var(--fs-xs);
    font-weight: 600;
    border: none;
    border-radius: var(--r-full);
    cursor: pointer;
    background: transparent;
    color: rgba(255,255,255,.7);
    transition: all var(--dur-fast);
    font-family: inherit;
    letter-spacing: .02em;
}
.lang-btn.active { background: #fff; color: var(--clr-primary); }
.lang-btn:hover:not(.active) { color: #fff; }

/* Wave divider */
.hero__wave { position: absolute; bottom: -1px; left: 0; right: 0; line-height: 0; }
.hero__wave svg { display: block; }

/* ═══════════════════════════════════════════════
   FEATURES SECTION
═══════════════════════════════════════════════ */
.features { padding: var(--sp-16) var(--sp-6); background: var(--clr-surface); }
.section-title { text-align: center; margin-bottom: .5rem; }
.section-sub { text-align: center; color: var(--clr-text-muted); font-size: var(--fs-sm); margin-bottom: 0; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--sp-8);
    margin-top: 3rem;
}
.feature-item { text-align: center; }
.feature-item__icon {
    width: 72px; height: 72px;
    background: linear-gradient(135deg, #dbeafe, var(--clr-primary-light));
    border-radius: var(--r-2xl);
    display: flex; align-items: center; justify-content: center;
    font-size: 30px;
    margin: 0 auto var(--sp-4);
    box-shadow: 0 6px 16px rgba(26,86,160,.12);
    transition: transform var(--dur-normal), box-shadow var(--dur-normal);
}
.feature-item:hover .feature-item__icon { transform: translateY(-4px) scale(1.05); box-shadow: 0 10px 24px rgba(26,86,160,.18); }
.feature-item h3 { margin-bottom: var(--sp-2); }
.feature-item p  { font-size: var(--fs-sm); color: var(--clr-text-muted); margin: 0; line-height: 1.7; }

/* ═══════════════════════════════════════════════
   AUTH — SPLIT LAYOUT
═══════════════════════════════════════════════ */
.auth-split {
    display: grid;
    grid-template-columns: 400px 1fr;
    min-height: 100vh;
}
.auth-left {
    background: linear-gradient(165deg, #061d40 0%, #0d2d5e 30%, #1a56a0 70%, #2277c8 100%);
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem 2.5rem;
    text-align: center;
    color: #fff;
    overflow: hidden;
}
.auth-left::before {
    content: '';
    position: absolute;
    width: 350px; height: 350px;
    top: -100px; right: -100px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    pointer-events: none;
}
.auth-left::after {
    content: '';
    position: absolute;
    width: 250px; height: 250px;
    bottom: -60px; left: -60px;
    border-radius: 50%;
    background: rgba(255,255,255,.04);
    pointer-events: none;
}
.auth-left__logo {
    width: 72px; height: 72px;
    background: rgba(255,255,255,.12);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto var(--sp-5);
    box-shadow: 0 0 0 12px rgba(255,255,255,.06);
    position: relative;
    z-index: 1;
}
.auth-left__title {
    font-size: var(--fs-xl);
    font-weight: 700;
    color: #fff;
    margin-bottom: var(--sp-3);
    position: relative;
    z-index: 1;
}
.auth-left__sub {
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.72);
    line-height: 1.7;
    margin-bottom: var(--sp-8);
    position: relative;
    z-index: 1;
}
.auth-left__features {
    display: flex;
    flex-direction: column;
    gap: var(--sp-3);
    width: 100%;
    position: relative;
    z-index: 1;
}
.auth-left__feature {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: var(--r-lg);
    padding: .75rem 1rem;
    text-align: left;
    font-size: var(--fs-sm);
    color: rgba(255,255,255,.85);
}
.auth-left__feature span:first-child { font-size: 1.2rem; flex-shrink: 0; }

/* Right form panel */
.auth-right {
    background: linear-gradient(135deg, #e8f0fb 0%, #f5f6fa 60%, #eef4ff 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 3rem 2rem;
    overflow-y: auto;
    min-height: 100vh;
}
.auth-right .auth-card {
    margin: auto 0;
    width: 100%;
    max-width: 440px;
    box-shadow: var(--shadow-xl);
    border-radius: var(--r-2xl);
    animation: pageIn var(--dur-slow) var(--ease-out) both;
}
/* Keep old auth-wrap for mobile fallback */
.auth-wrap {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e8f0fb, #f5f6fa 60%, #eef4ff);
    padding: var(--sp-8) var(--sp-4);
}
.auth-card {
    width: 100%;
    max-width: 430px;
    background: var(--clr-surface);
    border: 1px solid var(--clr-border);
    border-radius: var(--r-2xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}
.auth-card__header {
    background: linear-gradient(145deg, #0d2d5e 0%, var(--clr-primary) 100%);
    padding: var(--sp-8) var(--sp-8) var(--sp-6);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.auth-card__header::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 130px; height: 130px;
    background: rgba(255,255,255,.07);
    border-radius: 50%;
}
.auth-card__header::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 100px; height: 100px;
    background: rgba(255,255,255,.05);
    border-radius: 50%;
}
.auth-card__logo {
    font-size: 42px;
    margin-bottom: var(--sp-3);
    position: relative;
    z-index: 1;
    display: inline-block;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,.2));
}
.auth-card__header h1 {
    color: #fff;
    font-size: var(--fs-xl);
    margin: 0;
    position: relative;
    z-index: 1;
}
.auth-card__header p {
    color: rgba(255,255,255,.72);
    font-size: var(--fs-sm);
    margin: var(--sp-2) 0 0;
    position: relative;
    z-index: 1;
}
.auth-card__body { padding: var(--sp-8); }
.auth-card__footer {
    padding: var(--sp-4) var(--sp-8);
    border-top: 1px solid var(--clr-border);
    text-align: center;
    font-size: var(--fs-sm);
    color: var(--clr-text-muted);
    background: var(--clr-surface-alt);
}

/* Auth form extras */
.auth-terms { margin-top: var(--sp-4); font-size: .78rem; color: var(--clr-text-muted); text-align: center; line-height: 1.6; }
.auth-terms a { color: var(--clr-primary); text-decoration: underline; }
.form-hint-inline { font-size: .78rem; color: var(--clr-text-muted); font-weight: 400; }
.field-error { color: #e53e3e; font-size: .78rem; margin-top: .3rem; }

/* Password field */
.pwd-wrap { position: relative; }
.pwd-wrap .form-control { padding-right: 4rem; }
.pwd-toggle {
    position: absolute; right: .6rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--clr-primary); font-size: .78rem;
    cursor: pointer; padding: .25rem .4rem; font-weight: 600; letter-spacing: .03em;
}
.pwd-toggle:hover { color: var(--clr-primary-dark); text-decoration: underline; }

/* Strength bar */
.strength-bar { height: 4px; border-radius: 2px; margin-top: .4rem; transition: width .35s, background .35s; width: 0; }

/* Match feedback */
.match-ok  { color: var(--clr-success); font-size: .78rem; margin-top: .25rem; display: none; }
.match-err { color: #e53e3e; font-size: .78rem; margin-top: .25rem; display: none; }

/* ═══════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════ */
.site-footer {
    background: #0d1117;
    color: rgba(255,255,255,.45);
    text-align: center;
    padding: 2.5rem var(--sp-6);
    font-size: var(--fs-sm);
    border-top: 1px solid rgba(255,255,255,.06);
}
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer-logo { margin: 0 auto .75rem; opacity: .35; display: block; }

/* ═══════════════════════════════════════════════
   UTILITIES
═══════════════════════════════════════════════ */
.mt-2 { margin-top: var(--sp-2); }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mb-4 { margin-bottom: var(--sp-4); }
.mb-6 { margin-bottom: var(--sp-6); }
.mb-8 { margin-bottom: var(--sp-8); }
.text-muted  { color: var(--clr-text-muted); }
.text-sm     { font-size: var(--fs-sm); }
.text-xs     { font-size: var(--fs-xs); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.font-bold   { font-weight: 700; }
.font-medium { font-weight: 500; }
.w-full      { width: 100%; }
.hidden      { display: none !important; }
.sr-only     { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 900px) {
    .auth-split {
        grid-template-columns: 1fr;
    }
    .auth-left {
        display: none;
    }
    .auth-right {
        min-height: 100vh;
        padding: 1.5rem 1rem;
        align-items: center;
    }
}
@media (max-width: 768px) {
    .grid-2, .grid-3 { grid-template-columns: 1fr; }
    .container { padding-inline: var(--sp-4); }
    .hero { min-height: 80vh; padding: calc(var(--nav-h) + 2.5rem) 1.25rem 5rem; }
    .hero h1 { font-size: var(--fs-2xl); }
    .hero p { font-size: var(--fs-base); }
    .hero__handshake { width: 72px; height: 72px; }
    .hero__trust { gap: 1.5rem; padding: 1rem 1.25rem; }
    .lang-toggle { top: calc(var(--nav-h) + var(--sp-3)); right: var(--sp-4); }
    .navbar__nav { display: none; }
    .navbar__nav.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: var(--nav-h);
        left: 0; right: 0;
        background: #0d2d5e;
        padding: var(--sp-4);
        gap: var(--sp-1);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }
    .navbar__menu-btn {
        display: flex;
        margin-left: auto;
        background: transparent;
        border: none;
        color: #fff;
        font-size: 24px;
        cursor: pointer;
    }
    .page-header { padding: 1.75rem 0 2.25rem; }
    .page-header h1 { font-size: var(--fs-xl); }
    .auth-card__body { padding: var(--sp-6); }
    .auth-card__header { padding: var(--sp-6) var(--sp-6) var(--sp-5); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 769px) {
    .navbar__menu-btn { display: none; }
}
