/* ============================================================
   THEME TOKENS
   ============================================================ */
:root,
[data-theme="dark"] {
    --bg:          #212121;
    --bg-elev:     #2a2a2a;
    --bg-elev-2:   #1c1c1c;
    --border:      #333333;
    --border-soft: #2e2e2e;
    --border-input:#3a3a3a;
    --text:        #e5e5e5;
    --text-muted:  #b0b0b0;
    --text-dim:    #888888;
    --text-faint:  #777777;
    --text-ghost:  #666666;
    --accent:      #6bbaef;
    --accent-soft-hover: rgba(107, 186, 239, 0.06);
    --danger:      #e05a5a;
    --overlay:     rgba(0, 0, 0, 0.55);
    --btn-bg:      #6bbaef;
    --btn-text:    #212121;
    --btn-hover:   #8ecbf5;
    --surface:     #1c1c1c;
    --transition:  0.2s ease;
}

[data-theme="light"] {
    --bg:          #ffffff;
    --bg-elev:     #f8f8f8;
    --bg-elev-2:   #f0f0f0;
    --border:      #e5e5e5;
    --border-soft: #ececec;
    --border-input:#d5d5d5;
    --text:        #212121;
    --text-muted:  #666666;
    --text-dim:    #777777;
    --text-faint:  #888888;
    --text-ghost:  #b0b0b0;
    --accent:      #3a9ee0;
    --accent-soft-hover: rgba(58, 158, 224, 0.06);
    --danger:      #d64545;
    --overlay:     rgba(0, 0, 0, 0.35);
    --btn-bg:      #3a9ee0;
    --btn-text:    #ffffff;
    --btn-hover:   #2a8ad0;
    --surface:     #f0f0f0;
    --transition:  0.2s ease;
}

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

html {
    font-size: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

/* ---------- HIDE SCROLLBAR ---------- */
html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

/* ---------- BODY ---------- */
body {
    background-color: var(--bg);
    font-family: 'Archivo', sans-serif;
    color: var(--text);
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0;
    transition: background-color 0.25s ease, color 0.25s ease;
}

/* ---------- FUTURISTIC DOT GRID (index background) ---------- */
.dots-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-image:
        radial-gradient(circle, rgba(160, 160, 160, 0.22) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(160, 160, 160, 0.10) 1px, transparent 1.6px);
    background-size: 26px 26px, 78px 78px;
    background-position: 0 0, 13px 13px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 28%, #000 25%, transparent 78%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 28%, #000 25%, transparent 78%);
    animation: dots-drift 28s linear infinite;
}

[data-theme="light"] .dots-bg {
    background-image:
        radial-gradient(circle, rgba(90, 90, 90, 0.18) 1px, transparent 1.6px),
        radial-gradient(circle, rgba(90, 90, 90, 0.09) 1px, transparent 1.6px);
}

@keyframes dots-drift {
    from { background-position: 0 0, 13px 13px; }
    to { background-position: 26px 26px, 91px 91px; }
}

@media (prefers-reduced-motion: reduce) {
    .dots-bg { animation: none; }
}

/* ---------- TYPOGRAPHY HIERARCHY ---------- */
/* Level 1 Display / Level 2 Title / Level 3 Eyebrow / Level 4 Body / Level 5 Caption */
h1, h2, h3 {
    word-wrap: break-word;
    overflow-wrap: break-word;
    color: var(--text);
    text-wrap: balance;
}

h1 {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    line-height: 1.05;
}

h2 {
    font-size: clamp(1.6rem, 3.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

h3 {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.4;
    color: var(--text-dim);
    margin-bottom: 0.5rem;
}

p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 55ch;
}

/* Hero overrides display level */
.hero h1 {
    margin-bottom: 1rem;
}

a {
    color: var(--text);
    text-decoration: none;
}

.jordy {
    color: var(--accent);
}

/* Eyebrow / label utility */
.eyebrow,
.auth-field label,
.view-app-field label,
.view-app-courses label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-dim);
}

/* ---------- HEADER ---------- */
.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    gap: 1rem;
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background-color 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
    background: rgba(33, 33, 33, 0.75);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--border-soft);
}

[data-theme="light"] .site-header.scrolled {
    background: rgba(255, 255, 255, 0.75);
}

.logo {
    font-weight: 700;
    font-size: 1.1rem;
    letter-spacing: -0.03em;
    color: var(--text);
    cursor: pointer;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.logo .lucide {
    width: 22px !important;
    height: 22px !important;
    color: var(--accent);
}

.logo span {
    color: var(--accent);
}

/* ---------- DESKTOP NAV ---------- */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
    list-style: none;
    margin-left: auto;
}

.nav-desktop > li {
    position: relative;
    display: flex;
    align-items: center;
}

.nav-desktop a,
.nav-desktop .nav-trigger {
    color: var(--text-dim);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    background: none;
    border: none;
    font-family: 'Archivo', sans-serif;
    padding: 0.35rem 0;
    white-space: nowrap;
    line-height: 1.4;
}

.nav-desktop a:hover,
.nav-desktop .nav-trigger:hover {
    color: var(--text);
}

.nav-desktop a.active,
.nav-desktop a[data-page].active {
    color: var(--accent);
    font-weight: 500;
}

.nav-desktop .login-link {
    color: var(--text);
    font-weight: 500;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    transition: all 0.2s ease;
}

.nav-desktop .login-link:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--accent-soft-hover);
}

