﻿/* =====================================================
   GHOST PIX — DEFINITIVE DESIGN SYSTEM v8.0
   Skills: frontend-design · mobile-design
           scroll-experience · ui-ux-pro-max
   Aesthetic: Luxury Minimal Fintech
   ===================================================== */

/* ──────────────────────────────────────────────────── */
/*  DESIGN TOKENS                                       */
/* ──────────────────────────────────────────────────── */
:root {
    /* Colors */
    --bg: #080808;
    --bg-card: rgba(255, 255, 255, .038);
    --bg-card-h: rgba(255, 255, 255, .06);
    --border: rgba(255, 255, 255, .07);
    --border-h: rgba(255, 255, 255, .15);
    --text: #f5f5f5;
    --text-2: #6b7280;
    --text-3: #9ca3af;

    /* Accent system */
    --green: #10b981;
    --amber: #f59e0b;
    --red: #ef4444;
    --blue: #6366f1;

    /* Radii */
    --r-sm: 12px;
    --r-md: 18px;
    --r-lg: 26px;

    /* Typography */
    --font: 'Outfit', system-ui, sans-serif;

    /* Easing */
    --ease: cubic-bezier(.22, 1, .36, 1);
    --spring: cubic-bezier(.34, 1.56, .64, 1);

    /* Z-index scale (ui-ux-pro-max) */
    --z-10: 10;
    /* cards */
    --z-20: 20;
    /* dropdowns */
    --z-30: 30;
    /* modals */
    --z-50: 50;
    /* nav/header */
}

/* ──────────────────────────────────────────────────── */
/*  KEYFRAMES                                           */
/* ──────────────────────────────────────────────────── */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

@keyframes pulseDot {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: .5;
        transform: scale(.85);
    }
}

@keyframes softGlow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }

    50% {
        box-shadow: 0 0 20px 2px rgba(255, 255, 255, .04);
    }
}

/* ──────────────────────────────────────────────────── */
/*  RESET + BASE                                        */
/* ──────────────────────────────────────────────────── */
*,
::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    /* Subtle ambient texture */
    background-image:
        radial-gradient(ellipse 90% 55% at 5% 0%, rgba(99, 102, 241, .05) 0%, transparent 65%),
        radial-gradient(ellipse 60% 40% at 95% 100%, rgba(16, 185, 129, .04) 0%, transparent 65%);
}

/* Prevent 16px font-size issue → no zoom on iOS (mobile-design) */
input,
select,
textarea,
button {
    font-family: var(--font);
    font-size: 16px;
}

/* cursor-pointer on everything interactive (ui-ux-pro-max) */
button,
a,
[role="button"] {
    cursor: pointer;
}

/* ──────────────────────────────────────────────────── */
/*  prefers-reduced-motion  (ui-ux-pro-max)            */
/* ──────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}

/* ──────────────────────────────────────────────────── */
/*  LAYOUT                                              */
/* ──────────────────────────────────────────────────── */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ══════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════ */
.sidebar {
    width: 252px;
    flex-shrink: 0;
    background: rgba(6, 6, 6, .94);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 2rem 1.1rem;
    height: 100vh;
    position: sticky;
    top: 0;
    overflow-y: auto;
    z-index: var(--z-10);
}

.logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    margin-bottom: 2.25rem;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s var(--ease);
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.5px;
    background: linear-gradient(180deg, #fff 0%, #aaa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-text span {
    color: var(--text);
}

/* nav items */
.nav-menu {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .2rem;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .72rem .95rem;
    border-radius: 11px;
    text-decoration: none;
    color: var(--text-2);
    font-weight: 500;
    font-size: .88rem;
    transition: background .2s var(--ease), color .2s var(--ease);
    min-height: 44px;
    /* touch target (mobile-design) */
}

.nav-item:hover {
    background: var(--bg-card-h);
    color: var(--text);
}

