/* =========================================
   1.1 BRAND DNA (Global Variables)
   ========================================= */
:root {
    
    /* Fonts */
    --font-main: 'JetBrains Mono', monospace;
    --font-heading: 'Orbitron', sans-serif;

    /* Colors */
    --bg-color: #050505;           /* Deep technical black */
    --neon-blue: #00d9ff;          /* Primary Action Glow */
    --text-main: #ffffff;
    --text-dim: #888888;           /* Muted for descriptions */
    
    /* Transitions */
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);

}


/* =========================================
   1.2 GLOBAL RESET (Mobile Precision)
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Prevents padding from breaking layout width */
}

html, body {
    width: 100%;
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: var(--font-main); /* Defaults everything to JetBrains Mono */
    line-height: 1.6;
    
    /* The Wobble Killers */
    overflow-x: hidden;
    position: relative;
}

/* =========================================
   1.3 TYPOGRAPHY SYSTEM 
   ========================================= */

/* 1. All headings, Logo, and Section Titles get Orbitron */
h1, h2, h3, .logo, .hero-tagline, .section-title {
    font-family: var(--font-heading) !important;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* 2. Specific override for Section Titles (Spacing/Color) */
.section-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 5px;
    margin: 60px auto 20px auto;
    color: var(--neon-blue);
}

/* 3. The FIX: If neon-text is inside a heading, it MUST stay Orbitron */
h1 .neon-text, 
h2 .neon-text, 
.hero-tagline .neon-text {
    font-family: var(--font-heading) !important;
}

/* 4. Everything else (Body, Buttons, Descriptions) stays Mono */
p, a, span, .hero-description, .btn-vault {
    font-family: var(--font-main) !important;
}

/* =========================================
   2. HEADER & NAVIGATION
   ========================================= */
.gemstok-nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(5, 5, 5, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
    padding: 12px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 24px;
    letter-spacing: 5px;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
    text-decoration: none;
}

.icon-group {
    display: flex;
    gap: 15px;
    align-items: center;
}

.nav-item i {
    font-size: 14px;
    color: var(--neon-blue);
    opacity: 0.3;
    transition: 0.3s;
}

.nav-item:hover i {
    opacity: 1;
    filter: drop-shadow(0 0 8px var(--neon-blue));
}

/* Base style for both Auth Buttons */
.nav-user-icon, #logout-btn {
    background: transparent;
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--neon-blue);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex; /* JavaScript will override this with display: none where needed */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

/* Specific hover for Logout to make it feel like a 'Terminate' action */
#logout-btn:hover {
    border-color: #ff4b2b;
    color: #ff4b2b;
    filter: drop-shadow(0 0 8px #ff4b2b);
}

/* Scrolled State Logic */
.gemstok-nav.scrolled {
    background: transparent !important;
    backdrop-filter: none !important;
    border-bottom: none !important;
    pointer-events: none; 
}

.gemstok-nav.scrolled .logo, 
.gemstok-nav.scrolled .nav-item {
    opacity: 0;
    visibility: hidden;
}

/* Pins whichever button is currently 'active' to the top right on scroll */
.gemstok-nav.scrolled .nav-user-icon,
.gemstok-nav.scrolled #logout-btn {
    pointer-events: auto;
    position: fixed;
    top: 15px;
    right: 25px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(10px);
}
/* =========================================
   3. HERO SECTION - RESTORED ORIGINAL
   ========================================= */

@keyframes pulseGlow {
    0% { box-shadow: 0 0 10px rgba(0, 217, 255, 0.2); }
    50% { box-shadow: 0 0 25px rgba(0, 217, 255, 0.5); }
    100% { box-shadow: 0 0 10px rgba(0, 217, 255, 0.2); }
}

.hero-vault {
    height: 70vh; /* Original height */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
    margin-top: -20px;
}

.hero-content {
    max-width: 800px;
    text-align: center;
}

.hero-tagline {
    /* Font inherited globally, but we set weight/spacing as before */
    font-size: clamp(1.5rem, 5vw, 2.8rem);
    font-weight: 300; /* Lighter Orbitron look */
    letter-spacing: 4px;
    color: #fff;
    line-height: 1.2;
    margin-bottom: 20px;
}

.neon-text {
    color: var(--neon-blue);
    text-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
}

.hero-description {
    font-size: 0.75rem; 
    color: var(--text-dim);
    letter-spacing: 2px;
    max-width: 500px;
    margin: 0 auto 30px auto;
    line-height: 1.8;
    text-transform: uppercase;
    opacity: 0.7;
}

.btn-vault {
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-size: 0.9rem;
    letter-spacing: 3px;
    padding: 18px 35px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
    animation: pulseGlow 4s infinite ease-in-out;
}

.btn-vault:hover {
    background: var(--neon-blue);
    color: #000;
    box-shadow: 0 0 30px rgba(0, 217, 255, 0.4);
    transform: translateY(-3px);
}

/* =========================================
   4. PRODUCT SLIDER (Infinite Track)
   ========================================= */

.vault-sections {
    margin-top: -90px;
    padding: 20px 0;
}

.section-title {
    display: block;
    width: 100%;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 5px;
    margin: 30px auto 10px auto;
    color: var(--neon-blue);
    opacity: 0.8;
}

