/* V8 Neon-Tech Green Theme
   Dark glass + 3D depth + animated gradients + green neon accents
   Primary: #34C759 · Accent glow: #6EFF9A
*/

:root {
    --v8-primary:        #34C759;
    --v8-primary-light:  #6EFF9A;
    --v8-primary-deep:   #1DA64A;
    --v8-primary-dark:   #1DA64A; /* alias for legacy templates */
    --v8-primary-ghost:  rgba(52, 199, 89, 0.14);
    --v8-glow:           0 0 0 1px rgba(110, 255, 154, 0.22),
                         0 6px 22px rgba(52, 199, 89, 0.28),
                         0 0 40px rgba(52, 199, 89, 0.18);
    --v8-glow-strong:    0 0 0 1px rgba(110, 255, 154, 0.32),
                         0 10px 32px rgba(52, 199, 89, 0.45),
                         0 0 60px rgba(52, 199, 89, 0.3);

    /* Surfaces – deep navy with subtle green tint */
    --v8-bg:             #060B14;
    --v8-bg-grouped:     #060B14;
    --v8-bg-elevated:    rgba(18, 26, 40, 0.72);
    --v8-bg-elev-solid:  #111827;
    --v8-bg-subtle:      rgba(255, 255, 255, 0.04);
    --v8-bg-hover:       rgba(110, 255, 154, 0.08);

    /* Text */
    --v8-text:           #ECEEF3;
    --v8-text-secondary: #B8BFCC;
    --v8-text-tertiary:  #7A8496;
    --v8-text-quaternary:#4E5768;

    /* Separators */
    --v8-separator:          rgba(255, 255, 255, 0.06);
    --v8-separator-opaque:   rgba(255, 255, 255, 0.10);
    --v8-border-glow:        rgba(110, 255, 154, 0.25);

    /* Status */
    --v8-danger:  #FF5160;
    --v8-warning: #FFB341;
    --v8-info:    #4FA8FF;
    --v8-orange:  #FF9500;
    --v8-yellow:  #FFCC00;

    --v8-radius-sm:  10px;
    --v8-radius:     14px;
    --v8-radius-lg:  18px;
    --v8-radius-xl:  22px;
    --v8-radius-pill:999px;

    /* Layered 3D shadow tokens: inset top hairline + top gloss fade + inset bottom hairline + outer drop + close shadow */
    --v8-shadow-sm:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 16px 24px -16px rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 8px 22px rgba(0, 0, 0, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.3);
    --v8-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        0 14px 32px rgba(0, 0, 0, 0.5),
        0 4px 10px rgba(0, 0, 0, 0.35);
    --v8-shadow-lg:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.6),
        0 24px 56px rgba(0, 0, 0, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.4);

    --v8-font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display',
               'Inter', 'Segoe UI', Roboto, 'PingFang SC', sans-serif;

    --v8-safe-bottom: env(safe-area-inset-bottom, 0px);

    --v8-ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
    --v8-ease-in:    cubic-bezier(0.7, 0, 0.84, 0);
    --v8-spring:     cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html, body {
    font-family: var(--v8-font);
    font-size: 15px;
    line-height: 1.45;
    color: var(--v8-text);
    background: var(--v8-bg);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    overscroll-behavior-y: none;
}

/* Animated mesh background (green orbs floating behind everything) */
body {
    min-height: 100vh;
    padding-bottom: calc(74px + var(--v8-safe-bottom));
    position: relative;
    background:
        radial-gradient(ellipse 60% 40% at 10% 0%,  rgba(52, 199, 89, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 90% 20%, rgba(0, 210, 140, 0.14) 0%, transparent 55%),
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(52, 199, 89, 0.12) 0%, transparent 60%),
        linear-gradient(180deg, #040810 0%, #060B14 60%, #050913 100%);
    background-attachment: fixed;
}
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(110, 255, 154, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 255, 154, 0.045) 1px, transparent 1px);
    background-size: 40px 40px;
    pointer-events: none;
    z-index: 0;
    mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 80%);
    -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 0%, transparent 80%);
}
body > * { position: relative; z-index: 1; }
body.v8-no-footer { padding-bottom: 0; }
body.v8-auth { padding-bottom: 0; }

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

/* ============================
   Keyframe animations
   ============================ */
