/* 
 * CryptoAgent - Professional Mobile UI
 * Premium mobile-only experience with glassmorphism and neon accents.
 */

/* --- Base & Reset --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-high);
    line-height: 1.5;
    min-height: 100vh;
    overflow-x: hidden;
    padding-top: var(--safe-area-top);
    padding-bottom: calc(70px + var(--safe-area-bottom));
    /* Leave space for bottom nav */
}

/* Background gradient blobs */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 0% 0%, rgba(0, 255, 163, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 100% 100%, rgba(195, 58, 255, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* --- Layout --- */

.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    padding: 12px 16px;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    font-size: 20px;
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    background: var(--grad-premium);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.header-actions {
    display: flex;
    gap: 12px;
}

.icon-btn {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    color: var(--text-mid);
    padding: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target-min);
    min-height: var(--touch-target-min);
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

.icon-btn:active {
    transform: scale(var(--touch-scale-active));
    background: var(--bg-surface-elevated);
    opacity: var(--touch-opacity-active);
}

/* --- View System --- */

.view-container {
    padding: 16px;
}

.view {
    display: none;
    animation: fadeIn 0.3s ease;
}

.view.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Mobile Stats Pills --- */

.mobile-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
}

.mobile-stats::-webkit-scrollbar {
    display: none;
}

.stat-pill {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 10px 16px;
    border-radius: var(--radius-full);
    display: flex;
    flex-direction: column;
    min-width: 120px;
    flex-shrink: 0;
}

.pill-label {
    font-size: 11px;
    color: var(--text-low);
    text-transform: uppercase;
    font-weight: 600;
}

.pill-value {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-primary);
}

/* --- Pro Terminal Console --- */
.pro-console-bar {
    position: fixed;
    bottom: calc(70px + var(--safe-area-bottom));
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.9);
    border-top: 1px solid var(--accent-primary);
    padding: 6px 16px;
    display: flex;
    gap: 10px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--accent-primary);
    z-index: 999;
}

.console-label {
    font-weight: 700;
    opacity: 0.7;
}

.console-ticker {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flash {
    animation: textPulse 0.5s ease;
}

@keyframes textPulse {
    0% {
        color: #fff;
    }

    100% {
        color: var(--accent-primary);
    }
}

/* --- Alpha Room UI --- */
.alpha-report-view {
    padding: 20px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    min-height: 200px;
}

.alpha-content h3 {
    color: var(--accent-secondary);
    margin-top: 20px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.alpha-content li {
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-mid);
}

/* --- Toasts --- */
.toast {
    position: fixed;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.85rem;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    animation: toastSlide 0.3s ease;
}

.toast-success {
    background: #00ffa3;
    color: #000;
}

.toast-warning {
    background: #ffcc00;
    color: #000;
}

.toast-error {
    background: #ff4d4d;
    color: #fff;
}

.toast-info {
    background: #3fa5ff;
    color: #fff;
}

@keyframes toastSlide {
    from {
        transform: translateX(-50%) translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }
}

/* --- Navigation --- */

.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(70px + var(--safe-area-bottom));
    background: rgba(15, 15, 24, 0.95);
    backdrop-filter: var(--glass-blur);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding-bottom: var(--safe-area-bottom);
    z-index: 1000;
}

.nav-item {
    background: none;
    border: none;
    color: var(--text-low);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 8px 12px;
    transition: var(--transition-fast);
}

.nav-item span {
    font-size: 10px;
    font-weight: 600;
}

.nav-item.active {
    color: var(--accent-primary);
    position: relative;
}

/* Neon glow underline */
.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--accent-primary);
    border-radius: 2px;
    box-shadow: 0 0 10px var(--accent-glow);
}

.nav-item.active svg {
    stroke: var(--accent-primary);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

.nav-fab {
    position: relative;
    top: -20px;
    padding: 0;
}

.fab-circle {
    width: 60px;
    height: 60px;
    background: var(--grad-premium);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(0, 255, 163, 0.4), 0 0 40px rgba(0, 255, 163, 0.2);
    border: 4px solid var(--bg-base);
    animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {

    0%,
    100% {
        transform: scale(1);
        box-shadow: 0 8px 24px rgba(0, 255, 163, 0.4), 0 0 40px rgba(0, 255, 163, 0.2);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 12px 32px rgba(0, 255, 163, 0.5), 0 0 60px rgba(0, 255, 163, 0.3);
    }
}

.nav-fab .ai-icon {
    font-size: 26px;
}

/* --- Components --- */

.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    margin-bottom: 16px;
    overflow: hidden;
    position: relative;
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
}

/* Remove hover - mobile-only */
.card:active {
    border-color: var(--glass-border-active);
    transform: scale(0.99);
}

.card.transparent {
    background: transparent;
    border: none;
    padding: 0;
    backdrop-filter: none;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 20px;
}

.btn-refresh {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--glass-border);
    color: var(--text-mid);
    padding: 6px;
    border-radius: 10px;
    display: flex;
}

