/* 
===============================================
   IGEOsUZ - Modern Web App Style
=============================================== 
*/

:root {
    /* Color Palette */
    --bg-dark: #f8fafc;
    --bg-surface: #ffffff;
    --bg-glass: rgba(255, 255, 255, 0.6);
    --bg-glass-hover: rgba(255, 255, 255, 0.8);
    --border-glass: rgba(0, 0, 0, 0.05);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --accent-blue:   #059669;   /* deep emerald — replaces blue role */
    --accent-purple: #10B981;   /* main emerald — replaces purple role */
    --accent-pink:   #34D399;   /* bright mint — replaces pink role */

    --gradient-primary: linear-gradient(135deg, #059669, #34D399);
    --gradient-glow:    linear-gradient(135deg, rgba(5, 150, 105, 0.30), rgba(52, 211, 153, 0.30));
    --gradient-gold: linear-gradient(135deg, #059669 0%, #34D399 50%, #059669 100%);

    /* ── Emerald Green Theme (Navbar & Footer) ── */
    --gold-light:  #A7F3D0;   /* light mint — hover glow */
    --gold-mid:    #10B981;   /* main emerald */
    --gold-dark:   #34D399;   /* bright emerald — hover accents */
    --gold-bg:     rgba(4, 120, 72, 0.91);  /* solid emerald — same as scrolled */
    --gold-bg-scrolled: rgba(4, 120, 72, 0.91); /* same — consistent everywhere */
    --gold-border: rgba(52, 211, 153, 0.55);
    --gold-text:        #ffffff;   /* WHITE — max contrast on green */
    --gold-text-muted:  #D1FAE5;  /* very light mint for secondary text */
    --gradient-gold-footer: linear-gradient(160deg, #065F46 0%, #047857 35%, #059669 65%, #064E3B 100%);

    /* Typography */
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Transitions */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-medium: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* Shadows */
    --shadow-glow: 0 0 20px rgba(16, 185, 129, 0.22);
    --shadow-glass: 0 8px 32px 0 rgba(0, 0, 0, 0.05);
    --shadow-gold:  0 4px 24px rgba(5, 120, 70, 0.25);

    /* Scrolled Header */
    --header-scrolled: rgba(255, 255, 255, 0.85);

    /* Footer & Overlays */
    --bg-footer: #f1f5f9;
    --bg-overlay: rgba(15, 23, 42, 0.6);
    --border-glass-hover: rgba(255, 255, 255, 0.15);
}

[data-theme="dark"] {
    --bg-dark: #020617; /* Slate 950 for deeper, premium feel */
    --bg-surface: #0f172a; /* Slate 900 */
    --bg-glass: rgba(15, 23, 42, 0.65);
    --bg-glass-hover: rgba(30, 41, 59, 0.85);
    --border-glass: rgba(255, 255, 255, 0.06);

    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Dark-mode emerald adjustments */
    --gold-bg:     rgba(16, 185, 129, 0.12);
    --gold-bg-scrolled: rgba(2, 44, 26, 0.94);
    --gold-border: rgba(52, 211, 153, 0.25);
    --gold-text:        #ffffff;    /* white — readable on dark green */
    --gold-text-muted:  #A7F3D0;   /* light mint secondary text */
    --gradient-gold-footer: linear-gradient(160deg, #022C1A 0%, #064E3B 40%, #047857 70%, #022C1A 100%);

    --bg-footer: #020617;
    --bg-overlay: rgba(0, 0, 0, 0.8);
    --header-scrolled: rgba(2, 6, 23, 0.85);
    --shadow-glass: 0 12px 40px 0 rgba(0, 0, 0, 0.4);
    --border-glass-hover: rgba(16, 185, 129, 0.3); /* Green glow border */
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    max-width: 100vw;
    margin: 0;
    padding: 0;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.5rem;
}

h2 span,
.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

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

ul {
    list-style: none;
}

/* Utility Classes */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

section {
    padding: 6rem 0;
}

/* Glassmorphism */
.glass-card {
    background: var(--bg-glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 2.5rem;
    box-shadow: var(--shadow-glass);
    transition: all var(--transition-medium);
}

.glass-card:hover {
    background: var(--bg-glass-hover);
    border-color: var(--border-glass-hover);
    transform: translateY(-6px);
    box-shadow: 0 15px 40px rgba(16, 185, 129, 0.15);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    font-family: var(--font-body);
    cursor: pointer;
    transition: var(--transition-medium);
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--accent-purple);
    background: rgba(139, 92, 246, 0.1);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
}

.btn-ghost:hover {
    color: var(--text-primary);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

/* Navbar – Solid Emerald Green (consistent at all scroll positions) */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: box-shadow var(--transition-medium), padding var(--transition-medium);
    padding: 1.25rem 0;
    background: var(--gold-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gold-border);
    box-shadow: 0 4px 28px rgba(4, 100, 55, 0.40), inset 0 -1px 0 rgba(110, 231, 183, 0.35);
}

nav.scrolled {
    background: var(--gold-bg-scrolled);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gold-border);
    box-shadow: 0 4px 28px rgba(4, 100, 55, 0.40), inset 0 -1px 0 rgba(110, 231, 183, 0.35);
    padding: 0.85rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gold-text);
    text-shadow: 0 1px 3px rgba(52, 211, 153, 0.15);
}

.logo i {
    color: var(--gold-dark);
    font-size: 2rem;
}

.logo-img {
    height: 3rem;
    width: auto;
    object-fit: contain;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.55);
}

.nav-links {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    color: var(--gold-text);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
    padding-bottom: 2px;
    display: inline-flex;
    align-items: center;
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-gold); /* emerald underline */
    border-radius: 2px;
    transition: width var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-dark);
    text-shadow: 0 0 10px rgba(52, 211, 153, 0.55);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-surface);
    min-width: 180px;
    box-shadow: var(--shadow-glass);
    border: 1px solid var(--border-glass);
    border-radius: 12px;
    padding: 0.5rem 0;
    z-index: 1000;
    margin-top: 5px; /* Standardize gap */
}

