:root {
    --primary: #F66135;
    --primary-dark: #D94E28;
    --primary-light: #FF7A52;
    --primary-glow: rgba(246, 97, 53, 0.35);
    --bg: #0A0A0F;
    --bg-secondary: #12121A;
    --bg-card: #16161F;
    --bg-card-hover: #1C1C28;
    --text: #E8E8ED;
    --text-muted: #8B8B9E;
    --border: rgba(255, 255, 255, 0.06);
    --nav-bg: rgba(10, 10, 15, 0.88);
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.25);
    --font-size: 15px;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-display: 'Orbitron', sans-serif;
    --font-body: 'Inter', sans-serif;
    --radius: 0;
    --nav-height: 60px;
    --pad-container: 1.125rem;
    --pad-section-y: 2.5rem;
    --pad-section-y-sm: 2rem;
    --pad-card: 1.25rem;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-theme="light"] {
    --bg: #F4F4F7;
    --bg-secondary: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-card-hover: #EEEEF3;
    --text: #1A1A2E;
    --text-muted: #5C5C72;
    --border: rgba(0, 0, 0, 0.09);
    --nav-bg: rgba(255, 255, 255, 0.92);
    --primary-glow: rgba(246, 97, 53, 0.18);
    --shadow-sm: 0 2px 16px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 10px 36px rgba(0, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; border-radius: 0 !important; }

html, body {
    max-width: 100%;
}

/* Non-dashboard pages: clip horizontal overflow without creating a second vertical scroll layer */
html:not(.dashboard-root),
html:not(.dashboard-root) body {
    overflow-x: clip;
}

/* Dashboard scroll rules live in dashboard.css (loaded last) + inline critical fix in dashboard-header.php */

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
}

table {
    max-width: 100%;
}

html {
    scroll-behavior: smooth;
    font-size: var(--font-size);
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    transition: background var(--transition), color var(--transition);
}

body:not(.dashboard-body) {
    overflow-x: clip;
}

main {
    padding-top: var(--nav-height);
}

body.dashboard-body main.dash-content {
    padding-top: 0 !important;
}

/* â”€â”€ Layout base â”€â”€ */
.container {
    width: 100%;
    max-width: 1140px;
    padding-left: var(--pad-container);
    padding-right: var(--pad-container);
}

section[id] {
    scroll-margin-top: calc(var(--nav-height) + 1.25rem);
}

.site-header {
    position: relative;
    z-index: 1030;
}

/* â”€â”€ Kivo brand display typography â”€â”€ */
.kivo-display,
.kivo-display-hero {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FF8A65 0%, #F66135 45%, #FFD4A8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 20px rgba(246, 97, 53, 0.25));
}

.kivo-display-hero {
    font-size: inherit;
    letter-spacing: 0.14em;
}

.kivo-display-token {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.footer-brand-name {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #FF8A65 0%, #F66135 50%, #FFD4A8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
}

/* â”€â”€ Layout wrappers â”€â”€ */
.layout-wrap {
    padding-left: var(--pad-container);
    padding-right: var(--pad-container);
}

.layout-section {
    padding-top: 0;
    padding-bottom: 0;
}

.layout-section-sm {
    padding-top: var(--pad-section-y-sm);
    padding-bottom: var(--pad-section-y-sm);
}

.layout-grid {
    --bs-gutter-x: 1rem;
    --bs-gutter-y: 1rem;
}

/* Override Bootstrap blue primary with brand color */
.text-primary { color: var(--primary) !important; }

.stat-value.text-primary,
.stat-value.counter,
.feature-card.text-center > .stat-value { color: var(--primary); }

.btn-kivo {
    background: var(--primary);
    color: #fff;
    border: none;
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    transition: all var(--transition);
    position: relative;
    overflow: hidden;
}

.btn-kivo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,0.15));
    opacity: 0;
    transition: opacity var(--transition);
}

.btn-kivo:hover {
    background: var(--primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px var(--primary-glow);
}

.btn-kivo:hover::before { opacity: 1; }

.btn-kivo-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    padding: 0.55rem 1.25rem;
    border-radius: 10px;
    transition: all var(--transition);
}

.btn-kivo-outline:hover {
    background: var(--primary);
    color: #fff;
    transform: translateY(-1px);
}

/* â”€â”€ Hero â”€â”€ */
.hero-section {
    display: flex;
    align-items: center;
    position: relative;
    padding: 2.25rem 0 2.5rem;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(246, 97, 53, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 97, 53, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: orbFloat 8s ease-in-out infinite;
}

.hero-orb-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    right: -5%;
}

.hero-orb-2 {
    width: 300px;
    height: 300px;
    background: #FF7A52;
    bottom: 10%;
    left: -5%;
    animation-delay: -4s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(30px, -20px) scale(1.05); }
}

.hero-content { position: relative; z-index: 1; }

[data-theme="light"] .hero-grid {
    background-image:
        linear-gradient(rgba(246, 97, 53, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 97, 53, 0.05) 1px, transparent 1px);
}