.nav-item.active {
    background: var(--bg-card-h);
    color: var(--text);
    border-left: 2px solid var(--text);
}

/* sidebar footer */
.sidebar-footer {
    padding-top: 1.25rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: .75rem;
}

.avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid var(--border-h);
    flex-shrink: 0;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-name {
    font-size: .84rem;
    font-weight: 600;
    display: block;
}

.user-status {
    font-size: .7rem;
    color: var(--green);
    display: block;
}

/* ══════════════════════════════════════════════════════
   MAIN
══════════════════════════════════════════════════════ */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 2.5rem;
    animation: fadeIn .35s var(--ease);
}

/* ══════════════════════════════════════════════════════
   TOP HEADER
══════════════════════════════════════════════════════ */
.top-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.top-header h1 {
    font-size: 1.7rem;
    font-weight: 700;
    letter-spacing: -.4px;
    margin-bottom: .2rem;
    line-height: 1.2;
}

.top-header p {
    font-size: .85rem;
    color: var(--text-2);
}

.wallet-status {
    display: flex;
    align-items: center;
    gap: .45rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    padding: .4rem .9rem;
    font-size: .78rem;
    color: var(--text-2);
    white-space: nowrap;
    flex-shrink: 0;
}

.wallet-status strong {
    color: var(--text);
}

.status-indicator {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulseDot 2.5s ease infinite;
}

/* ══════════════════════════════════════════════════════
   ANALYTICS GRID — 4 cols desktop, 2 cols mobile
   Uses CSS scroll-driven animation (scroll-experience)
══════════════════════════════════════════════════════ */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .85rem;
    margin-bottom: 1.75rem;
}

/* scroll-experience: CSS native scroll reveal */
.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-sm);
    padding: 1.2rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: .25rem;
    cursor: default;
    transition: border-color .3s var(--ease), transform .3s var(--ease);

    /* scroll-experience: animate on scroll into view */
    animation: fadeInUp .5s var(--ease) both;
}

.stat-card:nth-child(1) {
    animation-delay: .04s;
}

.stat-card:nth-child(2) {
    animation-delay: .09s;
}

.stat-card:nth-child(3) {
    animation-delay: .14s;
}

.stat-card:nth-child(4) {
    animation-delay: .19s;
}

/* accent top bar per card (frontend-design differentiation anchor) */
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-color, transparent);
    border-radius: var(--r-sm) var(--r-sm) 0 0;
}

.stat-card.accent-green {
    --accent-color: var(--green);
}

.stat-card.accent-blue {
    --accent-color: var(--blue);
}

.stat-card.accent-amber {
    --accent-color: var(--amber);
}

.stat-card.accent-purple {
    --accent-color: #a855f7;
}

.stat-card:hover {
    border-color: var(--border-h);
    transform: translateY(-2px);
}

.stat-label {
    font-size: .66rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .8px;
    color: var(--text-2);
}

.stat-value {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -.4px;
    margin-top: .1rem;
    color: var(--text);
}

.stat-sub {
    font-size: .66rem;
    color: var(--text-2);
    display: flex;
    align-items: center;
    gap: .25rem;
}

.stat-sub.positive {
    color: var(--green);
}

/* ══════════════════════════════════════════════════════
   DASHBOARD GRID — 3 cols desktop, 1 col mobile
══════════════════════════════════════════════════════ */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

/* ══════════════════════════════════════════════════════
   CARD
══════════════════════════════════════════════════════ */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1.7rem;
    position: relative;
    overflow: hidden;
    transition:
        border-color .3s var(--ease),
        box-shadow .3s var(--ease),
        transform .3s var(--ease);
    animation: fadeInUp .55s var(--ease) both;
}

.card:hover {
    border-color: var(--border-h);
    box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .55);
    transform: translateY(-3px);
}

/* subtle inner glow overlay (frontend-design depth) */
.card::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--r-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, .018) 0%, transparent 55%);
    pointer-events: none;
}