/* ---------- THEME TOGGLE ---------- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    background: none;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    cursor: pointer;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    transition: all 0.2s ease;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--accent-soft-hover);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    display: none;
    line-height: 1;
}

[data-theme="dark"] .theme-toggle .icon-sun  { display: inline; }
[data-theme="light"] .theme-toggle .icon-moon { display: inline; }

/* ---------- LUCIDE ICONS HIERARCHY ---------- */
/* L1 CTA 20px / L2 nav 14px muted / L3 field 15px ghost / L4 feature 15px accent / L5 meta 12px faint */
.lucide {
    width: 16px !important;
    height: 16px !important;
    stroke-width: 1.75;
    flex-shrink: 0;
    color: currentColor;
}

.nav-desktop .lucide {
    width: 14px !important;
    height: 14px !important;
    color: var(--text-faint);
}

.nav-desktop a:hover .lucide,
.nav-desktop .nav-trigger:hover .lucide {
    color: var(--text);
}

.theme-toggle .lucide {
    width: 16px !important;
    height: 16px !important;
}

.mobile-theme-toggle .lucide {
    width: 16px !important;
    height: 16px !important;
}

.content-list li .lucide {
    width: 15px !important;
    height: 15px !important;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.pricing-features li .lucide {
    width: 14px !important;
    height: 14px !important;
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.pricing-features li.muted .lucide {
    color: var(--text-ghost);
}

.hero-cta .lucide,
.auth-submit .lucide {
    width: 20px !important;
    height: 20px !important;
    color: currentColor;
}

.auth-field-input .lucide {
    color: var(--text-ghost);
}

.region-footer-btn .lucide,
.region-trigger .lucide {
    color: currentColor;
}

/* ---------- DROPDOWNS ---------- */
.dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 190px;
    background-color: var(--bg-elev);
    border: 1px solid var(--border-input);
    border-radius: 10px;
    padding: 0.35rem 0;
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 200;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown li a,
.dropdown li button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.85rem;
    font-size: 0.83rem;
    color: var(--text-muted);
    text-align: left;
    background: none;
    border: none;
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
    transition: background-color 0.12s ease, color 0.12s ease;
    white-space: nowrap;
}

.dropdown li a:hover,
.dropdown li button:hover {
    background-color: var(--bg-elev-2);
    color: var(--accent);
}

/* ---------- HAMBURGER ---------- */
.hamburger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.4rem;
    min-height: 40px;
    min-width: 40px;
    align-items: center;
    justify-content: center;
    -webkit-tap-highlight-color: transparent;
    flex-shrink: 0;
    position: relative;
    z-index: 1001;
}

.hamburger span {
    display: block;
    width: 20px;
    height: 2px;
    background-color: var(--text);
    position: relative;
    transition: background-color 0.2s ease;
}

.hamburger span::before,
.hamburger span::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 2px;
    background-color: var(--text);
    left: 0;
    transition: transform 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.hamburger span::before { top: -6px; }
.hamburger span::after  { bottom: -6px; }

.hamburger.open span { background-color: transparent; }
.hamburger.open span::before { top: 0; transform: rotate(45deg); }
.hamburger.open span::after  { bottom: 0; transform: rotate(-45deg); }

/* ---------- MOBILE SIDEBAR ---------- */
.nav-mobile {
    position: fixed;
    top: 0;
    right: 0;
    width: min(85vw, 320px);
    height: 100vh;
    background-color: var(--bg);
    border-left: 1px solid var(--border);
    padding: 4.5rem 1.25rem 1.5rem;
    list-style: none;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    display: block;
}

.nav-mobile::-webkit-scrollbar { display: none; }

.nav-mobile.open { transform: translateX(0); }

.nav-mobile > li {
    border-bottom: 1px solid var(--border);
}

.nav-mobile > li > a,
.nav-mobile > li > button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    transition: color 0.15s ease;
    background: none;
    border: none;
    font-family: 'Archivo', sans-serif;
    text-align: left;
    cursor: pointer;
}

.nav-mobile > li > a:hover,
.nav-mobile > li > button:hover,
.nav-mobile > li > a.active {
    color: var(--accent);
}

.nav-mobile .login-link {
    color: var(--accent);
}

/* mobile theme toggle row */
.mobile-theme-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    color: var(--text);
    font-weight: 500;
    background: none;
    border: none;
    font-family: 'Archivo', sans-serif;
    cursor: pointer;
}

.mobile-theme-toggle .theme-toggle {
    pointer-events: none;
}

.mobile-dropdown-toggle .lucide {
    transition: transform 0.2s ease;
}

.mobile-dropdown-toggle.open .lucide {
    transform: rotate(180deg);
}

.mobile-dropdown {
    display: none;
    list-style: none;
    padding-left: 0.75rem;
    padding-bottom: 0.35rem;
}

.mobile-dropdown.open {
    display: block;
}

.mobile-dropdown li a,
.mobile-dropdown li button {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    background: none;
    border: none;
    font-family: 'Archivo', sans-serif;
    text-align: left;
    cursor: pointer;
}

.mobile-dropdown li a:hover,
.mobile-dropdown li button:hover {
    color: var(--accent);
}

