/* ============================================================
   VOLTX — EV VEHICLE INVESTMENT · identity layer
   Loads AFTER style.css + nft.css. Adds the "electric vehicle
   investment" visual language: charging-grid backdrop, battery
   balance gauge, volt-lime energy accents, charging shimmer.
   ============================================================ */

/* ── Page backdrop ── */
html body {
    background:
        radial-gradient(circle at 8% -4%, rgba(0, 184, 255, 0.14) 0%, transparent 38%) fixed,
        radial-gradient(circle at 96% 6%, rgba(0, 198, 255, 0.10) 0%, transparent 36%) fixed,
        #0d0b25 !important;
}
body::before {
    background: radial-gradient(circle, var(--ev-volt-glow) 0%, transparent 70%) !important;
    opacity: 0.35 !important;
}
body::after {
    background: radial-gradient(circle, rgba(0, 184, 255, 0.25) 0%, transparent 70%) !important;
    opacity: 0.4 !important;
}

/* ═══════════ HEADER — EV brand lockup ═══════════ */
.logo { flex-direction: column; align-items: flex-start; gap: 2px; }
.logo::after {
    content: none;
    font-size: 8.5px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--rb-2);
    padding-left: 2px;
}

/* ══════════════════════════════════════════════════════════
   SIDEBAR — EV charging-console drawer (new look)
   Structure: aside.nft-sidebar#nftSidebar > .evs
   JS still toggles .open / #sbOverlay.active / body.sb-open
   ══════════════════════════════════════════════════════════ */