.card.full-width {
    grid-column: 1 / -1;
}

/* ──────── card inner components ──────── */
.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.35rem;
}

.card-title-group {
    display: flex;
    align-items: center;
    gap: .6rem;
}

.card-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    background: rgba(255, 255, 255, .065);
    border: 1px solid rgba(255, 255, 255, .06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    color: var(--text);
    flex-shrink: 0;
}

.card-title {
    font-size: .98rem;
    font-weight: 600;
    letter-spacing: -.15px;
    margin: 0;
    color: var(--text);
}

/* ══════════════════════════════════════════════════════
   BALANCE CARD  (frontend-design: hero number)
══════════════════════════════════════════════════════ */
.balance-display {
    font-size: 2.35rem;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: .7rem;
}

.balance-display .currency {
    font-size: .95rem;
    font-weight: 500;
    color: var(--text-2);
    vertical-align: super;
    font-size: 1rem;
    margin-right: .15rem;
    letter-spacing: 0;
}

.balance-zero {
    color: var(--text-2) !important;
}

/* ══════════════════════════════════════════════════════
   PIX KEY CARD
══════════════════════════════════════════════════════ */
.pix-key-box {
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--border);
    border-radius: 11px;
    padding: .85rem 1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-top: .65rem;
    transition: border-color .2s;
}

.pix-key-box:focus-within {
    border-color: var(--border-h);
}

.pix-key-input {
    background: transparent !important;
    border: none !important;
    color: var(--text) !important;
    flex: 1;
    font-family: 'SF Mono', 'Fira Code', ui-monospace, monospace !important;
    font-size: .8rem !important;
    box-shadow: none !important;
    padding: 0 !important;
    outline: none !important;
    min-width: 0;
}

/* icon-button (touch target 44px — mobile-design) */
.btn-icon-sm {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text-2);
    width: 32px;
    height: 32px;
    /* 32px visual, 44px tap area via padding */
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .82rem;
    transition: background .2s, color .2s;
    flex-shrink: 0;
    cursor: pointer;
    /* ui-ux-pro-max */
}

.btn-icon-sm:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--text);
}

.btn-icon-sm:active {
    background: rgba(255, 255, 255, .15);
}

/* mobile-design: active feedback */

/* ══════════════════════════════════════════════════════
   GENERATE CARD (amount input)
══════════════════════════════════════════════════════ */
.amount-input-wrap {
    position: relative;
    margin-top: .7rem;
}

.amount-prefix {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-2);
    font-size: .88rem;
    pointer-events: none;
    font-weight: 500;
}

.amount-input {
    width: 100%;
    background: rgba(0, 0, 0, .3);
    border: 1px solid var(--border);
    padding: 1rem 1rem 1rem 2.75rem;
    /* ≥ 48px height on mobile (mobile-design) */
    border-radius: 11px;
    color: var(--text);
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -.3px;
    transition: border-color .2s, box-shadow .2s;
    font-family: var(--font);
    -webkit-appearance: none;
    appearance: none;
}

.amount-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, .22);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .05);
}

.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    appearance: none;
}

.amount-input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* ══════════════════════════════════════════════════════
   BUTTONS
   mobile-design: min 48px touch target
   ui-ux-pro-max: cursor-pointer, active feedback
══════════════════════════════════════════════════════ */
.btn-primary {
    width: 100%;
    min-height: 52px;
    /* mobile-design: generous touch target */
    background: var(--text);
    color: #000;
    border: none;
    padding: 1rem;
    border-radius: 11px;
    font-weight: 700;
    font-size: .93rem;
    letter-spacing: .15px;
    cursor: pointer;
    /* ui-ux-pro-max */
    font-family: var(--font);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: background .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
    margin-top: .85rem;
}

/* shimmer (frontend-design: memorable element) */
.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, .18) 50%, transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3.5s ease infinite;
}