.marquee-container {
    overflow: hidden;
    width: 100%;
    padding: 5px 0 15px 0;
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    cursor: grab;
}

.marquee-container.dragging {
    cursor: grabbing;
}

.marquee-track {
    display: flex;
    gap: 20px;
    width: max-content;
}

.product-box {
    min-width: 260px;
    height: 100px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    padding: 15px 25px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    backdrop-filter: blur(10px);
    position: relative;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.product-box:hover {
    border-color: var(--neon-blue);
    background: rgba(0, 217, 255, 0.05);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.15);
}

.product-box h2 {
    font-size: 0.85rem;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
}

.status-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 9px;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 2px;
    text-transform: uppercase;
}

.tag-launched {
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
}

.know-more-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dim);
    font-size: 0.65rem;
    padding: 5px 12px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.know-more-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.box-soon {
    opacity: 0.4;
    filter: grayscale(100%);
    border-style: dashed;
}

/* =========================================
   4b. intoGEMOLOGY BRANDED BOX
   ========================================= */

.box-intogemology {
    min-width: 280px;
    height: 100px;
    position: relative;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    box-shadow: 0 0 0 1px rgba(212,175,55,0.25), 0 4px 20px rgba(212,175,55,0.08);
}

.box-intogemology:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(212,175,55,0.6), 0 12px 40px rgba(212,175,55,0.2);
}

.ig-interior {
    position: absolute;
    inset: 0;
    background: #f4f1ea;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 14px 18px 12px 18px;
}

.ig-interior::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 80% 20%, rgba(212,175,55,0.12) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

.ig-interior::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #d4af37, rgba(212,175,55,0.3));
    z-index: 1;
}

.ig-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ig-wordmark {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ig-into {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 10px;
    font-style: italic;
    color: #3B82BD;
    letter-spacing: 1px;
    line-height: 1;
}

.ig-gem {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px;
    line-height: 1.1;
}

.ig-live-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'Inter', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #3B82BD;
    background: rgba(59,130,189,0.1);
    border: 1px solid rgba(59,130,189,0.25);
    border-radius: 2px;
    padding: 2px 7px;
}

.ig-live-dot {
    width: 5px;
    height: 5px;
    background: #3B82BD;
    border-radius: 50%;
    animation: igLivePulse 2s ease-in-out infinite;
}

@keyframes igLivePulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.ig-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.ig-tagline {
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    color: #666;
    letter-spacing: 0.5px;
    line-height: 1.4;
    max-width: 160px;
}

.ig-cta {
    background: #3B82BD;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: none;
    padding: 7px 14px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s ease;
    white-space: nowrap;
}

.box-intogemology:hover .ig-cta {
    background: #d4af37;
    color: #1a1a1a;
}

.ig-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.15), transparent);
    transition: left 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

.box-intogemology:hover .ig-shimmer {
    left: 130%;
}

/* =========================================
   4c. MARQUEE ARROW CONTROLS
   ========================================= */

.marquee-controls {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: 8px 0 20px 0;
}

.marquee-arrow {
    background: transparent;
    border: 1px solid rgba(0, 217, 255, 0.25);
    color: rgba(0, 217, 255, 0.6);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.marquee-arrow:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.2);
}

/* =========================================
   4b-ii. GEM CIRCLE BRANDED BOX
   ========================================= */
.box-gemcircle {
    min-width: 280px;
    height: 100px;
    position: relative;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    box-shadow: 0 0 0 1px rgba(212,175,55,0.2), 0 4px 20px rgba(0,0,0,0.4);
}
.box-gemcircle:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(212,175,55,0.55), 0 12px 40px rgba(212,175,55,0.15);
}
.gc-interior {
    position: absolute;
    inset: 0;
    background: #1a1a1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 13px 16px 11px 18px;
}
.gc-interior::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #d4af37, rgba(212,175,55,0.2));
    z-index: 1;
}
.gc-interior::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 90% 10%, rgba(212,175,55,0.07) 0%, transparent 55%);
    pointer-events: none;
    z-index: 0;
}
.gc-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.gc-wordmark { display: flex; flex-direction: column; gap: 2px; }
.gc-prefix {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: rgba(212,175,55,0.6);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
}
.gc-name {
    font-family: 'Playfair Display', serif;
    font-size: 17px;
    font-weight: 700;
    color: #e8e4dc;
    letter-spacing: 0.5px;
    line-height: 1.1;
}
.gc-soon-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'DM Sans', sans-serif;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(212,175,55,0.8);
    background: rgba(212,175,55,0.08);
    border: 1px solid rgba(212,175,55,0.25);
    border-radius: 50px;
    padding: 2px 8px;
}
.gc-dot {
    width: 5px;
    height: 5px;
    background: #d4af37;
    border-radius: 50%;
    animation: gcPulse 2.5s ease-in-out infinite;
}
@keyframes gcPulse {
    0%, 100% { opacity: 0.4; }
    50%       { opacity: 1; }
}
.gc-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.gc-tagline {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    color: rgba(232,228,220,0.45);
    letter-spacing: 0.3px;
    line-height: 1.4;
    max-width: 155px;
}
.gc-cta {
    background: transparent;
    border: 1px solid rgba(212,175,55,0.4);
    color: #d4af37;
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 50px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}
.box-gemcircle:hover .gc-cta {
    background: #d4af37;
    color: #1a1a1a;
}
.gc-feed-lines {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 4px;
    opacity: 0.18;
}
.gc-line {
    height: 2px;
    border-radius: 1px;
    background: #d4af37;
}
.gc-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(212,175,55,0.08), transparent);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}
.box-gemcircle:hover .gc-shimmer { left: 130%; }