[data-theme="light"] .hero-orb {
    opacity: 0.22;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(246, 97, 53, 0.1);
    border: 1px solid rgba(246, 97, 53, 0.25);
    color: var(--primary);
    font-size: 0.875rem;
    font-weight: 600;
    padding: 0.4rem 1rem;
    border-radius: 50px;
    margin-bottom: 1.25rem;
    animation: fadeInUp 0.6s ease forwards;
}

.hero-badge .pulse-dot {
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
    font-size: clamp(2rem, 4.8vw, 3rem);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 1rem;
    animation: fadeInUp 0.6s 0.1s ease forwards;
    opacity: 0;
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 2rem;
    padding-right: 0.5rem;
    animation: fadeInUp 0.6s 0.2s ease forwards;
    opacity: 0;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    animation: fadeInUp 0.6s 0.3s ease forwards;
    opacity: 0;
}

.hero-visual {
    position: relative;
    z-index: 1;
    animation: fadeInRight 0.8s 0.4s ease forwards;
    opacity: 0;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.token-card-3d {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease, background var(--transition), border-color var(--transition), box-shadow var(--transition);
    box-shadow: var(--shadow-md);
}

.token-card-3d::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 20px;
    background: linear-gradient(135deg, var(--primary), transparent 60%);
    z-index: -1;
    opacity: 0.3;
}

.token-price-display {
    font-size: 2.25rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text);
}

.price-change {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
}

.price-change.positive {
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
}

.price-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #EF4444;
}

.mini-chart {
    height: 80px;
    margin: 1rem 0;
    position: relative;
    overflow: hidden;
}

.mini-chart svg {
    width: 100%;
    height: 100%;
}

.mini-chart-line {
    fill: none;
    stroke: var(--primary);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 500;
    stroke-dashoffset: 500;
    animation: drawLine 2s ease forwards 0.5s;
}

@keyframes drawLine {
    to { stroke-dashoffset: 0; }
}

.mini-chart-area {
    fill: url(#chartGradient);
    opacity: 0;
    animation: fadeIn 1s ease forwards 1s;
}

@keyframes fadeIn {
    to { opacity: 0.3; }
}

/* â”€â”€ Stats Bar â”€â”€ */
.stats-bar {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 1.15rem 0;
    transition: background var(--transition), border-color var(--transition);
}

.stat-item {
    text-align: center;
    padding: 0.5rem 0.75rem;
}

.stat-value {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.3s;
}

.stat-value.updating {
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.15rem;
}

/* â”€â”€ Section Common â”€â”€ */
.section {
    padding: var(--pad-section-y) 0;
    position: relative;
}

.section-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.section-title {
    font-size: clamp(1.5rem, 2.8vw, 1.875rem);
    font-weight: 700;
    margin-bottom: 0.65rem;
    line-height: 1.25;
}

.section-desc {
    font-size: 0.975rem;
    color: var(--text-muted);
    max-width: 540px;
    line-height: 1.65;
    margin-bottom: 0;
}

/* â”€â”€ Feature Cards â”€â”€ */
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: var(--pad-card);
    height: 100%;
    transition: background var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
    position: relative;
    overflow: hidden;
}

.feature-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    transform: scaleX(0);
    transition: transform var(--transition);
}

.feature-card:hover {
    border-color: rgba(246, 97, 53, 0.3);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.feature-card:hover::after { transform: scaleX(1); }

.feature-icon {
    width: 44px;
    height: 44px;
    background: rgba(246, 97, 53, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card h5 {
    font-size: 1.0625rem;
    margin-bottom: 0.6rem;
}

.feature-card p {
    font-size: 0.975rem;
    color: var(--text-muted);
    margin: 0;
}

/* â”€â”€ Tokenomics â”€â”€ */
.tokenomics-chart {
    position: relative;
    width: 220px;
    height: 220px;
    margin: 0 auto;
}

.donut-segment {
    transition: stroke-width 0.3s;
    cursor: pointer;
}

.donut-segment:hover { stroke-width: 14; }

.tokenomics-legend {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tokenomics-legend li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0;
    font-size: 0.9rem;
    border-bottom: 1px solid var(--border);
    transition: padding-left var(--transition);
}

.tokenomics-legend li:hover { padding-left: 0.5rem; }

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-pct {
    margin-left: auto;
    font-weight: 600;
    font-family: var(--font-heading);
}

/* â”€â”€ Roadmap â”€â”€ */
.roadmap-timeline {
    position: relative;
    padding-left: 2rem;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 7px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary), var(--border));
}

.roadmap-item {
    position: relative;
    margin-bottom: 1.5rem;
    padding: 1.125rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: all var(--transition);
}

.roadmap-item::before {
    content: '';
    position: absolute;
    left: -2rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    background: var(--bg);
    z-index: 1;
    transition: all var(--transition);
}

.roadmap-item.completed::before {
    background: var(--primary);
}

.roadmap-item.active::before {
    background: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-glow);
    animation: pulse 2s ease infinite;
}

