:root {
    --accent: #C5A059;          /* Champagne Gold: Luxury & Sophistication */
    --accent-glow: rgba(197, 160, 89, 0.2);
    --bg-black: #040814;        /* Deep Midnight Navy */
    --bg: #060C1F;
    --navy-deep: #020612;
    --text-main: #F5F5F7;       /* Soft White */
    --text-dim: rgba(245, 245, 247, 0.6);
    --transition-slow: 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-mid: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    --text: var(--text-main);
    
    --bg-light: #FBFBFD;
    --text-light: #1D1D1F;
    --accent-light: #C5A059;
    
    --fs-nav: 0.8rem;
    --transition-cinematic: cubic-bezier(0.16, 1, 0.3, 1);
    --text-shadow: 0 2px 15px rgba(0, 0, 0, 0.4);
    
    --transition-fast: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-heading: 'Outfit', serif; /* Would ideally use a serif font for medical luxury */
    
    /* Typographic Scale - Ultra Refined */
    --fs-h1: clamp(4rem, 12vw, 10rem);
    --fs-h2: clamp(2.5rem, 8vw, 5rem);
    --fs-h3: clamp(1.8rem, 5vw, 3.5rem);
    --fs-body: clamp(1rem, 1.2vw, 1.3rem);
}

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

/* Cinematic Follower Effect */
.custom-cursor, .custom-cursor-follower { 
    display: block; 
    pointer-events: none; 
}

@media (hover: none), (pointer: coarse) {
    .custom-cursor, .custom-cursor-follower { display: none !important; }
}

html {
    scroll-behavior: smooth;
    scrollbar-width: none;
}

html::-webkit-scrollbar { display: none; }

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: var(--font-main);
    overflow-x: hidden;
    transition: background-color var(--transition-cinematic), color var(--transition-cinematic);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.theme-light {
    --bg: var(--bg-light);
    --text: var(--text-light);
    --accent: var(--accent-light);
}

/* Luxury Grain & Noise */
.noise {
    position: fixed;
    inset: 0;
    z-index: 99999;
    pointer-events: none;
    opacity: 0.05;
    background: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyMDAiIGhlaWdodD0iMjAwIj48ZmlsdGVyIGlkPSJuIihmZVR1cmJ1bGVuY2UgdHlwZT0iZnJhY3RhbE5vaXNlIiBiYXNlRnJlcXVlbmN5PSIwLjY1IiBudW1PY3RhdmVzPSIzIiBzdGl0Y2hUaWxlcz0ic3RpdGNoIi8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAwJSIgZmlsdGVyPSJ1cmwoI24pIi8+PC9zdmc+');
}

/* Premium Custom Cursor */
.custom-cursor {
    display: none; /* Hide the tiny dot, keep system arrow */
}

.custom-cursor-follower {
    width: 30px;
    height: 30px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 2000000;
    mix-blend-mode: difference;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    opacity: 0.5;
    box-shadow: 0 0 10px rgba(77, 148, 255, 0.3);
}

/* Scroll Indicator */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    background: var(--accent);
    width: 0%;
    z-index: 1000001;
}

/* Loader - Minimalist Luxury */
.loader {
    position: fixed;
    inset: 0;
    background: #000;
    z-index: 2000000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 1.2s cubic-bezier(0.86, 0, 0.07, 1);
}

.loader.hidden {
    transform: translateY(-100%);
}

.loader-logo {
    display: flex;
    flex-direction: column; /* Stack vertically on mobile */
    align-items: center;
    gap: 1.5rem;
    color: #fff;
    text-align: center;
}

@media (min-width: 769px) {
    .loader-logo {
        flex-direction: row;
        gap: 2rem;
    }
}

.loader-zh {
    display: flex;
    gap: 1rem;
    font-size: 1.8rem; /* Reduced from 3.5rem */
    font-weight: 300;
    letter-spacing: 0.5rem;
    opacity: 0.6;
}

@media (max-width: 768px) {
    .loader-zh {
        order: 2; /* Move to bottom */
        font-size: 1rem;
        letter-spacing: 0.8rem;
        margin-top: 1rem;
        opacity: 0.5;
        font-weight: 300;
    }
}

.loader-sep {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 768px) {
    .loader-sep {
        display: none; /* Hide separator on mobile */
    }
}

.loader-en {
    display: flex;
    gap: 0.5rem;
    font-size: 3.5rem; /* Increased from 1.8rem */
    font-weight: 200;
    letter-spacing: 0.8rem;
}

@media (max-width: 768px) {
    .loader-en {
        order: 1; /* Move to top */
        font-size: 1.8rem;
        letter-spacing: 0.5rem;
        margin-top: 0;
        opacity: 1;
        font-weight: 400;
    }
}

.loader-logo span {
    display: inline-block;
    opacity: 0;
    transform: translateY(20px);
    animation: letterReveal 0.6s forwards;
}

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