/* =========================================
   4b-iv. FINTRACK+ BRANDED BOX
   ========================================= */
.box-fintrack {
    min-width: 280px;
    height: 100px;
    position: relative;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease;
    box-shadow: 0 0 0 1px rgba(200,146,42,0.2), 0 4px 20px rgba(0,0,0,0.5);
}
.box-fintrack:hover {
    transform: translateY(-4px);
    box-shadow: 0 0 0 1px rgba(232,184,74,0.5), 0 12px 40px rgba(200,146,42,0.15);
}
.ft-interior {
    position: absolute;
    inset: 0;
    background: #0c0f1a;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 13px 16px 11px 18px;
}
.ft-interior::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(to bottom, #e8b84a, rgba(200,146,42,0.15));
    z-index: 1;
}

.ft-interior::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        #0c0f1a 0%,
        rgba(232,184,74,0.08) 40%,
        rgba(232,223,200,0.06) 70%,
        #ebe8e0 100%
    );
    background-size: 300% 300%;
    animation: ftGradientShift 5s ease infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes ftGradientShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.ft-top {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}
.ft-wordmark { display: flex; flex-direction: column; gap: 2px; }
.ft-prefix {
    font-family: 'Outfit', sans-serif;
    font-size: 9px;
    font-weight: 400;
    color: rgba(232,184,74,0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
    line-height: 1;
}
.ft-name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #e8dfc8;
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.ft-name .hi { color: #e8b84a; }
.ft-badge {
    display: flex;
    align-items: center;
    gap: 5px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: rgba(90,170,122,0.9);
    background: rgba(90,170,122,0.08);
    border: 1px solid rgba(90,170,122,0.2);
    border-radius: 2px;
    padding: 2px 8px;
}
.ft-dot {
    width: 5px;
    height: 5px;
    background: #5aaa7a;
    border-radius: 50%;
    animation: ftPulse 2s ease-in-out infinite;
}
@keyframes ftPulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.2; }
}
.ft-bottom {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.ft-tagline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: rgba(232,223,200,0.35);
    letter-spacing: 0.5px;
    line-height: 1.5;
    max-width: 155px;
    font-weight: 300;
}
.ft-cta {
    background: transparent;
    border: 1px solid rgba(232,184,74,0.35);
    color: #e8b84a;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 2px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    white-space: nowrap;
}
.box-fintrack:hover .ft-cta {
    background: #e8b84a;
    color: #0c0f1a;
}

.ft-shimmer {
    position: absolute;
    top: 0; left: -100%;
    width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(232,184,74,0.07), transparent);
    transition: left 0.7s ease;
    z-index: 1;
    pointer-events: none;
}
.box-fintrack:hover .ft-shimmer { left: 130%; }


/* =========================================
   5. AGENCY SECTION
   ========================================= */
#agency-part {
    height: auto !important;
    min-height: 0 ; /* Gives it a baseline floor */
    display: block !important;
    padding-bottom: 0 !important; 
    margin-bottom: 0 !important;
}

#agency-part-inner {
    padding: 100px 20px; /* Increased top padding to clear the -120px vacuum */
    text-align: center;
}

.cta-title {
    font-size: clamp(1.4rem, 4vw, 2.2rem);
    margin-bottom: 25px;
    line-height: 1.3;
}

.cta-description {
    color: var(--text-dim);
    font-size: 0.85rem;
    max-width: 600px;
    margin: 0 auto 40px auto;
    letter-spacing: 1px;
}

/* Ticker Logic */
.agency-icon-ticker {
    width: 100%;
    overflow: hidden;
    margin: 40px 0; /* Add top and bottom margin to prevent overlap */
    mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 15%, black 85%, transparent);
}

.ticker-track {
    display: flex;
    gap: 50px;
    width: max-content;
    animation: slideLeft 40s linear infinite; /* Reusing your existing slideLeft animation */
    opacity: 0.3;
}

.ticker-track i, .custom-icon {
    font-size: 1.5rem;
    color: #fff;
    width: 1.5rem;
    height: 1.5rem;
}

/* Minimal CTA Link */
.cta-link-wrapper {
    display: flex !important;
    justify-content: center !important;
    position: relative !important; /* Ensures it stays in the flow, not stuck behind ticker */
    margin-top: 30px !important;
    z-index: 20 !important;
    padding-bottom: 20px;
}

.cta-minimal-link {
    font-size: 0.8rem;
    color: var(--text-main);
    text-decoration: none;
    letter-spacing: 3px;
    text-transform: uppercase;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--neon-blue);
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.cta-minimal-link:hover {
    color: var(--neon-blue);
    gap: 18px;
}

/* Mobile Tweak for Agency */
@media (max-width: 768px) {
    #agency-part-inner {
        padding: 40px 15px;
    }
    .ticker-track {
        gap: 30px;
    }
}

/* =========================================
   7. DIRECTORY GRID
   ========================================= */
