@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,600;0,9..144,700;1,9..144,300&family=Inter:wght@300;400;500;600;700;800&display=swap');

/* â”€â”€â”€ Design Tokens â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
:root {
    /* Brand Aqua / Teal */
    --g-900: #112728;
    --g-800: #1b3b3d;
    --g-700: #44e3de;
    --g-600: #36cbc6;
    --g-500: #6bafb3;
    --g-400: #86c0c3;
    --g-300: #9fd1d3;
    --g-200: #c9e8e9;
    --g-100: #e2f5f6;
    --g-50:  #f1fcfc;

    /* Violet Accent */
    --a-700: #7e53b9;
    --a-600: #915fcb;
    --a-500: #a46ee6;
    --a-400: #b287ea;
    --a-300: #c3a3ef;
    --a-100: #ece1fb;
    --a-50:  #f6f0ff;

    /* Neutrals */
    --n-900: #0f1a1d;
    --n-700: #304348;
    --n-500: #60767b;
    --n-400: #8ca1a5;
    --n-300: #bcccd0;
    --n-200: #dde7ea;
    --n-100: #edf2f4;
    --n-50:  #f8fafb;

    /* Surfaces */
    --bg:        #f6fbfb;
    --bg-alt:    #edf7f8;
    --bg-card:   #ffffff;
    --bg-subtle: #f5fbfc;

    /* Semantic */
    --text:       #112628;
    --text-soft:  #2f4a4d;
    --text-muted: #5f7b7f;
    --border:     #d8e8ea;
    --border-light: #e7f0f2;

    /* Shadows */
    --shadow-xs: 0 1px 3px rgba(17,39,40,.06);
    --shadow-sm: 0 2px 8px rgba(17,39,40,.08);
    --shadow-md: 0 6px 24px rgba(17,39,40,.10);
    --shadow-lg: 0 16px 56px rgba(17,39,40,.13);
    --shadow-green: 0 8px 28px rgba(68,227,222,.24);

    /* Radius */
    --r-sm:   8px;
    --r-md:   14px;
    --r-lg:   20px;
    --r-xl:   28px;
    --r-2xl:  36px;
    --r-pill: 999px;

    /* Transitions */
    --ease: cubic-bezier(.4,0,.2,1);
    --t-fast: 150ms;
    --t-base: 220ms;
    --t-slow: 380ms;
}

/* â”€â”€â”€ Reset & Base â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Fraunces', Georgia, serif;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }

::selection {
    background: rgba(68,227,222,.20);
    color: var(--text);
}

/* â”€â”€â”€ Scrollbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--n-300); border-radius: var(--r-pill); }

/* â”€â”€â”€ Typography Utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.display {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(2.6rem, 6vw, 5rem);
    font-weight: 700;
    line-height: 1.0;
    letter-spacing: -0.04em;
}

.display-sm {
    font-family: 'Fraunces', Georgia, serif;
    font-size: clamp(1.9rem, 4vw, 3.2rem);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.label-xs {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.label-sm {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.gradient-text {
    background: linear-gradient(135deg, var(--a-500), var(--a-300));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* â”€â”€â”€ Page Shells â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-page {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
}

.auth-shell {
    background:
        radial-gradient(ellipse 70% 50% at 20% 0%, rgba(68,227,222,.18) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 100%, rgba(164,110,230,.14) 0%, transparent 55%),
        var(--bg);
}

.app-shell {
    background: var(--bg);
}

/* â”€â”€â”€ Auth Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.auth-layout {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
}

.auth-card {
    width: 100%;
    max-width: 1040px;
    background: var(--bg-card);
    border-radius: var(--r-2xl);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
}

/* Auth left (brand) panel */
.auth-aside {
    position: relative;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    background: linear-gradient(155deg, var(--g-800) 0%, var(--g-900) 100%);
    color: #fff;
}

.auth-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 80% 20%, rgba(164,110,230,.28) 0%, transparent 45%),
        radial-gradient(circle at 10% 85%, rgba(107,175,179,.22) 0%, transparent 40%);
    pointer-events: none;
}