@keyframes v8-rise {
    from { opacity: 0; transform: translate3d(0, 16px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes v8-fade-in {
    from { opacity: 0; } to { opacity: 1; }
}
@keyframes v8-pop-in {
    0%   { opacity: 0; transform: scale(0.92); }
    60%  { opacity: 1; transform: scale(1.015); }
    100% { opacity: 1; transform: scale(1); }
}
@keyframes v8-float {
    0%,100% { transform: translateY(0) translateZ(0); }
    50%     { transform: translateY(-6px) translateZ(0); }
}
@keyframes v8-pulse-glow {
    0%,100% { box-shadow: 0 0 0 0 rgba(110, 255, 154, 0.28), 0 12px 32px rgba(52, 199, 89, 0.32); }
    50%     { box-shadow: 0 0 0 10px rgba(110, 255, 154, 0), 0 16px 40px rgba(52, 199, 89, 0.45); }
}
@keyframes v8-shimmer {
    0%   { transform: translateX(-150%) skewX(-18deg); opacity: 0; }
    20%  { opacity: 1; }
    80%  { opacity: 1; }
    100% { transform: translateX(350%) skewX(-18deg); opacity: 0; }
}
@keyframes v8-orbit {
    from { transform: rotate(0deg) translateX(0); }
    to   { transform: rotate(360deg) translateX(0); }
}
@keyframes v8-scan {
    0%   { transform: translateY(-100%); opacity: 0; }
    40%  { opacity: 1; }
    100% { transform: translateY(800%); opacity: 0; }
}
@keyframes v8-sheen {
    0%, 100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ============================
   Page-load animations
   - Cascading entry for blocks
   - Staggered fade-in for list children
   - Subtle idle micro-animations
   ============================ */
@keyframes v8-slide-down {
    from { opacity: 0; transform: translate3d(0, -12px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes v8-slide-up {
    from { opacity: 0; transform: translate3d(0, 14px, 0); }
    to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes v8-zoom-in {
    from { opacity: 0; transform: scale(0.96); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes v8-breathe {
    0%, 100% { opacity: 0.85; }
    50%      { opacity: 1; }
}

@media (prefers-reduced-motion: no-preference) {
    /* Phase 1: structural shells */
    .v8-navbar { animation: v8-slide-down 0.45s var(--v8-ease-out) both; }
    .v8-tabbar { animation: v8-slide-up 0.45s 0.12s var(--v8-ease-out) both; }
    .v8-hero   { animation: v8-rise 0.55s var(--v8-ease-out) both; }

    /* Phase 2: layout blocks – cascading rise */
    .v8-card, .v8-field, .v8-list, .v8-quickgrid,
    .v8-activity-grid, .v8-list-header, .v8-section-title,
    .v8-section-sub, .v8-plist {
        animation: v8-rise 0.55s var(--v8-ease-out) both;
    }
    .v8-list-header   { animation-delay: 0.06s; animation-duration: 0.4s; }
    .v8-section-title { animation-delay: 0.06s; }
    .v8-section-sub   { animation-delay: 0.08s; animation-duration: 0.45s; }
    .v8-list          { animation-delay: 0.10s; }
    .v8-field         { animation-delay: 0.10s; }
    .v8-quickgrid     { animation-delay: 0.10s; }
    .v8-activity-grid { animation-delay: 0.12s; }

    /* Top-level v8-card cascade (first 6) */
    .v8-card:nth-of-type(1) { animation-delay: 0.10s; }
    .v8-card:nth-of-type(2) { animation-delay: 0.16s; }
    .v8-card:nth-of-type(3) { animation-delay: 0.22s; }
    .v8-card:nth-of-type(4) { animation-delay: 0.28s; }
    .v8-card:nth-of-type(5) { animation-delay: 0.34s; }
    .v8-card:nth-of-type(6) { animation-delay: 0.40s; }

    /* Quickgrid tiles – staggered pop */
    .v8-quickgrid .q-item {
        animation: v8-zoom-in 0.45s var(--v8-spring) both;
    }
    .v8-quickgrid .q-item:nth-child(1) { animation-delay: 0.18s; }
    .v8-quickgrid .q-item:nth-child(2) { animation-delay: 0.22s; }
    .v8-quickgrid .q-item:nth-child(3) { animation-delay: 0.26s; }
    .v8-quickgrid .q-item:nth-child(4) { animation-delay: 0.30s; }
    .v8-quickgrid .q-item:nth-child(5) { animation-delay: 0.34s; }
    .v8-quickgrid .q-item:nth-child(6) { animation-delay: 0.38s; }
    .v8-quickgrid .q-item:nth-child(7) { animation-delay: 0.42s; }
    .v8-quickgrid .q-item:nth-child(8) { animation-delay: 0.46s; }

    /* List rows – stagger inside .v8-list */
    .v8-list .v8-list-row {
        animation: v8-slide-up 0.4s var(--v8-ease-out) both;
    }
    .v8-list .v8-list-row:nth-child(1) { animation-delay: 0.16s; }
    .v8-list .v8-list-row:nth-child(2) { animation-delay: 0.20s; }
    .v8-list .v8-list-row:nth-child(3) { animation-delay: 0.24s; }
    .v8-list .v8-list-row:nth-child(4) { animation-delay: 0.28s; }
    .v8-list .v8-list-row:nth-child(5) { animation-delay: 0.32s; }
    .v8-list .v8-list-row:nth-child(6) { animation-delay: 0.36s; }
    .v8-list .v8-list-row:nth-child(7) { animation-delay: 0.40s; }

    /* Field rows – similar */
    .v8-field .field-row {
        animation: v8-fade-in 0.4s var(--v8-ease-out) both;
    }
    .v8-field .field-row:nth-child(1) { animation-delay: 0.16s; }
    .v8-field .field-row:nth-child(2) { animation-delay: 0.20s; }
    .v8-field .field-row:nth-child(3) { animation-delay: 0.24s; }
    .v8-field .field-row:nth-child(4) { animation-delay: 0.28s; }

    /* Page-specific card classes (record / withdraw / order / task / vip / team / blog / mail / notice / feedback) */
    .v8-rec-card, .v8-wd-card, .v8-order-card, .v8-task,
    .v8-vip-card, .v8-team-card, .v8-blog-card, .v8-fb-card,
    .v8-mail-card, .v8-ntc-card, .v8-pcard, .v8-bal-item,
    .v8-rw-item, .v8-mem-item {
        animation: v8-rise 0.5s var(--v8-ease-out) both;
    }
    .v8-rec-card:nth-of-type(1), .v8-wd-card:nth-of-type(1), .v8-order-card:nth-of-type(1),
    .v8-task:nth-of-type(1), .v8-vip-card:nth-of-type(1), .v8-team-card:nth-of-type(1),
    .v8-blog-card:nth-of-type(1), .v8-fb-card:nth-of-type(1), .v8-mail-card:nth-of-type(1),
    .v8-ntc-card:nth-of-type(1), .v8-pcard:nth-of-type(1) { animation-delay: 0.10s; }
    .v8-rec-card:nth-of-type(2), .v8-wd-card:nth-of-type(2), .v8-order-card:nth-of-type(2),
    .v8-task:nth-of-type(2), .v8-vip-card:nth-of-type(2), .v8-team-card:nth-of-type(2),
    .v8-blog-card:nth-of-type(2), .v8-fb-card:nth-of-type(2), .v8-mail-card:nth-of-type(2),
    .v8-ntc-card:nth-of-type(2), .v8-pcard:nth-of-type(2) { animation-delay: 0.16s; }
    .v8-rec-card:nth-of-type(3), .v8-wd-card:nth-of-type(3), .v8-order-card:nth-of-type(3),
    .v8-task:nth-of-type(3), .v8-vip-card:nth-of-type(3), .v8-team-card:nth-of-type(3),
    .v8-blog-card:nth-of-type(3), .v8-fb-card:nth-of-type(3), .v8-mail-card:nth-of-type(3),
    .v8-ntc-card:nth-of-type(3), .v8-pcard:nth-of-type(3) { animation-delay: 0.22s; }
    .v8-rec-card:nth-of-type(4), .v8-wd-card:nth-of-type(4), .v8-order-card:nth-of-type(4),
    .v8-task:nth-of-type(4), .v8-vip-card:nth-of-type(4), .v8-team-card:nth-of-type(4),
    .v8-blog-card:nth-of-type(4), .v8-fb-card:nth-of-type(4), .v8-mail-card:nth-of-type(4),
    .v8-ntc-card:nth-of-type(4), .v8-pcard:nth-of-type(4) { animation-delay: 0.28s; }

    /* Sub-row patterns (balance details / rewards / member list) */
    .v8-bal-item:nth-child(1), .v8-rw-item:nth-child(1), .v8-mem-item:nth-child(1) { animation-delay: 0.10s; }
    .v8-bal-item:nth-child(2), .v8-rw-item:nth-child(2), .v8-mem-item:nth-child(2) { animation-delay: 0.14s; }
    .v8-bal-item:nth-child(3), .v8-rw-item:nth-child(3), .v8-mem-item:nth-child(3) { animation-delay: 0.18s; }
    .v8-bal-item:nth-child(4), .v8-rw-item:nth-child(4), .v8-mem-item:nth-child(4) { animation-delay: 0.22s; }
    .v8-bal-item:nth-child(5), .v8-rw-item:nth-child(5), .v8-mem-item:nth-child(5) { animation-delay: 0.26s; }

    /* Idle micro-animations to keep page alive */
    .v8-avatar { animation: v8-float 5s ease-in-out 1.2s infinite; }
}

/* ============================
   Navbar (glass)
   ============================ */
.v8-navbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: 50px;
    padding: 0 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(6, 11, 20, 0.72);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid transparent;
    border-image: linear-gradient(90deg, transparent 0%, rgba(110, 255, 154, 0.3) 50%, transparent 100%) 1;
}
.v8-navbar .nav-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--v8-text);
    flex: 1;
    text-align: center;
    letter-spacing: 0.2px;
}
.v8-navbar .nav-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: var(--v8-primary-light);
    background: rgba(110, 255, 154, 0.08);
    border-radius: 10px;
    border: 1px solid rgba(110, 255, 154, 0.14);
    transition: all 0.2s var(--v8-ease-out);
}
.v8-navbar .nav-btn:active {
    transform: scale(0.92);
    background: rgba(110, 255, 154, 0.18);
}
.v8-navbar .nav-btn .layui-icon { font-size: 20px; }
.v8-navbar .nav-spacer { width: 38px; }

/* ============================
   Hero (animated 3D gradient block)
   ============================ */
.v8-hero {
    position: relative;
    padding: 24px 20px 32px;
    color: #fff;
    overflow: hidden;
    background:
        radial-gradient(ellipse 70% 100% at 0% 0%, rgba(110, 255, 154, 0.55) 0%, transparent 55%),
        radial-gradient(ellipse 70% 100% at 100% 100%, rgba(0, 180, 120, 0.6) 0%, transparent 55%),
        linear-gradient(135deg, #0D3F2A 0%, #0A2B1D 55%, #041012 100%);
    border-radius: 0 0 28px 28px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 12px 40px rgba(0, 0, 0, 0.45);
    margin-bottom: 4px;
}
.v8-hero::before {
    content: '';
    position: absolute;
    inset: -20%;
    background:
        radial-gradient(circle at 15% 20%, rgba(110, 255, 154, 0.6) 0%, transparent 12%),
        radial-gradient(circle at 85% 75%, rgba(52, 199, 89, 0.5) 0%, transparent 14%),
        radial-gradient(circle at 60% 30%, rgba(0, 255, 170, 0.3) 0%, transparent 10%);
    filter: blur(40px);
    animation: v8-float 8s ease-in-out infinite;
    pointer-events: none;
}
.v8-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(110, 255, 154, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 255, 154, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    mask-image: linear-gradient(180deg, transparent 0%, #000 40%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 40%, transparent 100%);
    pointer-events: none;
}
.v8-hero > * { position: relative; z-index: 2; }

/* Element directly after hero overlaps upward so the hero's glow bleeds into it */
.v8-hero + .v8-card,
.v8-hero + .v8-quickgrid,
.v8-hero + .v8-list,
.v8-hero + .v8-field {
    margin-top: -16px;
    position: relative;
    z-index: 3;
    background:
        linear-gradient(180deg, rgba(52, 199, 89, 0.12) 0%, transparent 60%),
        var(--v8-bg-elevated);
    border-color: rgba(110, 255, 154, 0.22);
    box-shadow:
        0 -4px 20px rgba(52, 199, 89, 0.2),
        var(--v8-shadow-sm),
        inset 0 1px 0 rgba(110, 255, 154, 0.15);
}

.v8-hero-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}
.v8-hero-user { display: flex; align-items: center; gap: 12px; }

.v8-avatar {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255,255,255,0.25), rgba(255,255,255,0.08));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px; font-weight: 700; color: #fff;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow:
        0 0 0 2px rgba(255, 255, 255, 0.15),
        0 8px 20px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
}
.v8-avatar img { width: 100%; height: 100%; object-fit: cover; }
.v8-hero-name { font-size: 18px; font-weight: 700; letter-spacing: 0.2px; }
.v8-hero-sub { font-size: 13px; opacity: 0.82; margin-top: 2px; }
.v8-hero-title {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.6px;
    line-height: 1.12;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #FFFFFF 0%, #B5F4C9 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 2px 20px rgba(110, 255, 154, 0.25);
    animation: v8-pop-in 0.6s var(--v8-spring) both;
}
.v8-hero-subtitle { font-size: 14px; opacity: 0.88; animation: v8-fade-in 0.7s 0.1s both; }

/* ============================
   Card (glass with gradient border + 3D depth)
   ============================ */
.v8-card {
    position: relative;
    background: linear-gradient(165deg, rgba(22, 32, 48, 0.78) 0%, rgba(14, 22, 36, 0.78) 100%);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: var(--v8-radius);
    margin: 12px;
    padding: 16px;
    /* Layered 3D shadow stack:
       inset top hairline + inset top gloss fade + inset bottom hairline + outer drop + close shadow */
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        inset 0 28px 40px -28px rgba(255, 255, 255, 0.06),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.42),
        0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: transform 0.35s var(--v8-ease-out), box-shadow 0.35s var(--v8-ease-out);
    transform-style: preserve-3d;
}
.v8-card::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(135deg, rgba(110, 255, 154, 0.4) 0%, rgba(110, 255, 154, 0) 40%, rgba(110, 255, 154, 0) 60%, rgba(110, 255, 154, 0.22) 100%);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
            mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
            mask-composite: exclude;
    pointer-events: none;
    opacity: 0.85;
}
.v8-card:hover {
    transform: translateY(-2px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.11),
        inset 0 28px 40px -28px rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        0 16px 36px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(110, 255, 154, 0.22),
        0 0 24px rgba(52, 199, 89, 0.16);
}
.v8-card:active { transform: translateY(1px) scale(0.995); }

.v8-card.v8-card-primary {
    background: linear-gradient(160deg, #114830 0%, #0C3622 50%, #082619 100%);
    color: #fff;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 30px 60px -30px rgba(255, 255, 255, 0.12),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4),
        0 14px 44px rgba(52, 199, 89, 0.32),
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(110, 255, 154, 0.3);
    border: none;
    overflow: hidden;
}
.v8-card.v8-card-primary::before {
    background: linear-gradient(135deg, rgba(110, 255, 154, 0.65), transparent 55%);
    opacity: 1;
}
.v8-card.v8-card-primary::after {
    content: '';
    position: absolute;
    top: -60%; right: -30%;
    width: 220px; height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(110, 255, 154, 0.42) 0%, transparent 60%);
    filter: blur(32px);
    pointer-events: none;
    animation: v8-float 7s ease-in-out infinite;
}
.v8-card.v8-card-primary:hover {
    transform: translateY(-3px) rotateX(1deg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 30px 60px -30px rgba(255, 255, 255, 0.14),
        inset 0 -2px 0 rgba(0, 0, 0, 0.4),
        0 22px 52px rgba(52, 199, 89, 0.42),
        0 6px 16px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(110, 255, 154, 0.4);
}

/* ============================
   Stats grid (used inside hero/card) – embossed 3D
   ============================ */
.v8-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: var(--v8-radius);
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        inset 0 -1px 0 rgba(0, 0, 0, 0.45),
        0 6px 18px rgba(0, 0, 0, 0.3);
}
.v8-stats .stat-item {
    background: linear-gradient(180deg, rgba(8, 14, 22, 0.55) 0%, rgba(8, 14, 22, 0.35) 100%);
    padding: 14px 4px;
    text-align: center;
    backdrop-filter: blur(8px);
    box-shadow: inset 0 14px 24px -14px rgba(255, 255, 255, 0.08);
    transition: background 0.2s var(--v8-ease-out);
}
.v8-stats .stat-item:hover {
    background: linear-gradient(180deg, rgba(110, 255, 154, 0.1) 0%, rgba(8, 14, 22, 0.35) 100%);
}
.v8-stats .stat-value {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #FFFFFF, #B5F4C9);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: v8-pop-in 0.6s var(--v8-spring) both;
}
.v8-stats .stat-label {
    font-size: 11px;
    opacity: 0.78;
    margin-top: 3px;
}

/* ============================
   Quick grid – control panel style
   ============================ */
.v8-quickgrid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px;
    padding: 18px 12px 14px;
    border-radius: var(--v8-radius-lg);
    background:
        linear-gradient(180deg, rgba(110, 255, 154, 0.05) 0%, transparent 50%),
        var(--v8-bg-elevated);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(110, 255, 154, 0.18);
    box-shadow:
        var(--v8-shadow-sm),
        inset 0 1px 0 rgba(110, 255, 154, 0.12),
        inset 0 0 40px rgba(52, 199, 89, 0.04);
    position: relative;
    overflow: hidden;
}
/* Corner status indicator dot */
.v8-quickgrid::before {
    content: '';
    position: absolute;
    top: 10px; right: 12px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--v8-primary-light);
    box-shadow: 0 0 8px var(--v8-primary-light), 0 0 16px rgba(110,255,154,0.4);
    animation: v8-blink 2.2s ease-in-out infinite;
    z-index: 2;
}
/* Horizontal scan-line sweep across the whole panel */
.v8-quickgrid::after {
    content: '';
    position: absolute;
    top: 0; bottom: 0;
    left: -50%;
    width: 40%;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(110, 255, 154, 0.06) 40%,
        rgba(110, 255, 154, 0.12) 50%,
        rgba(110, 255, 154, 0.06) 60%,
        transparent 100%);
    transform: skewX(-14deg);
    animation: v8-panel-scan 5.5s ease-in-out infinite;
    pointer-events: none;
}