.nav-overlay {
    position: fixed;
    inset: 0;
    background-color: var(--overlay);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.nav-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ---------- MAIN ---------- */
.container {
    width: 100%;
    max-width: 80rem;
    margin-inline: auto;
    flex: 1;
    padding: 0 1.5rem;
}

@media (min-width: 64rem) {
    .container {
        padding: 0 2rem;
    }
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 1.5rem;
}

.hero h1 {
    margin: 0 auto 1.5rem;
    max-width: 16ch;
    line-height: 1.05;
    font-weight: 400;
}

.hero-sub {
    margin: -0.75rem auto 1.75rem;
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 40ch;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--btn-text);
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    border-radius: 8px;
    padding: 1rem 2rem;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.hero-cta:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    transform: translateY(-2px);
}

.hero-cta:active {
    transform: translateY(0);
}

/* ---------- HERO SEARCH ---------- */
.hero-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: min(520px, 100%);
    margin: 0 auto;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    background-color: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 999px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.hero-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft-hover);
}

.hero-search .lucide,
.hero-search svg {
    width: 1.1rem;
    height: 1.1rem;
    color: var(--text-faint);
    flex-shrink: 0;
}

.hero-search input {
    flex: 1;
    min-width: 0;
    border: none;
    outline: none;
    background: transparent;
    color: var(--text);
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
}

.hero-search input::placeholder {
    color: var(--text-ghost);
}

.hero-search input[type="search"]::-webkit-search-cancel-button {
    display: none;
}

.hero-search button {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--btn-text);
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    border-radius: 999px;
    padding: 0.65rem 1.5rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.hero-search button:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
}

/* ---------- HERO ART ---------- */
.hero-art {
    width: min(880px, 100%);
    height: auto;
    margin-top: 2.5rem;
    border-radius: 20px;
}

.hero-copy {
    min-width: 0;
}

@media (min-width: 900px) {
    .hero-split {
        flex-direction: row;
        align-items: center;
        text-align: left;
        max-width: 1200px;
        margin: 0 auto;
    }
    .hero-split .hero-art {
        order: -1;
        width: 46%;
        margin-top: 0;
        margin-right: -48px;
        z-index: 0;
    }
    .hero-split .hero-copy {
        position: relative;
        z-index: 1;
        flex: 1;
    }
    .hero-split h1 {
        margin-left: 0;
        margin-right: 0;
    }
    .hero-split .hero-sub {
        margin-left: 0;
        margin-right: 0;
    }
    .hero-split .hero-search {
        margin-left: 0;
        margin-right: 0;
    }
}

/* ---------- PAGE HEADERS ---------- */
.page-header {
    padding: 7.5rem 0 5rem;
    text-align: center;
    border-bottom: 1px solid var(--border-soft);
    margin-bottom: 0;
}

.page-header h1 {
    font-size: clamp(2.25rem, 5vw, 3.75rem);
    margin-bottom: 0.75rem;
    letter-spacing: -0.04em;
}

.page-header p {
    margin: 0 auto;
    color: var(--text-dim);
    font-size: clamp(0.9rem, 2vw, 1rem);
}

/* ---------- CONTENT BLOCKS ---------- */
.content-section {
    padding: 5rem 0;
}

@media (min-width: 48rem) {
    .content-section {
        padding: 4rem 0;
    }
}

.content-section h2 {
    margin-bottom: 1rem;
}

.content-section p {
    margin-bottom: 1rem;
}

.content-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin: 1.25rem 0;
}

.content-list li {
    font-size: 0.95rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    line-height: 1.6;
}

/* ---------- AUTH FORM ---------- */
.auth-wrap {
    max-width: 24rem;
    margin: 5rem auto;
    padding: 0 1.5rem;
}

.auth-wrap h2 {
    margin-bottom: 0.4rem;
    text-align: center;
    letter-spacing: -0.04em;
}

.auth-wrap .auth-sub {
    text-align: center;
    color: var(--text-dim);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.75rem;
    max-width: 32ch;
    margin-left: auto;
    margin-right: auto;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin-bottom: 1rem;
}

.auth-field-input {
    position: relative;
}

.auth-field label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.auth-field input {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background-color: var(--bg);
    border: 1.5px solid var(--border-input);
    border-radius: 8px;
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
}

.auth-field input::placeholder {
    color: var(--text-ghost);
}

.auth-field input:focus {
    border-color: var(--accent);
}

.auth-field select {
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    color: var(--text);
    background-color: var(--bg);
    border: 1.5px solid var(--border-input);
    border-radius: 8px;
    padding: 0.85rem 1rem 0.85rem 2.6rem;
    outline: none;
    transition: border-color 0.2s ease;
    width: 100%;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}

.auth-field select:focus {
    border-color: var(--accent);
}

.auth-field select option {
    background-color: var(--bg-elev);
    color: var(--text);
}

.auth-field-input .lucide {
    width: 15px !important;
    height: 15px !important;
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-ghost);
    pointer-events: none;
}

.auth-submit {
    width: 100%;
    font-family: 'Archivo', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--btn-text);
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-bg);
    border-radius: 8px;
    padding: 0.95rem 1.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    margin-top: 0.5rem;
}

.auth-submit:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
}

.auth-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.auth-footer {
    text-align: center;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--text-faint);
    margin-top: 1.5rem;
}

.auth-footer a {
    color: var(--accent);
}

.auth-footer a:hover {
    text-decoration: underline;
}

.auth-forgot {
    text-align: right;
    font-size: 0.82rem;
    margin: -0.25rem 0 1rem;
}

.auth-forgot a {
    color: var(--accent);
}