#directory-part {
    padding: 60px 25px 100px 25px;
    background: #050505;
    position: relative;
    z-index: 5;
    padding-top: 0 !important;
    margin-top: 0 !important;
}


.directory-container {
    max-width: 1200px;
    margin: 40px auto 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.dir-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px;
    height: 130px; /* Slim state */
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    cursor: pointer;
}

.dir-box:hover {
    height: 300px; /* Expanded state */
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--neon-blue);
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.dir-num {
    font-family: 'JetBrains Mono', monospace;
    color: var(--neon-blue);
    font-size: 0.8rem;
    display: block;
    margin-bottom: 15px;
}

.dir-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-main);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.dir-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-top: 25px;
    opacity: 0; 
    transition: opacity 0.4s ease;
}

.dir-box:hover .dir-text {
    opacity: 1;
}

.dir-link {
    display: inline-block;
    margin-top: 20px;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.7rem;
    color: var(--neon-blue);
    text-decoration: none;
    letter-spacing: 2px;
    opacity: 0;
    border-bottom: 1px solid transparent;
    transition: 0.4s;
}

.dir-box:hover .dir-link {
    opacity: 1;
    border-bottom: 1px solid var(--neon-blue);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .directory-container {
        flex-direction: column;
    }
    .dir-box {
        width: 100%;
        height: auto; /* Static height on mobile for better UX */
        padding: 25px;
    }
    .dir-text, .dir-link {
        opacity: 1;
    }
}
/* =========================================
   8. FOOTER (The Minimalist Stamp)
   ========================================= */
#footer-part {
    margin-top: 0; /* Snaps to the bottom of Directory */
    padding: 40px 25px; 
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    background: #050505;
}

.gemstok-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.gemstok-footer p {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.6rem;
    color: #444; /* Muted grey for a subtle look */
    letter-spacing: 2px;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    gap: 25px;
}

.footer-links a {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.65rem;
    letter-spacing: 1px;
    transition: var(--transition-smooth);
    opacity: 0.5;
}

.footer-links a:hover {
    color: var(--text-main);
    opacity: 1;
}

.authority-link {
    color: var(--neon-blue) !important;
    opacity: 0.8 !important;
}

/* Mobile Alignment */
@media (max-width: 768px) {
    .gemstok-footer {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}


/* =========================================
   9. CONTACT SECTION
   ========================================= */

.contact-section {
    padding: 100px 25px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.contact-header {
    text-align: center;
    margin-bottom: 70px;
}

.contact-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--text-main);
    margin: 15px 0;
    letter-spacing: 2px;
}

.contact-header p {
    font-size: 0.75rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

/* ── PRIMARY WHATSAPP CHANNEL ── */
.contact-primary {
    display: flex;
    align-items: center;
    gap: 50px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 20px;
    padding: 50px 60px;
    margin-bottom: 30px;
    position: relative;
    overflow: hidden;
    transition: 0.4s;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.contact-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 0% 50%, rgba(37, 211, 102, 0.04) 0%, transparent 60%);
    pointer-events: none;
}

.contact-primary:hover {
    border-color: rgba(37, 211, 102, 0.25);
    background: rgba(37, 211, 102, 0.03);
    background: rgba(37, 211, 102, 0.04);
    border-color: rgba(37, 211, 102, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(37, 211, 102, 0.08);

}

.contact-primary-left {
    position: relative;
    width: 90px;
    height: 90px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-wa-icon {
    position: relative;
    z-index: 3;
    width: 64px;
    height: 64px;
    background: rgba(37, 211, 102, 0.08);
    border: 1px solid rgba(37, 211, 102, 0.25);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(37, 211, 102, 0.06);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(37, 211, 102, 0.2);
}

.contact-wa-icon i {
    font-size: 2rem;
    color: #25d366;
}

.contact-pulse-ring {
    position: absolute;
    width: 64px;
    height: 64px;
    border: 1px solid rgba(37, 211, 102, 0.3);
    border-radius: 18px;
    animation: contactPulse 3s ease-out infinite;
    pointer-events: none;
}

.contact-pulse-ring.delay-1 { animation-delay: 1s; }
.contact-pulse-ring.delay-2 { animation-delay: 2s; }

@keyframes contactPulse {
    0%   { transform: scale(1); opacity: 0.6; }
    100% { transform: scale(2.2); opacity: 0; }
}

.contact-primary-right { flex: 1; }

.contact-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 3px;
    color: #25d366;
    margin-bottom: 14px;
}

.contact-live-dot {
    width: 6px;
    height: 6px;
    background: #25d366;
    border-radius: 50%;
    box-shadow: 0 0 8px #25d366;
    animation: liveBlink 2s ease-in-out infinite;
}

@keyframes liveBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.contact-primary-right h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.3rem;
    color: var(--text-main);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-primary-right p {
    font-size: 0.7rem;
    color: var(--text-dim);
    line-height: 1.8;
    margin-bottom: 24px;
    max-width: 400px;
}

/* ── SECONDARY GRID ── */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 50px;
}

