/* ===================================================================
   MONETEXIS DASHBOARD — PREMIUM EDITION
   Design: Deep onyx + emerald accent + subtle gold highlights
   Signature: frosted-glass cards with luminous emerald glow borders
   =================================================================== */

/* ── Design Tokens ── */
:root {
    --primary:        #00e5a0;
    --primary-dim:    #00c488;
    --primary-glow:   rgba(0, 229, 160, 0.18);
    --primary-border: rgba(0, 229, 160, 0.28);
    --gold:           #f0c040;
    --gold-dim:       rgba(240, 192, 64, 0.12);

    --bg-void:        #060b14;
    --bg-deep:        #0a1220;
    --bg-surface:     #111827;
    --bg-raised:      #162032;
    --bg-float:       #1c2b3e;

    --text-primary:   #f0f4f8;
    --text-secondary: #8fa3bc;
    --text-muted:     #4d6278;

    --border-soft:    rgba(255,255,255,0.06);
    --border-medium:  rgba(255,255,255,0.10);
    --border-accent:  var(--primary-border);

    --radius-sm:      8px;
    --radius-md:      14px;
    --radius-lg:      20px;
    --radius-pill:    999px;

    --shadow-card:    0 4px 24px rgba(0,0,0,0.35), 0 1px 4px rgba(0,0,0,0.2);
    --shadow-glow:    0 0 28px rgba(0,229,160,0.12);
    --shadow-float:   0 8px 40px rgba(0,0,0,0.45);

    --transition:     all 0.22s cubic-bezier(0.4,0,0.2,1);

    --safe-area-top:    env(safe-area-inset-top, 0px);
    --safe-area-bottom: env(safe-area-inset-bottom, 0px);
    --safe-area-left:   env(safe-area-inset-left, 0px);
    --safe-area-right:  env(safe-area-inset-right, 0px);
}

/* ── Reset ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0; padding: 0;
    -webkit-tap-highlight-color: transparent;
}
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
    background: var(--bg-void);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    overflow-x: hidden;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    padding-top: env(safe-area-inset-top);
    padding-bottom: env(safe-area-inset-bottom);
    /* Subtle noise texture via gradient */
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(0,229,160,0.07) 0%, transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 90%, rgba(67,97,238,0.05) 0%, transparent 60%);
    background-attachment: fixed;
}

img { -webkit-user-drag: none; user-drag: none; }

/* ── Mobile Header ── */
.mobile-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    background: rgba(10, 18, 32, 0.88);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--border-soft);
    padding: 0.75rem 1rem;
    padding-top: env(safe-area-inset-top);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mobile-header .logo { display: flex; align-items: center; }
.mobile-header .logo img { height: 32px; max-width: 160px; object-fit: contain; }

.user-menu-btn {
    background: var(--bg-raised);
    border: 1px solid var(--border-soft);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.65rem 0.4rem 0.4rem;
    border-radius: var(--radius-pill);
    min-height: 44px;
    transition: var(--transition);
}
.user-menu-btn:hover { border-color: var(--primary-border); }
.user-menu-btn img {
    width: 34px; height: 34px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}
.user-name { font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }

/* ── Bottom Nav (mobile) ── */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(10, 18, 32, 0.92);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-top: 1px solid var(--border-soft);
    padding: 0.4rem 0.5rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom));
    z-index: 1000;
    display: flex;
    justify-content: space-around;
}

/* ── Nav Items ── */
.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-muted);
    padding: 0.45rem 0.6rem;
    border-radius: var(--radius-sm);
    min-width: 58px;
    min-height: 44px;
    transition: var(--transition);
    position: relative;
}
.nav-item i { font-size: 1.2rem; margin-bottom: 0.2rem; }
.nav-item span { font-size: 0.68rem; font-weight: 600; letter-spacing: 0.02em; }
.nav-item.active { color: var(--primary); }
.nav-item.active::before {
    content: '';
    position: absolute;
    top: -1px; left: 50%; transform: translateX(-50%);
    width: 24px; height: 2px;
    background: var(--primary);
    border-radius: var(--radius-pill);
}
.nav-item:hover { color: var(--primary); }