.auth-forgot a:hover {
    text-decoration: underline;
}

.auth-status {
    margin-top: 1rem;
    min-height: 1.2em;
    text-align: center;
    font-size: 0.9rem;
}
.auth-status.error { color: var(--danger); }
.auth-status.success { color: var(--accent); }

/* ---------- PRICING ---------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.25rem;
    align-items: stretch;
}

.pricing-card {
    background-color: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.75rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: all 0.25s ease;
    position: relative;
}

.pricing-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.pricing-card.featured {
    border-color: var(--accent);
    background-color: var(--bg-elev);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.pricing-card.featured:hover {
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.pricing-badge {
    position: absolute;
    top: -11px;
    left: 1.5rem;
    background-color: var(--accent);
    color: var(--btn-text);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pricing-tier {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

.pricing-price {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 700;
    color: var(--text);
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.pricing-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-dim);
    letter-spacing: 0;
}

.pricing-desc {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 0.5rem;
    flex: 1;
}

.pricing-features li {
    font-size: 0.88rem;
    color: var(--text-muted);
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    line-height: 1.45;
}

.pricing-features li.muted {
    color: var(--text-ghost);
}

.pricing-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 0.85rem 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
    margin-top: 0.5rem;
}

.pricing-btn.primary {
    color: var(--btn-text);
    background-color: var(--btn-bg);
    border: 1px solid var(--btn-bg);
}

.pricing-btn.primary:hover {
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    transform: translateY(-2px);
}

.pricing-btn.ghost {
    color: var(--text);
    background: transparent;
    border: 1px solid var(--border-input);
}

.pricing-btn.ghost:hover {
    color: var(--btn-text);
    background-color: var(--btn-hover);
    border-color: var(--btn-hover);
    transform: translateY(-1px);
}

/* ---------- BANK STRIP ---------- */
.bank-strip {
    margin-top: 2.5rem;
    text-align: center;
}

.bank-strip h3 {
    margin-bottom: 0.35rem;
}

.bank-strip > p {
    margin: 0 auto 1.25rem;
    font-size: 0.9rem;
}

.bank-strip-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
}

.bank-strip-grid .bank-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background-color: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    transition: border-color var(--transition), transform var(--transition);
}

.bank-strip-grid .bank-logo:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.bank-strip-grid img {
    height: 24px;
    width: auto;
    max-width: 90px;
    object-fit: contain;
}

/* ===== FOOTER ===== */
.site-footer {
    width: 100%;
    background: var(--surface);
    color: var(--text);
    padding: 0 0 1.5rem;
    display: flex;
    flex-direction: column;
    border-top: 1px solid var(--border);
    transition: background-color 0.25s ease, color 0.25s ease;
}

.footer-container {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    padding: 4rem 1.5rem 0;
}

.ftr-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.footer-brand {
    max-width: 28rem;
    margin-inline: auto;
    text-align: center;
}

@media (min-width: 40rem) {
    .footer-brand {
        margin-inline: 0;
        text-align: left;
    }
}

@media (min-width: 64rem) {
    .footer-container {
        padding: 6rem 1.5rem 0;
    }
    .ftr-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text);
    text-decoration: none;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.footer-logo .lucide {
    width: 26px !important;
    height: 26px !important;
    color: var(--accent);
}

.footer-logo span {
    color: var(--text-ghost);
}

.footer-description {
    max-width: 330px;
    color: var(--text-dim);
    font-size: 0.9rem;
    line-height: 1.7;
}

/* Social buttons - Uiverse style, no background / no radius */
.button-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 40rem) {
    .button-container {
        justify-content: flex-start;
    }
}

@media (min-width: 48rem) {
    .button-container {
        gap: 2rem;
    }
}

.social-group {
    position: relative;
    display: inline-flex;
}

.button {
    cursor: pointer;
    text-decoration: none;
    color: var(--text);
    background: none;
    border: none;
    border-radius: 0;
    width: auto;
    height: auto;
    padding: 4px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: none;
    transform-origin: center center;
    position: relative;
    overflow: visible;
    font-size: inherit;
    z-index: auto;
}

.button:hover {
    transform: none;
    background: none;
    border: none;
    color: var(--text);
}

.button .lucide {
    width: 32px !important;
    height: 32px !important;
    transition: transform 0.2s ease, color 0.2s ease, stroke 0.2s ease;
}

.button:hover .lucide {
    transform: scale(1.25);
    color: #3b82f6;
}

/* ---------- MAIN BUTTONS - Uiverse fill, 60px pill ---------- */
.hero-cta,
.auth-submit,
.nav-desktop .login-link,
.pricing-btn,
.apply-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid #4f4f4f;
  border-radius: 60px;
  transition: all 0.2s ease-in;
  position: relative;
  overflow: hidden;
  font-size: 19px;
  cursor: pointer;
  color: var(--text);
  background: transparent;
  text-decoration: none;
  z-index: 1;
}

.hero-cta:before,
.auth-submit:before,
.nav-desktop .login-link:before,
.pricing-btn:before,
.apply-btn:before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scaleY(1) scaleX(1.25);
  top: 100%;
  width: 140%;
  height: 180%;
  background-color: rgba(0, 0, 0, 0.05);
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.hero-cta:after,
.auth-submit:after,
.nav-desktop .login-link:after,
.pricing-btn:after,
.apply-btn:after {
  content: "";
  position: absolute;
  left: 55%;
  transform: translateX(-50%) scaleY(1) scaleX(1.45);
  top: 180%;
  width: 160%;
  height: 190%;
  background-color: #39bda7;
  border-radius: 50%;
  display: block;
  transition: all 0.5s 0.1s cubic-bezier(0.55, 0, 0.1, 1);
  z-index: -1;
}