/* List Items & Grids */
.mobile-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mobile-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

@media (max-width: 360px) {
    .mobile-grid {
        grid-template-columns: 1fr;
    }
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: var(--bg-surface);
    border-radius: var(--radius-md);
    border: 1px dashed var(--glass-border);
}

.empty-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    color: var(--text-low);
    font-size: 14px;
}

.coin-row {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-left: 3px solid var(--accent-primary);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: var(--touch-target-min);
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* Mobile-only active state - no hover effects */
.coin-row:active {
    transform: scale(0.98);
    background: var(--bg-surface-elevated);
    border-color: var(--glass-border-active);
    opacity: 0.9;
}

/* Price change indicator on left border */
.coin-row.positive {
    border-left-color: var(--success);
}

.coin-row.negative {
    border-left-color: var(--danger);
}

.coin-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.coin-info {
    flex: 1;
}

.coin-symbol {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-high);
}

.coin-name {
    font-size: 12px;
    color: var(--text-low);
}

.coin-stats {
    text-align: right;
}

.coin-price {
    font-weight: 700;
    font-size: 15px;
}

.coin-change {
    font-size: 12px;
    font-weight: 600;
}

.coin-change.up {
    color: var(--success);
}

.coin-change.down {
    color: var(--danger);
}

/* News Items */
.mobile-news-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.news-item {
    background: var(--bg-surface);
    padding: 16px;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--accent-primary);
}

.news-title {
    font-weight: 600;
    margin-bottom: 8px;
}

.news-meta {
    font-size: 11px;
    color: var(--text-low);
    display: flex;
    justify-content: space-between;
}

/* --- Portfolio Header --- */

.portfolio-header-card {
    background: var(--grad-premium);
    padding: 30px 20px;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-bottom: 24px;
    color: var(--bg-base);
    box-shadow: 0 12px 30px rgba(0, 255, 163, 0.2);
}

.balance-title {
    font-size: 14px;
    font-weight: 600;
    opacity: 0.8;
}

.balance-value {
    font-size: 36px;
    font-weight: 800;
    margin: 4px 0;
}

.balance-pnl {
    font-size: 14px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.1);
    padding: 2px 8px;
    border-radius: 20px;
    display: inline-block;
}

.portfolio-actions {
    margin-top: 20px;
}

.btn-primary-pill {
    background: var(--bg-base);
    color: var(--accent-primary);
    border: none;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 14px;
}

/* --- Menu System --- */

.menu-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.menu-section h3 {
    font-size: 12px;
    color: var(--text-low);
    text-transform: uppercase;
    margin-bottom: 12px;
    padding-left: 4px;
}

.menu-item {
    width: 100%;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text-high);
    margin-bottom: 8px;
    text-align: left;
    position: relative;
    transition: var(--transition-fast);
}

.menu-item:active {
    background: var(--bg-surface-elevated);
    border-color: var(--glass-border-active);
    transform: scale(0.98);
}

.menu-icon {
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-surface-elevated);
    border-radius: 8px;
}

.menu-text {
    flex: 1;
    font-weight: 600;
}

.menu-badge {
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
}

.menu-badge.new {
    background: var(--grad-premium);
    color: var(--bg-base);
    box-shadow: 0 0 10px rgba(0, 255, 163, 0.3);
}

.menu-badge.live {
    background: var(--danger);
    color: white;
    animation: flash 1s infinite;
}

@keyframes flash {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* --- Drawer & Bottom Sheets --- */

.modal-bottom-sheet {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(4px);
    z-index: 2000;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sheet-content {
    background: var(--bg-surface-elevated);
    border-top: 1px solid var(--glass-border);
    border-radius: 24px 24px 0 0;
    padding: 20px;
    padding-bottom: calc(20px + var(--safe-area-bottom));
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--text-low);
    border-radius: 2px;
    margin: 0 auto 16px;
    opacity: 0.3;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-mid);
    font-size: 24px;
}