.contact-card {
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px 28px;
    transition: 0.3s;
    position: relative;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-card:hover {
    border-color: rgba(0, 217, 255, 0.2);
    background: rgba(0, 217, 255, 0.02);
    transform: translateY(-3px);
    background: rgba(0, 217, 255, 0.03);
    border-color: rgba(0, 217, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(0, 217, 255, 0.06);

}

.contact-card-icon {
    width: 44px;
    height: 44px;
    background: rgba(0, 217, 255, 0.05);
    border: 1px solid rgba(0, 217, 255, 0.12);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    background: rgba(0, 217, 255, 0.04);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 217, 255, 0.1);
}

.contact-card-icon i {
    font-size: 1.4rem;
    color: var(--neon-blue);
}

.contact-card h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem;
    color: var(--text-main);
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.65rem;
    color: var(--text-dim);
    line-height: 1.7;
    margin-bottom: 20px;
}

/* ── REGIONAL LIST ── */
.regional-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 14px 0;
}

.regional-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.regional-platform {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 2px;
    color: var(--neon-blue);
}

.regional-handle {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    color: var(--text-dim);
}

.small-note {
    font-size: 0.55rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 1px;
    margin-top: 8px;
}

/* ── CONTACT LINKS ── */
.contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    border: 1px solid rgba(0, 217, 255, 0.3);
    color: var(--neon-blue);
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 2px;
    border-radius: 8px;
    transition: 0.3s;
    text-transform: uppercase;
}

.contact-link:hover {
    background: var(--neon-blue);
    color: #000;
    border-color: var(--neon-blue);
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.25);
}

.contact-link-primary {
    padding: 12px 28px;
    border-color: rgba(37, 211, 102, 0.4);
    color: #25d366;
    font-size: 0.6rem;
}

.contact-link-primary:hover {
    background: #25d366;
    color: #000;
    border-color: #25d366;
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.3);
}

/* ── SMM STRIP ── */
.smm-presence {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.smm-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.5rem;
    letter-spacing: 4px;
    color: rgba(255,255,255,1);
}

.smm-icons {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.smm-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    color: rgba(255,255,255,1);
    text-decoration: none;
    transition: 0.3s;
    font-size: 1.1rem;
}

.smm-icon:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    background: rgba(0, 217, 255, 0.05);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
    .contact-primary {
        flex-direction: column;
        text-align: center;
        padding: 40px 30px;
        gap: 30px;
    }
    .contact-primary-right p { max-width: 100%; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-live-badge { justify-content: center; }
}

/* =========================================
   10. LEGAL FRAMEWORK STYLING
   ========================================= */

.legal-section {
    padding: 100px 25px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.legal-header {
    text-align: center;
    margin-bottom: 70px;
}

.legal-header h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    color: var(--text-main);
    margin: 15px 0 12px;
    letter-spacing: 2px;
}

.legal-intro {
    font-size: 0.7rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    font-family: 'JetBrains Mono', monospace;
}

/* CONTAINER */
.legal-container {
    max-width: 860px;
    margin: 0 auto 60px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* BLOCK */
.legal-block {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    transition: 0.3s;
    overflow: hidden;
    position: relative;
}

.legal-block::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: transparent;
    transition: 0.3s;
    border-radius: 16px 0 0 16px;
}

.legal-block:hover {
    border-color: rgba(0, 217, 255, 0.15);
    background: rgba(0, 217, 255, 0.02);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3),
                inset 0 1px 0 rgba(0, 217, 255, 0.06);
}

.legal-block:hover::before {
    background: var(--neon-blue);
}

.legal-block-inner {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    padding: 32px 36px;
}

/* NUMBER */
.legal-num {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.6rem;
    color: rgba(0, 217, 255, 0.12);
    font-weight: 700;
    letter-spacing: 2px;
    flex-shrink: 0;
    line-height: 1;
    margin-top: 4px;
    transition: 0.3s;
    min-width: 40px;
}

.legal-block:hover .legal-num {
    color: rgba(0, 217, 255, 0.35);
}

/* CONTENT */
.legal-content {
    flex: 1;
}

.legal-content h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.8rem;
    color: var(--text-main);
    margin-bottom: 12px;
    letter-spacing: 2px;
}

.legal-content p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    line-height: 1.9;
    color: var(--text-dim);
}

.legal-content strong {
    color: var(--neon-blue);
    font-weight: 400;
}

/* ICON */
.legal-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(0, 217, 255, 0.04);
    border: 1px solid rgba(0, 217, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.legal-icon i {
    font-size: 1.3rem;
    color: rgba(0, 217, 255, 0.35);
    transition: 0.3s;
}

.legal-block:hover .legal-icon {
    background: rgba(0, 217, 255, 0.08);
    border-color: rgba(0, 217, 255, 0.2);
}

.legal-block:hover .legal-icon i {
    color: var(--neon-blue);
}

/* FOOTER STRIP */
.legal-footer-strip {
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.01);
}

.legal-footer-strip span,
.legal-footer-strip a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.2);
    text-decoration: none;
    text-transform: uppercase;
    transition: 0.2s;
}

.legal-footer-strip a:hover {
    color: var(--neon-blue);
}

.legal-dot {
    color: rgba(255, 255, 255, 0.1) !important;
}

/* RESPONSIVE */
@media (max-width: 600px) {
    .legal-block-inner {
        padding: 24px 20px;
        gap: 16px;
    }
    .legal-icon { display: none; }
    .legal-num { font-size: 1.2rem; }
}
/* =========================================
   11. AUTHENTICATION & MODAL SYSTEM
   ========================================= */

