/* ═══════════════════════════════════════════════════════════════
   WALLETS.CSS — Wallet Carousel + Simulations
   CLI Terminal, Chrome Extension, PWA Phone
   From index.html with #00ff88 → #00ff00 conversion
   ═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════════════════════
   WALLET CAROUSEL CONTAINER
   ═══════════════════════════════════════════════════════════════ */

.wallet-stack-container {
    margin-top: 60px;
    padding: 40px 20px 80px;
    overflow: visible;
}

.wallet-stack {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    max-width: 1200px;
    min-height: 580px;
    margin: 0 auto;
    position: relative;
}


/* ═══════════════════════════════════════════════════════════════
   WALLET CARDS — BASE
   ═══════════════════════════════════════════════════════════════ */

.wallet-card {
    width: 340px;
    flex-shrink: 0;
    min-height: 520px;
    background: linear-gradient(145deg, rgba(0,255,0,0.08), rgba(0,0,0,0.9));
    border: 1px solid rgba(0,255,0,0.3);
    border-radius: 20px;
    padding: 28px;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                filter 0.4s ease,
                box-shadow 0.4s ease;
    box-shadow: 0 20px 60px rgba(0,0,0,0.6);
    position: absolute;
    top: 0;
}


/* ── Position Classes ── */
.wallet-card.pos-left {
    transform: translateX(-370px) scale(0.9);
    opacity: 0.6;
    filter: blur(1px);
    z-index: 1;
}

.wallet-card.pos-center {
    transform: translateX(0) scale(1);
    opacity: 1;
    filter: none;
    z-index: 2;
    box-shadow: 0 30px 80px rgba(0,255,0,0.3), 0 0 40px rgba(0,255,0,0.15);
}

.wallet-card.pos-right {
    transform: translateX(370px) scale(0.9);
    opacity: 0.6;
    filter: blur(1px);
    z-index: 1;
}

/* ── Hover on Side Cards ── */
.wallet-card.pos-left:hover,
.wallet-card.pos-right:hover {
    opacity: 0.9;
    filter: blur(0px);
    z-index: 1;
}

.wallet-card.pos-left:hover {
    transform: translateX(-370px) scale(0.95);
}

.wallet-card.pos-right:hover {
    transform: translateX(370px) scale(0.95);
}


/* ═══════════════════════════════════════════════════════════════
   GLOW PULSE ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */

@keyframes glowPulseGreen {
    0%, 100% { box-shadow: 0 30px 80px rgba(0,255,0,0.3), 0 0 40px rgba(0,255,0,0.15); }
    50%      { box-shadow: 0 30px 90px rgba(0,255,0,0.4), 0 0 50px rgba(0,255,0,0.25); }
}

@keyframes glowPulseCyan {
    0%, 100% { box-shadow: 0 30px 80px rgba(0,255,255,0.3), 0 0 40px rgba(0,255,255,0.15); }
    50%      { box-shadow: 0 30px 90px rgba(0,255,255,0.4), 0 0 50px rgba(0,255,255,0.25); }
}

@keyframes glowPulseMagenta {
    0%, 100% { box-shadow: 0 30px 80px rgba(255,0,255,0.3), 0 0 40px rgba(255,0,255,0.15); }
    50%      { box-shadow: 0 30px 90px rgba(255,0,255,0.4), 0 0 50px rgba(255,0,255,0.25); }
}

/* CLI wallet: green glow */
.wallet-card[data-wallet="cli"].pos-center {
    animation: glowPulseGreen 3s ease-in-out infinite;
}

/* Extension wallet: cyan border + glow */
.wallet-card[data-wallet="extension"] {
    border-color: rgba(0,255,255,0.3);
}

.wallet-card[data-wallet="extension"].pos-center {
    animation: glowPulseCyan 3s ease-in-out infinite;
}

/* PWA wallet: magenta border + glow */
.wallet-card[data-wallet="pwa"] {
    border-color: rgba(255,0,255,0.3);
}

.wallet-card[data-wallet="pwa"].pos-center {
    animation: glowPulseMagenta 3s ease-in-out infinite;
}


/* ═══════════════════════════════════════════════════════════════
   STACK INDICATOR DOTS
   ═══════════════════════════════════════════════════════════════ */

.stack-indicator {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.stack-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.stack-dot:hover {
    background: rgba(0,255,0,0.4);
    border-color: var(--neon);
}

.stack-dot.active {
    background: var(--neon);
    border-color: var(--neon);
    box-shadow: 0 0 10px var(--neon);
}

/* ── Stack Hint ── */
.stack-hint {
    text-align: center;
    margin-top: 16px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.5);
}

.stack-hint span {
    color: var(--neon);
}


/* ═══════════════════════════════════════════════════════════════
   WALLET HEADER
   ═══════════════════════════════════════════════════════════════ */