.roadmap-item:hover {
    border-color: rgba(246, 97, 53, 0.3);
    transform: translateX(4px);
}

.roadmap-phase {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
}

.roadmap-item h5 {
    font-size: 1.0625rem;
    margin: 0.25rem 0 0.35rem;
}

.roadmap-item p {
    font-size: 0.975rem;
    color: var(--text-muted);
    margin: 0;
}

.status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.55rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.status-completed { background: rgba(34, 197, 94, 0.15); color: #22C55E; }
.status-active { background: rgba(246, 97, 53, 0.15); color: var(--primary); }
.status-upcoming { background: rgba(139, 139, 158, 0.15); color: var(--text-muted); }

/* â”€â”€ FAQ â”€â”€ */
.faq-accordion .accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius) !important;
    margin-bottom: 0.75rem;
    overflow: hidden;
}

.faq-accordion .accordion-button {
    background: transparent;
    color: var(--text);
    font-size: 1rem;
    font-weight: 600;
    padding: 1.125rem 1.5rem;
    box-shadow: none;
}

.faq-accordion .accordion-button:not(.collapsed) {
    color: var(--primary);
    background: rgba(246, 97, 53, 0.05);
}

.faq-accordion .accordion-button::after {
    filter: var(--accordion-icon-filter, none);
}

[data-theme="dark"] .faq-accordion .accordion-button::after {
    filter: invert(1) brightness(0.7);
}

[data-theme="light"] .faq-accordion .accordion-button::after {
    filter: none;
}

.faq-accordion .accordion-body {
    font-size: 0.975rem;
    color: var(--text-muted);
    padding: 0 1.5rem 1.25rem;
}

/* â”€â”€ CTA â”€â”€ */
.cta-section {
    background: linear-gradient(135deg, rgba(246, 97, 53, 0.08), rgba(246, 97, 53, 0.02));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.cta-box {
    text-align: center;
    padding: 2rem 1.25rem;
}

.cta-box h2 {
    font-size: clamp(1.5rem, 2.8vw, 1.875rem);
    margin-bottom: 0.75rem;
}

.cta-box p {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* â”€â”€ Buy Section â”€â”€ */
.buy-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 1.5rem;
    text-align: center;
}

.exchange-logo {
    width: 48px;
    height: 48px;
    background: var(--bg-secondary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    color: var(--primary);
    margin: 0 auto 0.75rem;
    transition: all var(--transition);
}

.exchange-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.125rem;
    text-align: center;
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.exchange-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--primary-glow);
    color: inherit;
}

.exchange-card h6 {
    font-size: 0.9rem;
    margin: 0;
}

/* â”€â”€ Auth Page â”€â”€ */
.page-auth {
    overflow-x: hidden;
}

.auth-page {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100dvh - var(--nav-height));
    padding: 2.5rem 0 3rem;
    overflow-x: hidden;
    overflow-y: visible;
}

.auth-layout {
    display: grid;
    grid-template-areas:
        "form"
        "showcase";
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.auth-form-col {
    grid-area: form;
    min-width: 0;
    width: 100%;
}

.auth-showcase-col {
    grid-area: showcase;
    min-width: 0;
    width: 100%;
}

.auth-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.auth-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(246, 97, 53, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 97, 53, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 75%);
}

.auth-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.35;
    animation: authOrbFloat 12s ease-in-out infinite;
}

.auth-bg-orb-1 { width: 420px; height: 420px; background: #F66135; top: -80px; left: -100px; }
.auth-bg-orb-2 { width: 360px; height: 360px; background: #FF7A52; bottom: -60px; right: -80px; animation-delay: -5s; }
.auth-bg-orb-3 { width: 280px; height: 280px; background: #D94E28; top: 40%; left: 45%; opacity: 0.2; animation-delay: -8s; }

@keyframes authOrbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(20px, -15px) scale(1.05); }
}

.auth-bg-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.45;
}

[data-theme="light"] .auth-bg-network { opacity: 0.3; }

.auth-network-line {
    stroke: #F66135;
    stroke-width: 1;
    stroke-dasharray: 5 12;
    opacity: 0.4;
    animation: authLineFlow 5s linear infinite;
}

@keyframes authLineFlow { to { stroke-dashoffset: -34; } }

.auth-node-ring {
    fill: rgba(246, 97, 53, 0.18);
    animation: authNodePulse 2.8s ease-out infinite;
}

@keyframes authNodePulse {
    0% { r: 5; opacity: 0.85; }
    100% { r: 18; opacity: 0; }
}

.auth-hub-pulse { animation: authHubPulse 3.5s ease-in-out infinite; }

@keyframes authHubPulse {
    0%, 100% { r: 28; opacity: 0.5; }
    50% { r: 36; opacity: 0.85; }
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    flex: 1;
    display: flex;
    align-items: center;
}