/* Create a "bridge" so the hover state isn't lost when moving to the menu */
.dropdown-menu::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    height: 10px;
}

.dropdown:hover .dropdown-menu {
    display: block;
    animation: fadeInDown var(--transition-fast) ease-out;
}

.dropdown-menu-right {
    right: 0;
    left: auto;
    text-align: left;
}

.dropdown-menu li {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.dropdown-menu a:hover {
    background: var(--bg-dark);
    color: var(--accent-purple);
}

.nav-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

#themeToggleBtn {
    background: rgba(5, 120, 70, 0.20);
    border: 1px solid var(--gold-border);
    color: var(--gold-text);
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    transition: var(--transition-medium);
}

#themeToggleBtn:hover {
    background: rgba(52, 211, 153, 0.30);
    border-color: var(--gold-mid);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(52, 211, 153, 0.40);
}

#themeToggleBtn i {
    transition: transform 0.5s ease;
}

[data-theme="dark"] #themeToggleBtn i {
    transform: rotate(360deg);
}

.lang-flag {
    width: 20px;
    height: auto;
    vertical-align: middle;
    margin-right: 6px;
    border-radius: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--gold-text);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Background Glowing Orbs */
@keyframes orbFloat {
    0% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0, 0) scale(1); }
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    opacity: 0.4;
    animation: orbFloat 20s infinite ease-in-out;
}

.orb-1 {
    top: -10%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
}

.orb-2 {
    top: 20%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
}

.orb-3 {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300px;
    height: 300px;
    background: var(--accent-pink);
    opacity: 0.2;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: 8rem;
    position: relative;
    overflow: hidden;
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/world-map.svg');
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    opacity: 0.12;
    z-index: -1;
    pointer-events: none;
}