.auth-aside > * { position: relative; z-index: 1; }

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.auth-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.auth-brand-name {
    font-family: 'Fraunces', serif;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #fff;
}

.auth-aside-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.04em;
    color: #fff;
    margin: 0 0 16px;
}

.auth-aside-copy {
    font-size: 14px;
    line-height: 1.75;
    color: rgba(255,255,255,.65);
    max-width: 28rem;
    margin: 0;
}

.auth-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 40px;
}

.auth-stat {
    padding: 16px;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1);
    backdrop-filter: blur(8px);
}

.auth-stat strong {
    display: block;
    font-family: 'Fraunces', serif;
    font-size: 1.6rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.auth-stat span {
    font-size: 11px;
    color: rgba(255,255,255,.55);
    font-weight: 500;
    margin-top: 4px;
    display: block;
}

/* Auth right (form) panel */
.auth-form-panel {
    padding: 48px 44px;
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.auth-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px 6px 6px;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--bg-subtle);
    margin-bottom: 20px;
}

.auth-eyebrow-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    flex-shrink: 0;
}

.auth-eyebrow-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.auth-title {
    font-family: 'Fraunces', serif;
    font-size: clamp(1.9rem, 3vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    margin: 0 0 8px;
    line-height: 1.1;
}

.auth-copy {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    margin: 0 0 32px;
}

/* â”€â”€â”€ Form Elements â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.input-shell {
    display: grid;
    gap: 6px;
}

.input-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.input-field,
.input-shell input,
.input-shell select,
.input-shell textarea {
    width: 100%;
    padding: 13px 16px;
    border-radius: var(--r-md);
    border: 1.5px solid var(--border);
    background: var(--bg-subtle);
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    transition: border-color var(--t-base) var(--ease), box-shadow var(--t-base) var(--ease), background var(--t-base) var(--ease);
    outline: none;
    -webkit-appearance: none;
}

.input-field:focus,
.input-shell input:focus,
.input-shell select:focus,
.input-shell textarea:focus {
    border-color: var(--g-500);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(68,227,222,.18);
}

.input-field::placeholder,
.input-shell input::placeholder,
.input-shell textarea::placeholder {
    color: var(--n-400);
}

/* Mode switch (login tabs) */
.mode-switch {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
    padding: 5px;
    background: var(--bg-alt);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
}

.mode-switch button {
    padding: 10px 16px;
    border-radius: calc(var(--r-md) - 3px);
    font-size: 13px;
    font-weight: 600;
    border: none;
    background: transparent;
    color: var(--text-muted);
    transition: all var(--t-base) var(--ease);
}

.active-tab, .active-mode {
    background: var(--bg-card) !important;
    color: var(--g-700) !important;
    box-shadow: var(--shadow-xs) !important;
    border-color: transparent !important;
}

.inactive-tab {
    background: transparent;
    color: var(--text-muted);
}

/* â”€â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.site-button,
.site-button-alt,
.auth-submit,
.danger-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 22px;
    border-radius: var(--r-pill);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.01em;
    border: 1.5px solid transparent;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--t-base) var(--ease);
    white-space: nowrap;
}

.site-button,
.auth-submit {
    background: var(--g-700);
    color: #fff;
    border-color: var(--g-700);
    box-shadow: var(--shadow-green);
}

.site-button:hover,
.auth-submit:hover {
    background: var(--g-600);
    border-color: var(--g-600);
    transform: translateY(-1px);
    box-shadow: 0 12px 32px rgba(68,227,222,.32);
}

.site-button:active,
.auth-submit:active {
    transform: translateY(0);
}

.site-button-alt {
    background: #fff;
    border-color: var(--border);
    color: var(--text-soft);
    box-shadow: var(--shadow-xs);
}

.site-button-alt:hover {
    background: var(--g-50);
    border-color: var(--g-300);
    color: var(--g-700);
    transform: translateY(-1px);
}

.danger-button {
    background: #c0392b;
    border-color: #c0392b;
    color: #fff;
    box-shadow: 0 8px 24px rgba(192,57,43,.2);
}

.danger-button:hover {
    background: #a93226;
    border-color: #a93226;
    transform: translateY(-1px);
}

/* â”€â”€â”€ App Shell (Dashboard / Profile / Wallet) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.app-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 60px;
    background: rgba(255,255,255,.92) !important;
    border-bottom: 1px solid var(--border-light) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 1px 0 rgba(14,26,18,.04), 0 2px 12px rgba(14,26,18,.05);
}

.app-bottom-nav {
    background: rgba(255,255,255,.96) !important;
    border-top: 1px solid var(--border-light) !important;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 -1px 0 rgba(14,26,18,.04), 0 -4px 16px rgba(14,26,18,.06);
}

/* â”€â”€â”€ Cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.app-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-sm);
}

.app-highlight {
    border-radius: var(--r-xl);
    padding: 28px;
    color: #fff;
    background:
        radial-gradient(circle at 90% 10%, rgba(164,110,230,.30) 0%, transparent 38%),
        radial-gradient(circle at 5% 90%, rgba(107,175,179,.22) 0%, transparent 35%),
        linear-gradient(150deg, var(--g-700) 0%, var(--g-900) 100%);
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
}

.app-highlight::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='1' cy='1' r='1' fill='rgba(255,255,255,.04)'/%3E%3C/svg%3E");
    background-size: 30px 30px;
    pointer-events: none;
}

.stat-card {
    padding: 16px 18px;
    border-radius: var(--r-lg);
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(6px);
}

.stat-card-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255,255,255,.5);
    display: block;
}

.stat-card-value {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-top: 6px;
    letter-spacing: -0.02em;
    font-family: 'Fraunces', serif;
}

.stat-card-accent {
    background: rgba(164,110,230,.18);
    border-color: rgba(164,110,230,.2);
}

/* â”€â”€â”€ Pill / Badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--r-pill);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.pill-green {
    background: var(--g-50);
    color: var(--g-700);
    border: 1px solid var(--g-100);
}

.pill-gold {
    background: var(--a-50);
    color: var(--a-700);
    border: 1px solid var(--a-100);
}

.pill-dark {
    background: var(--n-900);
    color: rgba(255,255,255,.9);
}

/* Live dot */
.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #44e3de;
    box-shadow: 0 0 0 0 rgba(68,227,222,.55);
    animation: pulse-dot 1.8s infinite;
    display: inline-block;
}