@keyframes v8-blink {
    0%, 100% { opacity: 0.45; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.15); }
}
@keyframes v8-panel-scan {
    0%      { left: -50%; opacity: 0; }
    10%     { opacity: 1; }
    90%     { opacity: 1; }
    100%    { left: 110%; opacity: 0; }
}

/* Each tile = mini dock button */
.v8-quickgrid .q-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 10px 4px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: all 0.25s var(--v8-ease-out);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.v8-quickgrid .q-item::before {
    content: '';
    position: absolute;
    top: -30%; left: 50%;
    width: 140%; height: 100%;
    transform: translateX(-50%);
    background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(110, 255, 154, 0.35) 0%, transparent 60%);
    filter: blur(12px);
    opacity: 0;
    transition: opacity 0.3s var(--v8-ease-out);
    pointer-events: none;
}
.v8-quickgrid .q-item:hover,
.v8-quickgrid .q-item:active {
    background: rgba(110, 255, 154, 0.07);
    border-color: rgba(110, 255, 154, 0.22);
    transform: translateY(-1px);
}
.v8-quickgrid .q-item:hover::before,
.v8-quickgrid .q-item:active::before { opacity: 0.6; }
.v8-quickgrid .q-item:active {
    transform: translateY(1px) scale(0.97);
}