/* 11.1 The Blackout Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(15px);
    display: none; 
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.modal-overlay.active { display: flex !important; }

/* 11.2 The Form Container (The Box) */
.auth-box {
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 60px 40px 40px 40px;
    width: 100%;
    max-width: 420px;
    text-align: center;
    position: relative;
    border-radius: 24px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
    animation: fadeInGate 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 11.3 Top-Left Morphing Close Button (Aligned) */
.close-gate {
    position: absolute;
    top: 25px; /* Nudged down slightly */
    left: 25px; /* Nudged right slightly to match the corner curve */
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    width: 38px; /* Standardized size */
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 10;
    overflow: hidden;
    padding: 0; /* Remove padding to ensure flex-centering works */
}

/* 11.4 Close Button Morph States */
.close-icon { 
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem; 
    width: 100%;
    height: 100%;
}

.close-text { 
    display: none; 
    font-family: var(--font-heading); 
    font-size: 0.6rem; 
    letter-spacing: 2px;
    white-space: nowrap; /* Prevents text from breaking */
}

.close-gate:hover {
    width: 110px; /* Wider to comfortably fit "CANCEL" */
    background: rgba(255, 68, 68, 0.1);
    border-color: #ff4444;
    color: #ff4444;
    box-shadow: 0 0 15px rgba(255, 68, 68, 0.2);
}

.close-gate:hover .close-icon { display: none; }
.close-gate:hover .close-text { display: block; }

/* 11.5 Form Layout */
#login-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
    margin-bottom: 25px;
}

/* 11.6 Input Groups & Fields */
.input-group { text-align: left; }
.input-group label { display: block; font-family: var(--font-heading); font-size: 0.55rem; color: var(--neon-blue); margin-bottom: 8px; letter-spacing: 2px; }
.input-group input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 0.8rem;
    outline: none;
    border-radius: 12px;
    transition: 0.3s;
}
.input-group input:focus { border-color: var(--neon-blue); background: rgba(0, 217, 255, 0.03); box-shadow: 0 0 15px rgba(0, 217, 255, 0.1); }

/* 11.7 Primary Authorize Button */
.auth-btn {
    width: 100%;
    padding: 16px;
    background: transparent;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-heading);
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 12px;
    text-transform: uppercase;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.1);
    animation: pulseGlow 4s infinite ease-in-out;
    transition: 0.3s;
}
.auth-btn:hover { background: var(--neon-blue); color: #000; box-shadow: 0 0 30px rgba(0, 217, 255, 0.4); }

/* 11.8 Social Auth Row (Breathing Animation Added) */
.social-auth { 
    display: flex; 
    gap: 12px; 
    margin-bottom: 25px; 
}

.social-btn { 
    flex: 1; 
    padding: 10px 8px; 
    background: rgba(255, 255, 255, 0.02); 
    border: 1px solid rgba(255, 255, 255, 0.08); 
    border-radius: 12px; 
    color: var(--text-dim); 
    font-size: 1rem; 
    cursor: pointer; 
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: socialPulse 5s infinite ease-in-out;
}

/* =========================================
   11.9 Social Auth Buttons
   ========================================= */

/* Google */
.google-btn {
    animation: googlePulse 5s infinite ease-in-out;
}
.google-btn:hover {
    border-color: #4285F4;
    color: #4285F4;
    box-shadow: 0 0 20px rgba(66, 133, 244, 0.4);
    background: rgba(66, 133, 244, 0.05);
}
@keyframes googlePulse {
    0%   { box-shadow: 0 0 5px rgba(66,133,244,0.05); border-color: rgba(66,133,244,0.2); }
    50%  { box-shadow: 0 0 12px rgba(66,133,244,0.15); border-color: rgba(66,133,244,0.4); }
    100% { box-shadow: 0 0 5px rgba(66,133,244,0.05); border-color: rgba(66,133,244,0.2); }
}

/* LinkedIn */
.linkedin-btn {
    animation: linkedinPulse 5s infinite ease-in-out;
}
.linkedin-btn:hover {
    border-color: #0077B5;
    color: #0077B5;
    box-shadow: 0 0 20px rgba(0, 119, 181, 0.5);
    background: rgba(0, 119, 181, 0.05);
}
@keyframes linkedinPulse {
    0%   { box-shadow: 0 0 5px rgba(0,119,181,0.05); border-color: rgba(0,119,181,0.2); }
    50%  { box-shadow: 0 0 12px rgba(0,119,181,0.15); border-color: rgba(0,119,181,0.4); }
    100% { box-shadow: 0 0 5px rgba(0,119,181,0.05); border-color: rgba(0,119,181,0.2); }
}

/* Telegram */
.telegram-btn {
    animation: telegramPulse 5s infinite ease-in-out;
}
.telegram-btn:hover {
    border-color: #229ED9;
    color: #229ED9;
    box-shadow: 0 0 20px rgba(34, 158, 217, 0.5);
    background: rgba(34, 158, 217, 0.05);
}
@keyframes telegramPulse {
    0%   { box-shadow: 0 0 5px rgba(34,158,217,0.05); border-color: rgba(34,158,217,0.2); }
    50%  { box-shadow: 0 0 12px rgba(34,158,217,0.15); border-color: rgba(34,158,217,0.4); }
    100% { box-shadow: 0 0 5px rgba(34,158,217,0.05); border-color: rgba(34,158,217,0.2); }
}

/* 11.9b Tier Selector */
.tier-select {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
    z-index: 200; 
}

.tier-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 8px 0;
}