/* Animation Delays for Chinese */
.loader-zh span:nth-child(1) { animation-delay: 0.8s; }
.loader-zh span:nth-child(2) { animation-delay: 0.9s; }

/* Animation Delays for English */
.loader-en span:nth-child(1) { animation-delay: 0.1s; }
.loader-en span:nth-child(2) { animation-delay: 0.2s; }
.loader-en span:nth-child(3) { animation-delay: 0.3s; }
.loader-en span:nth-child(4) { animation-delay: 0.4s; }
.loader-en span:nth-child(5) { animation-delay: 0.5s; }
.loader-en span:nth-child(6) { animation-delay: 0.6s; }

@media (min-width: 769px) {
    .loader-zh span:nth-child(1) { animation-delay: 0.1s; }
    .loader-zh span:nth-child(2) { animation-delay: 0.3s; }
    .loader-en span:nth-child(1) { animation-delay: 0.6s; }
    .loader-en span:nth-child(2) { animation-delay: 0.7s; }
    .loader-en span:nth-child(3) { animation-delay: 0.8s; }
    .loader-en span:nth-child(4) { animation-delay: 0.9s; }
    .loader-en span:nth-child(5) { animation-delay: 1.0s; }
    .loader-en span:nth-child(6) { animation-delay: 1.1s; }
}

.navbar {
    position: fixed;
    top: 1.5rem;
    left: 0;
    right: 0;
    z-index: 10000;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.nav-container {
    width: 95%;
    max-width: 1200px;
    height: 70px;
    background: rgba(4, 8, 20, 0.95);
    border: 1px solid rgba(197, 160, 89, 0.15);
    border-radius: 0; /* Luxury often uses sharp or very subtle curves */
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2.5rem;
    pointer-events: auto;
    box-shadow: 0 25px 80px rgba(0,0,0,0.6);
}

.nav-left { 
    display: flex; 
    align-items: center; 
    flex-shrink: 0;
}
.nav-center { 
    display: flex; 
    justify-content: center;
    flex-grow: 1;
}
.nav-right { 
    display: flex; 
    align-items: center; 
    justify-content: flex-end; 
    gap: 1.2rem; 
    flex-shrink: 0; 
}

.logo {
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
    color: var(--accent);
}

.nav-links.desktop-only {
    display: flex;
    gap: 1.4rem;
}

/* Hamburger Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 30px;
    height: 20px;
    position: relative;
    z-index: 10001;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: var(--text);
    position: absolute;
    transition: all 0.3s ease;
}

.menu-toggle span:first-child { top: 0; }
.menu-toggle span:last-child { bottom: 0; }

.menu-toggle.active span:first-child {
    transform: translateY(10px) rotate(45deg);
}
.menu-toggle.active span:last-child {
    transform: translateY(-9px) rotate(-45deg);
}

/* Mobile Overlay Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: var(--bg);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
    backdrop-filter: blur(20px);
}

.mobile-menu.active {
    transform: translateY(0);
}

.mobile-menu-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

.mobile-menu.active .mobile-nav-links a {
    opacity: 1;
    transform: translateY(0);
}

.mobile-nav-links h2 {
    font-size: var(--fs-h2);
    line-height: 1;
    font-weight: 800;
    margin-bottom: 3.5rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    text-shadow: 0 4px 20px rgba(0,0,0,1);
}

.mobile-nav-links a {
    font-size: 1.5rem;
    font-weight: 400;
    text-decoration: none;
    color: inherit;
    text-transform: uppercase;
    letter-spacing: 0.3rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.mobile-menu.active .mobile-nav-links a:nth-child(1) { transition-delay: 0.3s; }
.mobile-menu.active .mobile-nav-links a:nth-child(2) { transition-delay: 0.4s; }
.mobile-menu.active .mobile-nav-links a:nth-child(3) { transition-delay: 0.5s; }
.mobile-menu.active .mobile-nav-links a:nth-child(4) { transition-delay: 0.6s; }

.lang-switcher {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-right: 1rem;
}

.lang-item {
    font-size: 0.65rem;
    text-decoration: none;
    color: inherit;
    opacity: 0.3;
    letter-spacing: 0.1rem;
    transition: opacity 0.3s ease;
    font-weight: 500;
}

.lang-item.active {
    opacity: 1;
}

.lang-item:hover {
    opacity: 1;
}

.lang-switcher .sep {
    font-size: 0.6rem;
    opacity: 0.15;
    font-weight: 200;
}

/* Update mobile menu for lang */
.mobile-lang {
    margin-top: 2rem;
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.mobile-lang .lang-item {
    font-size: 0.8rem;
    opacity: 0.5;
}

.mobile-lang .lang-item.active {
    opacity: 1;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    font-weight: 500;
    opacity: 0.75;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.nav-links a:hover { 
    opacity: 1; 
    color: var(--accent);
    transform: translateY(-2px);
}

.whitelist-btn {
    background: var(--accent);
    border: 1px solid var(--accent);
    color: #000;
    padding: 0.7rem 1.5rem;
    font-size: 0.75rem;
    letter-spacing: 0.12rem;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    font-weight: 600;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border-radius: 0;
}

.whitelist-btn:hover {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(197, 160, 89, 0.2);
}

/* Modal System */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 20000;
    justify-content: center;
    align-items: flex-start; /* Fix: Start from top to prevent cutting off the title */
    overflow-y: auto;
    padding: 4rem 1.5rem; /* Give some breathing room at top and bottom */
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(15, 15, 15, 0.65);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 4rem 3rem;
    width: 95%;
    max-width: 1100px;
    position: relative;
    border-radius: 4px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: all 0.5s ease;
}

.modal-content.panel-active {
    padding: 0 !important;
    overflow: hidden !important;
    max-width: 1100px !important;
    width: 95% !important;
}

.mobile-only { display: none !important; }
@media (max-width: 992px) {
    .mobile-only { display: block !important; }
}

.modal-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    opacity: 0.5;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    transition: all 0.3s ease;
    border-radius: 50%;
}

.modal-close:hover {
    opacity: 1;
    background: rgba(255,255,255,0.05);
}

.modal-step {
    display: none;
    animation: fadeIn 0.5s ease forwards;
}

.modal-step.active {
    display: block;
}

.modal-step h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.2rem;
    text-transform: uppercase;
}