.btn-primary:hover {
    background: #e8e8e8;
    box-shadow: 0 8px 28px rgba(255, 255, 255, .1);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(1px);
    box-shadow: none;
}

/* mobile-design: active */
.btn-primary:disabled {
    opacity: .4;
    cursor: not-allowed;
    transform: none;
}

.btn-edit {
    background: rgba(255, 255, 255, .05);
    border: 1px solid var(--border);
    color: var(--text-2);
    font-size: .68rem;
    font-weight: 600;
    padding: .32rem .7rem;
    min-height: 28px;
    border-radius: 100px;
    cursor: pointer;
    /* ui-ux-pro-max */
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: .28rem;
    transition: background .2s, color .2s;
}

.btn-edit:hover {
    background: rgba(255, 255, 255, .1);
    color: var(--text);
}

.btn-edit:active {
    background: rgba(255, 255, 255, .14);
}

/* ══════════════════════════════════════════════════════
   UTILITY TEXT
══════════════════════════════════════════════════════ */
.card-hint {
    font-size: .69rem;
    color: var(--text-2);
    margin-top: .5rem;
    display: flex;
    align-items: center;
    gap: .28rem;
    line-height: 1.5;
}

.card-hint.center {
    justify-content: center;
}

.card-warning {
    font-size: .74rem;
    color: var(--amber);
    margin-top: .75rem;
    display: flex;
    align-items: center;
    gap: .35rem;
}

/* ══════════════════════════════════════════════════════
   HISTORY TABLE
══════════════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-top: .5rem;
    /* subtle inner scrollbar styling */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, .1) transparent;
}

.table-wrap::-webkit-scrollbar {
    height: 4px;
}

.table-wrap::-webkit-scrollbar-track {
    background: transparent;
}

.table-wrap::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, .1);
    border-radius: 2px;
}

.transaction-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 480px;
}

.transaction-table th {
    text-align: left;
    padding: .75rem 1rem;
    font-size: .65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: var(--text-2);
    border-bottom: 1px solid var(--border);
}

.transaction-table td {
    padding: .85rem 1rem;
    font-size: .83rem;
    border-bottom: 1px solid rgba(255, 255, 255, .025);
    color: var(--text-3);
}

.transaction-table tbody tr {
    transition: background .15s;
}

.transaction-table tbody tr:hover {
    background: rgba(255, 255, 255, .02);
}

.transaction-table tbody tr:last-child td {
    border-bottom: none;
}

/* ══════════════════════════════════════════════════════
   BADGES  (ui-ux-pro-max: color not sole indicator)
══════════════════════════════════════════════════════ */
.badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .28rem .65rem;
    border-radius: 100px;
    font-size: .64rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.badge.paid {
    background: rgba(16, 185, 129, .1);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, .18);
}

.badge.pending {
    background: rgba(245, 158, 11, .08);
    color: var(--amber);
    border: 1px solid rgba(245, 158, 11, .15);
}

.badge.expired {
    background: rgba(255, 255, 255, .04);
    color: var(--text-2);
    border: 1px solid var(--border);
}

.badge.rejected {
    background: rgba(239, 68, 68, .08);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, .15);
}

.badge.sent {
    background: rgba(99, 102, 241, .1);
    color: var(--blue);
    border: 1px solid rgba(99, 102, 241, .18);
}

/* ══════════════════════════════════════════════════════
   ACTION BUTTONS
   mobile-design: 44px touch target via min-width/height
══════════════════════════════════════════════════════ */
.action-row {
    display: flex;
    gap: .3rem;
    justify-content: center;
}

.btn-history-action {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .07);
    color: rgba(255, 255, 255, .45);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .78rem;
    cursor: pointer;
    /* ui-ux-pro-max */
    transition: all .2s var(--ease);
}

.btn-history-action:hover {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: var(--text);
}

.btn-history-action:active {
    transform: scale(.92);
}