.auth-showcase-inner {
    padding-right: 0;
}

.auth-mobile-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.auth-highlight-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    background: rgba(246, 97, 53, 0.1);
    border: 1px solid rgba(246, 97, 53, 0.22);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text);
}

.auth-highlight-chip i {
    color: var(--primary);
    font-size: 0.85rem;
}

.auth-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: rgba(246, 97, 53, 0.12);
    border: 1px solid rgba(246, 97, 53, 0.28);
    color: var(--primary);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.4rem 0.85rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.auth-live-dot {
    width: 7px;
    height: 7px;
    background: var(--primary);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}

.auth-showcase-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    color: var(--text);
}

.auth-showcase-title span {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-showcase-desc {
    color: var(--text-muted);
    font-size: 0.975rem;
    line-height: 1.7;
    max-width: 420px;
    margin-bottom: 1.25rem;
}

.auth-feature-list {
    display: none;
    flex-direction: column;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.auth-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    background: rgba(22, 22, 31, 0.55);
    border: 1px solid var(--border);
    border-radius: 12px;
    backdrop-filter: blur(8px);
    transition: border-color var(--transition), transform var(--transition);
}

[data-theme="light"] .auth-feature-item {
    background: rgba(255, 255, 255, 0.75);
}

.auth-feature-item:hover {
    border-color: rgba(246, 97, 53, 0.35);
    transform: translateX(4px);
}

.auth-feature-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    background: rgba(246, 97, 53, 0.12);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.05rem;
}

.auth-feature-item strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.1rem;
}

.auth-feature-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.auth-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    justify-content: center;
}

.auth-stat-pill {
    flex: 1;
    min-width: 80px;
    text-align: center;
    padding: 0.6rem 0.5rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.auth-stat-pill:hover {
    border-color: rgba(246, 97, 53, 0.35);
    box-shadow: 0 8px 24px rgba(246, 97, 53, 0.1);
}

.auth-stat-pill strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--primary);
    line-height: 1.2;
}

.auth-stat-pill span {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auth-card {
    position: relative;
    background: rgba(22, 22, 31, 0.82);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
}

[data-theme="light"] .auth-card {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
}

.auth-card-glow {
    position: absolute;
    top: -80px;
    right: -80px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%);
    pointer-events: none;
}

.auth-tabs {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 0.3rem;
    margin-bottom: 1.15rem;
    gap: 0.25rem;
}

.auth-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.6rem 0.75rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: 9px;
    cursor: pointer;
    transition: color var(--transition);
    position: relative;
    z-index: 2;
}

.auth-tab i { font-size: 0.95rem; pointer-events: none; }
.auth-tab span { pointer-events: none; }

.auth-tabs[data-active-tab="login"] .auth-tab[data-tab="login"],
.auth-tabs[data-active-tab="register"] .auth-tab[data-tab="register"] {
    color: #fff;
}

.auth-tab-indicator {
    position: absolute;
    top: 0.3rem;
    left: 0.3rem;
    width: calc(50% - 0.425rem);
    height: calc(100% - 0.6rem);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 9px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 14px var(--primary-glow);
    pointer-events: none;
    z-index: 1;
}

.auth-tabs[data-active-tab="register"] .auth-tab-indicator {
    transform: translateX(calc(100% + 0.25rem));
}

.auth-panels { position: relative; }

.auth-panel {
    display: none;
}

.auth-page[data-active-tab="login"] #panel-login,
.auth-page[data-active-tab="register"] #panel-register {
    display: block;
    animation: authPanelIn 0.3s ease forwards;
}

@keyframes authPanelIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-panel-head { margin-bottom: 1rem; }

.auth-panel-head h1 {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
    color: var(--text);
}

.auth-panel-head p {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin: 0;
}

.auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    margin-bottom: 1.15rem;
}

.auth-alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.25);
    color: #f87171;
}

.auth-alert-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

[data-theme="light"] .auth-alert-error { color: #dc3545; }

[data-theme="light"] .auth-alert-success { color: #16a34a; }

.otp-inbox-hint {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0 0 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: var(--radius-md, 12px);
    border: 1px solid rgba(246, 97, 53, 0.18);
    background: rgba(246, 97, 53, 0.07);
    color: var(--text-muted, #A0A0B0);
    font-size: 0.8125rem;
    line-height: 1.55;
}

.otp-inbox-hint i {
    flex-shrink: 0;
    margin-top: 0.1rem;
    color: var(--primary, #F66135);
    font-size: 1rem;
}

.otp-inbox-hint p {
    margin: 0;
}

.otp-inbox-hint strong {
    color: var(--text, #E8E8ED);
    font-weight: 700;
}

.otp-inbox-hint--compact {
    margin-bottom: 0.85rem;
    padding: 0.65rem 0.75rem;
    font-size: 0.78rem;
}

.auth-alert i { flex-shrink: 0; margin-top: 0.1rem; }

.auth-field { margin-bottom: 0.85rem; }

.auth-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.auth-field label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.35rem;
}

.auth-optional {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.75rem;
}

.auth-input-wrap {
    position: relative;
}

.auth-input-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color var(--transition);
}

.auth-input-wrap .form-control {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    font-size: 0.9375rem;
    padding: 0.7rem 0.85rem 0.7rem 2.5rem;
    transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
}

.auth-input-wrap .form-control:focus {
    background: var(--bg-card);
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    color: var(--text);
}

.auth-input-wrap .form-control:focus + .auth-pw-toggle,
.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--primary);
}

.auth-input-wrap .form-control::placeholder {
    color: var(--text-muted);
    opacity: 0.65;
}

.auth-select-wrap select.auth-country-select {
    width: 100%;
    padding-right: 2rem;
    appearance: none;
    cursor: pointer;
    background-image: none;
}

.auth-country-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.25rem;
    height: 1rem;
    line-height: 1;
}