.hero-container {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 100px;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    animation: fadeInDown 1s ease;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
}

.hero-title {
    font-size: 4.5rem;
    letter-spacing: -1px;
    margin-bottom: 1.5rem;
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-image-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    animation: fadeInUp 1s ease 0.8s both;
}

.glass-mockup {
    width: 100%;
    height: 400px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    backdrop-filter: blur(10px);
}

.mockup-header {
    height: 40px;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: var(--border-glass);
}

.dots {
    display: flex;
    gap: 6px;
}

.dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dots span:nth-child(1) {
    background: #ef4444;
}

.dots span:nth-child(2) {
    background: #f59e0b;
}

.dots span:nth-child(3) {
    background: #10b981;
}

.mockup-body {
    flex: 1;
    display: flex;
    padding: 1rem;
    gap: 1rem;
}

.mockup-sidebar {
    width: 20%;
    background: var(--bg-glass);
    border-radius: 8px;
}

.mockup-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-card {
    height: 40%;
    background: var(--bg-glass);
    border-radius: 8px;
}

.mockup-chart {
    flex: 1;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0.1) 0%, rgba(59, 130, 246, 0.1) 100%);
    border-radius: 8px;
    border: 1px dashed var(--border-glass);
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: var(--transition-medium);
}

.feature-card:hover {
    background: var(--bg-surface);
    border-color: var(--accent-purple);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.1);
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(139, 92, 246, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    color: var(--accent-purple);
    font-size: 2rem;
    transition: var(--transition-fast);
}

.feature-card:hover .icon-box {
    background: var(--gradient-primary);
    color: white;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

/* How It Works Section */
.steps-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.step-card {
    flex: 1;
    text-align: center;
    padding: 0 1rem;
    z-index: 2;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--bg-surface);
    border: 2px solid var(--accent-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    color: var(--accent-blue);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.2);
}

.step-connector {
    flex: 1;
    height: 60px;
    display: flex;
    align-items: center;
}

.step-connector .line {
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
    opacity: 0.5;
}

/* About Section */
.about {
    position: relative;
}

.about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-lead {
    font-size: 1.25rem;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.about-list {
    margin-top: 2rem;
}

.about-list li {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.about-list i {
    color: var(--accent-purple);
    font-size: 1.5rem;
}

.founder-card {
    text-align: center;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
}

.founder-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--gradient-primary);
}

.founder-avatar {
    width: 100%;
    max-width: 320px;
    height: 400px;
    background: var(--bg-surface);
    border: 2px solid var(--border-glass);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    color: var(--text-muted);
    overflow: hidden;
}

.founder-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.founder-card .role {
    color: var(--accent-purple);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.founder-card .quote {
    font-style: italic;
    color: var(--text-secondary);
}




/* ─── Auth-state conditional rendering (no-flash approach) ───────────────── */
/*
 * The html.user-logged-in class is added by an inline <script> in <head>
 * before first paint, so these rules apply immediately — zero FOUC.
 * JS (applyLoggedInState / applyLoggedOutState) keeps them in sync at runtime.
 */

/* Hide the entire CTA / join section for logged-in users */
html.user-logged-in #ctaSection {
    display: none !important;
}

/* Guest-action navbar buttons hidden for logged-in users */
html.user-logged-in .guest-actions {
    display: none !important;
}

/* User-action navbar shown for logged-in users */
html.user-logged-in .user-actions {
    display: flex !important;
}

/* CTA section opacity transition when JS toggles it at runtime */
#ctaSection {
    transition: opacity 0.3s ease;
}

/* ─── CTA Section ─────────────────────────────────────────────────────────── */
.cta-box {
    text-align: center;
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
    border-color: rgba(139, 92, 246, 0.3);
}

.cta-box h2 {
    font-size: 3rem;
}

.cta-box p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 2.5rem;
}