/* mobile active feedback */
.btn-delete-row:hover {
    color: var(--red);
    border-color: rgba(239, 68, 68, .3);
    background: rgba(239, 68, 68, .06);
}

/* ══════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════ */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: var(--z-30);
    animation: fadeIn .2s var(--ease);
}

.modal.hidden {
    display: none;
}

.modal-content {
    width: 92%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(10, 10, 10, .98);
    border: 1px solid var(--border);
    border-radius: var(--r-lg);
    padding: 2.25rem;
    text-align: center;
    position: relative;
    box-shadow: 0 40px 80px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .04);
}

.success-icon,
.error-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 1.25rem;
}

.success-icon {
    background: rgba(16, 185, 129, .08);
    color: var(--green);
    border: 2px solid rgba(16, 185, 129, .18);
}

.error-icon {
    background: rgba(239, 68, 68, .08);
    color: var(--red);
    border: 2px solid rgba(239, 68, 68, .18);
}

.qr-placeholder {
    width: 190px;
    height: 190px;
    background: white;
    border-radius: 10px;
    margin: 1.25rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
}

.close-modal {
    position: absolute;
    top: 1.1rem;
    right: 1.1rem;
    font-size: 1.3rem;
    cursor: pointer;
    color: var(--text-2);
    transition: color .2s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: var(--text);
}

/* ══════════════════════════════════════════════════════
   MISC UTILITIES
══════════════════════════════════════════════════════ */
.hidden {
    display: none !important;
}

.btn-action-outline {
    width: 100%;
    min-height: 44px;
    /* mobile-design touch target */
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-3);
    font-size: .8rem;
    padding: .55rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .5rem;
    font-family: var(--font);
    transition: background .2s, border-color .2s, color .2s;
    margin-top: 10px;
}

.btn-action-outline:hover {
    background: rgba(255, 255, 255, .04);
    border-color: rgba(255, 255, 255, .18);
    color: var(--text);
}

/* autofill override */
input:-webkit-autofill,
input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 50px #080808 inset !important;
    -webkit-text-fill-color: var(--text) !important;
}

/* ══════════════════════════════════════════════════════
   MOBILE HEADER / NAV  (hidden on desktop)
══════════════════════════════════════════════════════ */
.mobile-header {
    display: none;
}

.mobile-nav {
    display: none;
}

.menu-toggle {
    display: none !important;
}

.sidebar-overlay {
    display: none;
}

/* ══════════════════════════════════════════════════════
   TABLET  ≤ 1100px
══════════════════════════════════════════════════════ */
@media (max-width:1100px) {
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        padding: 2rem;
    }
}