/* Icon */
.v8-quickgrid .q-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: #B5F4C9;
    background:
        linear-gradient(180deg, rgba(110, 255, 154, 0.28) 0%, rgba(52, 199, 89, 0.12) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        inset 0 -2px 6px rgba(0, 0, 0, 0.35),
        0 4px 14px rgba(52, 199, 89, 0.3),
        0 0 0 1px rgba(110, 255, 154, 0.2);
    transition: all 0.3s var(--v8-ease-out);
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.v8-quickgrid .q-icon .layui-icon {
    filter: drop-shadow(0 0 4px rgba(110, 255, 154, 0.5));
}
.v8-quickgrid .q-icon img {
    width: 26px; height: 26px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.4)) drop-shadow(0 0 6px rgba(110, 255, 154, 0.4));
    transition: transform 0.25s var(--v8-ease-out);
    position: relative;
    z-index: 2;
}
.v8-quickgrid .q-item:active .q-icon img { transform: scale(0.88); }
.v8-quickgrid .q-icon::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.35) 50%, transparent 100%);
    transform: translateX(-150%) skewX(-18deg);
}
.v8-quickgrid .q-item:hover .q-icon::after,
.v8-quickgrid .q-item:active .q-icon::after {
    animation: v8-shimmer 0.9s var(--v8-ease-out);
}
/* Accent color variants – softened to harmonize with green base */
.v8-quickgrid .q-icon.icon-orange {
    color: #FFD69A;
    background: linear-gradient(180deg, rgba(255, 177, 65, 0.32) 0%, rgba(255, 122, 0, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 6px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(255, 149, 0, 0.28), 0 0 0 1px rgba(255, 177, 65, 0.22);
}
.v8-quickgrid .q-icon.icon-blue {
    color: #B5DBFF;
    background: linear-gradient(180deg, rgba(110, 181, 255, 0.3) 0%, rgba(30, 123, 255, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 6px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(79, 168, 255, 0.28), 0 0 0 1px rgba(110, 181, 255, 0.22);
}
.v8-quickgrid .q-icon.icon-red {
    color: #FFC0C7;
    background: linear-gradient(180deg, rgba(255, 137, 148, 0.3) 0%, rgba(255, 71, 87, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 -2px 6px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(255, 81, 96, 0.28), 0 0 0 1px rgba(255, 137, 148, 0.22);
}
.v8-quickgrid .q-icon.icon-yellow {
    color: #FFEFA8;
    background: linear-gradient(180deg, rgba(255, 224, 102, 0.32) 0%, rgba(255, 179, 65, 0.12) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), inset 0 -2px 6px rgba(0, 0, 0, 0.35), 0 4px 14px rgba(255, 204, 0, 0.28), 0 0 0 1px rgba(255, 224, 102, 0.22);
}
.v8-quickgrid .q-icon.icon-orange .layui-icon,
.v8-quickgrid .q-icon.icon-orange img { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) drop-shadow(0 0 6px rgba(255, 177, 65, 0.55)); }
.v8-quickgrid .q-icon.icon-blue .layui-icon,
.v8-quickgrid .q-icon.icon-blue img   { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) drop-shadow(0 0 6px rgba(110, 181, 255, 0.55)); }
.v8-quickgrid .q-icon.icon-red .layui-icon,
.v8-quickgrid .q-icon.icon-red img    { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) drop-shadow(0 0 6px rgba(255, 137, 148, 0.55)); }
.v8-quickgrid .q-icon.icon-yellow .layui-icon,
.v8-quickgrid .q-icon.icon-yellow img { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4)) drop-shadow(0 0 6px rgba(255, 224, 102, 0.55)); }

.v8-quickgrid .q-label {
    font-size: 12px;
    color: var(--v8-text);
    font-weight: 600;
    letter-spacing: 0.3px;
    position: relative;
    z-index: 1;
}

/* ============================
   Activity Center – 3D tilted cards
   ============================ */
.v8-activity-grid {
    display: grid;
    gap: 10px;
    margin: 0 12px 20px;
    perspective: 800px;
}
.v8-act-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
    background:
        linear-gradient(145deg, rgba(22, 32, 48, 0.9) 0%, rgba(10, 16, 26, 0.9) 100%);
    border: 1px solid rgba(110, 255, 154, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.5),
        0 10px 24px rgba(0, 0, 0, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s var(--v8-ease-out), box-shadow 0.3s var(--v8-ease-out);
    color: var(--v8-text);
    animation: v8-rise 0.5s var(--v8-ease-out) both;
}
.v8-act-card:nth-child(1) { animation-delay: 0.04s; }
.v8-act-card:nth-child(2) { animation-delay: 0.08s; }
.v8-act-card:nth-child(3) { animation-delay: 0.12s; }
.v8-act-card:nth-child(4) { animation-delay: 0.16s; }

/* Top highlight gloss layer */
.v8-act-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
/* Accent glow slab behind the icon (left side) */
.v8-act-card::after {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 90px; height: 100%;
    background: radial-gradient(ellipse 70% 80% at 10% 50%, rgba(110, 255, 154, 0.32) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
    opacity: 0.85;
}
.v8-act-card:hover,
.v8-act-card:active {
    transform: translateY(-2px) rotateX(2deg);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        0 16px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(110, 255, 154, 0.25);
}
.v8-act-card:active {
    transform: translateY(1px) rotateX(0deg) scale(0.99);
}

/* Color variants: affect the left-side glow and the card border */
.v8-act-card.act-orange { border-color: rgba(255, 177, 65, 0.18); }
.v8-act-card.act-orange::after { background: radial-gradient(ellipse 70% 80% at 10% 50%, rgba(255, 177, 65, 0.32) 0%, transparent 65%); }
.v8-act-card.act-blue   { border-color: rgba(110, 181, 255, 0.18); }
.v8-act-card.act-blue::after { background: radial-gradient(ellipse 70% 80% at 10% 50%, rgba(110, 181, 255, 0.32) 0%, transparent 65%); }
.v8-act-card.act-red    { border-color: rgba(255, 137, 148, 0.18); }
.v8-act-card.act-red::after { background: radial-gradient(ellipse 70% 80% at 10% 50%, rgba(255, 137, 148, 0.32) 0%, transparent 65%); }

/* Icon container – pronounced 3D */
.v8-act-card .act-icon {
    width: 56px; height: 56px;
    border-radius: 16px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    background:
        linear-gradient(160deg, rgba(110, 255, 154, 0.35) 0%, rgba(52, 199, 89, 0.18) 55%, rgba(29, 166, 74, 0.25) 100%);
    box-shadow:
        inset 0 2px 4px rgba(255, 255, 255, 0.35),
        inset 0 -3px 6px rgba(0, 0, 0, 0.45),
        inset 0 0 0 1px rgba(255, 255, 255, 0.12),
        0 6px 16px rgba(52, 199, 89, 0.38),
        0 2px 4px rgba(0, 0, 0, 0.3);
    transform: translateZ(8px);
}
.v8-act-card.act-orange .act-icon {
    background: linear-gradient(160deg, rgba(255, 214, 154, 0.4) 0%, rgba(255, 149, 0, 0.2) 55%, rgba(230, 108, 0, 0.28) 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.35), inset 0 -3px 6px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.12), 0 6px 16px rgba(255, 149, 0, 0.38), 0 2px 4px rgba(0,0,0,0.3);
}
.v8-act-card.act-blue .act-icon {
    background: linear-gradient(160deg, rgba(181, 219, 255, 0.4) 0%, rgba(79, 168, 255, 0.2) 55%, rgba(30, 123, 255, 0.28) 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.35), inset 0 -3px 6px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.12), 0 6px 16px rgba(79, 168, 255, 0.38), 0 2px 4px rgba(0,0,0,0.3);
}
.v8-act-card.act-red .act-icon {
    background: linear-gradient(160deg, rgba(255, 192, 199, 0.4) 0%, rgba(255, 81, 96, 0.2) 55%, rgba(220, 38, 53, 0.28) 100%);
    box-shadow: inset 0 2px 4px rgba(255,255,255,0.35), inset 0 -3px 6px rgba(0,0,0,0.45), inset 0 0 0 1px rgba(255,255,255,0.12), 0 6px 16px rgba(255, 81, 96, 0.38), 0 2px 4px rgba(0,0,0,0.3);
}