.hero-cta:hover,
.auth-submit:hover,
.nav-desktop .login-link:hover,
.pricing-btn:hover,
.apply-btn:hover {
  color: #ffffff;
  border: 1px solid #39bda7;
}

.hero-cta:hover:before,
.auth-submit:hover:before,
.nav-desktop .login-link:hover:before,
.pricing-btn:hover:before,
.apply-btn:hover:before {
  top: -35%;
  background-color: #39bda7;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

.hero-cta:hover:after,
.auth-submit:hover:after,
.nav-desktop .login-link:hover:after,
.pricing-btn:hover:after,
.apply-btn:hover:after {
  top: -45%;
  background-color: #39bda7;
  transform: translateX(-50%) scaleY(1.3) scaleX(0.8);
}

/* Header login matches nav text size */
.nav-desktop .login-link {
    font-size: 0.9rem;
    padding: 0.55rem 1.2rem;
}

.social-tooltip {
    position: absolute;
    top: -56px;
    left: 50%;
    transform: translateX(-50%) scale(0);
    transform-origin: left center;
    z-index: 20;
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    color: #111;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: transform 0.3s ease-in-out;
    pointer-events: none;
}

.social-group:hover .social-tooltip {
    transform: translateX(-50%) scale(1);
}

.footer-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 40rem) {
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        text-align: left;
    }
}

@media (min-width: 64rem) {
    .footer-links {
        grid-column: span 2;
    }
}

.footer-column h3 {
    color: var(--text-faint);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

.footer-column a {
    display: block;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    transition: color 0.2s ease;
}

.footer-column a:last-child {
    margin-bottom: 0;
}

.footer-column a:hover {
    color: var(--text);
}

.footer-contact a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact .lucide {
    width: 14px !important;
    height: 14px !important;
    color: var(--text-faint);
    flex-shrink: 0;
}

.footer-contact address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--text-dim);
    font-size: 0.88rem;
    line-height: 1.5;
    font-style: normal;
    margin-bottom: 0;
}

.footer-bottom {
    width: 100%;
    max-width: none;
    margin: 3rem 0 0;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

@media (max-width: 39.99rem) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }
}

.footer-bottom .copyright {
    color: var(--text-faint);
    font-size: 0.78rem;
    line-height: 1.5;
}

.footer-bottom .bottom-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-bottom .bottom-links a {
    color: var(--text-faint);
    text-decoration: none;
    font-size: 0.78rem;
}

.footer-bottom .bottom-links a:hover {
    color: var(--text);
}

.footer-bottom .separator {
    color: var(--text-ghost);
}

/* ---------- DASHBOARD ---------- */
.dashboard {
    display: flex;
    min-height: calc(100vh - 60px);
}

.sidebar {
    width: 220px;
    background: var(--surface);
    border-right: 1px solid var(--border);
    padding: 2rem 0;
    flex-shrink: 0;
    position: sticky;
    top: 60px;
    height: calc(100vh - 60px);
    overflow-y: auto;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0 0.75rem;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s ease;
}

.sidebar-link:hover {
    color: var(--text);
    background: var(--bg-elev);
}

.sidebar-link.active {
    color: var(--accent);
    background: var(--accent-soft-hover);
}

.sidebar-link .lucide {
    width: 18px;
    height: 18px;
}

.dashboard-main {
    flex: 1;
    padding: 2.5rem 3rem;
    max-width: 960px;
}

.dashboard-tab {
    display: none;
}

.dashboard-tab.active {
    display: block;
}

.dash-welcome h1 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.dash-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.dash-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.dash-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    transition: border-color var(--transition);
}

.dash-card:hover {
    border-color: var(--accent);
}

.dash-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dash-card-icon .lucide {
    width: 20px;
    height: 20px;
    color: var(--accent);
}

.dash-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.3rem;
}

.dash-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.dash-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
    transition: gap 0.15s ease;
}

.dash-card-link:hover {
    gap: 0.55rem;
}

.dash-card-link .lucide {
    width: 14px;
    height: 14px;
}

.dash-header {
    margin-bottom: 2rem;
}

.dash-header h1 {
    font-size: 1.6rem;
    margin-bottom: 0.35rem;
}

.dash-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* Apply */
.apply-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.apply-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color var(--transition);
}

.apply-card:hover {
    border-color: var(--accent);
}

.apply-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.apply-badge {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.apply-badge.open {
    background: rgba(72, 199, 142, 0.15);
    color: #48c78e;
}

.apply-badge.closed {
    background: rgba(224, 90, 90, 0.15);
    color: var(--danger);
}

.apply-deadline {
    font-size: 0.8rem;
    color: var(--text-faint);
}

.apply-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}

.apply-card > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.apply-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.apply-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.apply-meta .lucide {
    width: 14px;
    height: 14px;
}

.apply-btn {
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    border-radius: 8px;
    padding: 0.6rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: opacity var(--transition);
}

.apply-btn:hover {
    opacity: 0.9;
}

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