/* ══════════════════════════════════════════════════════
   MOBILE  ≤ 768px
   mobile-design: Touch-first, thumb zone, 48px targets
   scroll-experience: Simpler effects on mobile
══════════════════════════════════════════════════════ */
@media (max-width:768px) {

    .app-container {
        flex-direction: column;
    }

    .sidebar {
        display: none !important;
    }

    /* Fixed header — 60px (safe) */
    .mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 0 1.15rem;
        height: 60px;
        background: rgba(5, 5, 5, .94) !important;
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        z-index: var(--z-50);
        border-bottom: 1px solid var(--border);
    }

    .mobile-header .logo {
        margin-bottom: 0 !important;
    }

    /* Main area */
    .main-content {
        padding: 1rem 0.9rem 100px 0.9rem !important;
        margin-top: 60px !important;
        width: 100% !important;
        overflow-x: hidden;
    }

    /* Top header */
    .top-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: .4rem !important;
        margin-bottom: 1.15rem !important;
    }

    .top-header h1 {
        font-size: 1.3rem;
    }

    .top-header p {
        font-size: .8rem;
    }

    .wallet-status {
        font-size: .72rem;
        padding: .35rem .75rem;
    }

    /* Analytics → always 2×2 (never 1 col) */
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: .55rem !important;
        margin-bottom: 1rem !important;
    }

    .stat-card {
        padding: .95rem 1rem !important;
        border-radius: var(--r-sm) !important;
    }

    .stat-value {
        font-size: 1.1rem !important;
    }

    .stat-label {
        font-size: .61rem !important;
    }

    .stat-sub {
        font-size: .61rem !important;
    }

    /* Dashboard → single column */
    .dashboard-grid {
        grid-template-columns: 1fr !important;
        gap: .7rem !important;
    }

    /* Cards */
    .card {
        padding: 1.3rem 1.2rem !important;
        border-radius: var(--r-md) !important;
        box-sizing: border-box;
    }

    /* Disable hover lift on touch (scroll-experience: no desktop patterns) */
    .card:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .card::after {
        display: none;
    }

    /* balance hero */
    .balance-display {
        font-size: 1.85rem !important;
        letter-spacing: -1px !important;
    }

    .card-header {
        margin-bottom: 1rem !important;
    }

    .card-icon {
        width: 32px;
        height: 32px;
        font-size: .82rem;
        border-radius: 8px;
    }

    .card-title {
        font-size: .92rem;
    }

    /* amount input */
    .amount-input {
        padding: .95rem 1rem .95rem 2.6rem !important;
        font-size: 1rem !important;
    }

    .amount-prefix {
        font-size: .82rem !important;
    }

    /* buttons — min 52px on mobile (mobile-design: >48px) */
    .btn-primary {
        min-height: 52px !important;
        font-size: .92rem !important;
        border-radius: 11px !important;
    }

    .btn-icon-sm {
        width: 36px !important;
        height: 36px !important;
    }

    .pix-key-box {
        padding: .8rem;
        border-radius: 10px;
    }

    .pix-key-input {
        font-size: .78rem !important;
    }

    .card-hint {
        font-size: .67rem;
    }

    .card-warning {
        font-size: .72rem;
    }

    /* table */
    .transaction-table th {
        font-size: .62rem !important;
        padding: .6rem .75rem;
    }

    .transaction-table td {
        font-size: .78rem !important;
        padding: .75rem .75rem;
    }

    .btn-history-action {
        width: 30px;
        height: 30px;
        font-size: .73rem;
    }

    /* ── BOTTOM NAV (thumb zone - mobile-design) ── */
    .mobile-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 72px;
        /* generous thumb target */
        padding-bottom: env(safe-area-inset-bottom, 6px);
        background: rgba(5, 5, 5, .97);
        backdrop-filter: blur(28px);
        -webkit-backdrop-filter: blur(28px);
        border-top: 1px solid var(--border);
        z-index: var(--z-50);
        justify-content: space-around;
        align-items: center;
    }

    .mobile-nav-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: rgba(255, 255, 255, .3);
        font-size: .56rem;
        font-weight: 600;
        gap: 4px;
        width: 20%;
        min-height: 48px;
        /* mobile-design 48px touch target */
        justify-content: center;
        letter-spacing: .3px;
        text-transform: uppercase;
        transition: color .2s var(--ease);
    }

    .mobile-nav-item i {
        font-size: 1.15rem;
        display: block;
    }

    .mobile-nav-item.active {
        color: var(--text);
    }

    .mobile-nav-item.active i {
        filter: drop-shadow(0 0 5px rgba(255, 255, 255, .3));
    }

    /* active tap feedback (mobile-design, ui-ux-pro-max) */
    .mobile-nav-item:active {
        color: rgba(255, 255, 255, .7);
    }
}

/* ══════════════════════════════════════════════════════
   EXTRA SMALL  ≤ 375px
══════════════════════════════════════════════════════ */
@media (max-width:375px) {
    .main-content {
        padding: .9rem .75rem 100px .75rem !important;
    }

    .analytics-grid {
        gap: .45rem !important;
    }

    .stat-card {
        padding: .85rem !important;
    }

    .stat-value {
        font-size: 1rem !important;
    }

    .balance-display {
        font-size: 1.65rem !important;
    }

    .card {
        padding: 1.1rem 1rem !important;
    }

    .mobile-nav-item {
        font-size: .5rem;
    }
}