.modal-step p {
    font-size: 0.85rem;
    opacity: 0.7;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.body-text p {
    font-size: 1.2rem;
    line-height: 1.6;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 15px rgba(0,0,0,1);
}

.tier-card.active {
    border-color: #fff;
    background: #fff;
    color: #000;
}

.tier-card.active span {
    color: #000;
    opacity: 0.8;
}

.tier-card.active .tier-rewards {
    border-top-color: rgba(0,0,0,0.1);
}

.tier-card.active .tier-rewards p {
    color: #000 !important;
}

.modal-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 1rem;
    font-family: inherit;
    font-size: 0.9rem;
    margin-bottom: 2rem;
    outline: none;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

@media (max-width: 768px) {
    .tier-grid { grid-template-columns: 1fr; }
}

.tier-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 140px;
}

.tier-card span {
    display: inline;
    font-size: 0.6rem;
    opacity: 0.5;
    margin-left: 0.2rem;
    font-weight: 400;
    text-transform: uppercase;
}

.tier-benefits {
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.tier-benefits span {
    display: block !important;
    font-size: 0.65rem !important;
    opacity: 0.7 !important;
    margin: 0 !important;
    letter-spacing: 0.05rem;
}

.tier-card.active .tier-benefits {
    border-top-color: rgba(0,0,0,0.1);
}

.tier-card.active .tier-benefits span {
    color: #000 !important;
    opacity: 0.8 !important;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.portal-stat {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1.5rem;
    text-align: left;
    border-radius: 4px;
}

.portal-stat label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

#portal-status-title {
    font-size: 2.2rem;
    text-transform: uppercase;
    letter-spacing: 0.2rem;
    margin-bottom: 2rem;
    font-weight: 800;
    text-shadow: 0 0 20px rgba(0, 255, 102, 0.2);
}

.portal-stat .val {
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
    font-family: 'Inter', sans-serif;
}

.admin-table-wrapper {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 1rem;
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    color: #fff;
}

.admin-table th {
    text-align: left;
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.5;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.1rem;
}

.admin-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-family: 'Inter', sans-serif;
}

.admin-dashboard {
    background: #000 !important;
    color: #fff !important;
    z-index: 50;
    position: relative;
}

.status-pill {
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 100px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .admin-table th, .admin-table td {
        padding: 1rem 0.5rem;
        font-size: 0.7rem;
    }
}

.payment-box {
    background: #000;
    padding: 1.5rem;
    border: 1px dashed rgba(255, 255, 255, 0.2);
    margin-bottom: 1rem;
}

.payment-box .label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.5;
    margin-bottom: 0.5rem;
}

.payment-box code {
    display: block;
    font-size: 0.75rem;
    word-break: break-all;
    margin-bottom: 1rem;
    color: var(--accent);
}

.admin-access-btn {
    font-size: 0.7rem;
    color: #fff !important;
    text-decoration: none;
    background: #111;
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 2rem;
    border-radius: 4px;
    letter-spacing: 0.3rem;
    transition: all 0.3s ease;
    display: block;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.admin-access-btn:hover {
    background: #222;
    transform: translateY(-2px);
    border-color: rgba(255,255,255,0.3);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 0.7rem;
    padding: 0.4rem 0.8rem;
    cursor: pointer;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Sections */
section {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12rem 10%;
    overflow: hidden;
    background: #000; /* Fallback */
}

.hero {
    height: 100vh !important;
    min-height: 100vh !important;
    max-height: 100vh !important;
    padding-top: 10rem !important;
    padding-bottom: 4rem !important;
    overflow: hidden !important;
}

@media (max-width: 768px) {
    .hero {
        padding-top: 13rem !important;
        padding-bottom: 3rem !important;
        height: auto !important;
        min-height: 100vh !important;
        max-height: none !important;
    }
    .hero h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem) !important;
        line-height: 1.2 !important;
        margin-top: 0.5rem !important;
    }
    .hero .subtitle {
        font-size: 1.1rem !important;
        line-height: 1.5 !important;
        margin-bottom: 1.5rem !important;
    }
    #means .bg-media img {
        object-position: center !important;
    }
}