/* Apply - Categories */
.apply-categories { cursor: pointer; }
.apply-category-card { cursor: pointer; text-align: left; width: 100%; background: none; border: none; font: inherit; color: inherit; }
.apply-category-card:hover { border-color: var(--accent); }

/* Apply - Breadcrumb */
.apply-breadcrumb {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.88rem;
}
.apply-breadcrumb a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
}
.apply-breadcrumb a:hover { text-decoration: underline; }
.apply-breadcrumb span { color: var(--text-muted); }
.apply-breadcrumb .lucide { width: 14px; height: 14px; }

/* Apply - Course selection info */
.change-of-mind-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-size: 0.85rem;
}
.change-of-mind-banner .lucide {
    width: 20px;
    height: 20px;
    color: #fbbf24;
    flex-shrink: 0;
    margin-top: 0.1rem;
}
.change-of-mind-banner strong {
    color: #fbbf24;
    display: block;
    margin-bottom: 0.15rem;
}
.change-of-mind-banner p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}

.apply-courses-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.apply-courses-info p { font-size: 0.88rem; color: var(--text-muted); margin: 0; }
.apply-selected-count {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--accent);
    background: var(--accent-soft-hover);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}

/* Apply - Course card */
.apply-course-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.apply-course-card:hover { border-color: var(--accent); }
.apply-course-card.selected {
    border-color: var(--accent);
    background: var(--accent-soft-hover);
}
.apply-course-check {
    width: 22px;
    height: 22px;
    border: 2px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all var(--transition);
}
.apply-course-card.selected .apply-course-check {
    background: var(--accent);
    border-color: var(--accent);
}
.apply-course-check .lucide { width: 14px; height: 14px; color: var(--btn-text); opacity: 0; }
.apply-course-card.selected .apply-course-check .lucide { opacity: 1; }
.apply-course-info { flex: 1; }
.apply-course-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; }
.apply-course-info p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.apply-course-code {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-faint);
    background: var(--bg);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    flex-shrink: 0;
}

/* Apply - Submit button */
.apply-submit-btn {
    margin-top: 1.5rem;
    width: 100%;
    padding: 0.75rem;
    font-size: 0.95rem;
}

/* Apply - Institution card */
.apply-institution-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    transition: border-color var(--transition);
}
.apply-institution-card:hover { border-color: var(--accent); }
.apply-institution-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--accent-soft-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--accent);
}
.apply-institution-logo {
    width: 80px;
    height: 40px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.apply-institution-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.apply-institution-info { flex: 1; }
.apply-institution-info h3 { font-size: 0.95rem; font-weight: 600; margin-bottom: 0.2rem; display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; }
.apply-inst-badge {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    background: rgba(59,130,246,0.15);
    color: #3b82f6;
    white-space: nowrap;
}
.apply-inst-badge.handled {
    background: rgba(224,90,90,0.15);
    color: #ef4444;
}
.apply-institution-info p { font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.apply-institution-meta {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 0.3rem;
}

/* Apply - Popups */
.apply-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}
.apply-popup {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 2rem;
    max-width: 440px;
    width: 100%;
    position: relative;
}
.apply-popup h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.apply-popup > p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}
.apply-popup-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
}
.apply-popup-close .lucide { width: 18px; height: 18px; }
.apply-popup-actions {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.apply-popup-actions .apply-btn { flex: 1; }
.apply-btn-outline {
    background: transparent;
    color: var(--accent);
    border: 1px solid var(--border);
}
.apply-btn-outline:hover { border-color: var(--accent); }
.apply-popup .auth-field { margin-bottom: 1rem; }

/* Apply - Success */
.apply-popup-success { text-align: center; }
.apply-success-icon { margin-bottom: 1rem; }
.apply-success-icon .lucide { width: 48px; height: 48px; color: #48c78e; }
.apply-popup-success .apply-btn { width: 100%; margin-top: 1rem; }

/* Payment */
.payment-breakdown {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}
.payment-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.88rem;
    padding: 0.35rem 0;
    color: var(--text-muted);
}
.payment-total {
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    font-weight: 600;
    color: var(--text);
}
.payment-institution-fee {
    margin-bottom: 1rem;
}
.payment-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.88rem;
    cursor: pointer;
}
.payment-checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--accent);
}
.payment-note {
    font-size: 0.78rem;
    color: var(--text-faint);
    margin: 0.35rem 0 0 1.5rem;
}
.payment-grand-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 0.75rem 0;
    border-top: 2px solid var(--accent);
    margin-bottom: 1rem;
}
.apply-pay-btn { width: 100%; padding: 0.75rem; font-size: 0.95rem; }
.payment-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-top: 0.75rem;
}
.payment-secure .lucide { width: 12px; height: 12px; }

/* Apply - Wide popup */
.apply-popup-wide { max-width: 560px; }
.apply-popup-wide h2 { font-size: 1.15rem; }