/* ══════════════════════════════════════════════════════
   LANDING PAGE (VSL) SYSTEM v8.0
══════════════════════════════════════════════════════ */
.lp-body {
    background-image:
        radial-gradient(circle at 50% -20%, rgba(99, 102, 241, .15) 0%, transparent 50%),
        radial-gradient(circle at 0% 100%, rgba(16, 185, 129, .08) 0%, transparent 40%);
    background-size: 100% 100%, 100% 100%;
}

.lp-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100vh;
    background: url('hero_vsl.png') no-repeat center top;
    background-size: cover;
    opacity: 0.4;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.lp-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 5%;
    background: rgba(8, 8, 8, .8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.lp-nav-links {
    display: flex;
    gap: 2rem;
}

.lp-nav-link {
    text-decoration: none;
    color: var(--text-2);
    font-size: .9rem;
    font-weight: 500;
    transition: color .3s var(--ease);
}

.lp-nav-link:hover {
    color: var(--text);
}

.lp-auth-buttons {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.btn-lp-outline {
    padding: .6rem 1.2rem;
    border: 1px solid var(--border-h);
    border-radius: 100px;
    color: var(--text);
    text-decoration: none;
    font-size: .85rem;
    font-weight: 600;
    transition: all .3s var(--ease);
}

.btn-lp-outline:hover {
    background: rgba(255, 255, 255, .05);
    border-color: var(--text);
}

.btn-lp-primary {
    padding: .6rem 1.5rem;
    background: var(--text);
    color: #000;
    border-radius: 100px;
    text-decoration: none;
    font-size: .85rem;
    font-weight: 700;
    transition: all .3s var(--ease);
}

.btn-lp-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 255, 255, .2);
}

/* Hero Section */
.lp-hero {
    padding: 180px 5% 100px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    position: relative;
}

.lp-hero-tag {
    display: inline-block;
    background: rgba(16, 185, 129, .15);
    color: var(--green);
    padding: .4rem 1rem;
    border-radius: 100px;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(16, 185, 129, .2);
}

.lp-hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
    background: linear-gradient(180deg, #fff 0%, #777 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.lp-hero p {
    font-size: 1.25rem;
    color: var(--text-2);
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

/* Floating 3D Cards System - Re-engineered for maximum impact */
.hero-visual-wrapper {
    max-width: 1000px;
    margin: 4rem auto 8rem;
    height: 500px;
    position: relative;
    perspective: 2000px;
}

.floating-card {
    position: absolute;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 32px;
    padding: 2.5rem;
    box-shadow:
        0 40px 100px -20px rgba(0, 0, 0, 0.8),
        inset 0 0 20px rgba(255, 255, 255, 0.05);
    transition: opacity 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    text-align: left;
    transform-style: preserve-3d;
    backface-visibility: hidden;
    transform: translateZ(0);
    /* Força aceleração sem will-change agressivo */
    outline: 1px solid transparent;
    /* Anti-aliasing fix for 3D */
}

/* Glass shine overlay effect */
.floating-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, transparent 50%, rgba(255, 255, 255, 0.06) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.card-1 {
    width: 360px;
    z-index: 3;
    left: 2%;
    top: 60px;
    animation: floatV1 12s ease-in-out infinite;
}

.card-2 {
    width: 320px;
    z-index: 2;
    right: 5%;
    top: 30px;
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    animation: floatV2 15s ease-in-out infinite;
}

.card-3 {
    width: 340px;
    z-index: 4;
    bottom: -20px;
    left: 30%;
    background: rgba(99, 102, 241, 0.12);
    border-color: rgba(99, 102, 241, 0.35);
    animation: floatV3 14s ease-in-out infinite;
}

@keyframes floatV1 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateY(-22deg) rotateX(15deg);
    }

    50% {
        transform: translate3d(0, -10px, 15px) rotateY(-20deg) rotateX(13deg);
    }
}