#building .bg-media img {
    object-position: 28% center !important;
}

#model .bg-media img {
    object-position: 72% center !important;
}

.bg-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    background: radial-gradient(circle at center, #1a2530 0%, #0a0f14 100%); /* Fallback moved here */
}

.bg-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1); /* Start zoomed for parallax */
    transition: opacity 1.2s var(--transition-cinematic);
    will-change: transform;
    filter: brightness(1.2) contrast(1.1); /* Brighter and vivid background */
}

.hero .bg-media img {
    transform: scale(1) !important;
    filter: brightness(1.1) contrast(1.15); /* Slightly less dark for hero */
}

.overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, 
        rgba(0, 0, 0, 0.25) 0%, 
        rgba(0, 0, 0, 0.1) 30%, 
        rgba(0, 0, 0, 0.1) 70%, 
        rgba(0, 0, 0, 0.35) 100%);
    z-index: 1;
}

section {
    background: transparent; /* Ensure section is transparent to show bg-media */
}

/* Specific overlay for hero to ensure bottom transition is deep */
.hero .overlay {
    background: linear-gradient(to bottom, 
        rgba(0,0,0,0.5) 0%, 
        rgba(0,0,0,0.2) 40%, 
        rgba(0,0,0,0.6) 100%);
}

.content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
}

.hero .content {
    max-width: 750px;
}

@media (max-width: 1024px) {
    .hero .content {
        max-width: 85%;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 4.8vw, 4.8rem);
    line-height: 1.1;
    letter-spacing: 0.05rem;
}

/* Lang-based scaling for hero text */
html[lang="en"] .hero h1,
html[lang="jp"] .hero h1,
html[lang="kr"] .hero h1,
html[lang="zh-hk"] .hero h1 {
    font-size: clamp(2rem, 3.2vw, 3.2rem) !important;
}

html[lang="en"] .hero .subtitle,
html[lang="jp"] .hero .subtitle,
html[lang="kr"] .hero .subtitle,
html[lang="zh-hk"] .hero .subtitle {
    font-size: clamp(1.1rem, 1.3vw, 1.4rem) !important;
    margin-bottom: 2.5rem !important;
}

html[lang="en"] .hero .body-text p,
html[lang="jp"] .hero .body-text p,
html[lang="kr"] .hero .body-text p,
html[lang="zh-hk"] .hero .body-text p {
    font-size: clamp(0.9rem, 1.1vw, 1.1rem) !important;
}

/* Typography Hierarchy */
h1 {
    font-size: var(--fs-h1);
    line-height: 1.1; /* Increased from 0.85 to prevent overlapping on wrap */
    font-weight: 800;
    letter-spacing: 0.1em; /* Reduced slightly for better fit */
    margin-bottom: 2rem;
    margin-left: -0.05em;
    color: #ffffff;
    text-shadow: 0 10px 40px rgba(0,0,0,1), 0 0 20px rgba(0,0,0,0.8);
    text-transform: uppercase;
}

.title-sub {
    font-size: 0.45em; /* Make the Chinese part smaller */
    vertical-align: middle;
    opacity: 0.7;
    margin-left: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.2rem;
}

/* Ensure Chinese font stack */
[lang="zh-hk"] body {
    font-family: "Outfit", "PingFang SC", "Microsoft YaHei", sans-serif;
}

h2 {
    font-size: var(--fs-h2);
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
    text-shadow: var(--text-shadow);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.subtitle {
    font-size: 1.8rem;
    font-weight: 200;
    letter-spacing: 0.1em;
    opacity: 0.9;
    color: #ffffff;
    margin-bottom: 4rem;
    text-shadow: 0 4px 20px rgba(0,0,0,1);
    word-break: keep-all;
    overflow-wrap: break-word;
}

.body-text {
    font-size: var(--fs-body);
    font-weight: 300;
    max-width: 650px;
    opacity: 0.8;
    line-height: 1.8;
}

.emphasis {
    font-weight: 500;
    color: var(--accent);
}

/* Hero Special */
.constants-bar {
    display: flex;
    gap: 4rem;
    margin: 5rem 0;
}

.constant-item {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    opacity: 1;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 4px 20px rgba(0,0,0,1);
    position: relative;
}

.constant-item::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.8s var(--transition-cinematic);
}

.constant-item.active::after { width: 100%; }