/* View Application */
.view-app-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}
.view-app-header img {
    width: 80px;
    height: 40px;
    object-fit: contain;
    border-radius: 8px;
    background: var(--bg);
    padding: 4px;
}
.view-app-header h2 { margin-bottom: 0.1rem; }
.view-app-sub { font-size: 0.85rem; color: var(--text-muted); margin: 0; }
.view-app-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}
.view-app-field {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.65rem 0.75rem;
}
.view-app-field label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.25rem;
}
.view-app-field span {
    font-size: 0.88rem;
    font-weight: 500;
}
.view-app-courses {
    margin-bottom: 1.25rem;
}
.view-app-courses label {
    display: block;
    font-size: 0.72rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.5rem;
}
.view-app-courses ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.view-app-courses li {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.view-app-courses li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    flex-shrink: 0;
}
.view-app-actions {
    display: flex;
    gap: 0.75rem;
}
.view-app-actions .apply-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.view-app-actions .lucide { width: 14px; height: 14px; }
.apply-btn-danger {
    background: var(--danger, #ef4444);
    color: #fff;
}
.apply-btn-danger:hover { opacity: 0.85; }

/* Receipt */
.apply-popup-receipt { max-width: 420px; }
.receipt-header { text-align: center; margin-bottom: 0.5rem; }
.receipt-header h2 { font-size: 1.1rem; margin-bottom: 0.1rem; }
.receipt-header p { font-size: 0.8rem; color: var(--text-muted); margin: 0; }
.receipt-divider {
    border-top: 1px dashed var(--border);
    margin: 0.75rem 0;
}
.receipt-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.25rem 0;
    color: var(--text-muted);
}
.receipt-row span:first-child { color: var(--text-faint); }
.receipt-row span:last-child { font-weight: 500; color: var(--text); text-align: right; max-width: 55%; word-break: break-word; }
.receipt-total {
    font-weight: 700;
    font-size: 0.95rem;
    border-top: 2px solid var(--accent);
    padding-top: 0.5rem;
    margin-top: 0.25rem;
}
.receipt-total span { color: var(--accent) !important; }
.receipt-footer {
    text-align: center;
    margin: 1rem 0;
    font-size: 0.75rem;
    color: var(--text-faint);
}
.receipt-footer p { margin: 0.1rem 0; }
.apply-popup-receipt .apply-btn { width: 100%; margin-top: 0.5rem; }
.apply-popup-receipt .apply-btn .lucide { width: 14px; height: 14px; }

/* Dashboard - My Applications */
.dash-section { margin-top: 2rem; }
.dash-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.dash-section-header h2 { font-size: 1.1rem; font-weight: 600; }
.dash-applications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.dash-application-item {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1rem 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: border-color var(--transition);
}
.dash-application-item:hover { border-color: var(--accent); }
.dash-app-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent);
}
.dash-app-logo {
    width: 60px;
    height: 36px;
    border-radius: 8px;
    background: var(--bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.dash-app-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.dash-app-info { flex: 1; min-width: 0; }
.dash-app-info h3 { font-size: 0.9rem; font-weight: 600; margin-bottom: 0.15rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-app-info p { font-size: 0.78rem; color: var(--text-muted); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-app-status {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.dash-app-status.submitted { background: rgba(59,130,246,0.15); color: #3b82f6; }
.dash-app-status.pending { background: rgba(251,191,36,0.15); color: #fbbf24; }
.dash-app-status.accepted { background: rgba(72,199,142,0.15); color: #48c78e; }
.dash-app-status.declined { background: rgba(224,90,90,0.15); color: #ef4444; }
.dash-app-date { font-size: 0.75rem; color: var(--text-faint); flex-shrink: 0; }

.docs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.docs-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: border-color var(--transition);
}

.docs-card:hover {
    border-color: var(--accent);
}

.docs-card .lucide:first-child {
    width: 28px;
    height: 28px;
    color: var(--accent);
    margin-bottom: 0.75rem;
}

.docs-card h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.35rem;
}

.docs-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.docs-download {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--accent);
    text-decoration: none;
}

.docs-download:hover {
    text-decoration: underline;
}

.docs-download .lucide {
    width: 14px;
    height: 14px;
}

/* Profile */
.profile-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent-soft-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.profile-avatar .lucide {
    width: 28px;
    height: 28px;
    color: var(--accent);
}

.profile-info h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.profile-info p {
    font-size: 0.88rem;
    color: var(--text-muted);
}

.profile-handle {
    color: var(--text-dim) !important;
    font-size: 0.82rem !important;
}

.profile-form {
    max-width: 700px;
}

.profile-section-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.profile-section-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.profile-radio-group {
    display: flex;
    gap: 1.5rem;
    margin-top: 0.35rem;
}

.profile-radio {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--text);
    cursor: pointer;
}

.profile-radio input[type="radio"] {
    accent-color: var(--accent);
    width: 16px;
    height: 16px;
}

.subject-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.subject-card h3 {
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text);
}

.subject-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
    align-items: end;
}

.subject-pct {
    width: 100px;
}

.subject-pct-input {
    padding-left: 1rem;
}

.profile-aps {
    background: var(--bg-elev);
    border: 1px solid var(--accent);
    border-radius: 12px;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    text-align: center;
}

.profile-aps h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text);
}

.profile-aps span {
    color: var(--accent);
    font-size: 1.4rem;
}

.doc-file-input { display: none; }
.doc-status { display: block; margin-top: 0.5rem; font-size: 0.8rem; color: var(--accent); }
.doc-status.error { color: #ef4444; }

.profile-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .nav-desktop { gap: 1rem; }
    .nav-desktop a,
    .nav-desktop .nav-trigger { font-size: 0.84rem; }
    .dashboard-main { padding: 2rem 1.5rem; }
}

.mobile-tab-bar { display: none; }

@media (max-width: 768px) {
    .nav-desktop { display: none; }
    .hamburger { display: flex; }
    .sidebar { display: none; }
    .dashboard { flex-direction: column; }
    .dashboard-main { padding: 1.5rem 1rem; }
    .dash-grid { grid-template-columns: 1fr; }
    .docs-grid { grid-template-columns: 1fr; }
    .profile-row { grid-template-columns: 1fr; }
    .subject-row { grid-template-columns: 1fr; }
    .subject-pct { width: 100%; }
    .mobile-tab-bar {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: var(--surface);
        border-top: 1px solid var(--border);
        z-index: 900;
        padding: 0.5rem 0;
        justify-content: space-around;
    }
    .mobile-tab-bar a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.2rem;
        color: var(--text-dim);
        font-size: 0.68rem;
        text-decoration: none;
        padding: 0.35rem 0.75rem;
        border-radius: 8px;
        transition: color 0.15s ease;
    }
    .mobile-tab-bar a.active {
        color: var(--accent);
    }
    .mobile-tab-bar .lucide {
        width: 20px;
        height: 20px;
    }
}