.auth-country-icon .auth-country-flag-img {
    display: block;
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.auth-select-wrap::after {
    content: '\F282';
    font-family: bootstrap-icons !important;
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.75rem;
}

.auth-pw-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 0.25rem;
    cursor: pointer;
    line-height: 1;
    transition: color var(--transition);
}

.auth-pw-toggle:hover { color: var(--primary); }

.auth-input-wrap .form-control:has(+ .auth-pw-toggle) {
    padding-right: 2.75rem;
}

.auth-check {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.auth-check input { position: absolute; opacity: 0; pointer-events: none; }

.auth-check-box {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border: 1.5px solid var(--border);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    transition: all var(--transition);
    margin-top: 0.1rem;
}

.auth-check-box i {
    font-size: 0.75rem;
    color: #fff;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition);
}

.auth-check input:checked + .auth-check-box {
    background: var(--primary);
    border-color: var(--primary);
}

.auth-check input:checked + .auth-check-box i {
    opacity: 1;
    transform: scale(1);
}

.auth-check-label {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.auth-check-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-check-label a:hover { text-decoration: underline; }

.auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
    margin-top: 0.25rem;
}

.auth-submit i {
    transition: transform var(--transition);
}

.auth-submit:hover i { transform: translateX(3px); }

.auth-submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    pointer-events: none;
}

.auth-submit:disabled:hover i { transform: none; }

.btn-outline-kivo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.7rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary);
    background: transparent;
    border: 1.5px solid rgba(246, 97, 53, 0.45);
    border-radius: 12px;
    transition: all var(--transition);
}

.btn-outline-kivo:hover:not(:disabled) {
    background: rgba(246, 97, 53, 0.08);
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline-kivo:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.auth-otp-wrap .auth-otp-input {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.35em;
    text-align: center;
    padding-left: 2.75rem;
    padding-right: 1rem;
}

.otp-meta {
    margin: 0.25rem 0 0.85rem;
    text-align: center;
}

.otp-expiry {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.otp-expiry.is-expired {
    color: #f87171;
}

[data-theme="light"] .otp-expiry.is-expired {
    color: #dc3545;
}

.otp-resend-form {
    margin-top: 0.75rem;
}

.otp-resend-btn {
    width: 100%;
}

.auth-switch {
    margin: 1.15rem 0 0;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-forgot-wrap {
    margin: -0.25rem 0 0.85rem;
    text-align: right;
}

.auth-forgot-link {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--primary);
    text-decoration: none;
}

.auth-forgot-link:hover {
    text-decoration: underline;
}

.auth-switch a:hover {
    text-decoration: underline;
}

.auth-card-pro {
    border-radius: 22px;
    padding: 1.75rem;
    border-color: rgba(246, 97, 53, 0.12);
}

.auth-card-pro::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light), var(--primary));
    border-radius: 22px 22px 0 0;
}

.auth-secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(246, 97, 53, 0.08);
    border: 1px solid rgba(246, 97, 53, 0.18);
    border-radius: 999px;
    padding: 0.35rem 0.75rem;
    margin-bottom: 1.15rem;
}

.auth-secure-badge i {
    color: var(--primary);
    font-size: 0.8rem;
}

.auth-form-pro .auth-field {
    margin-bottom: 1rem;
}

.auth-field.has-error .auth-field-hint:not(.auth-match-hint) {
    color: var(--text-muted);
}

.auth-field-error {
    display: block;
    font-size: 0.78rem;
    font-weight: 500;
    color: #f87171;
    margin-top: 0.45rem;
    line-height: 1.45;
}

[data-theme="light"] .auth-field-error {
    color: #dc3545;
}

.auth-field-error-list {
    list-style: none;
    margin: 0.45rem 0 0;
    padding: 0;
}

.auth-field-error-list li {
    font-size: 0.78rem;
    font-weight: 500;
    color: #f87171;
    line-height: 1.45;
    padding-left: 1rem;
    position: relative;
    margin-bottom: 0.2rem;
}