/* Shift UI - More Dynamic */
.shift-grid {
    display: grid;
    gap: 4rem;
    margin-top: 6rem;
}

/* Narrative - Compact Technical Layout */
.shift-grid {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    margin-top: 6rem;
    width: 100%;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.shift-card {
    display: grid;
    grid-template-columns: 1fr 150px 1fr;
    align-items: center;
    position: relative;
    width: 100%;
}

.shift-card::before {
    content: '';
    position: absolute;
    top: -2rem;
    left: 50%;
    height: 1px;
    width: 200px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    transform: translateX(-50%);
    opacity: 0.3;
}

.shift-card .label {
    grid-column: 1 / -1;
    font-size: 0.65rem;
    letter-spacing: 0.6rem;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.8rem;
    text-align: center;
    color: var(--accent);
    font-weight: 400;
}

.shift-card .val {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.2;
    letter-spacing: 0.15rem;
    text-shadow: 0 6px 25px rgba(0,0,0,1);
    transition: all 0.6s ease;
}

.shift-card .val:first-of-type {
    text-align: right;
    color: #ffffff;
    padding-right: 2rem;
}

.shift-card .val.emphasis {
    text-align: left;
    color: var(--accent);
    padding-left: 2rem;
}

.shift-card .arrow {
    width: 100%;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--accent), transparent);
    position: relative;
    opacity: 0.6;
}

.shift-card .arrow::after {
    content: '→';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.2rem;
    color: var(--accent);
    text-shadow: 0 0 15px var(--accent);
}

.lang-zh .shift-card .val {
    letter-spacing: 0.4rem;
}

/* Dual Core - Monolithic Pillars */
.dual-core-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.pillar {
    position: relative;
    padding: 10rem 10% 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center; /* Center content vertically */
    transition: flex 1s var(--transition-cinematic);
    overflow: hidden;
}

.pillar:hover { flex: 1.15; }

.pillar::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 2;
    transition: opacity 0.8s ease;
}

.pillar:hover::before { opacity: 0.4; }

.pillar .bg-media img { transform: scale(1.15); }
.pillar:hover .bg-media img { transform: scale(1.05); }

/* Value Loop - Pulsing Circle */
.loop-container {
    position: relative;
    width: 600px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 1px solid var(--accent);
    border-radius: 50%;
    opacity: 0.2;
    animation: pulse 4s infinite;
}

.loop-inner-text {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: none;
    backdrop-filter: none;
    padding: 0;
}

.loop-inner-text p {
    font-size: 1.4rem;
    letter-spacing: 0.4rem;
    text-transform: uppercase;
    font-weight: 900;
    color: #fff;
    text-shadow: 0 5px 25px rgba(0,0,0,1);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.loop-inner-text p:hover {
    opacity: 1;
    transform: scale(1.1);
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.2; }
    50% { transform: scale(1.05); opacity: 0.4; }
    100% { transform: scale(0.95); opacity: 0.2; }
}

/* CTA Button - Ultra Premium */
.cta-btn {
    display: inline-block;
    margin-top: 4rem;
    padding: 1rem 2.8rem;
    background: transparent;
    color: inherit;
    border: 1px solid var(--text);
    border-radius: 100px;
    text-decoration: none;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12rem;
    overflow: hidden;
    position: relative;
    transition: all 0.4s ease;
    font-weight: 500;
}

.cta-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text);
    transition: left 0.5s var(--transition-cinematic);
    z-index: -1;
}