.v8-act-card .act-icon img {
    width: 30px; height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 6px rgba(110, 255, 154, 0.5));
    transition: transform 0.3s var(--v8-ease-out);
}
.v8-act-card.act-orange .act-icon img { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) drop-shadow(0 0 6px rgba(255, 177, 65, 0.6)); }
.v8-act-card.act-blue .act-icon img   { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) drop-shadow(0 0 6px rgba(110, 181, 255, 0.6)); }
.v8-act-card.act-red .act-icon img    { filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5)) drop-shadow(0 0 6px rgba(255, 137, 148, 0.6)); }
.v8-act-card:hover .act-icon img { transform: scale(1.08); }

.v8-act-card .act-body { flex: 1; min-width: 0; position: relative; z-index: 2; }
.v8-act-card .act-title { font-size: 16px; font-weight: 700; color: var(--v8-text); letter-spacing: 0.1px; }
.v8-act-card .act-desc { font-size: 12px; color: var(--v8-text-tertiary); margin-top: 4px; line-height: 1.4; word-break: break-all; }
.v8-act-card .act-highlight { color: var(--v8-primary-light); font-weight: 700; text-shadow: 0 0 8px rgba(110, 255, 154, 0.4); }

.v8-act-card .act-action {
    padding: 7px 14px;
    border-radius: 10px;
    background: linear-gradient(180deg, rgba(110, 255, 154, 0.22) 0%, rgba(52, 199, 89, 0.1) 100%);
    color: var(--v8-primary-light);
    font-size: 12px;
    font-weight: 700;
    border: 1px solid rgba(110, 255, 154, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 8px rgba(52, 199, 89, 0.25);
    letter-spacing: 0.3px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}
.v8-act-card .act-chevron {
    font-size: 16px;
    color: var(--v8-text-tertiary);
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    transition: transform 0.25s var(--v8-ease-out);
}
.v8-act-card:hover .act-chevron { transform: translateX(3px); color: var(--v8-primary-light); }

/* ============================
   Section titles
   ============================ */
.v8-section-title {
    font-size: 20px;
    font-weight: 800;
    padding: 20px 20px 6px;
    letter-spacing: -0.3px;
    color: var(--v8-text);
    display: flex;
    align-items: center;
    gap: 10px;
}
.v8-section-title::before {
    content: '';
    width: 4px;
    height: 18px;
    background: linear-gradient(180deg, var(--v8-primary-light), var(--v8-primary));
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(110, 255, 154, 0.7);
    flex-shrink: 0;
}
.v8-section-sub {
    font-size: 13px;
    color: var(--v8-text-tertiary);
    padding: 0 20px 8px;
}
.v8-list-header {
    font-size: 12px;
    color: var(--v8-text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 18px 28px 8px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.v8-list-header::before {
    content: '';
    width: 3px;
    height: 12px;
    background: linear-gradient(180deg, var(--v8-primary-light), var(--v8-primary));
    border-radius: 2px;
    box-shadow: 0 0 8px rgba(110, 255, 154, 0.6);
}

/* ============================
   List (grouped) – with 3D depth
   ============================ */
.v8-list {
    position: relative;
    background: linear-gradient(165deg, rgba(22, 32, 48, 0.78) 0%, rgba(14, 22, 36, 0.78) 100%);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: var(--v8-radius);
    margin: 12px;
    overflow: hidden;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        inset 0 24px 36px -24px rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.42),
        0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.v8-list-row {
    display: flex;
    align-items: center;
    padding: 13px 16px;
    min-height: 52px;
    position: relative;
    transition: background 0.2s var(--v8-ease-out), padding-left 0.2s var(--v8-ease-out);
    color: var(--v8-text);
}
.v8-list-row:hover {
    background: var(--v8-bg-hover);
    padding-left: 18px;
}
.v8-list-row:active {
    background: rgba(110, 255, 154, 0.13);
    transform: scale(0.997);
}
.v8-list-row + .v8-list-row::before {
    content: '';
    position: absolute;
    top: 0; left: 58px; right: 0;
    height: 1px;
    background: var(--v8-separator);
}
.v8-list-row .row-icon {
    width: 34px; height: 34px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    margin-right: 14px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--v8-primary) 0%, var(--v8-primary-deep) 100%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 10px rgba(52, 199, 89, 0.3);
}
.v8-list-row .row-icon.icon-orange { background: linear-gradient(135deg, #FFA94D, #FF7A00); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 10px rgba(255,149,0,0.35); }
.v8-list-row .row-icon.icon-blue   { background: linear-gradient(135deg, #6EB5FF, #1E7BFF); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 10px rgba(79,168,255,0.35); }
.v8-list-row .row-icon.icon-red    { background: linear-gradient(135deg, #FF8994, #FF4757); box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 4px 10px rgba(255,81,96,0.35); }
.v8-list-row .row-icon.icon-yellow { background: linear-gradient(135deg, #FFE066, #FFB341); color:#3D2B00; box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 4px 10px rgba(255,204,0,0.35); }
.v8-list-row .row-icon.icon-gray   { background: linear-gradient(135deg, #4E5768, #2A3040); }
.v8-list-row .row-title { flex: 1; font-size: 15px; color: var(--v8-text); font-weight: 500; }
.v8-list-row .row-value { color: var(--v8-text-tertiary); font-size: 14px; margin-right: 6px; }
.v8-list-row .row-chevron {
    font-size: 14px;
    color: var(--v8-text-quaternary);
    margin-left: 4px;
}

/* ============================
   Tabbar (glass with neon indicator)
   ============================ */
.v8-tabbar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    height: calc(60px + var(--v8-safe-bottom));
    padding-bottom: var(--v8-safe-bottom);
    background: rgba(6, 11, 20, 0.82);
    backdrop-filter: saturate(180%) blur(26px);
    -webkit-backdrop-filter: saturate(180%) blur(26px);
    border-top: 1px solid rgba(110, 255, 154, 0.12);
    display: flex;
    z-index: 100;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.5);
}
.v8-tabbar::before {
    content: '';
    position: absolute;
    top: -1px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(110,255,154,0.6) 50%, transparent 100%);
    animation: v8-sheen 6s ease-in-out infinite;
    background-size: 200% 100%;
}
.v8-tabbar .tab {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: var(--v8-text-tertiary);
    font-size: 10px;
    font-weight: 500;
    transition: color 0.2s var(--v8-ease-out);
    position: relative;
}
.v8-tabbar .tab .layui-icon {
    font-size: 22px;
    line-height: 1;
    transition: transform 0.25s var(--v8-spring);
}
.v8-tabbar .tab:active .layui-icon { transform: scale(0.88); }
.v8-tabbar .tab.active {
    color: var(--v8-primary-light);
    text-shadow: 0 0 8px rgba(110, 255, 154, 0.5);
}
.v8-tabbar .tab.active .layui-icon {
    transform: translateY(-1px) scale(1.08);
    filter: drop-shadow(0 0 6px rgba(110, 255, 154, 0.6));
}
.v8-tabbar .tab.active::before {
    content: '';
    position: absolute;
    top: 6px; left: 50%;
    transform: translateX(-50%);
    width: 22px; height: 3px;
    border-radius: 2px;
    background: var(--v8-primary-light);
    box-shadow: 0 0 8px rgba(110, 255, 154, 0.8);
    animation: v8-pop-in 0.4s var(--v8-spring);
}

/* ============================
   Buttons (3D depth + shimmer)
   ============================ */
.v8-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    height: 46px;
    border-radius: var(--v8-radius);
    background: linear-gradient(180deg, #3FDD68 0%, var(--v8-primary) 50%, var(--v8-primary-deep) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.2px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -2px 6px rgba(0, 0, 0, 0.2),
        0 4px 14px rgba(52, 199, 89, 0.45),
        0 0 0 1px rgba(110, 255, 154, 0.25);
    transition: transform 0.1s var(--v8-ease-out), box-shadow 0.2s var(--v8-ease-out);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}
.v8-btn::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 40%; height: 100%;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.4) 50%, transparent 100%);
    transform: translateX(-150%) skewX(-18deg);
    pointer-events: none;
}
.v8-btn:not(.v8-btn-secondary):not(.v8-btn-ghost):not(.v8-btn-outline)::before {
    animation: v8-shimmer 2.8s 0.6s ease-in-out infinite;
}
.v8-btn:active {
    transform: translateY(2px) scale(0.98);
    box-shadow:
        inset 0 2px 4px rgba(0, 0, 0, 0.3),
        0 2px 6px rgba(52, 199, 89, 0.3),
        0 0 0 1px rgba(110, 255, 154, 0.2);
}
.v8-btn.v8-btn-block { display: flex; width: 100%; }
.v8-btn.v8-btn-ghost {
    background: rgba(110, 255, 154, 0.12);
    color: var(--v8-primary-light);
    border: 1px solid rgba(110, 255, 154, 0.25);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-shadow: none;
}
.v8-btn.v8-btn-ghost::before { animation: none; }
.v8-btn.v8-btn-outline {
    background: transparent;
    color: var(--v8-primary-light);
    border: 1.5px solid rgba(110, 255, 154, 0.45);
    box-shadow: none;
    text-shadow: none;
}
.v8-btn.v8-btn-outline::before { animation: none; }
.v8-btn.v8-btn-secondary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.02) 100%);
    color: var(--v8-text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    text-shadow: none;
}
.v8-btn.v8-btn-secondary::before { animation: none; }
.v8-btn.v8-btn-pill { border-radius: var(--v8-radius-pill); }
.v8-btn.v8-btn-sm { height: 36px; padding: 0 16px; font-size: 14px; border-radius: 10px; }

/* layui overrides */
.layui-btn {
    background: linear-gradient(180deg, #3FDD68 0%, var(--v8-primary) 50%, var(--v8-primary-deep) 100%);
    border-radius: var(--v8-radius);
    font-weight: 700;
    height: 46px;
    line-height: 46px;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 4px 14px rgba(52,199,89,0.45);
}
.layui-btn-primary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--v8-text);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}
.layui-input, .layui-select, .layui-textarea {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    color: var(--v8-text);
}
.layui-input:focus, .layui-textarea:focus {
    border-color: rgba(110,255,154,0.4);
    box-shadow: 0 0 0 3px rgba(110,255,154,0.12);
}

/* Lift the .v8-field whose select dropdown is open above sibling fields/cards.
   Needed because .v8-field has backdrop-filter → creates a stacking context,
   so dropdown's z-index can't escape upward on its own. */
.v8-field:has(.layui-form-select) { z-index: 100; position: relative; }
.v8-field:has(.layui-form-selected) { z-index: 9999; }
/* JS-toggled fallback for browsers without :has() support.
   The .v8-select-open class is added by JS when a layui select is open.
   We hide standalone inputs in the form so they can't intercept taps on
   the dropdown that may overlay them (including across sibling .v8-field). */
.v8-field.v8-select-open { z-index: 9999; position: relative; }
.v8-select-open input.field-input { visibility: hidden; pointer-events: none; }

/* layui form-select dropdown – dark theme + escape clipping */
.v8-field .field-row .layui-form-select {
    flex: 1;
    min-width: 0;
    position: relative;
}
.v8-field .field-row .layui-form-select .layui-select-title input {
    background: transparent !important;
    border: none !important;
    color: var(--v8-text) !important;
    height: 54px;
    padding: 0 26px 0 0;
    box-shadow: none !important;
    cursor: pointer;
}
.v8-field .field-row .layui-form-select .layui-select-title input::placeholder { color: var(--v8-text-quaternary); }
.v8-field .field-row .layui-form-select .layui-edge {
    border-top-color: var(--v8-text-tertiary);
    right: 6px;
}
.v8-field .field-row .layui-form-selected .layui-edge {
    border-top-color: var(--v8-primary-light);
}
.layui-form-select dl,
dl.v8-floating-dl {
    background: #000000 !important;
    border: 1px solid rgba(110, 255, 154, 0.25) !important;
    border-radius: var(--v8-radius) !important;
    box-shadow: var(--v8-shadow-lg), 0 0 24px rgba(110, 255, 154, 0.18) !important;
    color: var(--v8-text) !important;
    z-index: 9999;
    margin-top: 6px;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    max-height: 280px !important;
    -webkit-overflow-scrolling: touch;
}
.layui-form-select dl::-webkit-scrollbar,
dl.v8-floating-dl::-webkit-scrollbar { width: 6px; }
.layui-form-select dl::-webkit-scrollbar-track,
dl.v8-floating-dl::-webkit-scrollbar-track { background: transparent; }
.layui-form-select dl::-webkit-scrollbar-thumb,
dl.v8-floating-dl::-webkit-scrollbar-thumb { background: rgba(110,255,154,0.28); border-radius: 3px; }
.layui-form-select dl dd,
dl.v8-floating-dl dd {
    color: var(--v8-text) !important;
    padding: 0 14px;
    line-height: 38px;
    transition: background 0.15s var(--v8-ease-out);
}
.layui-form-select dl dd:hover,
dl.v8-floating-dl dd:hover {
    background: rgba(110, 255, 154, 0.1) !important;
    color: var(--v8-primary-light) !important;
}
.layui-form-select dl dd.layui-this,
dl.v8-floating-dl dd.layui-this {
    background: rgba(110, 255, 154, 0.18) !important;
    color: var(--v8-primary-light) !important;
    font-weight: 600;
}
.layui-form-select dl dd.layui-select-tips,
dl.v8-floating-dl dd.layui-select-tips {
    color: var(--v8-text-tertiary) !important;
}
.layui-form-select dl dd.layui-disabled,
dl.v8-floating-dl dd.layui-disabled {
    color: var(--v8-text-quaternary) !important;
    background: transparent !important;
}

/* ============================
   Form field (grouped rows) – with 3D depth
   ============================ */
.v8-field {
    position: relative;
    background: linear-gradient(165deg, rgba(22, 32, 48, 0.78) 0%, rgba(14, 22, 36, 0.78) 100%);
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    border-radius: var(--v8-radius);
    margin: 12px;
    /* overflow visible so layui select dropdown / date-picker can escape */
    overflow: visible;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        inset 0 24px 36px -24px rgba(255, 255, 255, 0.05),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.42),
        0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: box-shadow 0.3s var(--v8-ease-out);
}
.v8-field:focus-within {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 24px 36px -24px rgba(110, 255, 154, 0.08),
        inset 0 -1px 0 rgba(0, 0, 0, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(110, 255, 154, 0.32),
        0 0 24px rgba(52, 199, 89, 0.18);
}
.v8-field .field-row {
    display: flex;
    align-items: center;
    padding: 0 16px;
    min-height: 54px;
    position: relative;
}
.v8-field .field-row + .field-row::before {
    content: '';
    position: absolute;
    top: 0; left: 16px; right: 16px;
    height: 1px;
    background: var(--v8-separator);
}
.v8-field .field-label {
    width: 96px;
    color: var(--v8-text);
    font-size: 14px;
    font-weight: 500;
    flex-shrink: 0;
}
.v8-field .field-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    color: var(--v8-text);
    padding: 14px 0;
    min-width: 0;
    -webkit-appearance: none;
    position: relative;
    z-index: 1;
}
.v8-field .field-input::placeholder { color: var(--v8-text-quaternary); }
/* When a select dropdown is open in this field, hide other rows' inputs
   to prevent native input from rendering above the dropdown (mobile browser quirk). */
.v8-field:has(.layui-form-selected) .field-row:not(:has(.layui-form-selected)) .field-input,
.v8-field:has(.layui-form-selected) .field-row:not(:has(.layui-form-selected)) input,
.v8-field:has(.layui-form-selected) .field-row:not(:has(.layui-form-selected)) select {
    visibility: hidden;
}
.v8-field .field-input option { background: var(--v8-bg-elev-solid); color: var(--v8-text); }
.v8-field .field-row:focus-within {
    background: rgba(110, 255, 154, 0.05);
}
.v8-field .field-suffix {
    color: var(--v8-primary-light);
    font-size: 14px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(110, 255, 154, 0.12);
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s var(--v8-ease-out);
}
.v8-field .field-suffix:active { transform: scale(0.94); }
.v8-field .field-suffix.disabled { color: var(--v8-text-tertiary); background: rgba(255,255,255,0.06); pointer-events: none; }

/* Standalone input (auth page) */
.v8-auth-input {
    display: flex;
    align-items: center;
    height: 52px;
    padding: 0 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--v8-radius);
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.25s var(--v8-ease-out);
}
.v8-auth-input:focus-within {
    background: rgba(110, 255, 154, 0.06);
    border-color: rgba(110, 255, 154, 0.4);
    box-shadow: 0 0 0 3px rgba(110, 255, 154, 0.12);
}
.v8-auth-input .layui-icon {
    color: var(--v8-text-tertiary);
    font-size: 18px;
    margin-right: 10px;
    transition: color 0.2s;
}
.v8-auth-input:focus-within .layui-icon { color: var(--v8-primary-light); }
.v8-auth-input input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--v8-text);
    min-width: 0;
}
.v8-auth-input input::placeholder { color: var(--v8-text-quaternary); }
.v8-auth-input .suffix-btn {
    color: var(--v8-primary-light);
    font-size: 14px;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 8px;
    background: rgba(110, 255, 154, 0.14);
    border: 1px solid rgba(110, 255, 154, 0.22);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s var(--v8-ease-out);
}
.v8-auth-input .suffix-btn:active { transform: scale(0.94); }
.v8-auth-input .suffix-btn.disabled {
    color: var(--v8-text-tertiary);
    background: rgba(255, 255, 255, 0.05);
    border-color: transparent;
    pointer-events: none;
}