@keyframes pulse-dot {
    0%   { box-shadow: 0 0 0 0 rgba(68,227,222,.55); }
    60%  { box-shadow: 0 0 0 7px rgba(68,227,222,0); }
    100% { box-shadow: 0 0 0 0 rgba(68,227,222,0); }
}

/* â”€â”€â”€ Alert / Flash â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
    border-radius: var(--r-md);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.55;
    border: 1px solid;
}

.alert-success {
    background: #eefdfd;
    border-color: #c9e8e9;
    color: #1b3b3d;
}

.alert-error {
    background: #fff5f5;
    border-color: #fdc5c5;
    color: #b91c1c;
}

/* â”€â”€â”€ Dashboard-specific â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.package-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    overflow: hidden;
    transition: box-shadow var(--t-base) var(--ease), transform var(--t-base) var(--ease);
    display: flex;
    flex-direction: column;
}

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

.investment-card {
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--r-lg);
    padding: 14px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-xs);
}

.invest-btn {
    width: 100%;
    padding: 9px 12px;
    border-radius: var(--r-md);
    background: var(--g-700);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease);
    letter-spacing: 0.03em;
}

.invest-btn:hover {
    background: var(--g-600);
}

/* â”€â”€â”€ Quick Action Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.quick-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    border-radius: var(--r-lg);
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    transition: all var(--t-base) var(--ease);
    text-decoration: none;
    color: var(--text-soft);
}

.quick-action:hover {
    background: var(--g-50);
    border-color: var(--g-200);
    color: var(--g-700);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.quick-action-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.quick-action-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

/* â”€â”€â”€ Progress Bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.progress-track {
    width: 100%;
    height: 4px;
    border-radius: var(--r-pill);
    background: var(--n-100);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    border-radius: var(--r-pill);
    background: linear-gradient(90deg, var(--g-500), var(--g-400));
    transition: width 1s var(--ease);
}

/* â”€â”€â”€ Ticker / Live Feed â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.ticker-wrap {
    mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 15%, black 85%, transparent);
}

.ticker-item {
    animation: ticker-in 0.4s var(--ease);
}

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

/* â”€â”€â”€ Modal overlays â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 90;
    background: rgba(10,20,14,.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
}

.modal-overlay.flex {
    display: flex;
}

@media (min-width: 640px) {
    .modal-overlay {
        align-items: center;
    }
}

.modal-sheet {
    width: 100%;
    max-width: 440px;
    background: var(--bg-card);
    border-radius: var(--r-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-light);
}

.modal-header {
    padding: 20px 22px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px solid var(--border-light);
}

.modal-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--n-100);
    border: none;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    cursor: pointer;
    transition: background var(--t-fast) var(--ease);
}

.modal-close:hover {
    background: var(--n-200);
    color: var(--text);
}

.modal-body {
    padding: 20px 22px;
    max-height: 60vh;
    overflow-y: auto;
}

/* â”€â”€â”€ Overrides for Tailwind utilities â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
/* These ensure theme tokens win over Tailwind's generic utilities */