/* ── Main Content ── */
.main-content {
    padding: calc(64px + env(safe-area-inset-top)) 1rem calc(82px + env(safe-area-inset-bottom)) 1rem;
    min-height: 100vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ── Cards ── */
.dashboard-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.dashboard-card:hover { border-color: var(--border-medium); }

.dashboard-card .card-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: -0.01em;
}
.dashboard-card .card-title i { color: var(--primary); }

/* ── Quick Actions Grid ── */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.action-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.25rem 0.9rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    min-height: 44px;
    position: relative;
    overflow: hidden;
}
.action-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-glow);
    opacity: 0;
    transition: opacity 0.22s ease;
    border-radius: inherit;
}
.action-card:hover { border-color: var(--primary-border); transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.action-card:hover::before { opacity: 1; }
.action-card i { font-size: 1.85rem; color: var(--primary); margin-bottom: 0.65rem; display: block; position: relative; }
.action-card .title { font-weight: 700; font-size: 0.88rem; margin-bottom: 0.2rem; position: relative; letter-spacing: -0.01em; }
.action-card .desc { font-size: 0.73rem; color: var(--text-secondary); position: relative; }

/* ── User Dropdown ── */
.user-dropdown {
    position: fixed;
    top: 68px; right: 1rem;
    background: var(--bg-float);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-md);
    width: 280px;
    max-width: calc(100vw - 2rem);
    display: none;
    z-index: 1001;
    box-shadow: var(--shadow-float);
    overflow: hidden;
}
.user-dropdown.active { display: block; animation: dropIn 0.18s ease; }
@keyframes dropIn {
    from { opacity: 0; transform: translateY(-8px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.user-dropdown-header {
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--border-soft);
    background: linear-gradient(135deg, rgba(0,229,160,0.06) 0%, transparent 100%);
}
.user-dropdown-header .welcome { font-weight: 700; color: var(--primary); font-size: 0.93rem; }

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.1rem;
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-soft);
    transition: var(--transition);
    min-height: 44px;
    font-size: 0.9rem;
    font-weight: 500;
}
.dropdown-item:last-child { border-bottom: none; }
.dropdown-item i { color: var(--primary); width: 18px; font-size: 0.95rem; flex-shrink: 0; }
.dropdown-item:hover { color: var(--text-primary); background: rgba(0,229,160,0.06); }

/* ── Overlay ── */
.overlay { position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.6); z-index: 999; display: none; backdrop-filter: blur(3px); }
.overlay.active { display: block; }

/* ── Touch feedback ── */
.action-card:active,
.nav-item:active,
.dropdown-item:active,
.user-menu-btn:active { transform: scale(0.96) !important; transition: transform 0.1s ease !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-soft); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-medium); }

/* ── Tablet / Desktop ── */
@media (min-width: 768px) {
    .mobile-header { padding-left: 2rem; padding-right: 2rem; }
    .bottom-nav { display: none; }

    .main-content {
        padding: calc(60px + env(safe-area-inset-top)) 2rem 2rem 2rem;
        margin-left: 220px;
        max-width: calc(100% - 220px);
    }

    .desktop-nav {
        position: fixed;
        left: 0; top: 60px; bottom: 0;
        width: 220px;
        background: var(--bg-deep);
        border-right: 1px solid var(--border-soft);
        padding: 1.5rem 0;
        overflow-y: auto;
    }

    .desktop-nav .nav-item {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        padding: 0.72rem 1.4rem;
        color: var(--text-muted);
        text-decoration: none;
        border-left: 2px solid transparent;
        transition: var(--transition);
        flex-direction: row;
        min-width: unset;
        border-radius: 0;
        font-size: 0.88rem;
        font-weight: 500;
    }
    .desktop-nav .nav-item::before { display: none; }
    .desktop-nav .nav-item i { font-size: 1.05rem; width: 22px; margin-bottom: 0; flex-shrink: 0; }
    .desktop-nav .nav-item span { font-size: 0.88rem; }
    .desktop-nav .nav-item.active {
        color: var(--primary);
        background: linear-gradient(90deg, rgba(0,229,160,0.08) 0%, transparent 100%);
        border-left-color: var(--primary);
    }
    .desktop-nav .nav-item:hover { color: var(--text-primary); background: rgba(255,255,255,0.04); }

    .quick-actions { grid-template-columns: repeat(4, 1fr); }
}