/* ============================
   Badges – with subtle 3D
   ============================ */
.v8-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: var(--v8-radius-pill);
    font-size: 11px;
    font-weight: 700;
    background: linear-gradient(180deg, rgba(110, 255, 154, 0.22) 0%, rgba(52, 199, 89, 0.1) 100%);
    color: var(--v8-primary-light);
    line-height: 1.4;
    letter-spacing: 0.3px;
    border: 1px solid rgba(110, 255, 154, 0.3);
    text-transform: uppercase;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.15),
        0 2px 6px rgba(52, 199, 89, 0.15);
}
.v8-badge.v8-badge-vip {
    background: linear-gradient(180deg, rgba(255, 177, 65, 0.28) 0%, rgba(255, 149, 0, 0.12) 100%);
    color: #FFB341;
    border-color: rgba(255, 149, 0, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 2px 6px rgba(255, 149, 0, 0.18);
}
.v8-badge.v8-badge-gray {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    color: var(--v8-text-tertiary);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ============================
   Progress
   ============================ */
.v8-progress {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
}
.v8-progress .bar {
    height: 100%;
    background: linear-gradient(90deg, var(--v8-primary-deep) 0%, var(--v8-primary) 50%, var(--v8-primary-light) 100%);
    border-radius: 4px;
    position: relative;
    box-shadow: 0 0 10px rgba(110, 255, 154, 0.6);
    transition: width 0.5s var(--v8-ease-out);
}
.v8-progress .bar::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.35) 50%, transparent 100%);
    animation: v8-shimmer 2s infinite;
}
.v8-progress.on-dark { background: rgba(255, 255, 255, 0.15); }
.v8-progress.on-dark .bar { background: linear-gradient(90deg, #FFFFFF 0%, #B5F4C9 100%); box-shadow: 0 0 10px rgba(255,255,255,0.5); }

/* ============================
   layer (popup) theming
   ============================ */
.layui-layer {
    border-radius: var(--v8-radius-lg) !important;
    box-shadow: var(--v8-shadow-lg), 0 0 32px rgba(110, 255, 154, 0.2) !important;
    background: var(--v8-bg-elev-solid) !important;
    color: var(--v8-text) !important;
    border: 1px solid rgba(110, 255, 154, 0.18);
}
.layui-layer-msg { border-radius: var(--v8-radius) !important; background: rgba(18,26,40,0.95) !important; color: #fff !important; border: 1px solid rgba(110,255,154,0.2) !important; }
.layui-layer-title { background: transparent !important; color: var(--v8-text) !important; border-bottom: 1px solid var(--v8-separator) !important; }
/* close buttons: make visible on dark bg, and prevent clipping */
.layui-layer .layui-layer-setwin { top: 12px; right: 12px; }
.layui-layer .layui-layer-setwin a { background-color: rgba(255,255,255,0.08) !important; border-radius: 50%; width: 24px; height: 24px; }
.layui-layer .layui-layer-close1 { background-position: -140px -51px !important; filter: invert(0.85) brightness(1.2); }
.layui-layer .layui-layer-close2 { border: 1px solid rgba(110,255,154,0.4) !important; background-color: var(--v8-bg-elev-solid) !important; }

/* ============================
   Text / utility
   ============================ */
.v8-text-primary   { color: var(--v8-primary-light); }
.v8-text-danger    { color: var(--v8-danger); }
.v8-text-secondary { color: var(--v8-text-secondary); }
.v8-text-tertiary  { color: var(--v8-text-tertiary); }
.v8-text-xl { font-size: 22px; font-weight: 800; letter-spacing: -0.3px; }
.v8-text-lg { font-size: 18px; font-weight: 700; }
.v8-text-md { font-size: 15px; }
.v8-text-sm { font-size: 13px; }
.v8-text-xs { font-size: 11px; }
.v8-bold  { font-weight: 700; }
.v8-hide  { display: none !important; }
.v8-center { text-align: center; }

.v8-stack { display: flex; flex-direction: column; }
.v8-row   { display: flex; align-items: center; }
.v8-row-between { display: flex; align-items: center; justify-content: space-between; }
.v8-gap-4  { gap: 4px; }
.v8-gap-8  { gap: 8px; }
.v8-gap-12 { gap: 12px; }
.v8-flex-1 { flex: 1; min-width: 0; }
.v8-mt-4  { margin-top: 4px; }
.v8-mt-8  { margin-top: 8px; }
.v8-mt-12 { margin-top: 12px; }
.v8-mt-16 { margin-top: 16px; }
.v8-mt-20 { margin-top: 20px; }

/* numeric display */
.v8-num { font-variant-numeric: tabular-nums; font-feature-settings: 'tnum'; }

/* ============================
   Scrollbar (webkit)
   ============================ */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(110, 255, 154, 0.18); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(110, 255, 154, 0.32); }

/* ============================
   Responsive clamp
   ============================ */
@media (min-width: 560px) {
    body {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 80px rgba(52, 199, 89, 0.18);
    }
    .v8-tabbar {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