@media (max-width: 700px) {
    .site-header { padding: 0.85rem 1rem; }
    .hero { padding: 3rem 0 3rem; }
    .content-section { padding: 1rem 0 3rem; }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Agent Portal */
.agent-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2rem 1.5rem 4rem;
}
.agent-filters {
    margin-bottom: 1.5rem;
}
.agent-filter-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.75rem;
}
.agent-filter-row select {
    flex: 1;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text);
    font-size: 0.85rem;
}
.agent-stats {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.agent-stat-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1rem;
    text-align: center;
}
.agent-stat-num {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 0.15rem;
}
.agent-stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.agent-table-wrap {
    overflow-x: auto;
}
.agent-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}
.agent-table th {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 2px solid var(--border);
    color: var(--text-faint);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}
.agent-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}
.agent-table tr:hover td {
    background: var(--bg-elev);
}
.agent-email {
    font-size: 0.78rem;
    color: var(--text-faint);
}
.agent-courses-cell {
    max-width: 200px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.agent-process-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--accent);
    color: var(--btn-text);
    border: none;
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.agent-process-btn:hover { opacity: 0.85; }
.agent-process-btn .lucide { width: 12px; height: 12px; }
.agent-empty {
    text-align: center;
    color: var(--text-muted);
    padding: 3rem 1rem;
    font-size: 0.9rem;
}
.process-info-row {
    font-size: 0.85rem;
    padding: 0.3rem 0;
    color: var(--text-muted);
}
.process-info-row strong {
    color: var(--text);
}
.apply-popup textarea {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg);
    color: var(--text);
    font-family: inherit;
    font-size: 0.85rem;
    resize: vertical;
}
.apply-popup textarea:focus {
    outline: none;
    border-color: var(--accent);
}
.agent-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
}
.agent-download-all-btn {
    white-space: nowrap;
}
.agent-download-all-btn .lucide { width: 14px; height: 14px; }
.process-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.process-actions .apply-btn { flex: 1; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }
.process-actions .lucide { width: 14px; height: 14px; }
.process-send-btn {
    background: #3b82f6;
    color: #fff;
}
.process-send-btn:hover { opacity: 0.85; }
.agent-view-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: var(--bg);
    color: var(--accent);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.7rem;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
}
.agent-view-btn:hover { border-color: var(--accent); }
.agent-view-btn .lucide { width: 12px; height: 12px; }

@media (max-width: 768px) {
    .agent-stats { grid-template-columns: repeat(3, 1fr); }
    .agent-filter-row { flex-direction: column; }
    .agent-table { font-size: 0.78rem; }
    .agent-table th, .agent-table td { padding: 0.5rem; }
}
@media (max-width: 480px) {
    .agent-stats { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- REGION PICKER ---------- */
.region-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 400;
    background: none;
    border: 1px solid var(--border-input);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-family: 'Archivo', sans-serif;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1;
}

.region-trigger:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--accent-soft-hover);
}

.region-trigger .lucide {
    width: 14px !important;
    height: 14px !important;
}

.nav-mobile > li > .region-trigger {
    width: 100%;
    border: none;
    padding: 0.85rem 0;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
    justify-content: space-between;
}

.nav-mobile > li > .region-trigger:hover {
    color: var(--accent);
    background: none;
}

.region-footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: none;
    border: 1px solid var(--border-input);
    border-radius: 999px;
    padding: 0.5rem 0.9rem;
    color: var(--text-muted);
    font-family: 'Archivo', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.region-footer-btn:hover {
    color: var(--accent);
    border-color: var(--accent);
    background-color: var(--accent-soft-hover);
}

.region-footer-btn .lucide {
    width: 14px !important;
    height: 14px !important;
}

.footer-bottom {
    flex-wrap: wrap;
    gap: 1rem;
}

.region-overlay {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.region-overlay[hidden] { display: none; }

.region-modal {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.75rem;
    max-width: 380px;
    width: 100%;
    text-align: center;
}

.region-modal h2 {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.region-sub {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text-dim);
    margin: 0 auto 1.25rem;
}

.region-option {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--accent);
    background: var(--accent-soft-hover);
    color: var(--text);
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 0.75rem;
    text-align: left;
}

.region-option .lucide:first-child { color: var(--accent); }
.region-option .lucide:last-child { margin-left: auto; color: var(--accent); }

.region-cancel {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border-input);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Archivo', sans-serif;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
}

.region-cancel:hover {
    color: var(--text);
    border-color: var(--text-dim);
}