.text-green-600, .hover\:text-green-600:hover { color: var(--g-700) !important; }
.text-green-700, .hover\:text-green-700:hover { color: var(--g-700) !important; }
.text-green-800 { color: var(--g-800) !important; }
.text-green-500, .hover\:text-green-500:hover { color: var(--g-500) !important; }

.bg-green-50, .hover\:bg-green-50:hover   { background-color: var(--g-50)  !important; }
.bg-green-100, .hover\:bg-green-100:hover { background-color: var(--g-100) !important; }
.bg-green-500 { background-color: var(--g-500) !important; }
.bg-green-600, .hover\:bg-green-600:hover { background-color: var(--g-700) !important; }
.bg-green-700, .hover\:bg-green-700:hover { background-color: var(--g-800) !important; }

.border-green-100 { border-color: var(--g-100) !important; }
.border-green-200, .hover\:border-green-200:hover { border-color: var(--g-200) !important; }
.border-green-500 { border-color: var(--g-500) !important; }

.focus\:border-green-500:focus {
    border-color: var(--g-500) !important;
    box-shadow: 0 0 0 4px rgba(68,227,222,.18) !important;
}

.from-green-600 {
    --tw-gradient-from: var(--g-700) var(--tw-gradient-from-position) !important;
    --tw-gradient-to: rgba(68,227,222,0) var(--tw-gradient-to-position) !important;
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to) !important;
}
.to-green-500 { --tw-gradient-to: var(--g-500) var(--tw-gradient-to-position) !important; }

.success-alert {
    background: #eefdfd !important;
    border-color: #c9e8e9 !important;
    color: var(--g-700) !important;
}

/* â”€â”€â”€ Support chat overlay â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
#supportOverlay {
    background: var(--bg-subtle) !important;
}

/* â”€â”€â”€ Spin animation â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@keyframes spin-cw { to { transform: rotate(360deg); } }
.spin-slow { animation: spin-cw 4s linear infinite; }

/* â”€â”€â”€ Responsive tweaks â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 900px) {
    .auth-card {
        grid-template-columns: 1fr;
        max-width: 520px;
    }

    .auth-aside {
        padding: 36px 32px 28px;
    }

    .auth-stats {
        display: none;
    }

    .auth-form-panel {
        padding: 32px;
    }
}

@media (max-width: 540px) {
    .auth-form-panel {
        padding: 24px 20px;
    }

    .auth-aside {
        padding: 28px 20px 24px;
    }

    .auth-aside-title {
        font-size: 1.7rem;
    }

    .app-highlight {
        padding: 20px;
    }
}