/* ── Landscape phone ── */
@media (max-height: 600px) and (orientation: landscape) {
    .mobile-header { padding-top: max(0.75rem, env(safe-area-inset-top)) !important; padding-bottom: 0.5rem; }
    .mobile-header .logo img { height: 28px; }
    .main-content { padding-top: calc(50px + var(--safe-area-top)) !important; }
    .bottom-nav { padding-top: 0.25rem; padding-bottom: calc(0.25rem + var(--safe-area-bottom)) !important; }
    .nav-item { padding: 0.25rem 0.5rem; }
}

/* ── Small phones ── */
@media (max-width: 360px) {
    .mobile-header { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .mobile-header .logo img { height: 28px !important; max-width: 140px !important; }
    .user-menu-btn img { width: 30px !important; height: 30px !important; }
    .main-content { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .quick-actions { grid-template-columns: repeat(2, 1fr) !important; gap: 0.65rem !important; }
    .action-card { padding: 1rem 0.75rem !important; }
    .action-card i { font-size: 1.6rem !important; }
    .dashboard-card { padding: 1.15rem !important; }
    .bottom-nav { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
    .nav-item { min-width: 52px !important; padding: 0.4rem !important; }
    .nav-item i { font-size: 1.1rem !important; }
    .nav-item span { font-size: 0.63rem !important; }
}

/* ── Safari/iOS ── */
@supports (padding: max(0px)) {
    .mobile-header {
        padding-top: max(0.75rem, var(--safe-area-top)) !important;
        padding-left: max(1rem, var(--safe-area-left)) !important;
        padding-right: max(1rem, var(--safe-area-right)) !important;
    }
    .bottom-nav {
        padding-left: max(1rem, var(--safe-area-left)) !important;
        padding-right: max(1rem, var(--safe-area-right)) !important;
        padding-bottom: max(0.5rem, var(--safe-area-bottom)) !important;
    }
    .main-content {
        padding-left: max(1rem, var(--safe-area-left)) !important;
        padding-right: max(1rem, var(--safe-area-right)) !important;
    }
}

@supports (-webkit-touch-callout: none) {
    .main-content { padding-bottom: calc(100px + env(safe-area-inset-bottom)) !important; }
}

/* ── Hide scrollbar on mobile ── */
@media (max-width: 767px) {
    .main-content::-webkit-scrollbar { display: none; }
    .main-content { -ms-overflow-style: none; scrollbar-width: none; }
    .desktop-nav { display: none !important; }
    .main-content { margin-left: 0 !important; max-width: 100% !important; width: 100% !important; }
    .mobile-header { height: 60px !important; }
    .main-content { padding-top: calc(70px + env(safe-area-inset-top)) !important; }
}

@media screen and (min-width: 768px) and (max-width: 1024px) and (orientation: landscape) {
    .desktop-nav { width: 200px !important; }
    .main-content { margin-left: 200px !important; max-width: calc(100% - 200px) !important; }
}

/* ================================================================
   DASHBOARD FOOTER
   ================================================================ */
.dashboard-footer {
    background: var(--bg-deep);
    border-top: 1px solid var(--border-soft);
    padding: 1.5rem 0;
    margin-top: 2rem;
}

.footer-brand a { color: var(--text-primary); text-decoration: none; display: flex; align-items: center; }
.footer-brand a:hover { color: var(--primary); }
.footer-brand-name { color: var(--primary); font-weight: 700; }
.footer-tagline { color: var(--text-secondary); font-size: 0.83rem; margin: 0.4rem 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1.5rem; }
.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.83rem;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.25rem 0;
    position: relative;
}
.footer-link:hover { color: var(--primary); }
.footer-link::after {
    content: '';
    position: absolute;
    bottom: 0; left: 0;
    width: 0; height: 1px;
    background: var(--primary);
    transition: width 0.22s ease;
}
.footer-link:hover::after { width: 100%; }
.footer-copy { color: var(--text-muted); font-size: 0.78rem; margin-top: 0.5rem; }
.footer-legal {
    background: rgba(0, 229, 160, 0.04);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    border-left: 2px solid var(--primary);
    font-size: 0.73rem;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .dashboard-footer { padding: 1.25rem 1rem; }
    .footer-links { justify-content: flex-start; gap: 1rem; margin-top: 0.85rem; }
    .text-md-right { text-align: left !important; }
    .footer-link { min-height: 40px; padding: 0.65rem 0; }
}

/* ================================================================
   ACCOUNT DASHBOARD — HERO, STATS, TRANSACTIONS
   ================================================================ */

/* ── HERO ── */
.db-hero { margin-bottom: 1.1rem; }

.db-hero-card {
    background: linear-gradient(135deg, #071e2e 0%, #0c2240 45%, #0a1928 100%);
    border: 1px solid rgba(0, 229, 160, 0.2);
    border-radius: var(--radius-lg);
    padding: 1.4rem 1.4rem 0;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 60px rgba(0,229,160,0.06), var(--shadow-card);
}
.db-hero-card::before {
    content: '';
    position: absolute;
    top: -70px; right: -70px;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(0,229,160,0.15) 0%, transparent 70%);
    pointer-events: none;
}
.db-hero-card::after {
    content: '';
    position: absolute;
    bottom: 20px; left: -40px;
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(67,97,238,0.1) 0%, transparent 70%);
    pointer-events: none;
}

.db-hero-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.4rem;
}
.db-hero-label {
    font-size: 0.72rem; font-weight: 600;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase; letter-spacing: 0.8px;
}
.db-hero-badge {
    background: rgba(0,229,160,0.12);
    border: 1px solid rgba(0,229,160,0.25);
    color: var(--primary);
    font-size: 0.68rem; font-weight: 700;
    padding: 0.18rem 0.55rem;
    border-radius: var(--radius-pill);
    display: inline-flex; align-items: center; gap: 0.3rem;
}
.db-pulse {
    font-size: 0.4rem;
    animation: dbPulse 1.8s ease-in-out infinite;
    -webkit-animation: dbPulse 1.8s ease-in-out infinite;
}
@keyframes dbPulse { 0%,100%{opacity:1} 50%{opacity:0.15} }
@-webkit-keyframes dbPulse { 0%,100%{opacity:1} 50%{opacity:0.15} }