/* Footer – Emerald Green Theme */
footer {
    background: var(--gradient-gold-footer);
    padding-top: 5rem;
    border-top: 2px solid rgba(52, 211, 153, 0.45);
    box-shadow: 0 -4px 30px rgba(5, 120, 70, 0.22);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(110, 231, 183, 0.04);
    pointer-events: none;
}

.footer-container {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

.footer-brand p {
    margin: 1.5rem 0;
    max-width: 300px;
    color: var(--gold-text-muted);
}

/* Override logo & text colors inside footer */
footer .logo {
    color: var(--gold-text);
}

footer .logo-img {
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.65);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 120, 70, 0.20);
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    font-size: 1.25rem;
    color: var(--gold-text);
    transition: var(--transition-fast);
}

.social-links a:hover {
    background: var(--gold-mid);
    border-color: var(--gold-light);
    color: #fff;
    box-shadow: 0 0 14px rgba(52, 211, 153, 0.5);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.link-group h4 {
    color: var(--gold-text);
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.link-group ul li {
    margin-bottom: 0.75rem;
}

.link-group a {
    color: var(--gold-text-muted);
    transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

.link-group a:hover {
    color: var(--gold-dark);
    text-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
}

.footer-bottom {
    padding: 1.5rem 0;
    text-align: center;
    border-top: 1px solid rgba(52, 211, 153, 0.30);
    position: relative;
    z-index: 1;
}

.footer-bottom p {
    color: var(--gold-text-muted);
}

/* =====================
   Earth Globe Loader
   ===================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.earth-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    user-select: none;
}

/* ── Wrapper keeps orbit ring + dot in a shared stacking context ── */
.earth-wrapper {
    position: relative;
    width: 160px;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Atmospheric halo ── */
.earth-atmosphere {
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    background: radial-gradient(circle, transparent 55%, rgba(59,130,246,0.18) 100%);
    animation: pulse-atmo 3s ease-in-out infinite;
    pointer-events: none;
}

/* ── Globe shell ── */
.earth-globe {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a3a6e 0%, #0d2248 60%, #071530 100%);
    box-shadow:
        inset -18px -18px 40px rgba(0,0,0,0.5),
        inset 8px 8px 20px rgba(59,130,246,0.25),
        0 0 40px rgba(59,130,246,0.25);
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

/* ── Scrolling continent map ── */
.earth-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 200%;   /* 2× width so we can scroll seamlessly */
    height: 100%;
    animation: rotate-map 6s linear infinite;
}

.continent-svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* ── Latitude lines overlay ── */
.lat-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.lat-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.12);
    transform: translateY(-50%);
}

.lat-line.equator {
    background: rgba(255,255,255,0.22);
    height: 1.5px;
}

/* ── Orbital ring (tilted ellipse) ── */
.orbit-ring {
    position: absolute;
    inset: -20px;
    border-radius: 50%;
    border: 2px dashed rgba(139,92,246,0.45);
    transform: rotateX(72deg);
    animation: tilt-ring 8s linear infinite;
    pointer-events: none;
}

/* ── Orbiting satellite dot ── */
.orbit-dot {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    margin: -5px 0 0 -5px;
    border-radius: 50%;
    background: var(--accent-purple);
    box-shadow: 0 0 10px var(--accent-purple), 0 0 20px var(--accent-blue);
    transform-origin: 0 0;
    animation: orbit-dot 3s linear infinite;
    pointer-events: none;
}

/* ── Branding text ── */
.earth-loader-text {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    margin: 0;
    line-height: 1;
}

.loader-brand-accent {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.earth-loader-sub {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: -1.2rem 0 0;
    letter-spacing: 0.05em;
    animation: blink-text 1.8s ease-in-out infinite;
}

/* Auth Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-overlay);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-medium);
}

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

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-glass);
    border-radius: 24px;
    padding: 3rem;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: translateY(20px) scale(0.95);
    transition: var(--transition-medium);
    text-align: center;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
}

.modal-close:hover {
    background: rgba(239, 68, 68, 0.15);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.3);
    transform: rotate(90deg) scale(1.1);
}

.telegram-btn-wrapper {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    justify-content: center;
    min-height: 40px;
}

.telegram-login-trigger {
    border: 0;
    cursor: pointer;
}

.telegram-login-trigger i {
    font-size: 1.2rem;
}

.telegram-login-trigger.is-loading {
    opacity: 0.7;
    pointer-events: none;
}

.telegram-login-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.45;
    text-align: center;
}

.telegram-switch-notice {
    display: grid;
    gap: 0.45rem;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
}

.telegram-switch-notice strong {
    color: var(--text-primary);
}

.telegram-switch-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

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

/* Earth loader keyframes */
@keyframes rotate-map {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes pulse-atmo {
    0%, 100% { opacity: 0.6; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.04); }
}

@keyframes tilt-ring {
    0%   { transform: rotateX(72deg) rotateZ(0deg); }
    100% { transform: rotateX(72deg) rotateZ(360deg); }
}

@keyframes orbit-dot {
    0%   { transform: rotate(0deg)   translateX(90px) rotate(0deg); }
    100% { transform: rotate(360deg) translateX(90px) rotate(-360deg); }
}

@keyframes blink-text {
    0%, 100% { opacity: 0.5; }
    50%       { opacity: 1; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Books Library */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.book-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-medium);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.book-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.15);
    border-color: var(--accent-purple);
}

.book-icon {
    font-size: 3rem;
    color: var(--accent-blue);
    margin-bottom: 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.book-cover {
    width: 140px;
    height: 200px;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    margin-bottom: 1.5rem;
    background-color: var(--bg-surface);
}

.book-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.book-meta {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.book-actions {
    display: flex;
    gap: 0.5rem;
    width: 100%;
}

.book-actions .btn {
    flex: 1;
    padding: 0.5rem;
    font-size: 0.9rem;
}

/* =====================================================================
   RESPONSIVE DESIGN — Mobile-First Overhaul
   Breakpoints: 1024px (tablet), 768px (phone-landscape),
                640px (phone), 480px (small phone), 360px (mini)
   ===================================================================== */

/* ── Fluid Typography ── */
h2 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
}

.hero-title {
    font-size: clamp(2rem, 7vw, 4.5rem);
}

.hero-subtitle {
    font-size: clamp(0.95rem, 2.5vw, 1.25rem);
}

.cta-box h2 {
    font-size: clamp(1.75rem, 5vw, 3rem);
}

/* ── 1024px — Tablet: Nav collapses, grids adapt ── */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }

    .pricing-card.popular {
        transform: none;
    }

    .about-container {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    /* ── Collapse navigation at tablet ── */
    .nav-container {
        flex-wrap: wrap;
    }

    .nav-links,
    .nav-actions {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
    }

    .nav-links {
        border-top: 1px solid rgba(52, 211, 153, 0.25);
        margin-top: 0.75rem;
        padding-top: 0.5rem;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        padding: 0.85rem 1rem;
        min-height: 48px;
        font-size: 1rem;
        border-radius: 10px;
        transition: background 0.2s;
    }

    .nav-links a:hover,
    .nav-links a.active {
        background: rgba(52, 211, 153, 0.15);
    }

    .nav-links a::after {
        display: none;
    }

    .nav-actions {
        padding: 0.5rem 0 0.75rem;
        gap: 0.5rem;
    }

    /* Mobile menu open state */
    #navbar.mobile-open {
        background: var(--gold-bg-scrolled);
        box-shadow: 0 8px 32px rgba(4, 100, 55, 0.45);
    }

    #navbar.mobile-open .nav-links,
    #navbar.mobile-open .nav-actions {
        display: flex;
    }

    /* Guest actions full-width in mobile menu */
    #navbar.mobile-open .guest-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }

    #navbar.mobile-open .guest-actions .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        font-size: 1rem;
    }

    /* User actions in mobile menu */
    #navbar.mobile-open .user-actions {
        width: 100%;
    }

    #navbar.mobile-open .user-actions .dropdown-toggle {
        justify-content: center;
        width: 100%;
        padding: 0.75rem 1rem;
    }

    /* Language toggle full width in mobile */
    #navbar.mobile-open #langToggleBtn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
        margin-left: 0;
    }

    /* Dropdown menus in mobile */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        background: rgba(255, 255, 255, 0.06);
        border-radius: 10px;
        text-align: center;
        margin: 0.25rem 0;
        padding: 0.25rem 0;
    }

    .dropdown-menu::before {
        display: none;
    }

    .dropdown-menu a {
        padding: 0.65rem 1rem;
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 8px;
        color: var(--gold-text-muted);
    }

    .dropdown-menu a:hover {
        background: rgba(52, 211, 153, 0.12);
        color: var(--gold-text);
    }

    .dropdown.active .dropdown-menu {
        display: block;
    }

    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 44px;
        height: 44px;
        border-radius: 10px;
        font-size: 1.5rem;
        transition: background 0.2s;
    }

    .mobile-menu-btn:hover {
        background: rgba(52, 211, 153, 0.15);
    }

    /* ── Section spacing reduction ── */
    section {
        padding: 4rem 0;
    }

    .section-header {
        margin-bottom: 2.5rem;
    }

    /* ── Features grid ── */
    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 1.25rem;
    }

    .feature-card {
        padding: 2rem 1.5rem;
    }

    /* ── Steps / How It Works ── */
    .steps-container {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }

    .step-connector {
        flex-direction: column;
        height: auto;
        width: 60px;
    }

    .step-connector .line {
        width: 2px;
        height: 30px;
        background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
    }

    /* ── About founder ── */
    .founder-avatar {
        max-width: 260px;
        height: 340px;
    }

    /* ── Footer ── */
    .footer-container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .footer-links {
        grid-template-columns: 1fr 1fr;
    }

    /* ── CTA ── */
    .cta-box {
        padding: 3.5rem 1.5rem;
    }

    /* ── Books grid ── */
    .books-grid {
        grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
        gap: 1.5rem;
    }

    .book-card {
        padding: 2rem 1.5rem;
    }

    .book-actions .btn {
        min-height: 44px;
    }

    /* ── Modals ── */
    .modal-content {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

/* ── 768px — Phone landscape / small tablet ── */
@media (max-width: 768px) {
    section {
        padding: 3rem 0;
    }

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

    .hero {
        padding-top: 6rem;
        min-height: auto;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
        max-width: 320px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }

    /* ── Glass mockup ── */
    .glass-mockup {
        height: auto;
        min-height: 220px;
    }

    .mockup-sidebar {
        display: none;
    }

    /* ── Footer ── */
    .footer-links {
        grid-template-columns: 1fr 1fr;
        gap: 1.5rem;
    }

    footer {
        padding-top: 3rem;
    }

    /* ── Nav padding when scrolled ── */
    nav {
        padding: 0.85rem 0;
    }

    nav.scrolled {
        padding: 0.6rem 0;
    }

    /* ── Buttons ── */
    .btn {
        min-height: 44px;
        padding: 0.7rem 1.25rem;
    }

    .btn-large {
        padding: 0.85rem 1.75rem;
        font-size: 1rem;
    }
}

/* ── 640px — Phone portrait ── */
@media (max-width: 640px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .books-grid {
        grid-template-columns: 1fr;
    }

    .book-cover {
        width: 120px;
        height: auto;
    }

    .about-container {
        gap: 2rem;
    }

    .founder-avatar {
        max-width: 220px;
        height: 280px;
    }

    .founder-card {
        padding: 2rem 1.25rem;
    }

    /* ── CTA ── */
    .cta-box {
        padding: 2.5rem 1.25rem;
    }

    .cta-box p {
        font-size: 1rem;
    }

    /* ── Badge ── */
    .badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    /* ── Container reduced padding ── */
    .container {
        padding: 0 1rem;
    }
}

/* ── 480px — Small phone ── */
@media (max-width: 480px) {
    html {
        font-size: 15px;
    }

    section {
        padding: 2.5rem 0;
    }

    .section-header {
        margin-bottom: 1.5rem;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-container {
        padding: 0;
    }

    .hero-image-wrapper {
        padding: 0;
    }

    .hero-buttons {
        margin-bottom: 2rem;
    }

    .feature-card {
        padding: 1.5rem 1.25rem;
    }

    .feature-card h3 {
        font-size: 1.1rem;
    }

    .icon-box {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        border-radius: 14px;
        margin-bottom: 1rem;
    }

    .step-card h3 {
        font-size: 1rem;
    }

    .step-card p {
        font-size: 0.85rem;
    }

    .step-number {
        width: 48px;
        height: 48px;
        font-size: 1.1rem;
    }

    /* Footer */
    .footer-links {
        grid-template-columns: 1fr;
    }

    footer {
        padding-top: 2.5rem;
    }

    .link-group h4 {
        margin-bottom: 0.75rem;
    }

    .social-links a {
        width: 36px;
        height: 36px;
        font-size: 1.1rem;
    }

    /* ── Modals ── */
    .modal-content {
        padding: 1.75rem 1.25rem;
        border-radius: 20px;
    }

    /* ── Glass card padding ── */
    .glass-card {
        padding: 1.5rem;
        border-radius: 16px;
    }

    /* ── Book card ── */
    .book-card {
        padding: 1.5rem 1rem;
    }

    .book-title {
        font-size: 1.1rem;
    }

    .book-actions {
        flex-direction: column;
    }

    .book-actions .btn {
        width: 100%;
    }
}

/* ── 360px — Very small phone ── */
@media (max-width: 360px) {
    html {
        font-size: 14px;
    }

    .container {
        padding: 0 0.75rem;
    }

    nav {
        padding: 0.6rem 0;
    }

    .logo {
        font-size: 1.25rem;
    }

    .logo-img {
        height: 2.5rem;
    }
}

/* ── Touch-friendly: ensure minimum tap targets ── */
@media (pointer: coarse) {
    .btn,
    .nav-links a,
    .dropdown-menu a,
    .book-actions .btn,
    .social-links a,
    #themeToggleBtn,
    .mobile-menu-btn {
        min-height: 44px;
    }

    .feature-card:hover,
    .glass-card:hover,
    .book-card:hover {
        transform: none;
    }
}

/* ── Prevent body scroll when mobile menu is open ── */
body.mobile-menu-open {
    overflow: hidden;
}

/* Auth State Styles */
.nav-actions .guest-actions,
.nav-actions .user-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background-color: var(--accent-purple);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.user-name {
    font-weight: 600;
    color: var(--gold-text);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nav-actions .dropdown-toggle {
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.nav-actions .dropdown-toggle:hover {
    background: rgba(52, 211, 153, 0.18);
}

/* ── Navbar button emerald overrides ────────────────────────── */

/* "Log In" ghost button inside navbar */
nav .btn-ghost {
    color: var(--gold-text);
    font-weight: 600;
}
nav .btn-ghost:hover {
    color: var(--gold-dark);
    background: rgba(52, 211, 153, 0.18);
    border-radius: 10px;
}

/* "Start Your Journey" primary CTA inside navbar – emerald version */
nav .btn-primary {
    background: var(--gradient-gold);
    color: #fff;
    box-shadow: 0 4px 16px rgba(5, 120, 70, 0.35);
}
nav .btn-primary:hover {
    box-shadow: 0 6px 22px rgba(52, 211, 153, 0.55);
    transform: translateY(-2px);
    filter: brightness(1.07);
}

/* Language toggle button – white so flags & text are clearly visible */
nav #langToggleBtn {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: #047857;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
nav #langToggleBtn:hover {
    background: #f0fdf4;
    border-color: var(--gold-dark);
    box-shadow: 0 0 10px rgba(52, 211, 153, 0.35);
}

/* User avatar ring in emerald */
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--gradient-gold);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.55);
}