[data-theme="light"] .auth-field-error-list li {
    color: #dc3545;
}

.auth-field-error-list li::before {
    content: 'â€¢';
    position: absolute;
    left: 0;
    color: inherit;
}

.auth-field.has-error label {
    color: #f87171;
}

[data-theme="light"] .auth-field.has-error label {
    color: #dc3545;
}

.auth-check-pro.is-invalid-check {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.06);
}

.auth-field-hint {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.auth-field-hint.auth-match-hint {
    color: #22C55E;
    font-weight: 600;
}

.auth-input-wrap .form-control.is-valid-field {
    border-color: rgba(34, 197, 94, 0.55);
}

.auth-input-wrap .form-control.is-invalid-field {
    border-color: rgba(239, 68, 68, 0.55);
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

.auth-password-rules {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0.85rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1rem;
}

.auth-rule {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.4;
    transition: color var(--transition);
}

.auth-rule i {
    font-size: 0.55rem;
    margin-top: 0.2rem;
    flex-shrink: 0;
    transition: color var(--transition);
}

.auth-rule.met {
    color: #22C55E;
}

.auth-rule.met i {
    color: #22C55E;
    font-size: 0.75rem;
}

.auth-rule.unmet {
    color: var(--text-muted);
}

.auth-password-suggestions-label {
    margin-top: 0.35rem;
    margin-bottom: 0.15rem;
}

.auth-password-suggestions {
    margin: 0 0 0.25rem;
    padding-left: 1.1rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    line-height: 1.45;
}

.auth-password-suggestions li {
    margin-bottom: 0.15rem;
}

.auth-check-pro {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 0.65rem;
    width: 100%;
    margin-bottom: 0;
    padding: 0.75rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: border-color var(--transition);
}

.auth-check-pro .auth-check-box {
    margin-top: 0;
}

.auth-check-pro .auth-check-label {
    flex: 1;
    min-width: 0;
    line-height: 1.4;
}

.auth-check-pro:has(input:checked) {
    border-color: rgba(246, 97, 53, 0.35);
    background: rgba(246, 97, 53, 0.05);
}

.auth-check-pro:has(input:invalid:not(:focus)) {
    border-color: rgba(239, 68, 68, 0.35);
}

.auth-required-mark {
    color: var(--primary);
    font-weight: 700;
}

.auth-alert > div {
    flex: 1;
    min-width: 0;
}

@media (max-width: 575.98px) {
    .auth-password-rules {
        grid-template-columns: 1fr;
    }

    .auth-card-pro {
        padding: 1.35rem 1.15rem;
    }
}

/* Auth â€” Desktop layout */
@media (min-width: 992px) {
    .auth-page {
        padding: 3.5rem 0 3.5rem;
    }

    .auth-layout {
        grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
        grid-template-areas: "showcase form";
        gap: 3rem;
        align-items: center;
    }

    .auth-showcase-inner {
        padding-right: 0.75rem;
    }

    .auth-showcase-desc {
        margin-bottom: 1.5rem;
    }

    .auth-mobile-highlights {
        display: none;
    }

    .auth-feature-list {
        display: flex;
    }

    .auth-stats-row {
        justify-content: flex-start;
    }

    .auth-card {
        max-width: none;
        margin: 0;
        padding: 1.75rem;
    }
}

/* Auth â€” Mobile & tablet (form above showcase) */
@media (max-width: 991.98px) {
    .auth-page {
        min-height: auto;
        padding: 2rem 0 2.5rem;
    }

    .auth-container {
        align-items: flex-start;
    }

    .auth-showcase-inner {
        text-align: center;
    }

    .auth-showcase-desc {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-live-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .auth-mobile-highlights {
        justify-content: center;
    }
}

@media (max-width: 575.98px) {
    .auth-page {
        padding: 1.5rem 0 2rem;
    }

    .auth-card {
        padding: 1.25rem 1.1rem;
        border-radius: 16px;
    }

    .auth-layout {
        gap: 1.5rem;
    }

    .auth-panel-head h1 {
        font-size: 1.25rem;
    }

    .auth-showcase-title {
        font-size: clamp(1.35rem, 5vw, 1.75rem);
    }

    .auth-stat-pill {
        min-width: calc(33% - 0.45rem);
    }
}

/* ── Dashboard (legacy helpers — scroll owned by html.dashboard-root / body.dashboard-body) ── */
.page-dashboard {
    max-width: 100%;
}

.dashboard-page {
    position: relative;
    min-height: calc(100dvh - var(--nav-height));
    padding: 2.5rem 0 3rem;
    overflow: hidden;
}

.dashboard-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.dashboard-bg-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(246, 97, 53, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(246, 97, 53, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 15%, transparent 75%);
}

.dashboard-bg-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    opacity: 0.3;
    animation: authOrbFloat 12s ease-in-out infinite;
}

.dashboard-bg-orb-1 {
    width: 380px;
    height: 380px;
    background: var(--primary);
    top: -60px;
    right: -80px;
}

.dashboard-bg-orb-2 {
    width: 300px;
    height: 300px;
    background: #FF7A52;
    bottom: -40px;
    left: -60px;
    animation-delay: -5s;
}

.dashboard-container {
    position: relative;
    z-index: 1;
}

.dashboard-welcome {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 2rem;
    padding: 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
}

.dashboard-welcome-icon {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
    background: rgba(246, 97, 53, 0.12);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.75rem;
}

.dashboard-greeting {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.35rem;
}

.dashboard-welcome-text h1 {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
    margin: 0 0 0.5rem;
}

.dashboard-welcome-text h1 span {
    color: var(--primary);
}

.dashboard-welcome-text p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 560px;
}

.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.2rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    min-width: 0;
    transition: border-color var(--transition), transform var(--transition);
}