.db-hero-amount {
    font-size: 3.2rem; font-weight: 800;
    color: #fff; letter-spacing: -2px; line-height: 1.06;
    margin-bottom: 0.7rem;
    position: relative; z-index: 1;
}

/* Hero buttons */
.db-hero-actions {
    display: flex; gap: 0.7rem; margin-bottom: 1rem;
    position: relative; z-index: 1;
}
.db-hero-btn {
    display: inline-flex !important;
    align-items: center; gap: 0.4rem;
    padding: 0.52rem 1.2rem;
    border-radius: var(--radius-pill);
    font-size: 0.82rem; font-weight: 700;
    text-decoration: none !important;
    transition: var(--transition);
    cursor: pointer; line-height: 1;
}
.db-hero-btn:active { opacity: 0.75; transform: scale(0.96); }
.db-hero-btn-dep {
    background: var(--primary) !important;
    color: #041a12 !important;
    border: none;
    box-shadow: 0 4px 16px rgba(0,229,160,0.3);
}
.db-hero-btn-dep:hover { background: #00f5b0 !important; }
.db-hero-btn-wit {
    background: rgba(255,255,255,0.07) !important;
    border: 1px solid rgba(255,255,255,0.18) !important;
    color: #f0f4f8 !important;
}
.db-hero-btn-wit:hover { background: rgba(255,255,255,0.12) !important; }

/* Sparkline */
.db-spark-wrap { margin: 0 -1.4rem; }
.db-spark-line {
    stroke-dasharray: 800; stroke-dashoffset: 800;
    animation: dbDraw 1.8s ease forwards 0.35s;
    -webkit-animation: dbDraw 1.8s ease forwards 0.35s;
}
.db-spark-dot {
    opacity: 0;
    animation: dbDot 0.3s ease forwards 2.1s;
    -webkit-animation: dbDot 0.3s ease forwards 2.1s;
}
@keyframes dbDraw { to { stroke-dashoffset: 0; } }
@keyframes dbDot { to { opacity: 1; } }
@-webkit-keyframes dbDraw { to { stroke-dashoffset: 0; } }
@-webkit-keyframes dbDot { to { opacity: 1; } }

/* ── STAT CARDS ── */
.db-stats {
    display: flex; gap: 0.75rem; margin-bottom: 1.25rem;
}
.db-stat-card {
    flex: 1;
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    padding: 1.1rem 0.9rem;
    display: flex; align-items: center; gap: 0.7rem;
    min-width: 0;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
}
.db-stat-card:hover { border-color: var(--primary-border); box-shadow: var(--shadow-glow); }
.db-stat-card:active { transform: scale(0.97); }

.db-stat-ico {
    width: 42px; height: 42px; border-radius: 11px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; flex-shrink: 0;
}
.db-ico-green { background: rgba(0,229,160,0.1); color: var(--primary); }
.db-ico-blue  { background: rgba(67,97,238,0.1); color: #6285f0; }

.db-stat-body { flex: 1; min-width: 0; }
.db-stat-lbl {
    font-size: 0.68rem; color: var(--text-secondary);
    text-transform: uppercase; letter-spacing: 0.6px;
    font-weight: 600; margin-bottom: 0.2rem;
    white-space: normal; line-height: 1.3;
}
.db-stat-val {
    font-size: 1.18rem; font-weight: 800;
    color: var(--text-primary); white-space: nowrap;
    letter-spacing: -0.02em;
}

/* ── SECTIONS ── */
.db-section { margin-bottom: 1.3rem; }
.db-section-last { margin-bottom: 2.5rem; }

.db-sec-hdr {
    display: flex; align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}
.db-sec-title {
    font-size: 0.97rem; font-weight: 700; color: var(--text-primary); margin: 0;
    display: flex; align-items: center; gap: 0.45rem;
    letter-spacing: -0.01em;
}
.db-sec-title i { color: var(--primary); font-size: 0.85rem; }
.db-sec-link {
    font-size: 0.76rem; color: var(--primary);
    text-decoration: none; font-weight: 600;
    display: flex; align-items: center; gap: 0.22rem;
    opacity: 0.85;
    transition: var(--transition);
}
.db-sec-link:hover { opacity: 1; }

/* ── TRANSACTION LIST ── */
.db-tx-list {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.db-tx-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.12s;
}
.db-tx-row:last-child { border-bottom: none; }
.db-tx-row:active { background: rgba(255,255,255,0.02); }
.db-tx-row:hover { background: rgba(0,229,160,0.02); }

.db-tx-circle {
    width: 42px; height: 42px; border-radius: 50%;
    background: var(--bg-raised);
    border: 1px solid var(--border-soft);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; overflow: hidden;
}
.db-coin-img { width: 24px; height: 24px; object-fit: contain; display: block; }
.db-coin-fa  { font-size: 1rem; color: var(--text-muted); }

.db-tx-mid { flex: 1; min-width: 0; }
.db-tx-name {
    font-size: 0.87rem; font-weight: 600; color: var(--text-primary);
    display: flex; align-items: center;
    gap: 0.35rem; margin-bottom: 0.16rem;
    overflow: hidden;
}
.db-tx-name-text {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    flex-shrink: 1;
}
.db-pill {
    font-size: 0.57rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.3px;
    padding: 0.07rem 0.38rem; border-radius: 4px;
    flex-shrink: 0;
}
.db-pill-dep { background: rgba(0,229,160,0.13); color: var(--primary); }
.db-pill-wit { background: rgba(244,162,97,0.13); color: #f4a261; }
.db-tx-when { font-size: 0.7rem; color: var(--text-muted); }

.db-tx-end {
    display: flex; flex-direction: column;
    align-items: flex-end; gap: 0.28rem; flex-shrink: 0;
}
.db-tx-amt { font-size: 0.93rem; font-weight: 800; white-space: nowrap; letter-spacing: -0.01em; }
.db-amt-in  { color: var(--primary); }
.db-amt-out { color: #f4a261; }

.db-badge {
    font-size: 0.58rem; font-weight: 700;
    padding: 0.12rem 0.4rem; border-radius: 5px;
    display: inline-flex; align-items: center; gap: 0.2rem;
    white-space: nowrap;
}
.db-badge i { font-size: 0.5rem; }
.db-b-green { background: rgba(0,229,160,0.12);  color: var(--primary); }
.db-b-amber { background: rgba(251,191,36,0.12); color: #fbbf24; }
.db-b-muted { background: rgba(148,163,184,0.08); color: var(--text-secondary); }
.db-b-red   { background: rgba(239,68,68,0.1);  color: #ef4444; }

/* ── Empty state ── */
.db-empty {
    background: var(--bg-surface);
    border: 1px dashed var(--border-medium);
    border-radius: var(--radius-md);
    padding: 2.5rem 1rem;
    text-align: center;
}
.db-empty-ico {
    width: 52px; height: 52px; border-radius: 50%;
    background: var(--primary-glow);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.35rem; color: var(--primary); margin: 0 auto 0.75rem;
}
.db-empty p { color: var(--text-secondary); font-size: 0.88rem; margin-bottom: 1rem; }
.db-cta {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--primary-dim));
    color: #041a12; font-size: 0.84rem; font-weight: 700;
    padding: 0.6rem 1.5rem; border-radius: var(--radius-pill);
    text-decoration: none;
    box-shadow: 0 4px 14px rgba(0,229,160,0.25);
}

/* ── ACCOUNT INFO ── */
.db-info-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-soft);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}
.db-info-row {
    display: flex; align-items: center;
    gap: 0.85rem; padding: 0.88rem 1rem;
    border-bottom: 1px solid var(--border-soft);
    transition: background 0.12s;
}
.db-info-row:hover { background: rgba(0,229,160,0.02); }
.db-info-last { border-bottom: none; }
.db-info-ico {
    width: 36px; height: 36px; border-radius: 9px;
    background: var(--primary-glow);
    display: flex; align-items: center; justify-content: center;
    color: var(--primary); font-size: 0.85rem;
    flex-shrink: 0;
}
.db-info-body { flex: 1; min-width: 0; }
.db-info-lbl {
    font-size: 0.65rem; color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.6px;
    font-weight: 600; margin-bottom: 0.14rem;
}
.db-info-val {
    font-size: 0.92rem; font-weight: 600; color: var(--text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.db-green { color: var(--primary); }
.db-muted { color: var(--text-muted); font-weight: 400; }
.db-info-edit {
    color: var(--text-muted); font-size: 0.78rem; padding: 0.4rem;
    text-decoration: none; flex-shrink: 0;
    transition: var(--transition);
}
.db-info-edit:hover { color: var(--primary); }

/* ── RESPONSIVE ── */
@media (min-width: 600px) {
    .db-hero-amount { font-size: 3.8rem; }
    .db-stat-val    { font-size: 1.32rem; }
    .db-stat-lbl    { font-size: 0.7rem; }
}
@media (max-width: 400px) {
    .db-hero-amount  { font-size: 2.6rem; }
    .db-stat-ico     { width: 36px; height: 36px; font-size: 0.95rem; }
    .db-stat-val     { font-size: 1rem; }
    .db-stat-lbl     { font-size: 0.63rem; }
    .db-stat-card    { padding: 0.85rem 0.7rem; gap: 0.55rem; }
    .db-tx-row       { padding: 0.72rem 0.8rem; gap: 0.6rem; }
    .db-tx-circle    { width: 36px; height: 36px; }
    .db-coin-img     { width: 20px; height: 20px; }
    .db-tx-amt       { font-size: 0.83rem; }
    .db-tx-name      { font-size: 0.81rem; }
    .db-hero-btn     { font-size: 0.75rem; padding: 0.4rem 0.85rem; }
}