/* =============================================================================
   GEOCOINS REWARD SYSTEM
============================================================================= */

/* ── Navbar Wallet Badge ── */
.geocoin-wallet {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: linear-gradient(135deg, rgba(245,158,11,0.15), rgba(251,191,36,0.1));
    border: 1px solid rgba(245,158,11,0.35);
    border-radius: 999px;
    padding: 0.35rem 0.85rem;
    font-weight: 700;
    font-size: 0.95rem;
    color: #f59e0b;
    cursor: default;
    transition: transform 0.2s, box-shadow 0.2s;
    user-select: none;
}

.geocoin-wallet:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(245,158,11,0.3);
}

.geocoin-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 1px 3px rgba(245,158,11,0.4));
}

.wallet-coin-orb {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background:
        radial-gradient(circle, rgba(255, 213, 79, 0.34) 0%, rgba(245, 158, 11, 0.16) 45%, rgba(245, 158, 11, 0) 72%);
    box-shadow:
        0 0 22px rgba(245, 158, 11, 0.36),
        0 0 42px rgba(245, 158, 11, 0.16);
}

.wallet-coin-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter:
        drop-shadow(0 0 10px rgba(251, 191, 36, 0.5))
        drop-shadow(0 3px 5px rgba(0, 0, 0, 0.35));
}