.wallet-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.wallet-icon {
    width: 48px;
    height: 48px;
    background: rgba(0,255,0,0.1);
    border: 1px solid rgba(0,255,0,0.3);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wallet-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--neon);
}

.wallet-header h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    color: var(--white);
    flex: 1;
}

.wallet-badge {
    font-size: 0.7rem;
    padding: 4px 10px;
    background: rgba(0,255,0,0.15);
    border: 1px solid rgba(0,255,0,0.3);
    color: var(--neon);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.wallet-badge.cyan {
    background: rgba(0,255,255,0.15);
    border-color: rgba(0,255,255,0.3);
    color: var(--neon-cyan);
}

.wallet-badge.magenta {
    background: rgba(255,0,255,0.15);
    border-color: rgba(255,0,255,0.3);
    color: var(--neon-magenta);
}

.wallet-desc {
    margin: 20px 0;
    font-size: 0.9rem;
    color: var(--gray);
    line-height: 1.6;
}

.wallet-btn {
    width: 100%;
    text-align: center;
    margin-top: auto;
}


/* ═══════════════════════════════════════════════════════════════
   TERMINAL SIMULATION (CLI Wallet)
   ═══════════════════════════════════════════════════════════════ */

.terminal-sim {
    background: #0a0a0a;
    border: 1px solid rgba(0,255,0,0.3);
    border-radius: 8px;
    overflow: hidden;
    margin: 16px 0;
}

.terminal-header-sim {
    background: #1a1a1a;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(0,255,0,0.2);
}

.terminal-dot-sim {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.terminal-dot-sim.red    { background: #ff5f56; }
.terminal-dot-sim.yellow { background: #ffbd2e; }
.terminal-dot-sim.green  { background: #27ca40; }

.terminal-title-sim {
    font-size: 0.75rem;
    color: var(--gray);
    margin-left: 8px;
}

.terminal-body-sim {
    padding: 16px;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.8;
    min-height: 180px;
}

.term-line {
    color: var(--gray);
}

.term-prompt {
    color: var(--neon);
    margin-right: 8px;
}

.term-line.output {
    color: var(--light-gray);
    padding-left: 16px;
}

.term-line.output.success {
    color: var(--neon);
}

.terminal-cursor,
.cursor-blink {
    animation: blink 1s infinite;
    color: var(--neon);
}

@keyframes blink {
    0%, 50%  { opacity: 1; }
    51%, 100% { opacity: 0; }
}


/* ═══════════════════════════════════════════════════════════════
   CHROME EXTENSION SIMULATION
   ═══════════════════════════════════════════════════════════════ */

.extension-sim {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.ext-popup {
    width: 280px;
    background: linear-gradient(180deg, #0d0d0d 0%, #050505 100%);
    border: 1px solid rgba(0,255,255,0.3);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,255,255,0.1);
}

.ext-header-sim {
    background: linear-gradient(90deg, rgba(0,255,255,0.1), rgba(0,255,0,0.1));
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--neon-cyan);
    border-bottom: 1px solid rgba(0,255,255,0.2);
}

.ext-logo {
    width: 20px;
    height: 20px;
    stroke: var(--neon-cyan);
}

.ext-balance-sim {
    padding: 24px 16px;
    text-align: center;
}

.ext-amount {
    font-family: var(--font-mono);
    font-size: 2.2rem;
    font-weight: 600;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255,255,255,0.2);
    font-variant-numeric: tabular-nums;
    display: block;
    text-align: center;
}

.ext-currency {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-top: 4px;
}

/* Transfer Gauges */
.transfer-gauge {
    margin-top: 12px;
    padding: 8px 12px;
    background: rgba(0,0,0,0.4);
    border-radius: 8px;
}

.gauge-bar {
    height: 6px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    width: 0%;
    border-radius: 3px;
    transition: width 0.1s linear;
}

.transfer-gauge.upload .gauge-fill {
    background: linear-gradient(90deg, var(--neon-cyan), #00ffff);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.transfer-gauge.download .gauge-fill {
    background: linear-gradient(90deg, var(--neon-magenta), #ff66ff);
    box-shadow: 0 0 10px var(--neon-magenta);
}

.gauge-label {
    display: block;
    font-size: 0.7rem;
    margin-top: 6px;
    opacity: 0.8;
}

.transfer-gauge.upload .gauge-label {
    color: var(--neon-cyan);
}

.transfer-gauge.download .gauge-label {
    color: var(--neon-magenta);
}

/* Extension Buttons */
.ext-buttons-sim {
    display: flex;
    gap: 12px;
    padding: 0 16px 16px;
}

.ext-btn {
    flex: 1;
    padding: 10px;
    background: rgba(0,255,255,0.1);
    border: 1px solid rgba(0,255,255,0.3);
    color: var(--neon-cyan);
    font-family: var(--font-body);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.3s;
}

.ext-btn svg {
    width: 14px;
    height: 14px;
}

.ext-btn:hover {
    background: var(--neon-cyan);
    color: var(--black);
}

/* Extension QR */
.ext-qr-sim {
    padding: 16px;
    display: flex;
    justify-content: center;
}

.qr-placeholder {
    width: 100px;
    height: 100px;
    background: repeating-conic-gradient(#1a1a1a 0% 25%, #0a0a0a 0% 50%) 50% / 20px 20px;
    border: 2px solid rgba(0,255,255,0.3);
}

/* Extension Address */
.ext-address-sim {
    text-align: center;
    padding: 0 16px 16px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--gray);
}


/* ═══════════════════════════════════════════════════════════════
   PHONE / PWA SIMULATION
   ═══════════════════════════════════════════════════════════════ */

.phone-sim {
    display: flex;
    justify-content: center;
    margin: 16px 0;
}

.phone-sim > div:first-child {
    width: 220px;
    background: #0a0a0a;
    border: 2px solid rgba(255,0,255,0.3);
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 10px 40px rgba(255,0,255,0.1);
}

.phone-notch {
    width: 80px;
    height: 20px;
    background: #000;
    margin: 0 auto;
    border-radius: 0 0 12px 12px;
}

.phone-screen-sim {
    padding: 8px 12px;
    min-height: 280px;
}

/* PWA Header */
.pwa-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-family: var(--font-display);
    font-size: 0.9rem;
    color: var(--neon-magenta);
}

.pwa-settings {
    width: 18px;
    height: 18px;
    stroke: var(--gray);
}

/* PWA Balance */
.pwa-balance {
    text-align: center;
    padding: 16px 0;
}

.pwa-amount {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 600;
    color: var(--white);
    font-variant-numeric: tabular-nums;
    display: block;
    text-align: center;
}

.pwa-currency {
    font-size: 0.8rem;
    color: var(--neon-magenta);
}

/* PWA Actions */
.pwa-actions {
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    border-top: 1px solid rgba(255,0,255,0.2);
    border-bottom: 1px solid rgba(255,0,255,0.2);
}

.pwa-action {
    text-align: center;
}

.pwa-action-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,0,255,0.1);
    border: 1px solid rgba(255,0,255,0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 6px;
}

.pwa-action-icon svg {
    width: 18px;
    height: 18px;
    stroke: var(--neon-magenta);
}

.pwa-action span {
    font-size: 0.7rem;
    color: var(--gray);
}

/* PWA Transactions */
.pwa-transactions {
    margin-top: 12px;
}

.pwa-tx {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.tx-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: bold;
}

.tx-icon.received {
    background: rgba(0,255,0,0.1);
    color: var(--neon);
    border: 1px solid rgba(0,255,0,0.3);
}

.tx-icon.sent {
    background: rgba(255,0,255,0.1);
    color: var(--neon-magenta);
    border: 1px solid rgba(255,0,255,0.3);
}

.tx-details {
    flex: 1;
}

.tx-label {
    display: block;
    font-size: 0.75rem;
    color: var(--light-gray);
}

.tx-time {
    display: block;
    font-size: 0.65rem;
    color: var(--gray);
}

.tx-amount {
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.tx-amount.received {
    color: var(--neon);
}

.tx-amount.sent {
    color: var(--neon-magenta);
}

/* Phone Home Bar */
.phone-home-bar {
    width: 100px;
    height: 4px;
    background: rgba(255,255,255,0.3);
    border-radius: 2px;
    margin: 8px auto 12px;
}


/* ═══════════════════════════════════════════════════════════════
   TABLET RESPONSIVE (max-width: 1100px)
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
    .wallet-card {
        width: 280px;
        min-height: 480px;
        padding: 24px;
    }

    .wallet-card.pos-left {
        transform: translateX(-300px) scale(0.9);
    }

    .wallet-card.pos-right {
        transform: translateX(300px) scale(0.9);
    }

    .wallet-card.pos-left:hover {
        transform: translateX(-300px) scale(0.95);
    }

    .wallet-card.pos-right:hover {
        transform: translateX(300px) scale(0.95);
    }
}


/* ═══════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE (max-width: 900px) — Vertical Stack
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 900px) {
    .wallet-stack-container {
        padding: 20px 0 40px;
    }

    .wallet-stack {
        flex-direction: column;
        align-items: center;
        gap: 24px;
        min-height: auto;
        padding: 0 20px;
    }

    .wallet-card {
        position: static;
        width: 100%;
        max-width: 400px;
        min-height: auto;
        transform: none !important;
        opacity: 1 !important;
        filter: none !important;
    }

    .wallet-card:hover {
        transform: translateY(-8px) !important;
    }

    .stack-indicator,
    .stack-hint {
        display: none;
    }
}