.cta-btn:hover { 
    color: var(--bg-black); 
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.cta-btn:hover::before { left: 0; }

/* Reveal Animations */
.reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 1.5s var(--transition-cinematic), transform 1.5s var(--transition-cinematic);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.stagger-reveal span {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s var(--transition-cinematic), transform 1s var(--transition-cinematic);
}

.stagger-reveal.active span {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive Fixes */
@media (max-width: 1024px) {
    .navbar { width: 95%; padding: 1rem 2rem; top: 1rem; }
    .desktop-only { display: none !important; }
    .menu-toggle { display: block; }
    
    .dual-core-container { grid-template-columns: 1fr; position: relative; height: auto; }
    .pillar { height: 70vh; padding: 10rem 10% 5rem; }
    .loop-container { width: 350px; height: 350px; }

    section { padding: 8rem 5%; }
    h1 { font-size: clamp(4rem, 15vw, 8rem); }
}

@media (max-width: 768px) {
    h1 { font-size: 3.5rem; }
    h2 { font-size: 2.2rem; }
    .shift-card .val { font-size: 1.8rem; }
    .shift-card { 
        display: flex; 
        flex-direction: column; 
        align-items: center; 
        text-align: center; 
        gap: 1rem; 
    }
    .shift-card .val:first-of-type, .shift-card .val.emphasis {
        text-align: center;
        padding: 0;
    }
    .shift-card .arrow { 
        width: 1px; 
        height: 40px; 
        background: linear-gradient(to bottom, transparent, var(--accent), transparent);
        margin: 1rem 0; 
    }
    .shift-card .arrow::after {
        content: '↓';
        transform: translate(-50%, -50%);
    }
    
    .constants-bar { 
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem 1rem;
        justify-items: center;
    }
    .constant-item {
        font-size: 0.7rem;
        letter-spacing: 0.2rem;
    }
}
@media (max-width: 768px) {
    #origin .bg-media img {
        object-position: 15% center; /* Shift focus to the left to see the sapling */
    }
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .modal {
        align-items: flex-start !important; /* Start from top, not center */
        overflow-y: auto !important;
    }
    .mobile-only-spacer {
        display: block !important;
    }
    .modal-content {
        padding: 2rem 1.5rem 5rem !important;
        width: 100% !important;
        height: auto !important;
        min-height: auto !important;
        border-radius: 0 !important;
        margin: 0 !important;
        display: block !important;
    }
}

/* Premium Toast Notifications */
.toast-container {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 280px;
    padding: 1rem 1.5rem;
    background: rgba(15, 15, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 3px solid var(--accent);
    color: #fff;
    border-radius: 4px;
    font-size: 0.85rem;
    letter-spacing: 0.05rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    animation: toast-slide-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    transition: all 0.3s ease;
}

.toast.success { border-left-color: #0f6; }
.toast.error { border-left-color: #f44; }
.toast.info { border-left-color: #00b4ff; }

.toast.fade-out {
    opacity: 0;
    transform: translateX(20px);
}

@keyframes toast-slide-in {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(0);
    }
}

@media (max-width: 768px) {
    .toast-container {
        top: 1rem;
        right: 1rem;
        left: 1rem;
    }
    .toast {
        min-width: auto;
    }
}

/* Additional Premium Styles for Ukakg Sections */
.ukakg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    width: 100%;
}

.ukakg-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    border-radius: 8px;
    transition: all 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    position: relative;
    overflow: hidden;
}

.ukakg-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, var(--accent-glow) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: 0;
}

.ukakg-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent);
    box-shadow: 0 15px 40px rgba(0,0,0,0.5);
}

.ukakg-card:hover::before {
    opacity: 0.15;
}

.ukakg-card * {
    position: relative;
    z-index: 1;
}

.ukakg-card h3 {
    font-size: 1.6rem;
    margin-bottom: 1.2rem;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    color: #fff;
}

.ukakg-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.7;
}

.ukakg-flow {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 4.5rem;
}

.flow-step {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 2.5rem;
    border-radius: 6px;
    text-align: center;
    min-width: 220px;
    flex: 1;
    transition: all 0.5s ease;
}

.flow-step:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--accent);
}

.flow-step h4 {
    color: var(--accent);
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 0.5rem;
}

.flow-arrow {
    font-size: 1.5rem;
    color: var(--accent);
    opacity: 0.6;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    margin-top: 5rem;
}

@media (max-width: 868px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}

.comp-col {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 3.5rem 2.5rem;
    border-radius: 8px;
}

.comp-col.highlight {
    border-color: rgba(0, 210, 255, 0.3);
    background: rgba(0, 210, 255, 0.02);
    box-shadow: 0 10px 40px rgba(0, 210, 255, 0.05);
}

.comp-col h3 {
    font-size: 1.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15rem;
    margin-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.comp-col.highlight h3 {
    color: var(--accent);
    border-bottom-color: rgba(0, 210, 255, 0.3);
}

.comp-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.comp-col ul li {
    font-size: 1.1rem;
    opacity: 0.8;
    position: relative;
    padding-left: 2rem;
}

.comp-col ul li::before {
    content: '•';
    position: absolute;
    left: 0.2rem;
    color: var(--accent);
    font-size: 1.5rem;
    top: -0.2rem;
}

.comp-col.highlight ul li::before {
    color: var(--accent);
}

/* User Panel Styles */
.user-panel-header {
    text-align: center;
    margin-bottom: 1rem;
}

.user-panel-tabs {
    display: flex;
    justify-content: center;
    gap: 0.2rem;
    margin: 1.5rem 0;
    background: rgba(255,255,255,0.03);
    padding: 0.3rem;
    border-radius: 4px;
}

.panel-tab {
    background: none;
    border: none;
    color: #fff;
    opacity: 0.4;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    transition: all 0.3s ease;
    border-radius: 2px;
}

.panel-tab.active {
    opacity: 1;
    background: rgba(255,255,255,0.07);
    color: var(--accent);
}

.tab-content {
    display: none;
    padding: 1rem 0;
    min-height: 200px;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease forwards;
}

.org-list::-webkit-scrollbar {
    width: 4px;
}

.org-list::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}

.org-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
}