.tier-dropdown span {
    font-family: var(--font-main);
    font-size: 0.7rem;
    letter-spacing: 3px;
    color: var(--neon-blue);
}

.tier-arrow {
    font-size: 0.5rem !important;
    opacity: 0.6;
    transition: 0.3s;
}

.tier-options {
    display: none;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: #080808;
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    z-index: 1000;
    min-width: 160px;

    /* --- THE INTERNAL SCROLL FIXES --- */
    max-height: 120px;
    overflow-y: auto;     /* Enables scrolling */
    overflow-x: hidden;
    
    /* FIXES THE BLEEDING: Clips the content to the border-radius */
    contain: layout;
    
    /* Fallback for browsers that don't support 'contain' for clipping */
    mask-image: linear-gradient(to bottom, #000 0%, #000 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 100%);
}

/* Custom Scrollbar for Neon Theme */
.tier-options::-webkit-scrollbar {
    width: 6px; /* Slightly wider to grab easier */
}
.tier-options::-webkit-scrollbar-track {
    background: #050505;
    border-radius: 0 12px 12px 0;
}
.tier-options::-webkit-scrollbar-thumb {
    background: var(--neon-blue);
    border-radius: 10px;
    border: 2px solid #080808; /* Creates a "gap" between bar and edge */
}

.tier-options.open {
    display: block;
}

.tier-option {
    padding: 12px 20px;
    font-family: var(--font-main);
    font-size: 0.65rem;
    letter-spacing: 3px;
    color: var(--text-dim);
    cursor: pointer;
    text-align: center;
    transition: 0.2s;
}

.tier-option:hover {
    color: var(--neon-blue);
    background: rgba(0, 217, 255, 0.05);
}

@keyframes flickerLink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.2; }
}

/* Important: Prevents clipping by the parent box */
.auth-box {
    overflow: visible !important;
}

/* 11.10 Footer & Links */
.auth-footer { padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.05); display: flex; flex-direction: column; gap: 10px; }
.auth-footer a, .auth-footer span { font-size: 0.55rem; color: var(--text-dim); text-decoration: none; letter-spacing: 1px; text-transform: uppercase; font-family: var(--font-main); }
.auth-footer a:hover { color: var(--neon-blue); }

@keyframes fadeInGate { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

/* =========================================
   12. PROFILE DASHBOARD
   ========================================= */
.profile-container {
    padding: 60px 20px;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 30px;
    margin-bottom: 50px;
}

.rank-tag {
    font-size: 0.55rem;
    color: var(--neon-blue);
    border: 1px solid var(--neon-blue);
    padding: 3px 10px;
    font-family: 'JetBrains Mono', monospace;
}

.profile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.path-card {
    background: rgba(5, 5, 5, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 30px;
    position: relative;
    border-radius: 16px;
    backdrop-filter: blur(10px);
}

.path-icon i {
    font-size: 2rem;
    color: var(--neon-blue);
    margin-bottom: 20px;
}

.progress-bar {
    height: 4px;
    background: rgba(255,255,255,0.1);
    margin: 20px 0;
}

.progress-bar .fill {
    height: 100%;
    background: var(--neon-blue);
    box-shadow: 0 0 10px var(--neon-blue);
}

.module-list {
    list-style: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    margin-top: 20px;
}

.module-list li {
    padding: 8px 0;
    color: var(--text-dim);
}

.module-list li.complete { color: #00ff00; }
.module-list li.complete::before { content: '✓ '; }
.module-list li.current { color: #fff; border-left: 2px solid var(--neon-blue); padding-left: 10px; }
.module-list li.locked { opacity: 0.3; }

.logout-btn {
    background: transparent;
    border: 1px solid #ff4444;
    color: #ff4444;
    font-size: 0.6rem;
    padding: 8px 15px;
    cursor: pointer;
    font-family: 'Orbitron', sans-serif;
}
.profile-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar i {
    font-size: 3.5rem;
    color: var(--neon-blue);
    opacity: 0.6;
}

.profile-section-title {
    font-family: var(--font-heading);
    font-size: 0.6rem;
    letter-spacing: 5px;
    color: var(--neon-blue);
    opacity: 0.6;
    margin: 50px 0 20px 0;
}

.small-text {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin: 10px 0;
}

.inventory-status {
    font-family: var(--font-main);
    font-size: 0.65rem;
    color: var(--neon-blue);
    margin-top: 15px;
    letter-spacing: 2px;
}

.profile-link {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--neon-blue);
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 217, 255, 0.3);
    transition: 0.3s;
}

.profile-link:hover {
    border-bottom-color: var(--neon-blue);
}

.profile-coming-soon {
    display: inline-block;
    margin-top: 15px;
    font-size: 0.6rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    opacity: 0.4;
}

.profile-settings {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 60px;
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
}

.settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    transition: 0.3s;
}

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

.settings-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.settings-label {
    font-family: var(--font-heading);
    font-size: 0.55rem;
    letter-spacing: 2px;
    color: var(--text-dim);
    width: 140px;
}

.settings-value {
    font-family: var(--font-main);
    font-size: 0.7rem;
    color: var(--text-main);
    flex: 1;
}

.settings-edit-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 0.5rem;
    letter-spacing: 2px;
    padding: 5px 12px;
    cursor: pointer;
    border-radius: 6px;
    transition: 0.3s;
    text-decoration: none;
}