.dashboard-stat-card:hover {
    border-color: rgba(246, 97, 53, 0.35);
    transform: translateY(-2px);
}

.dashboard-stat-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    background: rgba(246, 97, 53, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.dashboard-stat-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.15rem;
}

.dashboard-stat-value {
    display: block;
    font-family: var(--font-heading);
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    font-weight: 700;
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dashboard-stat-email {
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-body);
}

.dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 1.5rem;
    height: 100%;
}

.dashboard-card-accent {
    background: linear-gradient(160deg, rgba(246, 97, 53, 0.08) 0%, var(--bg-card) 50%);
}

.dashboard-card-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0 0 1.25rem;
}

.dashboard-actions {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.dashboard-action {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: all var(--transition);
}

.dashboard-action:hover {
    border-color: rgba(246, 97, 53, 0.35);
    transform: translateX(4px);
    color: inherit;
}

.dashboard-action-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    background: rgba(246, 97, 53, 0.1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
}

.dashboard-action strong {
    display: block;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}

.dashboard-action small {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.dashboard-action-arrow {
    margin-left: auto;
    color: var(--text-muted);
    transition: transform var(--transition), color var(--transition);
}

.dashboard-action:hover .dashboard-action-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

.dashboard-account-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-account-list li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.dashboard-account-list li:last-child {
    border-bottom: none;
}

.dashboard-account-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.dashboard-account-value {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: right;
    word-break: break-all;
}

.dashboard-account-badge {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.15);
    color: #22C55E;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.kivo-nav .nav-user {
    color: var(--primary);
    font-weight: 600;
    transition: opacity var(--transition);
}

.kivo-nav .nav-user:hover {
    opacity: 0.85;
    color: var(--primary-light);
}

@media (max-width: 991.98px) {
    .dashboard-page {
        min-height: auto;
        padding: 2rem 0 2.5rem;
    }

    .dashboard-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-welcome {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .dashboard-welcome-text p {
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 575.98px) {
    .dashboard-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-welcome {
        padding: 1.35rem;
    }
}

/* â”€â”€ Footer â”€â”€ */
.kivo-footer {
    position: relative;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 2.25rem 0 1.25rem;
    overflow: hidden;
}

.footer-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 5%, var(--primary) 50%, transparent 95%);
    box-shadow: 0 0 28px 5px var(--primary-glow);
}

.footer-brand-head {
    margin-bottom: 1.75rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--border);
}

.footer-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    transition: opacity var(--transition);
}

.footer-brand-link:hover { opacity: 0.9; }

.footer-brand-name {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.06em;
    line-height: 1;
}

.footer-grid {
    margin-bottom: 1.75rem;
}

.footer-col-title {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    margin-bottom: 0.85rem;
    position: relative;
    padding-bottom: 0.55rem;
}

.footer-col-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 28px;
    height: 2px;
    background: var(--primary);
    border-radius: 2px;
}

.footer-about {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin: 0 0 1rem;
    max-width: 320px;
}

.footer-mini-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.footer-mini-stat {
    flex: 1;
    min-width: 100px;
    padding: 0.65rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
}

.footer-mini-label {
    display: block;
    font-size: 0.62rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.15rem;
}

.footer-mini-value {
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li { margin-bottom: 0.45rem; }

.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color var(--transition), padding-left var(--transition);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 0.2rem;
}

.footer-social-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.85rem;
    line-height: 1.55;
}

.footer-social-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.55rem;
}

.footer-social-btn {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.6rem 0.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.8125rem;
    font-weight: 500;
    transition: all var(--transition);
}

.footer-social-btn i {
    font-size: 1rem;
    color: var(--primary);
    flex-shrink: 0;
}