@keyframes floatV2 {

    0%,
    100% {
        transform: translate3d(0, 0, 0) rotateY(25deg) rotateX(10deg);
    }

    50% {
        transform: translate3d(0, -8px, 10px) rotateY(27deg) rotateX(12deg);
    }
}

@keyframes floatV3 {

    0%,
    100% {
        transform: translate3d(0, 0, 80px) rotateX(-8deg);
    }

    50% {
        transform: translate3d(0, -12px, 90px) rotateX(-2deg);
    }
}

.floating-card i {
    font-size: 2rem;
    color: var(--green);
    filter: drop-shadow(0 0 15px rgba(16, 185, 129, 0.4));
}

.floating-card h4 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: #fff;
}

.floating-card p {
    font-size: 0.95rem;
    color: var(--text-2);
    margin: 0;
    line-height: 1.6;
}

@media (max-width: 1024px) {
    .hero-visual-wrapper {
        perspective: none;
        height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2rem;
        margin-bottom: 4rem;
        padding: 2rem 0;
    }

    .floating-card {
        position: relative !important;
        width: 100% !important;
        max-width: 480px;
        left: auto !important;
        right: auto !important;
        top: auto !important;
        bottom: auto !important;
        transform: none !important;
        animation: fadeInUp 0.8s var(--ease) both !important;
        background: rgba(255, 255, 255, 0.08);
        border-color: rgba(255, 255, 255, 0.2);
    }
}

/* Feature Grid */
.lp-section {
    padding: 100px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.lp-section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.lp-section-title h2 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.lp-section-title p {
    color: var(--text-2);
    font-size: 1.1rem;
}

.lp-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lp-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 2.5rem;
    border-radius: 24px;
    transition: all .3s var(--ease);
}

.lp-feature-card:hover {
    background: var(--bg-card-h);
    border-color: var(--border-h);
    transform: translateY(-5px);
}

.lp-feature-icon {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--green);
}

/* Rates & Pricing */
.lp-pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.lp-pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    padding: 3rem 2rem;
    border-radius: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lp-pricing-card.featured {
    border: 2px solid var(--green);
    background: rgba(16, 185, 129, .03);
}

.lp-price {
    font-size: 4rem;
    font-weight: 800;
    margin: 1.5rem 0;
    color: var(--text);
}

.lp-price span {
    font-size: 1rem;
    color: var(--text-2);
    font-weight: 400;
}

/* FAQ */
.lp-faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.lp-faq-item {
    margin-bottom: 1rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s var(--ease);
}

.lp-faq-q {
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 600;
}

.lp-faq-q i {
    transition: transform 0.3s;
}

.lp-faq-a {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s var(--ease);
    color: var(--text-2);
    font-size: .95rem;
    line-height: 1.6;
}

.lp-faq-item.active {
    border-color: var(--border-h);
    background: var(--bg-card-h);
}

.lp-faq-item.active .lp-faq-a {
    padding: 0 1.5rem 1.5rem;
    max-height: 500px;
}

.lp-faq-item.active .lp-faq-q i {
    transform: rotate(180deg);
}

.lp-footer {
    padding: 80px 5% 40px;
    background: #000;
    border-top: 1px solid var(--border);
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin: 2rem 0;
}

.lp-footer p {
    color: var(--text-3);
    font-size: .8rem;
}

@media (max-width: 768px) {
    .lp-hero h1 {
        font-size: 2.8rem;
    }

    .lp-navbar {
        padding: 0 1.5rem;
    }

    .lp-nav-links {
        display: none;
    }

    .lp-hero {
        padding-top: 140px;
    }

    .lp-hero p {
        font-size: 1rem;
    }
}