.settings-edit-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.danger-row:hover {
    background: rgba(255, 68, 68, 0.03);
}

.danger-btn {
    border-color: rgba(255, 68, 68, 0.3) !important;
    color: #ff4444 !important;
}

.danger-btn:hover {
    border-color: #ff4444 !important;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.2);
}

.profile-header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.theme-toggle-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.3s;
    font-size: 0.9rem;
}

.theme-toggle-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.card-secret {
    opacity: 0.5;
    filter: blur(0.5px);
}

/* PROFILE LIGHT MODE — only affects profile-container */

.profile-light .path-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
    color: #0a0a0a;
}

.profile-light .path-card h3,
.profile-light .user-meta h2,
.profile-light .settings-value {
    color: #0a0a0a !important;
}

.profile-light .profile-settings {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.08);
}

.profile-light .settings-row {
    border-bottom-color: rgba(0, 0, 0, 0.05);
}

.profile-light #gemtrace-canvas {
    opacity: 0.08;
}

.profile-avatar {
    position: relative;
    display: inline-block;
}

.avatar-edit-btn {
    position: absolute;
    bottom: 2px;
    right: 2px;
    background: var(--neon-blue);
    color: #000;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.6rem;
    transition: transform 0.2s;
}

.avatar-edit-btn:hover {
    transform: scale(1.2);
}

.vault-notice {
    border: 1px solid rgba(0, 217, 255, 0.15);
    border-radius: 12px;
    padding: 18px 25px;
    margin-bottom: 40px;
    background: rgba(0, 217, 255, 0.03);
    font-family: var(--font-main);
    font-size: 0.6rem;
    color: var(--text-dim);
    letter-spacing: 1px;
    line-height: 1.8;
}

.vault-notice i.bx-shield-quarter {
    color: var(--neon-blue);
    margin-right: 8px;
    vertical-align: middle;
}

.vault-notice-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
}

.vault-notice-btn {
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 0.5rem;
    letter-spacing: 2px;
    padding: 6px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vault-notice-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

/*=========================================================
 * 13. REGISTRATION page
 * Layout and UI for the full-page enrollment portal.
 ========================================================*/

.registration-container {
    padding: 100px 20px;
    display: flex;
    justify-content: center;
    background: radial-gradient(circle at top, #111 0%, #000 100%);
    min-height: 100vh;
}

.registration-card {
    width: 100%;
    max-width: 550px;
    background: rgba(15, 15, 15, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.registration-hero {
    text-align: center;
    margin-bottom: 40px;
}

.registration-hero h1 {
    font-family: 'Orbitron', sans-serif;
    letter-spacing: 4px;
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.registration-hero p {
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent-color, #00f2ff);
    font-size: 0.8rem;
    text-transform: uppercase;
    opacity: 0.8;
}

.form-section {
    margin-bottom: 35px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-section h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Photo Upload Core */
.photo-upload-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.photo-placeholder {
    width: 140px;
    height: 140px;
    border: 1px dashed var(--accent-color, #00f2ff);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: rgba(0, 242, 255, 0.02);
    color: var(--accent-color, #00f2ff);
    overflow: hidden; /* For the preview image later */
}

.photo-placeholder:hover {
    background: rgba(0, 242, 255, 0.1);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.2);
    border-style: solid;
}

.photo-placeholder i {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.photo-placeholder span {
    font-size: 9px;
    text-align: center;
    padding: 0 15px;
    font-family: 'JetBrains Mono', monospace;
    line-height: 1.4;
}

.registration-submit {
    width: 100%;
    margin-top: 20px;
    padding: 18px;
    font-weight: 700;
    letter-spacing: 2px;
}

.tier-activate-btn {
    width: 100%;
    padding: 12px;
    margin: 20px 0 5px 0;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-family: var(--font-heading);
    font-size: 0.65rem;
    letter-spacing: 2px;
    cursor: pointer;
    border-radius: 12px;
    transition: 0.3s;
    text-transform: uppercase;
}

.tier-activate-btn:hover {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
}

.tier-activate-btn.active {
    border-color: var(--neon-blue);
    color: var(--neon-blue);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.optional-tag {
    font-size: 0.5rem;
    color: var(--text-dim);
    letter-spacing: 1px;
}

.file-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px;
    color: var(--text-dim);
    font-family: var(--font-main);
    font-size: 0.7rem;
    border-radius: 12px;
    cursor: pointer;
}


/* =========================================
    RESPONSIVE OVERRIDES (Mobile Fixes)
   ========================================= */
@media (max-width: 768px) {
    .vault-sections {
        margin-top: -60px; /* Less aggressive pull-up for mobile */
    }
    
    .section-title {
        margin: 20px auto 5px auto; /* Tighter gaps between rows */
        font-size: 0.65rem; /* Slightly smaller text for mobile */
    }

    .hero-tagline {
        font-size: 1.8rem; /* Prevents text from overlapping on small screens */
    }
}