/* Extended User Panel Styles */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.info-item {
    background: rgba(255,255,255,0.03);
    padding: 0.8rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.info-item label {
    display: block;
    font-size: 0.6rem;
    text-transform: uppercase;
    opacity: 0.4;
    margin-bottom: 0.2rem;
}

.info-item span {
    font-size: 0.85rem;
    font-weight: 500;
}

.pv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pv-card {
    background: linear-gradient(135deg, rgba(255,215,0,0.05), rgba(255,255,255,0.02));
    padding: 1rem;
    border-radius: 6px;
    border: 1px solid rgba(255,215,0,0.1);
    text-align: center;
}

.pv-card label {
    font-size: 0.55rem;
    text-transform: uppercase;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.4rem;
}

.pv-card .val {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent);
}

.points-summary-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.pt-box {
    flex: 1;
    background: rgba(255,255,255,0.02);
    padding: 0.6rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.05);
}

.pt-box label {
    font-size: 0.5rem;
    display: block;
    opacity: 0.4;
    text-transform: uppercase;
}

.pt-box span {
    font-size: 0.9rem;
    font-weight: 500;
}

.table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.panel-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.panel-table th {
    text-align: left;
    padding: 0.8rem 0.5rem;
    opacity: 0.4;
    text-transform: uppercase;
    font-size: 0.6rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.panel-table td {
    padding: 0.8rem 0.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.03);
}

.panel-table.small {
    font-size: 0.7rem;
}

.rewards-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.reward-box {
    background: rgba(255,255,255,0.02);
    padding: 1rem;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,0.05);
}

.reward-box.highlight {
    background: rgba(255,215,0,0.03);
    border-color: rgba(255,215,0,0.2);
}

.reward-box label {
    font-size: 0.6rem;
    opacity: 0.5;
    display: block;
    margin-bottom: 0.3rem;
}

.reward-box .val {
    font-size: 1.2rem;
    font-weight: 600;
}

/* Mock Tree View Styles */
.mock-tree-view {
    padding: 2rem 0;
    display: flex;
    justify-content: center;
}

.tree-node {
    text-align: center;
    position: relative;
    padding: 1rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 6px;
    min-width: 120px;
}

.tree-node .node-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
}

.tree-node .node-sub {
    font-size: 0.6rem;
    opacity: 0.5;
}

.tree-connectors {
    height: 30px;
    position: relative;
}

.connector {
    position: absolute;
    top: 0;
    width: 50%;
    height: 100%;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.connector.left { left: 0; border-right: 1px solid rgba(255,255,255,0.1); border-top-left-radius: 10px; }
.connector.right { right: 0; border-left: 1px solid rgba(255,255,255,0.1); border-top-right-radius: 10px; }

.tree-children {
    display: flex;
    gap: 2rem;
    justify-content: center;
}

.tree-children .tree-node {
    padding: 0.6rem;
    min-width: 100px;
}

/* Points Styles */
.points-ledger-nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.point-tab {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    color: #fff;
    font-size: 0.6rem;
    padding: 0.5rem;
    cursor: pointer;
    text-transform: uppercase;
}

.point-tab.active {
    background: var(--accent);
    color: #000;
    border-color: var(--accent);
}

.point-sub-view { display: none; }
.point-sub-view.active { display: block; }

.point-balance-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.05), rgba(0,0,0,0));
    padding: 1.5rem;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1.5rem;
}

.point-balance-card label {
    font-size: 0.7rem;
    opacity: 0.5;
}

.point-balance-card .val {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent);
}

/* Settings Styles */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 4px;
}

.setting-item label {
    font-size: 0.65rem;
    opacity: 0.4;
    display: block;
}

.setting-item span {
    font-size: 0.8rem;
}

.mini-btn {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #fff;
    font-size: 0.6rem;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
}