/* Standardized Modal & Form Styles */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.form-group label {
    font-size: 11px;
    color: var(--text-low);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-input {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--glass-border);
    color: var(--text-high);
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: var(--transition-smooth);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 15px rgba(0, 255, 163, 0.1);
    background: var(--bg-surface);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.btn-primary-block,
.btn-block {
    width: 100%;
    background: var(--grad-premium);
    color: var(--bg-base);
    border: none;
    padding: 16px 20px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 15px;
    margin-top: 12px;
    transition: var(--transition-fast);
    cursor: pointer;
}

.btn-primary-block:active,
.btn-block:active {
    transform: scale(var(--touch-scale-active));
}

/* AI Drawer */
.ai-drawer {
    position: fixed;
    top: calc(var(--safe-area-top) + 60px);
    bottom: calc(70px + var(--safe-area-bottom));
    right: 0;
    width: 100%;
    background: var(--bg-base);
    z-index: 1500;
    display: flex;
    flex-direction: column;
    animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

.ai-chat-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ai-bubble {
    max-width: 85%;
    padding: 12px 16px;
    border-radius: 18px;
    font-size: 14px;
}

.ai-bubble.assistant {
    background: var(--bg-surface-elevated);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

.ai-bubble.user {
    background: var(--accent-primary);
    color: var(--bg-base);
    align-self: flex-end;
    border-bottom-right-radius: 4px;
    font-weight: 600;
}

.ai-footer {
    padding: 12px;
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 8px;
}

.ai-footer input {
    flex: 1;
    background: var(--bg-surface);
    border: none;
    color: white;
    padding: 12px;
    border-radius: 20px;
}

.send-btn {
    background: var(--accent-primary);
    border: none;
    color: var(--bg-base);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Loading Helpers */
.loading {
    display: flex;
    justify-content: center;
    padding: 40px;
}

.spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(0, 255, 163, 0.1);
    border-top-color: var(--accent-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Hide scrollbars hide but allow scrolling */
.mobile-only {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.mobile-only::-webkit-scrollbar {
    display: none;
}

/* Tier Badges & Tags */
#userTierBadge {
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-left: 10px;
    letter-spacing: 0.5px;
    border: 1px solid var(--glass-border);
    background: var(--bg-surface-elevated);
}

.tier-badge-basic {
    color: var(--text-mid);
}

.tier-badge-elite {
    color: var(--accent-primary);
    border-color: var(--accent-glow) !important;
    background: rgba(0, 255, 163, 0.1) !important;
    box-shadow: 0 0 10px var(--accent-glow);
}

.locked {
    opacity: 0.5;
    position: relative;
    pointer-events: none !important;
}

.locked::after {
    content: '??';
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 10px;
}

/* Bottom Sheet UI */
.modal-bottom-sheet {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 3000;
    background: rgba(0, 0, 0, 0.7);
    align-items: flex-end;
    backdrop-filter: blur(5px);
}

.sheet-content {
    width: 100%;
    background: var(--bg-surface);
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    padding: 24px;
    border-top: 1px solid var(--glass-border);
    animation: slideUp 0.3s ease-out;
}

.sheet-handle {
    width: 40px;
    height: 4px;
    background: var(--glass-border);
    border-radius: 2px;
    margin: -10px auto 20px auto;
}

.sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-primary-block {
    width: 100%;
    padding: 16px;
    border-radius: 12px;
    background: var(--accent-primary);
    color: var(--bg-base);
    border: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 10px;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }

    to {
        transform: translateY(0);
    }
}

/* 3D Spinning Token Animation */
@keyframes spin3D {
    0% {
        transform: rotateY(0deg);
    }

    100% {
        transform: rotateY(360deg);
    }
}

.elite-token-3d {
    width: 24px;
    height: 24px;
    margin-right: 8px;
    background: radial-gradient(circle, #00ffa3, #00774c);
    border-radius: 50%;
    display: inline-block;
    vertical-align: middle;
    animation: spin3D 3s linear infinite;
    box-shadow: 0 0 15px rgba(0, 255, 163, 0.6);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.elite-token-3d::after {
    content: '$';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Premium 3D Card Effects */
.card-3d {
    transition: transform 0.1s ease-out, box-shadow 0.1s ease-out;
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    box-shadow: 0 20px 40px rgba(0, 255, 163, 0.15);
}

.grad-premium {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.2), rgba(99, 102, 241, 0.2)) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(0, 255, 163, 0.3) !important;
}

/* Real-time Update Pulse */
@keyframes pricePulse {
    0% {
        background-color: transparent;
    }

    50% {
        background-color: rgba(0, 255, 163, 0.2);
        transform: scale(1.05);
    }

    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

.pulse-update {
    animation: pricePulse 0.8s ease-out;
    border-radius: 4px;
    padding: 2px 4px;
}

/* ===== PREMIUM BUTTON STYLES - MOBILE OPTIMIZED ===== */
.btn {
    position: relative;
    overflow: hidden;
    min-height: var(--touch-target-min);
    transition: var(--transition-fast);
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

/* Mobile ripple effect on tap */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width var(--touch-feedback-duration) ease, height var(--touch-feedback-duration) ease;
}

.btn:active::after {
    width: 100%;
    height: 100%;
}

.btn-primary {
    background: var(--grad-premium);
    color: var(--bg-base);
    border: none;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(0, 255, 163, 0.3);
}

/* Mobile-only active state - no hover */
.btn-primary:active {
    transform: scale(var(--touch-scale-active));
    box-shadow: 0 2px 10px rgba(0, 255, 163, 0.2);
}

/* ===== SKELETON LOADERS ===== */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-surface) 25%,
            var(--bg-surface-elevated) 50%,
            var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer 1.5s ease-in-out infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeletonShimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-row {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    background: var(--glass-bg);
    border-radius: var(--radius-md);
    margin-bottom: 12px;
}

.skeleton-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.skeleton-text {
    height: 14px;
    flex: 1;
    border-radius: 4px;
}

.skeleton-text-sm {
    height: 10px;
    width: 60%;
    border-radius: 3px;
    margin-top: 8px;
}

/* ===== EMPTY STATES ===== */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: var(--text-low);
}

.empty-state-icon {
    font-size: 56px;
    margin-bottom: 16px;
    opacity: 0.6;
}

.empty-state h3 {
    font-size: 18px;
    color: var(--text-mid);
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 14px;
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.5;
}

/* ===== STAGGERED LIST ANIMATION ===== */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-list .coin-row {
    animation: slideInUp 0.4s ease-out backwards;
}

.mobile-list .coin-row:nth-child(1) {
    animation-delay: 0.05s;
}

.mobile-list .coin-row:nth-child(2) {
    animation-delay: 0.1s;
}

.mobile-list .coin-row:nth-child(3) {
    animation-delay: 0.15s;
}

.mobile-list .coin-row:nth-child(4) {
    animation-delay: 0.2s;
}

.mobile-list .coin-row:nth-child(5) {
    animation-delay: 0.25s;
}

.mobile-list .coin-row:nth-child(6) {
    animation-delay: 0.3s;
}

.mobile-list .coin-row:nth-child(7) {
    animation-delay: 0.35s;
}

.mobile-list .coin-row:nth-child(8) {
    animation-delay: 0.4s;
}

/* ===== POSITIVE/NEGATIVE TEXT ===== */
.positive {
    color: var(--success) !important;
}

.negative {
    color: var(--danger) !important;
}

/* ===== ANIMATED COUNTER ===== */
.animated-number {
    display: inline-block;
    transition: all 0.3s ease;
}

/* ===== GLOW ORB BACKGROUND ===== */
.glow-orb {
    position: fixed;
    width: 300px;
    height: 300px;
    background: var(--grad-glow-orb);
    border-radius: 50%;
    filter: blur(80px);
    pointer-events: none;
    z-index: -1;
    opacity: 0.5;
}

.glow-orb-top {
    top: -100px;
    left: -100px;
}

.glow-orb-bottom {
    bottom: -100px;
    right: -100px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 70%);
}

/* CTA Card Premium Style */
.cta-card {
    background: linear-gradient(135deg, rgba(0, 255, 163, 0.08), rgba(168, 85, 247, 0.08));
    border: 1px solid var(--glass-border-active);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    backdrop-filter: var(--glass-blur);
}

.cta-card h3 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--text-high);
}

.cta-card p {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 16px;
}

/* Ticker Glass Style */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    height: 38px;
    background: rgba(10, 10, 18, 0.8);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.ticker {
    display: inline-block;
    white-space: nowrap;
    animation: ticker 25s linear infinite;
    color: var(--accent-primary);
    font-size: 11px;
    font-weight: 700;
    font-family: 'Inter', monospace;
    letter-spacing: 0.5px;
}

@keyframes ticker {
    0% {
        transform: translate3d(20%, 0, 0);
    }

    100% {
        transform: translate3d(-100%, 0, 0);
    }
}

.ticker span {
    display: inline-block;
    padding: 0 25px;
}

/* Badges & Live Indicators */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: var(--radius-xs);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--bg-surface-elevated);
    color: var(--text-mid);
    border: 1px solid var(--glass-border);
    vertical-align: middle;
}

.badge.live {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border-color: rgba(239, 68, 68, 0.2);
    animation: livePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes livePulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.6;
        transform: scale(0.98);
    }
}

.audit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.audit-value.highlight {
    color: var(--accent-primary);
    font-weight: 800;
}