/* ── Coin Pop / Float Animation ── */
.coin-pop {
    position: fixed;
    pointer-events: none;
    z-index: 9999;
    font-size: 1.5rem;
    font-weight: 800;
    color: #f59e0b;
    text-shadow: 0 2px 8px rgba(245,158,11,0.5);
    white-space: nowrap;
    animation: coinFloat 1.8s ease-out forwards;
}

@keyframes coinFloat {
    0%   { opacity: 1; transform: translateY(0) scale(1); }
    30%  { opacity: 1; transform: translateY(-30px) scale(1.2); }
    100% { opacity: 0; transform: translateY(-90px) scale(0.8); }
}

/* ── Reward Toast ── */
.reward-toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    color: #1c1917;
    font-weight: 700;
    font-size: 1rem;
    padding: 0.9rem 1.8rem;
    border-radius: 999px;
    box-shadow: 0 8px 32px rgba(245,158,11,0.35);
    z-index: 9998;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
}

.reward-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ── Wallet History Rows ── */
.wallet-history-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-glass);
}

.wallet-history-row:last-child {
    border-bottom: none;
}

.wallet-history-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.wallet-history-info {
    flex: 1;
    min-width: 0;
}

.wallet-history-info strong {
    display: block;
    font-size: 0.95rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wallet-history-info span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.wallet-history-amount {
    font-weight: 800;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* ── Wallet spinning coin ── */
@keyframes walletCoinSpin {
    0%   { transform: rotateY(0deg)   scale(1); }
    45%  { transform: rotateY(180deg) scale(1.05); }
    55%  { transform: rotateY(180deg) scale(1.05); }
    100% { transform: rotateY(360deg) scale(1); }
}

/* Profile tabs wider for 3 tabs */
.profile-tabs {
    max-width: 560px;
}

/* =====================================================================
   IMAGE CAROUSEL SYSTEM
===================================================================== */

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 2rem auto;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    background: var(--bg-surface);
}

.carousel-inner {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    visibility: visible;
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.carousel-controls {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.carousel-btn {
    pointer-events: auto;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.3s, transform 0.2s;
}

.carousel-btn:hover {
    background: rgba(52, 211, 153, 0.8);
    transform: scale(1.1);
}

.carousel-empty {
    padding: 3rem;
    text-align: center;
    color: var(--text-muted);
}