.footer-social-btn:hover {
    color: var(--text);
    border-color: rgba(246, 97, 53, 0.4);
    background: rgba(246, 97, 53, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(246, 97, 53, 0.12);
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem 1rem;
    padding-top: 1.15rem;
    border-top: 1px solid var(--border);
    font-size: 0.78rem;
    color: var(--text-muted);
}

.footer-tagline {
    font-size: 0.75rem;
    opacity: 0.85;
}

/* â”€â”€ Animations â”€â”€ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* â”€â”€ Counter animation â”€â”€ */
.counter { font-variant-numeric: tabular-nums; }

/* â”€â”€ Page headers â”€â”€ */
.page-header {
    padding: 2rem 0 1.5rem;
    position: relative;
    overflow: hidden;
}

.page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 300px;
    background: radial-gradient(ellipse, var(--primary-glow), transparent 70%);
    pointer-events: none;
}

.page-header h1 {
    font-size: clamp(1.75rem, 3.8vw, 2.375rem);
    position: relative;
    line-height: 1.2;
}

.page-header p {
    font-size: 1.025rem;
    color: var(--text-muted);
    max-width: 520px;
    position: relative;
    line-height: 1.65;
}

.page-header .container p {
    margin-left: auto;
    margin-right: auto;
}

/* â”€â”€ Light theme extras â”€â”€ */
[data-theme="light"] .feature-card,
[data-theme="light"] .roadmap-item,
[data-theme="light"] .faq-accordion .accordion-item,
[data-theme="light"] .exchange-card,
[data-theme="light"] .buy-card {
    box-shadow: var(--shadow-sm);
}

[data-theme="light"] .kivo-footer {
    background: var(--bg-secondary);
}

[data-theme="light"] .footer-mini-stat,
[data-theme="light"] .footer-social-btn {
    box-shadow: var(--shadow-sm);
}

/* â”€â”€ Responsive layouts â”€â”€ */
@media (max-width: 991.98px) {
    :root {
        --pad-container: 1.25rem;
        --pad-section-y: var(--pad-section-y-sm);
    }

    .hero-visual {
        margin-top: 2rem;
        max-width: 100%;
        padding: 0 0.75rem;
    }

    .hero-section {
        padding: 1.75rem 0 2rem;
    }

    .hero-content {
        text-align: center;
        padding: 0 0.75rem;
    }

    .hero-desc {
        margin-left: auto;
        margin-right: auto;
        padding: 0 0.5rem;
    }

    .hero-actions {
        justify-content: center;
        padding: 0 0.75rem;
    }

    .roadmap-timeline { padding-left: 1.5rem; }
    .roadmap-item { padding: 1.125rem; }
    .roadmap-item::before { left: -1.5rem; }
    .tokenomics-chart { margin-bottom: 2rem; }
    .cta-box { padding: 1.75rem 1rem; }

    .footer-brand-head { text-align: center; }
    .footer-brand-link { justify-content: center; }
    .footer-about { max-width: none; margin-left: auto; margin-right: auto; text-align: center; }
    .footer-mini-stats { justify-content: center; }
    .footer-col-title::after { left: 50%; transform: translateX(-50%); }
    .footer-grid .col-md-6,
    .footer-grid .col-md-12 { text-align: center; }
    .footer-links { display: inline-block; text-align: left; }
    .footer-social-desc { margin-left: auto; margin-right: auto; max-width: 280px; }
    .footer-social-grid { max-width: 320px; margin: 0 auto; }
    .footer-bottom { flex-direction: column; text-align: center; justify-content: center; }
    .page-header { padding: 1.75rem 0 1.25rem; }
}

@media (max-width: 767.98px) {
    .stats-bar .stat-item {
        padding: 0.75rem 0.5rem;
    }

    .section-desc.mx-auto {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .stats-bar {
        padding: 1.125rem 0;
    }

    .stats-bar .row > div { margin-bottom: 0.25rem; }
    .kivo-footer { padding: 1.75rem 0 1rem; }
    .footer-brand-head { margin-bottom: 1.25rem; padding-bottom: 1rem; }
    .footer-social-grid { grid-template-columns: 1fr; max-width: 100%; }
    .footer-mini-stat { min-width: calc(50% - 0.35rem); }

    .hero-title {
        font-size: clamp(1.75rem, 8vw, 2.125rem);
    }

    .token-price-display {
        font-size: 1.875rem;
    }

    .token-card-3d {
        padding: 1.5rem;
    }

    .buy-card {
        padding: 1.25rem 1rem;
    }

    .faq-accordion .accordion-button {
        padding: 1.125rem 1.25rem;
        font-size: 0.975rem;
    }

    .faq-accordion .accordion-body {
        padding: 0 1.25rem 1.125rem;
    }
}

/* ── Global responsive helpers ── */
.dash-card-head,
.ref-card-head,
.wallet-card-head {
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .container {
        padding-left: max(0.85rem, var(--pad-container));
        padding-right: max(0.85rem, var(--pad-container));
    }
}

@media (max-width: 575.98px) {
    .dash-card-head h2,
    .ref-card-head h2,
    .wallet-card-head h2 {
        font-size: 0.95rem;
    }

    .ref-link-box {
        flex-direction: column;
    }

    .ref-copy-btn {
        width: 100%;
        justify-content: center;
    }
}