.accent-text { color: var(--accent); }
.status-active { color: #00ff88; font-size: 0.7rem; text-transform: uppercase; }
.status-inactive { color: #ff4444; font-size: 0.7rem; text-transform: uppercase; }

.reg-calc-box {
    margin: 1rem 0;
    background: rgba(255,215,0,0.05);
    padding: 1rem;
    border-radius: 4px;
}

.calc-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
    .info-grid, .pv-grid, .rewards-summary-grid {
        grid-template-columns: 1fr;
    }
}

/* Premium Sidebar Layout */
.panel-layout {
    display: flex;
    min-height: 85vh;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
}

.panel-sidebar {
    width: 240px;
    background: rgba(255,255,255,0.02);
    border-right: 1px solid rgba(255,255,255,0.05);
    display: flex;
    flex-direction: column;
    padding: 2rem 0;
    position: relative;
    z-index: 10;
}

.sidebar-header {
    padding: 0 1.5rem 2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: var(--accent);
    color: #000;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
}

.user-meta .u-name { display: block; font-size: 0.9rem; font-weight: 600; color: #fff; }
.user-meta .u-id { display: block; font-size: 0.65rem; opacity: 0.5; }

.sidebar-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.side-tab {
    background: none;
    border: none;
    color: #fff;
    padding: 1.2rem 1.5rem;
    text-align: left;
    font-size: 0.75rem;
    letter-spacing: 0.1rem;
    opacity: 0.4;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.side-tab .icon { font-size: 1rem; }
.side-tab:hover { opacity: 0.7; background: rgba(255,255,255,0.02); }
.side-tab.active {
    opacity: 1;
    background: rgba(255,215,0,0.05);
    border-right: 2px solid var(--accent);
    color: var(--accent);
}

.sidebar-footer { padding: 1rem 1.5rem; }
.logout-link {
    background: none;
    border: none;
    color: #ff4444;
    font-size: 0.7rem;
    letter-spacing: 0.1rem;
    cursor: pointer;
    opacity: 0.7;
}

/* Main Content Area */
.panel-main {
    flex: 1;
    padding: 3rem;
    overflow-y: auto;
    position: relative;
}

.section-title {
    font-size: 1.8rem;
    letter-spacing: 0.3rem;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 2.5rem;
}

/* Overview Cards */
.info-card { padding: 1.5rem; margin-bottom: 2rem; }
.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    font-size: 0.85rem;
}
.info-row label { opacity: 0.5; font-size: 0.7rem; text-transform: uppercase; }

.stats-row, .balances-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card, .balance-card {
    background: rgba(255,255,255,0.03);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.05);
}
.stat-card label, .balance-card label { display: block; font-size: 0.6rem; opacity: 0.4; margin-bottom: 0.5rem; text-transform: uppercase; }
.stat-card .val, .balance-card .val { font-size: 1.4rem; font-weight: 700; color: #fff; }

/* Rewards Hero */
.rewards-hero {
    background: linear-gradient(135deg, rgba(255,215,0,0.1), rgba(255,255,255,0.02));
    padding: 2.5rem;
    border-radius: 12px;
    margin-bottom: 2.5rem;
    border: 1px solid rgba(255,215,0,0.1);
}
.hero-stat.main label { display: block; font-size: 0.8rem; opacity: 0.6; margin-bottom: 0.5rem; }
.hero-stat.main .val { font-size: 3rem; font-weight: 800; color: var(--accent); }

.hero-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.h-stat label { display: block; font-size: 0.6rem; opacity: 0.4; margin-bottom: 0.2rem; }
.h-stat span { font-size: 1.1rem; font-weight: 600; }

/* Network Secondary Tabs */
.network-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 1rem;
}

.net-sub-tab {
    background: none;
    border: none;
    color: #fff;
    font-size: 0.7rem;
    opacity: 0.4;
    cursor: pointer;
    text-transform: uppercase;
}
.net-sub-tab.active { opacity: 1; color: var(--accent); }

.net-section { display: none; animation: fadeIn 0.4s ease; }
.net-section.active { display: block; }

/* Premium Table */
.premium-table {
    width: 100%;
    border-collapse: collapse;
}
.premium-table th { text-align: left; padding: 1rem; font-size: 0.6rem; opacity: 0.4; text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.1); }
.premium-table td { padding: 1rem; font-size: 0.8rem; border-bottom: 1px solid rgba(255,255,255,0.03); }

/* Mobile Adaptations */
@media (max-width: 992px) {
    .panel-layout { flex-direction: column; }
    .panel-sidebar { width: 100%; height: auto; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.05); padding: 1rem 0; }
    .sidebar-nav { flex-direction: row; justify-content: space-around; }
    .side-tab { padding: 1rem; flex-direction: column; gap: 0.3rem; font-size: 0.5rem; text-align: center; }
    .side-tab.active { border-right: none; border-bottom: 2px solid var(--accent); }
    .sidebar-header, .sidebar-footer { display: none; }
    .panel-main { padding: 1.5rem; }
    .section-title { font-size: 1.2rem; margin-bottom: 1.5rem; }
    .stats-row, .balances-row, .hero-stat-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
}

/* Assets Page Optimizations */
.cta-btn.x-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.6rem;
    letter-spacing: 0.05rem;
}

@media (max-width: 768px) {
    .assets-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Mobile-only Bonus Point Actions Optimization */
@media (max-width: 600px) {
    .asset-actions {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.8rem !important;
    }
    .asset-actions button {
        width: 100% !important;
        padding: 0.8rem 0.2rem !important;
        font-size: 0.65rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .asset-actions button:last-child {
        grid-column: span 2;
    }
}

/* Asset History Status Badges */
.status-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
}
.status-badge.completed {
    background: rgba(0, 255, 0, 0.1);
    color: #00ff00;
    border: 1px solid rgba(0, 255, 0, 0.3);
}
.status-badge.pending {
    background: rgba(255, 165, 0, 0.1);
    color: #ffa500;
    border: 1px solid rgba(255, 165, 0, 0.3);
}

@media (max-width: 768px) {
    #asset-bonus-convert .glass-card,
    #asset-bonus-withdraw .glass-card {
        max-width: 100% !important;
    }
}