.nft-sidebar {
    width: 302px !important;
    left: -302px !important;
    background: linear-gradient(190deg, #10307a 0%, #081229 58%, #07122b 100%) !important;
    border-right: 1px solid rgba(47, 214, 255, 0.12) !important;
    box-shadow: 26px 0 64px -22px rgba(0, 0, 0, 0.60) !important;
    overflow: hidden !important;
}
.nft-sidebar.open { left: 0 !important; }
.sb-overlay { background: rgba(12, 10, 32, 0.72) !important; -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }

.evs {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 16px 14px 18px;
    color: #f3f1ff;
    font-family: 'Sora', 'Plus Jakarta Sans', sans-serif;
}
.evs::before {
    content: '';
    position: absolute; top: -50px; right: -50px;
    width: 210px; height: 210px; border-radius: 50%;
    background: radial-gradient(circle, rgba(47, 214, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.evs-close {
    position: absolute; top: 12px; right: 12px; z-index: 3;
    width: 30px; height: 30px; border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
.evs-close:hover { background: #ef4444; color: #fff; transform: rotate(90deg); }

/* profile */
.evs-profile {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 40px 16px 4px;
    position: relative;
}
.evs-ava {
    width: 48px; height: 48px; flex-shrink: 0;
    border-radius: 15px; padding: 2px;
    background: linear-gradient(135deg, #2fd6ff, #8f73ff);
}
.evs-ava img { width: 100%; height: 100%; border-radius: 13px; object-fit: cover; display: block; background: #081229; }
.evs-profile-txt { flex: 1; min-width: 0; }
.evs-profile-txt h4 {
    font-size: 14.5px; font-weight: 700; color: #fff; margin: 0;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.evs-code {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; color: rgba(255, 255, 255, 0.55);
    font-family: 'Plus Jakarta Sans', monospace; margin-top: 3px;
}
.evs-badge {
    position: absolute; top: 8px; right: 4px;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 8px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.5px;
    padding: 4px 8px; border-radius: 999px;
}
.evs-badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.evs-badge.on { background: rgba(47, 214, 255, 0.16); color: #8be4ff; }
.evs-badge.off { background: rgba(239, 68, 68, 0.16); color: #fca5a5; }

/* wallet strip */
.evs-wallet {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    padding: 12px 13px;
    border-radius: 16px;
    text-decoration: none;
    background: linear-gradient(135deg, rgba(31, 107, 255, 0.24), rgba(6, 182, 212, 0.14));
    border: 1px solid rgba(47, 214, 255, 0.22);
    position: relative; overflow: hidden;
}
.evs-wallet > * { position: relative; z-index: 1; }
.evs-wallet::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(115deg, transparent 45%, rgba(255, 255, 255, 0.10) 50%, transparent 55%);
    background-size: 250% 100%;
    animation: evsSweep 5s ease-in-out infinite;
}
@keyframes evsSweep { 0%, 72% { background-position: 130% 0; } 100% { background-position: -30% 0; } }
.evs-wallet-lbl { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.9px; color: rgba(255, 255, 255, 0.62); }
.evs-wallet-val { display: block; font-size: 19px; font-weight: 800; color: #fff; margin-top: 2px; }
.evs-wallet-add {
    flex-shrink: 0;
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 10px; font-weight: 800;
    padding: 7px 11px; border-radius: 999px;
    background: linear-gradient(135deg, #2fd6ff, #8f73ff);
    color: #d0daef;
}

/* mini stats */
.evs-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 9px; }
.evs-mini > div {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px; padding: 9px 11px;
}
.evs-mini b { display: block; font-size: 13px; font-weight: 800; color: #8be4ff; font-variant-numeric: tabular-nums; }
.evs-mini span { font-size: 8px; text-transform: uppercase; letter-spacing: 0.5px; color: rgba(255, 255, 255, 0.5); }

/* nav */
.evs-nav { flex: 1; min-height: 0; margin-top: 12px; overflow-y: auto; scrollbar-width: none; }
.evs-nav::-webkit-scrollbar { display: none; }
.evs-grp {
    font-size: 8.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.8px;
    color: rgba(47, 214, 255, 0.55);
    padding: 13px 10px 6px;
}
.evs-item {
    display: flex; align-items: center; gap: 12px;
    padding: 9px 11px;
    border-radius: 13px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12.5px; font-weight: 600;
    transition: background 0.2s, color 0.2s;
    position: relative;
}
.evs-i {
    width: 30px; height: 30px; flex-shrink: 0;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    background: rgba(255, 255, 255, 0.06);
    color: #2fd6ff;
    transition: background 0.2s, color 0.2s;
}
.evs-item > span:not(.evs-i) { flex: 1; }
.evs-chev { font-size: 9px; color: rgba(255, 255, 255, 0.22); }
.evs-item:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.evs-item:hover .evs-i { background: rgba(47, 214, 255, 0.18); }
.evs-item.is-active {
    background: linear-gradient(135deg, rgba(47, 214, 255, 0.20), rgba(31, 107, 255, 0.10));
    color: #fff;
}
.evs-item.is-active .evs-i { background: linear-gradient(135deg, #2fd6ff, #8f73ff); color: #d0daef; }
.evs-item.is-active .evs-chev { color: #2fd6ff; }
.evs-item.is-active::before {
    content: ''; position: absolute; left: -14px; top: 50%; transform: translateY(-50%);
    width: 3px; height: 22px; border-radius: 0 3px 3px 0; background: #2fd6ff;
}

/* logout */
.evs-logout {
    display: flex; align-items: center; gap: 12px;
    margin-top: 10px; padding: 10px 11px;
    border-radius: 13px; text-decoration: none;
    background: rgba(239, 68, 68, 0.12);
    color: #fca5a5; font-size: 12.5px; font-weight: 700;
    transition: background 0.2s;
}
.evs-logout i {
    width: 30px; height: 30px; border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(239, 68, 68, 0.16); font-size: 12px;
}
.evs-logout:hover { background: rgba(239, 68, 68, 0.2); }

/* footer */
.evs-foot {
    display: flex; align-items: center; justify-content: space-between;
    margin-top: 14px; padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 9px; color: rgba(255, 255, 255, 0.4);
}
.evs-foot b { color: rgba(255, 255, 255, 0.7); font-weight: 700; }

/* guest */
.evs-guest {
    text-align: center;
    padding: 40px 10px 22px;
    display: flex; flex-direction: column; gap: 11px;
    flex: 1;
}
.evs-guest-ico { font-size: 40px; color: #2fd6ff; margin-bottom: 4px; }
.evs-guest p { font-size: 12px; color: rgba(255, 255, 255, 0.55); line-height: 1.55; margin-bottom: 6px; }
.evs-guest-btn {
    padding: 12px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; text-decoration: none;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.evs-guest-btn.login { background: rgba(255, 255, 255, 0.08); color: #fff; }
.evs-guest-btn.reg { background: linear-gradient(135deg, #2fd6ff, #8f73ff); color: #d0daef; }

/* ══════════════════════════════════════════════════════════
   BOTTOM NAV — EV "charging dock" (new look + motion)
   Markup unchanged: .footer > a.footer-item (+ .footer-item-fab, .active)
   ══════════════════════════════════════════════════════════ */
.footer {
    background: linear-gradient(180deg, #123a8a 0%, #081229 100%) !important;
    border: 1px solid rgba(47, 214, 255, 0.16) !important;
    border-radius: 22px !important;
    height: 62px !important;
    padding: 8px 10px !important;
    overflow: visible !important;
    box-shadow: inset 0 2px 0 rgba(47, 214, 255, 0.22),
                0 18px 42px -12px rgba(0, 0, 0, 0.60) !important;
    animation: evNavUp 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
@keyframes evNavUp { from { transform: translateY(130%); opacity: 0; } }

/* volt charge-light sweeping across the dock */
.footer::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: 22px;
    pointer-events: none;
    background: linear-gradient(100deg, transparent 42%, rgba(47, 214, 255, 0.20) 50%, transparent 58%);
    background-size: 260% 100%;
    animation: evNavCharge 5.5s ease-in-out infinite;
}
@keyframes evNavCharge { 0%, 64% { background-position: 130% 0; } 100% { background-position: -30% 0; } }

.footer > .footer-item {
    flex-direction: column;
    gap: 3px !important;
    height: auto !important;
    padding: 6px 10px !important;
    border-radius: 15px !important;
    overflow: visible !important;
    color: rgba(226, 220, 255, 0.52) !important;
    transition: color 0.25s ease,
                background 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                padding 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                transform 0.2s ease !important;
}
.footer > .footer-item i {
    font-size: 17px !important;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.footer > .footer-item span {
    font-size: 9px !important;
    font-weight: 700 !important;
    max-width: none !important;
    opacity: 1 !important;
    color: inherit !important;
    letter-spacing: 0.2px;
    margin: 0 !important;
}
.footer > .footer-item:hover { color: #2fd6ff !important; }
.footer > .footer-item:hover i { transform: translateY(-3px); }
.footer > .footer-item:active { transform: scale(0.9); }

/* active — floating volt pill + pulsing charge dot */
.footer > .footer-item.active {
    color: #d0daef !important;
    background: linear-gradient(135deg, #2fd6ff 0%, #8f73ff 100%) !important;
    padding: 6px 15px !important;
    box-shadow: 0 8px 20px -4px rgba(47, 214, 255, 0.65) !important;
}
.footer > .footer-item.active i,
.footer > .footer-item.active span { color: #d0daef !important; }
.footer > .footer-item.active i { animation: evIconPop 0.4s cubic-bezier(0.34, 1.7, 0.5, 1); }
@keyframes evIconPop { 0% { transform: scale(0.4); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
.footer > .footer-item.active:not(.footer-item-fab)::after {
    content: '';
    position: absolute; top: -7px; left: 50%;
    width: 5px; height: 5px; border-radius: 50%;
    background: #2fd6ff;
    box-shadow: 0 0 9px 2px rgba(47, 214, 255, 0.85);
    animation: evDot 1.5s ease-in-out infinite;
}
@keyframes evDot {
    0%, 100% { opacity: 1; transform: translateX(-50%) scale(1); }
    50%      { opacity: 0.35; transform: translateX(-50%) scale(0.55); }
}

/* FAB — Buy EV, charging car */
.footer > .footer-item-fab,
.footer > .footer-item-fab.active {
    width: 54px !important; height: 54px !important;
    margin-top: -30px !important;
    padding: 0 !important;
    border: 3px solid rgba(130, 160, 255, 0.90) !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #2fd6ff 0%, #1f6bff 100%) !important;
    box-shadow: 0 12px 26px -6px rgba(31, 107, 255, 0.7) !important;
    overflow: visible !important;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
.footer > .footer-item-fab i { font-size: 20px !important; color: #d0daef !important; }
.footer > .footer-item-fab span { display: none !important; }
.footer > .footer-item-fab:hover { transform: translateY(-4px) scale(1.05); }
.footer > .footer-item-fab:active { transform: scale(0.92); }

/* rotating charge ring around FAB */
.footer > .footer-item-fab::before {
    content: '';
    position: absolute; inset: -6px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, transparent 0deg, #2fd6ff 80deg, transparent 190deg, #06b6d4 290deg, transparent 360deg);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
            mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 3px));
    animation: evRing 3.2s linear infinite;
}
@keyframes evRing { to { transform: rotate(360deg); } }

/* expanding halo pulse behind FAB */
.footer > .footer-item-fab::after {
    content: '';
    position: absolute; inset: -3px;
    border-radius: 50%;
    border: 2px solid rgba(47, 214, 255, 0.6);
    animation: evHalo 2.2s ease-out infinite;
    pointer-events: none;
}
@keyframes evHalo {
    0%   { transform: scale(1);   opacity: 0.7; }
    100% { transform: scale(1.55); opacity: 0; }
}

/* Floating support button */
.footer-support { bottom: 84px !important; }
.support-button {
    position: relative;
    background: linear-gradient(135deg, #1f6bff 0%, #06b6d4 100%) !important;
    border: 3px solid rgba(47, 214, 255, 0.4) !important;
    box-shadow: 0 10px 24px -6px rgba(6, 182, 212, 0.6) !important;
    animation: evFloat 3.6s ease-in-out infinite;
}
@keyframes evFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.support-button:hover { transform: translateY(-4px) scale(1.06); }
.support-button::after {
    content: '';
    position: absolute; inset: -3px; border-radius: 50%;
    border: 2px solid rgba(6, 182, 212, 0.5);
    animation: evHalo 2.6s ease-out infinite;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .evs-wallet::after,
    .footer, .footer::before,
    .footer > .footer-item.active i,
    .footer > .footer-item.active:not(.footer-item-fab)::after,
    .footer > .footer-item-fab::before,
    .footer > .footer-item-fab::after,
    .support-button, .support-button::after { animation: none !important; }
}

.hamburger-btn {
    background: rgba(31, 107, 255, 0.12) !important;
    border-color: rgba(31, 107, 255, 0.3) !important;
}
.hamburger-btn span { background: var(--rb-2) !important; }
.hwb-card { background: rgba(31, 107, 255,0.10) !important; border-color: rgba(31, 107, 255,0.28) !important; }
.hwb-icon-wrap { background: rgba(6,182,212,0.14) !important; border-color: rgba(6,182,212,0.30) !important; }
.hwb-icon-wrap i { color: var(--cyan-2) !important; }
.hwb-amount { color: var(--rb-2) !important; }

/* ═══════════ GUEST HERO — minimal EV styling ═══════════ */
.app-guest-wrap { position: relative; z-index: 5; }
.app-hero-card {
    position: relative;
    margin-top: 22%;
    padding: 26px 20px;
    border-radius: 26px;
    overflow: hidden;
    background: linear-gradient(135deg, #081229 0%, #123a8a 50%, #1f6bff 100%);
    box-shadow: 0 18px 44px -12px rgba(0, 0, 0, 0.60);
}
.app-hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(circle at 85% 10%, rgba(47, 214, 255,0.3) 0%, transparent 45%),
        radial-gradient(circle at 10% 95%, rgba(6,182,212,0.25) 0%, transparent 45%);
}
.app-hero-content { position: relative; z-index: 1; }
.app-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 9.5px; font-weight: 800; letter-spacing: 1px;
    padding: 6px 13px; border-radius: 999px;
    background: rgba(47, 214, 255, 0.2); color: #ffd9c7;
    margin-bottom: 14px;
}
.app-hero-title { font-size: 24px; font-weight: 800; color: #fff; font-family: 'Sora', sans-serif; line-height: 1.25; }
.app-gradient-text {
    background: linear-gradient(90deg, #2fd6ff 0%, #8f73ff 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.app-hero-sub { font-size: 12.5px; color: rgba(255,255,255,0.85); margin: 10px 0 0; line-height: 1.5; }
.app-btn-group { display: flex; gap: 10px; margin-top: 18px; }
.app-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
    padding: 12px 16px; border-radius: 999px;
    font-size: 12.5px; font-weight: 700; text-decoration: none;
    transition: transform 0.2s;
}
.app-btn:active { transform: scale(0.96); }
.app-btn-primary { background: linear-gradient(135deg, var(--ev-volt) 0%, var(--rb) 100%); color: #d0daef; }
.app-btn-secondary { background: rgba(255,255,255,0.14); color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.app-feature-hint { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 16px; }
.app-feature-hint span { font-size: 10px; color: rgba(255,255,255,0.8); display: inline-flex; align-items: center; gap: 5px; }
.app-feature-hint i { color: var(--ev-volt); }

.app-section-label {
    display: flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700; color: var(--text);
    margin: 18px 2px 10px;
}
.app-section-label i { color: var(--rb-2); }
.app-stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.app-stat-item {
    background: #0e121d; border: 1px solid var(--border);
    border-radius: 18px; padding: 16px 10px; text-align: center;
    box-shadow: var(--shadow);
}
.app-stat-icon {
    width: 40px; height: 40px; margin: 0 auto 8px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: var(--rb-pale); color: var(--rb-2); font-size: 16px;
}
.app-stat-number { font-size: 16px; font-weight: 800; color: var(--text); font-family: 'Sora', sans-serif; }
.app-stat-label { font-size: 10px; color: var(--text-3); margin-top: 2px; }

.app-earnings-scroll { overflow-x: auto; scrollbar-width: none; margin: 0 -2px; }
.app-earnings-scroll::-webkit-scrollbar { display: none; }
.app-earnings-track { display: flex; gap: 10px; padding: 2px; width: max-content; }
.app-earn-card {
    position: relative;
    flex: 0 0 150px;
    background: #0e121d;
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent, var(--rb));
    border-radius: 16px;
    padding: 14px 12px;
    box-shadow: var(--shadow);
}
.app-earn-icon {
    width: 34px; height: 34px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    background: var(--ev-volt-pale); color: var(--rb-2); font-size: 14px;
    margin-bottom: 10px;
}
.app-earn-badge {
    font-size: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;
    color: var(--rb-2); background: var(--rb-pale);
    padding: 2px 7px; border-radius: 999px;
}
.app-earn-desc { font-size: 11px; color: var(--text-2); margin-top: 8px; font-weight: 600; line-height: 1.3; }

@media (min-width: 900px) {
    .app-hero-card { margin-top: 2rem; }
    .app-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .app-earnings-track { flex-wrap: wrap; width: auto; }
    .app-earn-card { flex: 0 0 calc(33.333% - 7px); }
}
