/* ═══════════════════════════════════════
   Memecoin Screener — Dark Financial UI
   ═══════════════════════════════════════ */

:root {
    /* Color Palette */
    --bg-page: #050505;
    --bg-surface: #0a0a0a;
    --bg-surface-elevated: #111111;
    --bg-surface-hover: #171717;

    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-tertiary: #737373;

    --green: #10b981;
    --green-dim: rgba(16, 185, 129, 0.1);

    --orange: #f97316;
    --orange-dim: rgba(249, 115, 22, 0.1);

    --red: #ef4444;
    --red-dim: rgba(239, 68, 68, 0.1);

    --yellow: #eab308;
    --gold: #f59e0b;
    --purple-dim: rgba(168, 85, 247, 0.1);

    --border-light: #1f1f1f;
    --border-medium: #262626;

    /* Geometry */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    --spacing-section: 64px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-page);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Base Icons */
.lucide {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.spin {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    100% {
        transform: rotate(360deg);
    }
}

/* ═══════════════════════════════════════
   Header
   ═══════════════════════════════════════ */
.app-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 16px 36px;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    justify-self: start;
    display: flex;
    align-items: center;
    min-width: 0;
}

.header-left .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.header-left .logo-icon {
    color: var(--green);
    stroke-width: 2.5;
}

.header-left .logo span {
    color: var(--green);
    font-weight: 600;
}

.header-center {
    justify-self: center;
    display: flex;
    justify-content: center;
    position: static;
    transform: none;
    min-width: 0;
}

.nav-capsule {
    display: flex;
    gap: 4px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-light);
    border-radius: 100px;
    padding: 4px;
    max-width: 100%;
}

.nav-btn {
    padding: 7px 18px;
    border-radius: 100px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.nav-btn:hover {
    color: var(--text-primary);
}

.nav-btn.active {
    background: var(--border-light);
    color: var(--text-primary);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.header-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Search Popover: Icon-only button by default on both desktop and mobile */
.search-container {
    position: relative;
    flex-shrink: 0;
}

.search-container .mobile-search-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #111111;
    border: 1px solid #222222;
    color: #a3a3a3;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-container .mobile-search-btn:hover,
.search-container.search-active .mobile-search-btn {
    background: #1c1c1c;
    border-color: #383838;
    color: #ffffff;
}

.search-container .search-input-wrap {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 10px) !important;
    right: 0 !important;
    width: 290px !important;
    background: #0d0d0d !important;
    border: 1px solid #262626 !important;
    border-radius: 12px !important;
    padding: 6px 10px !important;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.05) !important;
    z-index: 1000 !important;
    align-items: center !important;
    gap: 8px !important;
    animation: searchPopFade 0.18s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes searchPopFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

.search-container.search-active .search-input-wrap {
    display: flex !important;
}

.search-container .search-box {
    width: 100% !important;
    background: transparent !important;
    border: none !important;
    padding: 6px 4px !important;
    color: #ffffff !important;
    font-size: 13px !important;
    outline: none !important;
}

.search-container .search-icon {
    position: static !important;
    transform: none !important;
    color: #737373 !important;
    width: 15px !important;
    height: 15px !important;
    flex-shrink: 0 !important;
}

.search-container .mobile-search-close {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: none !important;
    border: none !important;
    color: #737373 !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
}

.search-container .mobile-search-close:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.08) !important;
}

.icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.icon-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* ═══════════════════════════════════════
   Main Layout & Page Header
   ═══════════════════════════════════════ */
.main-content {
    padding: 48px;
    max-width: 1600px;
    margin: 0 auto;
}

.page-header {
    margin-bottom: var(--spacing-section);
}

.page-header h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.page-header p {
    font-size: 18px;
    color: var(--text-secondary);
    max-width: 600px;
    font-weight: 400;
}

/* ═══════════════════════════════════════
   KPI Section
   ═══════════════════════════════════════ */
.kpi-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: var(--spacing-section);
}

.kpi-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    display: flex;
    flex-direction: column;
}

.kpi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.kpi-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
}

.kpi-icon {
    color: var(--text-tertiary);
    width: 20px;
    height: 20px;
}

.kpi-value {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.kpi-sub {
    margin-top: 8px;
    font-size: 13px;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   Controls Section
   ═══════════════════════════════════════ */
.data-section {}

.section-header {
    margin-bottom: 24px;
}

.section-header h3 {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}

.section-header p {
    font-size: 14px;
    color: var(--text-secondary);
}

.controls-container {
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.control-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
}

.control-row {
    display: flex;
    gap: 4px;
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    padding: 4px;
}

.control-btn {
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.control-btn:hover {
    color: var(--text-primary);
}

.control-btn.active {
    background: var(--border-light);
    color: var(--text-primary);
}

.behavior-dropdown {
    padding: 8px 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-light);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    outline: none;
    appearance: none;
    min-width: 160px;
}

.behavior-dropdown:focus {
    border-color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   Table Surface
   ═══════════════════════════════════════ */
.table-container {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    overflow: auto;
    min-height: 400px;
}

table {
    width: 100%;
    min-width: 1200px;
    border-collapse: collapse;
}

thead th {
    position: sticky;
    top: 0;
    background: var(--bg-surface);
    padding: 20px 24px;
    text-align: right;
    font-weight: 500;
    font-size: 12px;
    color: var(--text-tertiary);
    border-bottom: 1px solid var(--border-light);
    white-space: nowrap;
    cursor: pointer;
    user-select: none;
    z-index: 10;
}

thead th:first-child {
    text-align: left;
}

thead th:hover {
    color: var(--text-secondary);
}

tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: background 0.15s ease;
    cursor: pointer;
}

tbody tr:hover {
    background: var(--bg-surface-hover);
}

td {
    padding: 20px 24px;
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-size: 14px;
}

td:first-child {
    text-align: left;
}

.empty-state {
    text-align: center;
    padding: 100px;
    color: var(--text-tertiary);
}

.empty-state .lucide {
    width: 32px;
    height: 32px;
    margin-bottom: 16px;
    opacity: 0.5;
}

/* Data Styles */
.price {
    color: var(--text-primary);
    font-weight: 500;
}

.age {
    color: var(--text-secondary);
}

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

.negative {
    color: var(--red);
}

.neutral {
    color: var(--text-tertiary);
}

.pnl-positive {
    color: var(--green);
    font-weight: 500;
}

.pnl-negative {
    color: var(--red);
    font-weight: 500;
}

.pnl-big {
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 13px;
}

.pnl-big.positive {
    background: var(--green-dim);
    color: var(--green);
}

.pnl-big.negative {
    background: var(--red-dim);
    color: var(--red);
}

.pnl-big.neutral {
    background: var(--bg-surface-elevated);
    color: var(--text-tertiary);
}

/* Cells & Avatars */
.token-cell,
.trader-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.token-rank,
.trader-rank {
    font-size: 13px;
    font-weight: 500;
    min-width: 24px;
    text-align: center;
    color: var(--text-tertiary);
}

.trader-rank.gold {
    color: var(--gold);
    font-weight: 700;
}

.trader-rank.silver {
    color: #d1d5db;
    font-weight: 700;
}

.trader-rank.bronze {
    color: #b45309;
    font-weight: 700;
}

.token-icon,
.trader-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-medium);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

.trader-avatar.top1 {
    background: rgba(245, 158, 11, 0.1);
    color: var(--gold);
    border-color: rgba(245, 158, 11, 0.3);
}

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

.token-info,
.trader-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.token-name,
.trader-address {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.trader-address {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.token-chain {
    font-size: 13px;
    color: var(--text-secondary);
}

.trader-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

/* Tags & Badges */
.tag {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tag-whale {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag-bot {
    background: var(--purple-dim);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.tag-insider {
    background: rgba(234, 179, 8, 0.1);
    color: var(--yellow);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge-amm {
    background: var(--green-dim);
    color: var(--green);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 6px;
}

/* Win Rate */
.winrate-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: flex-end;
}

.winrate-val {
    font-weight: 500;
    width: 44px;
    text-align: right;
}

.winrate-bar {
    width: 64px;
    height: 6px;
    background: var(--bg-surface-elevated);
    border-radius: 3px;
    overflow: hidden;
}

.winrate-fill {
    height: 100%;
    border-radius: 3px;
    transition: width .5s ease;
}

.winrate-high {
    background: var(--green);
}

.winrate-mid {
    background: var(--yellow);
}

.winrate-low {
    background: var(--red);
}

/* Investors Column */
.investors-cell {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    min-width: 90px;
}

.inv-count {
    font-weight: 600;
    font-size: 15px;
    color: var(--text-primary);
}

.inv-badges {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.inv-badge {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.inv-bar {
    width: 64px;
    height: 4px;
    background: rgba(167, 139, 250, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.inv-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 0.5s ease;
}

.inv-quality-high .inv-bar-fill {
    background: var(--green);
}

.inv-quality-mid .inv-bar-fill {
    background: var(--yellow);
}

.inv-quality-low .inv-bar-fill {
    background: var(--red);
}

/* Classification Colors */
.inv-elite {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.inv-profitable {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.inv-regular {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.inv-bot-profit {
    background: rgba(234, 179, 8, 0.1);
    color: var(--yellow);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.inv-bot {
    background: var(--purple-dim);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.inv-losing {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.inv-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    background: var(--bg-surface-elevated);
    border: 1px solid currentColor;
    margin-left: 6px;
}

.inv-score-cell {
    font-weight: 600;
    font-size: 13px;
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    display: inline-block;
}

.inv-score-high {
    background: var(--green-dim);
    color: var(--green);
}

.inv-score-mid {
    background: rgba(234, 179, 8, 0.1);
    color: var(--yellow);
}

.inv-score-low {
    background: var(--red-dim);
    color: var(--red);
}

/* Apply badge styles directly to tags */
.tag.inv-elite {
    background: var(--green-dim);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.tag.inv-profitable {
    background: rgba(59, 130, 246, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.tag.inv-regular {
    background: var(--bg-surface-elevated);
    color: var(--text-primary);
    border: 1px solid var(--border-medium);
}

.tag.inv-bot-profit {
    background: rgba(234, 179, 8, 0.1);
    color: var(--yellow);
    border: 1px solid rgba(234, 179, 8, 0.2);
}

.tag.inv-bot {
    background: var(--purple-dim);
    color: #a78bfa;
    border: 1px solid rgba(167, 139, 250, 0.2);
}

.tag.inv-losing {
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ═══════════════════════════════════════
   Drawer (Investor Guide)
   ═══════════════════════════════════════ */
.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 25000 !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 420px;
    max-width: 100vw;
    height: 100vh;
    height: 100dvh;
    background: #0d1117;
    border-left: 1px solid var(--border-light);
    z-index: 25001 !important;
    transform: translateX(100%);
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(0, 0, 0, 0.75);
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    padding-top: max(20px, env(safe-area-inset-top, 20px));
    border-bottom: 1px solid var(--border-light);
    background: #0d1117;
    position: sticky;
    top: 0;
    z-index: 10;
    flex-shrink: 0;
}

.drawer-header h2 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.4px;
    color: #ffffff;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-drawer {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    transition: all 0.2s ease;
}

.close-drawer:hover,
.close-drawer:active {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.2);
}

.close-drawer svg {
    width: 18px;
    height: 18px;
    stroke-width: 2.2;
}

.drawer-content {
    padding: 24px;
    padding-bottom: max(32px, env(safe-area-inset-bottom, 32px));
    overflow-y: auto;
    flex: 1;
    -webkit-overflow-scrolling: touch;
}

.guide-divider {
    height: 1px;
    background: var(--border-light);
    margin: 32px 0;
}

.guide-title {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-tertiary);
    margin-bottom: 16px;
}

.guide-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.guide-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.guide-label {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.guide-label strong {
    color: var(--text-primary);
    font-weight: 600;
    font-size: 14px;
}


/* Logout */
.guide-account-section {
    padding-bottom: 8px;
}

.logout-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 16px;
    background: var(--red-dim);
    color: var(--red);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.logout-btn:hover {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(239, 68, 68, 0.35);
}

.logout-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.logout-btn svg {
    width: 16px;
    height: 16px;
}

/* ═══════════════════════════════════════
   Status Bar
   ═══════════════════════════════════════ */
.status-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 48px;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    font-size: 12px;
    color: var(--text-tertiary);
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--yellow);
    margin-right: 8px;
    box-shadow: 0 0 8px var(--yellow);
}

.status-dot.connected {
    background: var(--green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.5);
}

.status-dot.error {
    background: var(--red);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.5);
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 4px;
    border: 2px solid var(--bg-page);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* Responsive */
@media (max-width: 1200px) {
    .kpi-section {
        grid-template-columns: repeat(2, 1fr);
    }

    .main-content {
        padding: 32px;
    }

    .app-header {
        padding: 16px 24px;
    }

    .header-center {
        position: static;
        transform: none;
        margin: 0 auto;
    }

    .search-box {
        width: 170px;
    }

    .search-box:focus {
        width: 210px;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .header-center {
        position: static;
        transform: none;
    }

    .kpi-section {
        grid-template-columns: 1fr;
    }

    .main-content {
        padding: 16px;
    }

    td,
    th {
        padding: 16px;
    }

    .controls-container {
        flex-direction: column;
        gap: 16px;
    }
}

/* ==========================================================================
   LIVE WALLET PANEL
   ========================================================================== */

.wallet-panel-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.wallet-panel-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.wallet-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(520px, 92vw);
    height: 100%;
    background: #0d0f12;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    overflow-y: auto;
}

.wallet-panel-overlay.active .wallet-panel {
    transform: translateX(0);
}

.wallet-panel-header {
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    background: rgba(13, 15, 18, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.wallet-panel-eyebrow {
    display: block;
    margin-bottom: 7px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #8b8f98;
}

.wallet-panel-header h2 {
    margin: 0;
    max-width: 390px;
    font-size: 16px;
    font-weight: 600;
    color: #f5f5f5;
    word-break: break-all;
}

.wallet-panel-close {
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.04);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.wallet-panel-close:hover {
    background: rgba(255, 255, 255, 0.09);
}

.wallet-panel-content {
    padding: 24px;
}

.wallet-panel-loading {
    padding: 40px 0;
    text-align: center;
    color: #8b8f98;
}

body.wallet-panel-open {
    overflow: hidden;
}

#tableBody tr {
    cursor: pointer;
}

@media (max-width: 600px) {
    .wallet-panel {
        width: 100%;
    }

    .wallet-panel-header,
    .wallet-panel-content {
        padding: 18px;
    }
}


.wallet-summary {
    padding: 18px;
    margin-bottom: 24px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.025);
}

.wallet-summary-label {
    margin-bottom: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8b8f98;
}

.wallet-summary-address {
    margin-bottom: 12px;
    font-family: monospace;
    font-size: 15px;
    color: #f5f5f5;
}

.wallet-solscan-link {
    font-size: 13px;
    text-decoration: none;
}

.wallet-panel-section {
    margin-top: 26px;
}

.wallet-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.wallet-section-heading h3 {
    margin: 0;
    font-size: 14px;
}

.wallet-section-heading span {
    font-size: 12px;
    color: #8b8f98;
}

.wallet-position-item,
.wallet-tx-item {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.wallet-position-item span,
.wallet-tx-item span {
    font-size: 13px;
}

.wallet-tx-item>div {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-tx-item>div:last-child {
    text-align: right;
}

.wallet-tx-item small {
    font-size: 11px;
    color: #747982;
}

.wallet-empty {
    padding: 20px 0;
    font-size: 13px;
    color: #747982;
}

/* ==========================================================================
   WALLET ALERTS
   ========================================================================== */

.notification-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Notification bell */
.notification-wrapper .icon-btn {
    position: relative;
}

.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;

    min-width: 18px;
    height: 18px;
    padding: 0 5px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 999px;

    background: var(--red);
    color: #ffffff;

    font-size: 10px;
    font-weight: 700;
    line-height: 1;

    border: 2px solid var(--bg-page);

    pointer-events: none;
}

.notification-badge.hidden {
    display: none;
}

/* Dropdown panel */
.notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;

    width: min(920px, calc(100vw - 48px));
    max-width: none;

    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);

    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);

    overflow: hidden;
    z-index: 1000;
}

.notification-panel.hidden {
    display: none;
}

/* Header */
.notification-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;

    padding: 16px 18px;

    border-bottom: 1px solid var(--border-light);
}

.notification-panel-title {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.notification-panel-title strong {
    color: var(--text-primary);
    font-size: 14px;
    font-weight: 600;
}

.notification-panel-title span {
    color: var(--text-tertiary);
    font-size: 11px;
}

/* Clear alerts */
.notification-clear-btn {
    padding: 6px 10px;

    background: transparent;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    color: var(--text-secondary);

    font-family: inherit;
    font-size: 11px;
    font-weight: 500;

    cursor: pointer;
    transition: all 0.15s ease;
}

.notification-clear-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

/* Alerts container */
.notification-list {
    max-height: 420px;
    overflow-y: auto;
}

/* Individual alert */
.notification-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;

    padding: 14px 18px;

    border-bottom: 1px solid var(--border-light);

    cursor: pointer;
    transition: background 0.15s ease;
}

.notification-item:last-child {
    border-bottom: none;
}

.notification-item:hover {
    background: var(--bg-surface-hover);
}

/* BUY / SELL indicator */
.notification-indicator {
    width: 8px;
    height: 8px;

    margin-top: 6px;

    flex: 0 0 8px;

    border-radius: 50%;
}

.notification-indicator.buy {
    background: var(--green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}

.notification-indicator.sell {
    background: var(--red);
    box-shadow: 0 0 8px rgba(239, 68, 68, 0.45);
}

/* Alert content */
.notification-content {
    flex: 1;
    min-width: 0;
}

.notification-main {
    display: flex;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 5px;
}

.notification-wallet-row,
.notification-token-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.notification-wallet-row {
    flex: 1;
}

.notification-token-row {
    flex: 1;
}

.notification-wallet-row .notification-wallet,
.notification-token-row .notification-token-address {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-copy-btn {
    flex-shrink: 0;

    padding: 4px 8px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    background: transparent;
    color: var(--text-tertiary);

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.notification-copy-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.notification-copy-btn:active {
    transform: translateY(1px);
}

.notification-type {
    flex-shrink: 0;

    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.notification-type.buy {
    color: var(--green);
}

.notification-type.sell {
    color: var(--red);
}

.notification-time {
    flex-shrink: 0;
    color: var(--text-tertiary);
    white-space: nowrap;
}

.notification-time {
    flex-shrink: 0;
    color: var(--text-tertiary);
}

/* Empty state */
.notification-empty {
    padding: 32px 20px;

    text-align: center;

    color: var(--text-tertiary);
    font-size: 13px;
}

/* Mobile */
@media (max-width: 600px) {
    .notification-panel {
        position: fixed;

        top: 76px;
        left: 16px;
        right: 16px;

        width: auto;
        max-width: none;
    }

    .notification-list {
        max-height: 60vh;
    }
}

/* ============================================================================
   Wallet Alerts - Live Toast Notifications
   ============================================================================ */

.wallet-alerts-container {
    position: fixed;
    top: 88px;
    right: 24px;

    width: 360px;
    max-width: calc(100vw - 32px);

    display: flex;
    flex-direction: column;
    gap: 10px;

    z-index: 1500;

    pointer-events: none;
}

.wallet-alert-toast {
    width: 100%;

    padding: 14px 16px;

    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);

    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);

    pointer-events: auto;

    animation: walletAlertEnter 0.25s ease-out;
}

.wallet-alert-toast.buy {
    border-left: 3px solid var(--green);
}

.wallet-alert-toast.sell {
    border-left: 3px solid var(--red);
}

.wallet-alert-toast.leaving {
    animation: walletAlertLeave 0.22s ease-in forwards;
}

.wallet-alert-toast-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    margin-bottom: 8px;

    color: var(--text-primary);

    font-size: 12px;
    font-weight: 600;
}

.wallet-alert-toast-title .buy {
    color: var(--green);
}

.wallet-alert-toast-title .sell {
    color: var(--red);
}

.wallet-alert-toast-token {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    margin-bottom: 6px;

    color: #60a5fa;

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
}

.wallet-alert-toast-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;

    color: var(--text-secondary);
    font-size: 11px;
}

@keyframes walletAlertEnter {
    from {
        opacity: 0;
        transform: translateX(24px);
    }

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

@keyframes walletAlertLeave {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(24px);
    }
}

@media (max-width: 600px) {
    .wallet-alerts-container {
        top: 82px;
        left: 16px;
        right: 16px;

        width: auto;
        max-width: none;
    }
}

/* ============================================================
   WALLET TRACK ACTIONS
   ============================================================ */

.wallet-summary-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wallet-track-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 7px 14px;

    border: 1px solid #10b981;
    border-radius: 8px;

    background: rgba(16, 185, 129, 0.10);
    color: #10b981;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;

    cursor: pointer;
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

.wallet-track-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.20);
}

.wallet-track-btn:disabled {
    cursor: default;
    opacity: 0.75;
}

.wallet-track-btn.tracked {
    background: rgba(16, 185, 129, 0.16);
    border-color: #10b981;
    color: #10b981;
}

/* Phantom / Web3 Wallet Header Button - Retractable & Responsive */
.wallet-connect-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 38px;
    padding: 0 14px;
    border-radius: 100px;
    border: 1px solid #222222;
    background: #111111;
    color: #e5e5e5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.wallet-connect-btn:hover {
    background: #181818;
    border-color: rgba(168, 85, 247, 0.4);
    color: #ffffff;
    box-shadow: 0 0 12px rgba(168, 85, 247, 0.15);
}

.wallet-connect-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #a855f7;
    transition: transform 0.2s ease;
}

.wallet-connect-btn:hover svg {
    transform: scale(1.08);
}

.wallet-connect-btn span {
    display: inline-block;
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: max-width 0.25s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, margin 0.25s ease;
}

/* Connected state */
.wallet-connect-btn.connected {
    background: rgba(16, 185, 129, 0.08);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.wallet-connect-btn.connected svg {
    color: #10b981;
}

.wallet-connect-btn.connected:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 14px rgba(16, 185, 129, 0.2);
}

/* Retract label when search input is focused, so it never overflows or collides */
.header-right:focus-within .wallet-connect-btn:not(:hover) span {
    max-width: 0;
    opacity: 0;
    margin: 0;
}

.header-right:focus-within .wallet-connect-btn:not(:hover) {
    padding: 0;
    width: 38px;
    border-radius: 50%;
}

/* Responsive: on screens below 1350px, auto-retract into compact icon pill unless hovered or connected */
@media (max-width: 1350px) {
    .wallet-connect-btn:not(:hover):not(.connected) span {
        max-width: 0;
        opacity: 0;
        margin: 0;
    }

    .wallet-connect-btn:not(:hover):not(.connected) {
        padding: 0;
        width: 38px;
        border-radius: 50%;
    }
}


/* ==========================================================================
   Wallet Alerts - aligned copy controls
   ========================================================================== */

.notification-item {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 14px 16px;
}

.notification-content {
    min-width: 0;
}

.notification-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.notification-wallet-row,
.notification-token-row {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.notification-wallet,
.notification-token-address {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.notification-details {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 14px;
    color: var(--text-secondary);
    font-size: 12px;
}

.notification-amount,
.notification-time {
    white-space: nowrap;
}

.notification-time {
    color: var(--text-tertiary);
}

.notification-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: 7px;
    background: transparent;
    color: var(--text-tertiary);
    cursor: pointer;
    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}

.notification-copy-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.notification-copy-btn:active {
    transform: scale(0.96);
}

.notification-copy-btn svg {
    width: 14px;
    height: 14px;
    stroke-width: 2;
}

.notification-copy-btn.copied {
    color: var(--green);
    border-color: var(--green);
}

.notification-type {
    justify-self: end;
}

/* ==========================================================================
   Wallet Alerts - Two Column Layout
   ========================================================================== */

.wallet-alerts-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    min-height: 420px;
    max-height: 560px;
}

.wallet-alerts-sidebar {
    min-width: 0;
    border-right: 1px solid var(--border-light);
    background: rgba(255, 255, 255, 0.015);
}

.wallet-alerts-sidebar-header,
.wallet-alerts-activity-header {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-light);
}

.wallet-alerts-sidebar-header span,
.wallet-alerts-activity-label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-tertiary);
}

.wallet-alerts-wallet-list {
    max-height: 510px;
    overflow-y: auto;
}

.wallet-alerts-activity {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.wallet-alerts-activity-header {
    justify-content: space-between;
}

.wallet-alerts-activity-header>div {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.wallet-alerts-selected-wallet {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    color: var(--text-secondary);
}

.wallet-alerts-activity .notification-list {
    flex: 1;
    max-height: 510px;
    overflow-y: auto;
}

@media (max-width: 760px) {
    .wallet-alerts-layout {
        grid-template-columns: 1fr;
        max-height: 70vh;
    }

    .wallet-alerts-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--border-light);
    }

    .wallet-alerts-wallet-list {
        max-height: 180px;
    }

    .wallet-alerts-activity .notification-list {
        max-height: 360px;
    }
}

/* ==========================================================================
   Wallet Alerts - Wallet Selector
   ========================================================================== */

.wallet-alert-wallet-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px;
    align-items: center;
    gap: 8px;

    padding: 6px 10px;

    border-bottom: 1px solid var(--border-light);

    transition: background 0.15s ease;
}

.wallet-alert-wallet-item:hover {
    background: var(--bg-surface-hover);
}

.wallet-alert-wallet-item.active {
    background: var(--green-dim);
}

.wallet-alert-select {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 10px 8px;

    border: none;
    background: transparent;
    color: inherit;

    font-family: inherit;
    text-align: left;

    cursor: pointer;
}

.wallet-alert-select-indicator {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;

    background: var(--border-medium);

    transition:
        background 0.15s ease,
        box-shadow 0.15s ease;
}

.wallet-alert-wallet-item.active .wallet-alert-select-indicator {
    background: var(--green);
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.45);
}

.wallet-alert-select-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wallet-alert-select-address {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text-primary);

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 12px;
    font-weight: 600;
}

.wallet-alert-select-count {
    color: var(--text-tertiary);
    font-size: 10px;
}

.wallet-alert-wallet-item.active .wallet-alert-select-address {
    color: var(--green);
}

.wallet-alert-sidebar-copy {
    justify-self: center;
}

/* Wallet Alerts - Add wallet button */

.wallet-alerts-sidebar-header {
    justify-content: space-between;
    gap: 10px;
}

.wallet-alerts-add-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 6px 9px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    background: transparent;
    color: var(--text-secondary);

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.wallet-alerts-add-btn:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.wallet-alerts-add-btn svg {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   Wallet Alerts - Available Wallet Picker
   ========================================================================== */

.wallet-alerts-add-btn.active {
    background: var(--green-dim);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--green);
}

.wallet-alerts-picker {
    padding: 10px;
    border-bottom: 1px solid var(--border-light);
    background: var(--bg-surface);
}

.wallet-alerts-picker-search {
    display: flex;
    align-items: center;
    gap: 8px;

    height: 36px;
    padding: 0 10px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    background: var(--bg-page);
}

.wallet-alerts-picker-search svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: var(--text-tertiary);
}

.wallet-alerts-picker-search input {
    width: 100%;
    min-width: 0;

    border: none;
    outline: none;

    background: transparent;
    color: var(--text-primary);

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
}

.wallet-alerts-picker-search input::placeholder {
    color: var(--text-tertiary);
}

.wallet-alerts-picker-list {
    max-height: 260px;
    margin-top: 8px;
    overflow-y: auto;
}

.wallet-alerts-picker-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;

    padding: 9px 6px;

    background: rgba(59, 130, 246, 0.14);
    border-bottom: 1px solid rgba(59, 130, 246, 0.28);

    transition: background 0.15s ease;
}

.wallet-alerts-picker-item:hover {
    background: rgba(59, 130, 246, 0.22);
}

.wallet-alerts-picker-item:last-child {
    border-bottom: none;
}

.wallet-alerts-picker-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 2px;
}

.wallet-alerts-picker-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #60a5fa;

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
}

.wallet-alerts-picker-meta {
    color: var(--text-tertiary);
    font-size: 10px;
}

.wallet-alerts-picker-add {
    padding: 5px 9px;

    border: 1px solid rgba(59, 130, 246, 0.35);
    border-radius: var(--radius-sm);

    background: rgba(59, 130, 246, 0.12);
    color: #60a5fa;

    font-family: inherit;
    font-size: 10px;
    font-weight: 600;

    cursor: pointer;
}

.wallet-alerts-picker-add:hover {
    background: rgba(16, 185, 129, 0.18);
}

.wallet-alerts-picker-add:disabled {
    opacity: 0.6;
    cursor: wait;
}

/* Wallet Alerts - Expanded panel */

.notification-panel {
    width: min(1320px, calc(100vw - 48px));
    max-width: 1320px;
}

.wallet-alerts-layout {
    grid-template-columns: 430px minmax(0, 1fr);
    min-height: 500px;
    max-height: 650px;
}

.wallet-alerts-wallet-list,
.wallet-alerts-activity .notification-list {
    max-height: 600px;
}

.notification-panel-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.notification-panel-close {
    width: 30px;
    height: 30px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    background: transparent;
    color: var(--text-secondary);

    cursor: pointer;

    transition:
        background 0.15s ease,
        color 0.15s ease,
        border-color 0.15s ease;
}

.notification-panel-close:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
    border-color: var(--border-medium);
}

.notification-panel-close svg {
    width: 15px;
    height: 15px;
}

.wallet-alerts-picker-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 8px;
}

.wallet-alerts-picker-header>span {
    color: var(--text-secondary);
    font-size: 11px;
    font-weight: 600;
}

.wallet-alerts-picker-close {
    width: 26px;
    height: 26px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    background: transparent;
    color: var(--text-tertiary);

    cursor: pointer;
}

.wallet-alerts-picker-close:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

.wallet-alerts-picker-close svg {
    width: 13px;
    height: 13px;
}

/* ==========================================================================
   Wallet Alerts - Tabs
   ========================================================================== */

.wallet-alerts-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;

    padding: 10px 12px;

    border-bottom: 1px solid var(--border-light);
    background: var(--bg-surface);
}

.wallet-alerts-tab {
    min-width: 0;

    padding: 9px 12px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    background: transparent;
    color: var(--text-secondary);

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease,
        box-shadow 0.15s ease;
}

.wallet-alerts-tab:hover {
    background: var(--bg-surface-hover);
    color: var(--text-primary);
}

#walletAlertsTrackedTab.active {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.35);
    color: var(--green);
    box-shadow: inset 0 -2px 0 rgba(16, 185, 129, 0.65);
}

#walletAlertsAvailableTab.active {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.35);
    color: #60a5fa;
    box-shadow: inset 0 -2px 0 rgba(59, 130, 246, 0.65);
}

.wallet-alerts-tab-content {
    min-height: 500px;
}

.wallet-alerts-tab-panel[hidden] {
    display: none !important;
}

.wallet-alerts-tab-panel.active {
    display: block;
}

/* Available wallets section */
#walletAlertsAvailablePanel .wallet-alerts-sidebar {
    background: rgba(59, 130, 246, 0.025);
}

#walletAlertsAvailablePanel .wallet-alerts-sidebar-header span {
    color: #60a5fa;
}

#walletAlertsAvailablePanel .wallet-alerts-picker-search {
    margin: 10px 10px 0;
}

#walletAlertsAvailablePanel .wallet-alerts-picker-list {
    max-height: 520px;
    margin: 8px 10px 0;
}

/* Keep Add action consistently blue */
.wallet-alerts-picker-add:hover {
    background: rgba(59, 130, 246, 0.20);
}

@media (max-width: 760px) {
    .wallet-alerts-tabs {
        grid-template-columns: 1fr;
    }

    .wallet-alerts-tab-content {
        min-height: auto;
    }
}

/* Available wallet selection */
.wallet-alerts-available-select {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 6px;

    border: none;
    background: transparent;
    color: inherit;

    font-family: inherit;
    text-align: left;

    cursor: pointer;
}

.wallet-alerts-available-indicator {
    width: 8px;
    height: 8px;

    flex: 0 0 8px;

    border-radius: 50%;
    background: rgba(96, 165, 250, 0.4);
}

.wallet-alerts-picker-item.active {
    background: rgba(59, 130, 246, 0.22);
}

.wallet-alerts-picker-item.active .wallet-alerts-available-indicator {
    background: #60a5fa;
    box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}


/* Wallet management feedback */
.wallet-alerts-status {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 30;

    padding: 8px 12px;

    border-radius: var(--radius-sm);
    border: 1px solid rgba(16, 185, 129, 0.35);

    background: rgba(16, 185, 129, 0.14);
    color: var(--green);

    font-size: 11px;
    font-weight: 600;

    backdrop-filter: blur(8px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.wallet-alerts-status.leaving {
    opacity: 0;
    transform: translateY(4px);
}

/* ==========================================================================
   Wallet Alerts - Profitable Wallets
   ========================================================================== */

.wallet-alerts-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

#walletAlertsProfitableTab.active {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fbbf24;
    box-shadow: inset 0 -2px 0 rgba(245, 158, 11, 0.7);
}

#walletAlertsProfitablePanel .wallet-alerts-sidebar {
    background: rgba(245, 158, 11, 0.025);
}

#walletAlertsProfitablePanel .wallet-alerts-sidebar-header span {
    color: #fbbf24;
}

#walletAlertsProfitablePanel .wallet-alerts-picker-search {
    margin: 10px 10px 0;
}

#walletAlertsProfitablePanel .wallet-alerts-picker-list {
    max-height: 520px;
    margin: 8px 10px 0;
}

.wallet-alerts-profitable-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;

    padding: 9px 6px;

    background: rgba(245, 158, 11, 0.08);
    border-bottom: 1px solid rgba(245, 158, 11, 0.18);

    transition: background 0.15s ease;
}

.wallet-alerts-profitable-item:hover {
    background: rgba(245, 158, 11, 0.14);
}

.wallet-alerts-profitable-item.active {
    background: rgba(245, 158, 11, 0.20);
}

.wallet-alerts-profitable-select {
    min-width: 0;

    display: flex;
    align-items: center;
    gap: 10px;

    padding: 9px 6px;

    border: none;
    background: transparent;
    color: inherit;

    font-family: inherit;
    text-align: left;

    cursor: pointer;
}

.wallet-alerts-profitable-indicator {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;

    border-radius: 50%;
    background: rgba(251, 191, 36, 0.45);
}

.wallet-alerts-profitable-item.active .wallet-alerts-profitable-indicator {
    background: #fbbf24;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

.wallet-alerts-profitable-info {
    min-width: 0;

    display: flex;
    flex-direction: column;
    gap: 3px;
}

.wallet-alerts-profitable-address {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: #fbbf24;

    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 11px;
    font-weight: 600;
}

.wallet-alerts-profitable-pnl {
    color: var(--green);
    font-size: 10px;
    font-weight: 600;
}

.wallet-alerts-profitable-tracked {
    padding: 5px 9px;

    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-sm);

    background: rgba(16, 185, 129, 0.10);
    color: var(--green);

    font-size: 10px;
    font-weight: 600;
}


/* Profitable Wallets - filters */
.wallet-alerts-profitable-filters {
    margin: 10px 10px 0;
    padding: 10px;

    display: flex;
    flex-direction: column;
    gap: 10px;

    border: 1px solid rgba(245, 158, 11, 0.16);
    border-radius: var(--radius-sm);
    background: rgba(245, 158, 11, 0.035);
}

.wallet-alerts-profitable-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wallet-alerts-profitable-filter-label {
    color: var(--text-secondary);
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.wallet-alerts-profitable-time-filters {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 4px;
}

.wallet-alerts-profitable-time-filters button {
    min-width: 0;
    padding: 6px 2px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    background: var(--bg-surface);
    color: var(--text-secondary);

    font-family: inherit;
    font-size: 9px;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

.wallet-alerts-profitable-time-filters button:hover {
    border-color: rgba(245, 158, 11, 0.38);
    color: #fbbf24;
}

.wallet-alerts-profitable-time-filters button.active {
    border-color: rgba(245, 158, 11, 0.55);
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}

.wallet-alerts-profitable-pnl-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
}

.wallet-alerts-profitable-pnl-row input {
    min-width: 0;
    width: 100%;
    padding: 7px 9px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    outline: none;

    background: var(--bg-surface);
    color: var(--text-primary);

    font-family: inherit;
    font-size: 11px;
}

.wallet-alerts-profitable-pnl-row input:focus {
    border-color: rgba(245, 158, 11, 0.55);
}

.wallet-alerts-profitable-pnl-row button {
    padding: 7px 11px;

    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: var(--radius-sm);

    background: rgba(245, 158, 11, 0.10);
    color: #fbbf24;

    font-family: inherit;
    font-size: 10px;
    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}

.wallet-alerts-profitable-pnl-row button:hover {
    background: rgba(245, 158, 11, 0.18);
    border-color: rgba(245, 158, 11, 0.55);
}

.wallet-alerts-profitable-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;

    color: var(--text-secondary);
    font-size: 9px;
    line-height: 1.35;
}

@media (max-width: 760px) {
    .wallet-alerts-tabs {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Wallet Alerts - Compact new-alert summary
   ========================================================================== */

.wallet-alert-toast-summary {
    display: inline-flex;
    align-items: center;

    padding: 8px 12px;

    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);

    background: rgba(17, 24, 39, 0.94);
    color: var(--text-secondary);

    font-size: 11px;
    font-weight: 600;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(10px);

    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.wallet-alert-toast-summary.leaving {
    opacity: 0;
    transform: translateY(4px);
}

.wallet-alert-sidebar-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.wallet-alert-remove-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition:
        background 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        opacity 0.18s ease;
}

.wallet-alert-remove-btn:hover {
    background: rgba(239, 68, 68, 0.10);
    border-color: rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

.wallet-alert-remove-btn:disabled {
    cursor: wait;
    opacity: 0.45;
}

.wallet-alert-remove-btn svg {
    width: 14px;
    height: 14px;
}

.wallet-alert-sidebar-actions {
    width: 72px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
}

/* ==========================================================================
   Wallet Alerts - Collapsible Toast Stack
   ========================================================================== */

.wallet-alert-toast[hidden],
.wallet-alert-toast-summary[hidden] {
    display: none !important;
}

.wallet-alerts-container.expanded {
    max-height: min(70vh, 600px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 4px;
    pointer-events: auto;
}

.wallet-alert-toast-summary {
    width: 100%;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    flex-shrink: 0;
}

.wallet-alert-toast-summary:hover {
    background: var(--bg-surface);
    color: var(--text-primary);
}

.wallet-alert-toast-summary:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

/* ==========================================================================
   PREMIUM LIMIT MODAL (Glassmorphism & Obsidian/Purple/Emerald)
   ========================================================================== */

.premium-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

#phantomInstallModalOverlay {
    z-index: 10001;
}

.premium-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.premium-modal {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, #12151e 0%, #0a0c12 100%);
    border: 1px solid rgba(168, 85, 247, 0.28);
    box-shadow: 0 28px 72px -12px rgba(0, 0, 0, 0.95),
        0 0 45px rgba(168, 85, 247, 0.15);
    border-radius: 20px;
    padding: 36px 32px 30px;
    text-align: center;
    transform: scale(0.96) translateY(8px);
    transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
}

.premium-modal-overlay.active .premium-modal {
    transform: scale(1) translateY(0);
}

.premium-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s ease;
}

.premium-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.premium-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 9999px;
    background: rgba(168, 85, 247, 0.12);
    border: 1px solid rgba(168, 85, 247, 0.35);
    color: #c084fc;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.premium-modal-badge svg {
    width: 13px;
    height: 13px;
    stroke: #c084fc;
}

.premium-modal-icon-wrap {
    width: 62px;
    height: 62px;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.22) 0%, rgba(168, 85, 247, 0.04) 75%);
    border: 1px solid rgba(168, 85, 247, 0.38);
    box-shadow: 0 0 24px rgba(168, 85, 247, 0.2);
}

.premium-modal-icon-wrap svg,
.premium-glow-icon,
.premium-gold-icon {
    width: 28px;
    height: 28px;
    color: #c084fc;
    stroke: #c084fc;
}

.premium-modal-title {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
    letter-spacing: -0.02em;
}

.premium-modal-desc {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.55;
    margin-bottom: 22px;
}

.premium-modal-desc strong {
    color: #c084fc;
    font-weight: 600;
}

.premium-modal-features {
    background: rgba(10, 13, 19, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px 18px;
    text-align: left;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.premium-feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    color: #cbd5e1;
}

.premium-feature-check {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #34d399;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
}

.premium-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.premium-modal-upgrade-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 13px 24px;
    background: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(168, 85, 247, 0.35);
    transition: all 0.18s ease;
}

.premium-modal-upgrade-btn:hover {
    background: linear-gradient(135deg, #b86bfc 0%, #8b45f7 100%);
    box-shadow: 0 6px 26px rgba(168, 85, 247, 0.55);
    transform: translateY(-1px);
    color: #ffffff;
}

.premium-modal-upgrade-btn svg {
    width: 16px;
    height: 16px;
    stroke: currentColor;
    fill: currentColor;
}

.premium-modal-cancel-btn {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12.5px;
    padding: 6px 12px;
    cursor: pointer;
    transition: color 0.15s ease;
}

.premium-modal-cancel-btn:hover {
    color: #94a3b8;
}

/* ==========================================================================
   Guest Preview Mode (Landing -> App Conversion Experience)
   ========================================================================== */

.page-title-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.page-title-row h1 {
    margin-bottom: 0 !important;
}

.preview-mode-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.preview-mode-badge svg,
.preview-mode-badge i {
    width: 14px;
    height: 14px;
    stroke-width: 2.2;
}

/* Blur KPIs in guest mode */
.kpi-blur {
    filter: blur(7px);
    opacity: 0.45;
    user-select: none;
    pointer-events: none;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

/* Locked table cells in guest mode */
.locked-cell {
    text-align: center;
    vertical-align: middle;
}

.cell-lock-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.28);
    font-size: 14px;
    user-select: none;
}

/* Blurred table rows for rows > 2 */
.blurred-guest-row {
    filter: blur(5px);
    opacity: 0.3;
    pointer-events: none;
    user-select: none;
}

/* Centered Guest Preview Modal Card */
.guest-preview-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 20000 !important;
    background: rgba(4, 7, 12, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.guest-preview-modal-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.guest-preview-card {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.95),
        0 0 35px rgba(16, 185, 129, 0.08);
    border-radius: 24px;
    padding: 38px 32px 28px;
    text-align: center;
    transform: scale(0.96) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.guest-preview-modal-overlay.active .guest-preview-card {
    transform: scale(1) translateY(0);
}

.guest-preview-icon-wrap {
    width: 56px;
    height: 56px;
    margin: 0 auto 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.35);
    box-shadow: 0 0 25px rgba(16, 185, 129, 0.2);
}

.guest-preview-heartbeat-icon {
    width: 28px;
    height: 28px;
    color: #10b981;
    stroke: #10b981;
}

.guest-preview-title {
    font-size: 24px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
    letter-spacing: -0.02em;
}

.guest-preview-desc {
    color: #94a3b8;
    font-size: 13.5px;
    line-height: 1.55;
    max-width: 380px;
    margin: 0 auto 28px;
}

.guest-preview-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.guest-preview-btn-primary {
    flex: 1.2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 20px;
    background: #10b981;
    color: #032014;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(16, 185, 129, 0.32);
    transition: all 0.15s ease;
}

.guest-preview-btn-primary:hover {
    background: #059669;
    color: #ffffff;
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.45);
    transform: translateY(-1px);
}

.guest-preview-btn-secondary {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 18px;
    background: rgba(255, 255, 255, 0.03);
    color: #e2e8f0;
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 12px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.16);
    cursor: pointer;
    transition: all 0.15s ease;
}

.guest-preview-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    transform: translateY(-1px);
}

.guest-preview-back-link {
    display: inline-block;
    color: #64748b;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.15s ease;
}

.guest-preview-back-link:hover {
    color: #94a3b8;
    text-decoration: underline;
}

#walletAlertsPanel[hidden] {
    display: none !important;
}

.guest-preview-modal-overlay {
    z-index: 20000 !important;
}




/* ===== Account Menu Styles ===== */
.account-menu-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
}

#settingsToggleBtn.account-btn-logged {
    color: #00c087;
    border-color: rgba(0, 192, 135, 0.35);
    background: rgba(0, 192, 135, 0.08);
}

.account-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 320px;
    z-index: 1200;
    background: #0d1117;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85);
    padding: 16px;
}

.account-menu[hidden] {
    display: none !important;
}

.account-menu-header {
    display: flex;
    gap: 12px;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 4px;
}

.account-menu-header.account-menu-guest {
    flex-direction: column;
    align-items: center;
    text-align: center;
    border-bottom: none;
    padding-bottom: 8px;
}

.account-menu-avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 192, 135, 0.12);
    color: #00c087;
    border: 1.5px solid #00c087;
}

.account-menu-avatar svg {
    width: 22px;
    height: 22px;
    stroke-width: 2.2;
}

.account-menu-title {
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    line-height: 1.3;
    letter-spacing: -0.2px;
}

.account-menu-sub {
    color: #94a3b8;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    margin-top: 2px;
}

.account-menu-section-label {
    color: #64748b;
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
    padding: 12px 2px 8px;
}

.account-sub-card {
    margin: 0 0 14px 0;
    padding: 14px;
    border-radius: 12px;
    background: #080c11;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.account-sub-card.is-premium {
    border-color: rgba(0, 192, 135, 0.35);
    background: rgba(0, 192, 135, 0.05);
}

.account-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.account-sub-plan {
    color: #ffffff;
    font-weight: 600;
    font-size: 13.5px;
}

.account-sub-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    letter-spacing: 0.5px;
}

.account-sub-card.is-premium .account-sub-badge {
    background: rgba(0, 192, 135, 0.2);
    color: #00c087;
}

.account-sub-meta {
    color: #64748b;
    font-size: 12.5px;
    margin-top: 3px;
}

.account-sub-meta b {
    color: #ffffff;
    font-weight: 600;
    text-transform: capitalize;
}

.account-sub-upgrade {
    margin-top: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 10px;
    background: #00c087;
    color: #000000;
    font-weight: 700;
    font-size: 13.5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.account-sub-upgrade:hover {
    background: #00a875;
    color: #000000;
    transform: translateY(-1px);
}

.account-sub-upgrade svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.5;
}

.account-menu-actions {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.account-menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 8px;
    background: none;
    border: 0;
    color: #cbd5e1;
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    text-align: left;
    transition: background 0.15s;
}

.account-menu-item svg {
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.account-menu-item:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.account-menu-danger {
    color: #ef4444 !important;
}

.account-menu-danger svg {
    color: #ef4444 !important;
}

.account-menu-danger:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171 !important;
}

.account-menu-guest-body {
    padding: 4px 6px 6px;
}

.account-menu-guest-desc {
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.45;
    margin: 0 0 10px 0;
    text-align: center;
}

/* Header Login Button (Guest mode desktop) */
.header-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 16px;
    height: 36px;
    border-radius: 9999px;
    background: #00c087;
    color: #032014;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 192, 135, 0.28);
    transition: all 0.2s ease;
}

.header-login-btn:hover {
    background: #00a875;
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 192, 135, 0.45);
    transform: translateY(-1px);
}

.header-login-btn svg {
    width: 15px;
    height: 15px;
    stroke-width: 2.3;
}


/* ═══════════════════════════════════════
   Tokens Exact Numeric Precision & Layout (Fase 3)
   ═══════════════════════════════════════ */
td.price {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    letter-spacing: -0.01em;
}

td.price sub {
    font-size: 0.72em;
    font-weight: 700;
    color: var(--text-secondary);
    bottom: -0.15em;
    padding: 0 1px;
}

/* Badge LAG para sincronización retrasada */
.badge-amm.badge-lag {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Tooltip nativo estilizado en cifras grandes */
td[data-full-value] {
    position: relative;
    cursor: default;
}

@media (max-width: 1024px) {
    .table-container {
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 1350px;
    }
}

/* Token Address Copy Button in Table */
.token-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    padding: 0;
    margin-left: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-tertiary);
    cursor: pointer;
    vertical-align: middle;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.token-copy-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.token-copy-btn:active {
    transform: scale(0.95);
}

.token-copy-btn svg {
    width: 12px;
    height: 12px;
    stroke-width: 2;
}

.token-copy-btn.copied {
    color: var(--green);
    border-color: var(--green);
    background: rgba(16, 185, 129, 0.12);
}

/* PnL Wallets Column Highlights */
.pnl-wallets-cell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    font-variant-numeric: tabular-nums;
}

.pnl-wallets-cell.has-wallets {
    color: #34d399;
    font-weight: 700;
}

.pnl-wallets-cell.zero {
    color: var(--text-tertiary);
    opacity: 0.6;
}

/* Free Plan Notice Banner */
.wallet-alerts-free-notice {
    margin: 8px 12px;
    padding: 8px 12px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 8px;
    font-size: 11.5px;
    color: #fbbf24;
    line-height: 1.45;
}

.wallet-alerts-free-notice a {
    color: #60a5fa;
    text-decoration: underline;
    cursor: pointer;
    font-weight: 600;
}

.wallet-alerts-free-notice a:hover {
    color: #93c5fd;
}

/* Past Tracked Wallets Modal */
.wallet-history-modal {
    max-width: 580px;
    width: 90%;
}

.wallet-history-list {
    max-height: 320px;
    overflow-y: auto;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-right: 4px;
}

.wallet-history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.wallet-history-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.wallet-history-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.wallet-history-address-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: monospace;
    font-size: 13px;
    color: var(--text-primary);
}

.wallet-history-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    display: flex;
    gap: 12px;
}

.wallet-history-meta span.winrate {
    color: #34d399;
}

.wallet-history-action {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.wallet-history-action-btn {
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid rgba(59, 130, 246, 0.4);
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    transition: all 0.15s ease;
}

.wallet-history-action-btn:hover:not(:disabled) {
    background: rgba(59, 130, 246, 0.3);
    border-color: #60a5fa;
}

.wallet-history-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-tertiary);
}

.wallet-history-badge-active {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 6px;
}

/* Badges for Recent / Pinned Orders on Tokens */
.badge-recent-order {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.4);
    margin-left: 6px;
    vertical-align: middle;
}

.badge-pinned-order {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.4);
    margin-left: 6px;
    vertical-align: middle;
    animation: pulse-pin 2s infinite;
}

@keyframes pulse-pin {

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

    50% {
        opacity: 0.85;
        transform: scale(1.04);
    }
}

/* Auto-pin Toggle Switch */
.control-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-secondary);
    user-select: none;
    padding: 4px 8px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.15s ease;
}

.control-toggle:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.control-toggle input[type="checkbox"] {
    display: none;
}

.control-toggle .toggle-track {
    width: 28px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    position: relative;
    transition: background 0.2s ease;
}

.control-toggle .toggle-track::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ffffff;
    top: 2px;
    left: 2px;
    transition: transform 0.2s ease;
}

.control-toggle input[type="checkbox"]:checked+.toggle-track {
    background: #10b981;
}

.control-toggle input[type="checkbox"]:checked+.toggle-track::after {
    transform: translateX(12px);
}

/* Tokens PnL Custom USD Input */
#tokensPnlCustomUsd {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

#tokensPnlCustomUsd:focus {
    border-color: #10b981;
    background: rgba(255, 255, 255, 0.08);
}

#tokensPnlCustomUsd::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

/* ═══════════════════════════════════════
   Table Pagination (Selector de páginas)
   ═══════════════════════════════════════ */
.table-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 12px 24px;
    margin: 24px auto 16px;
    background: rgba(18, 20, 29, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    width: fit-content;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.pagination-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary, #ffffff);
    font-size: 13px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.pagination-btn svg,
.pagination-btn i {
    width: 15px;
    height: 15px;
    stroke-width: 2.2;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.25);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(-1px);
}

.pagination-btn:active:not(:disabled) {
    transform: translateY(0);
}

.pagination-btn:disabled {
    opacity: 0.28;
    cursor: not-allowed;
    background: transparent;
    border-color: rgba(255, 255, 255, 0.05);
    color: var(--text-tertiary, #64748b);
}

.pagination-info {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary, #94a3b8);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 4px;
    letter-spacing: 0.2px;
    user-select: none;
}

.pagination-info .page-current {
    color: #10b981;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(16, 185, 129, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.pagination-info .page-total {
    color: var(--text-primary, #ffffff);
    font-weight: 600;
}

/* ==========================================================================
   MOBILE RESPONSIVE DESIGN (< 640px)
   Matches Figma Mockup (Top Traders Cards & Trader Details Bottom Sheet)
   ========================================================================== */

/* Desktop defaults: hide mobile card elements */
.mobile-cards-container {
    display: none;
}

.mobile-details-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-details-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.mobile-details-sheet {
    width: 100%;
    max-width: 600px;
    max-height: 88vh;
    background: #0d1117;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 48px rgba(0, 0, 0, 0.75);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}

.mobile-details-overlay.active .mobile-details-sheet {
    transform: translateY(0);
}

.mobile-sheet-drag-handle {
    width: 38px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 2px;
    margin: 10px auto 4px auto;
    flex-shrink: 0;
}

.mobile-sheet-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.mobile-sheet-title {
    font-size: 18px;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    letter-spacing: -0.2px;
}

.mobile-sheet-close-btn {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
}

.mobile-sheet-close-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(1.04);
}

.mobile-sheet-close-btn:active {
    transform: scale(0.96);
}

.mobile-sheet-close-btn svg {
    width: 18px;
    height: 18px;
}

.mobile-sheet-body {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 20px 36px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overscroll-behavior: contain;
}

/* Identity inside Sheet */
.mobile-sheet-identity {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.mobile-sheet-identity-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mobile-sheet-address {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace, ui-monospace;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

/* Hero Box inside Sheet */
.mobile-sheet-hero {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(16, 185, 129, 0.03) 100%);
    border: 1px solid rgba(16, 185, 129, 0.28);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-sheet-hero.negative-hero {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.14) 0%, rgba(239, 68, 68, 0.03) 100%);
    border-color: rgba(239, 68, 68, 0.28);
}

.mobile-sheet-hero-col {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.mobile-sheet-hero-col.right {
    align-items: flex-end;
    text-align: right;
}

.mobile-sheet-hero-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-sheet-hero-val {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.4px;
    font-variant-numeric: tabular-nums;
}

.mobile-sheet-hero-val.pnl-positive,
.mobile-sheet-hero-val.positive {
    color: #10b981;
}

.mobile-sheet-hero-val.pnl-negative,
.mobile-sheet-hero-val.negative {
    color: #ef4444;
}

.mobile-sheet-hero-val.neutral {
    color: #cbd5e1;
}

/* Sections inside Sheet */
.mobile-sheet-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mobile-sheet-section-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-secondary, #94a3b8);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* 2x2 Grid inside Sheet */
.mobile-sheet-grid-2x2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.mobile-sheet-grid-4col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.mobile-sheet-grid-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.mobile-sheet-box-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mobile-sheet-box-val {
    font-size: 14px;
    font-weight: 600;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
}

/* Rows Container inside Sheet */
.mobile-sheet-rows-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    overflow: hidden;
}

.mobile-sheet-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.mobile-sheet-row:last-child {
    border-bottom: none;
}

.mobile-sheet-row-label {
    font-size: 12.5px;
    color: var(--text-secondary, #94a3b8);
}

.mobile-sheet-row-val {
    font-size: 13px;
    font-weight: 600;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
}

/* Sheet Action Buttons */
.mobile-sheet-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 6px;
}

.mobile-sheet-action-primary {
    width: 100%;
    min-height: 46px;
    border-radius: 10px;
    background: #10b981;
    color: #022c22;
    font-weight: 700;
    font-size: 14px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.15s ease, transform 0.1s ease;
}

.mobile-sheet-action-primary:hover {
    background: #059669;
    color: #ffffff;
}

.mobile-sheet-action-primary:active {
    transform: scale(0.98);
}

.mobile-sheet-action-secondary {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.15s ease;
}

.mobile-sheet-action-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

/* Scoped Mobile View (< 640px) */
@media (max-width: 639.98px) {

    /* Hide desktop table, show mobile cards */
    .table-container {
        display: none !important;
    }

    .mobile-cards-container {
        display: flex;
        flex-direction: column;
        gap: 12px;
        width: 100%;
        margin-top: 14px;
        margin-bottom: 20px;
    }

    /* KPI Section 2x2 grid */
    .kpi-section {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 20px !important;
    }

    .kpi-card {
        padding: 14px 14px !important;
        border-radius: 12px !important;
    }

    .kpi-header {
        margin-bottom: 8px !important;
    }

    .kpi-label {
        font-size: 11px !important;
        letter-spacing: 0.3px !important;
    }

    .kpi-value {
        font-size: 20px !important;
        font-weight: 700 !important;
    }

    .kpi-icon {
        width: 16px !important;
        height: 16px !important;
    }

    /* Header Nav Capsule Mobile (Figma Mobile Header Exact Layout) */
    .app-header {
        display: grid !important;
        grid-template-columns: auto 1fr auto !important;
        grid-template-areas:
            "logo . actions"
            "nav nav nav" !important;
        align-items: center !important;
        row-gap: 14px !important;
        padding: 14px 16px !important;
        position: sticky !important;
        top: 0 !important;
        background: #050505 !important;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06) !important;
        z-index: 1000 !important;
    }

    .header-left {
        grid-area: logo !important;
        display: flex !important;
        align-items: center !important;
    }

    .header-left .logo {
        font-size: 16px !important;
        font-weight: 800 !important;
        letter-spacing: -0.4px !important;
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        color: #ffffff !important;
    }

    .header-left .logo-icon {
        display: none !important;
        /* Limpio según imagen de Figma */
    }

    .header-left .logo span {
        color: #00c087 !important;
        font-weight: 700 !important;
    }

    .header-right {
        grid-area: actions !important;
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
    }

    .header-right .icon-btn {
        width: 38px !important;
        height: 38px !important;
        border-radius: 50% !important;
        background: rgba(255, 255, 255, 0.03) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        color: #94a3b8 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        flex: 0 0 38px !important;
    }

    .header-right .icon-btn svg {
        width: 18px !important;
        height: 18px !important;
        stroke-width: 2 !important;
    }

    .header-right .icon-btn:active,
    .header-right .icon-btn:hover {
        background: rgba(255, 255, 255, 0.08) !important;
        color: #ffffff !important;
    }

    #settingsToggleBtn.account-btn-logged {
        color: #00c087 !important;
        border-color: rgba(0, 192, 135, 0.35) !important;
        background: rgba(0, 192, 135, 0.08) !important;
    }

    .header-login-btn.desktop-only {
        display: none !important;
    }

    /* Mobile Search Expanding Overlay */
    .mobile-search-btn {
        display: flex !important;
    }

    .search-input-wrap {
        display: none;
    }

    .search-container.search-active .search-input-wrap {
        display: flex !important;
        position: absolute !important;
        top: calc(100% + 8px) !important;
        left: 14px !important;
        right: 14px !important;
        z-index: 1300 !important;
        background: #0d1117 !important;
        border: 1px solid rgba(255, 255, 255, 0.15) !important;
        border-radius: 100px !important;
        padding: 2px 10px !important;
        align-items: center !important;
        box-shadow: 0 12px 32px rgba(0, 0, 0, 0.85) !important;
    }

    .search-container.search-active .search-box {
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        padding: 8px 8px 8px 30px !important;
        font-size: 13px !important;
    }

    .mobile-search-close {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: none !important;
        border: none !important;
        color: #94a3b8 !important;
        cursor: pointer !important;
        padding: 4px !important;
    }

    .mobile-search-close svg {
        width: 16px !important;
        height: 16px !important;
    }

    /* Account Menu on Mobile */
    .account-menu {
        position: fixed !important;
        top: 64px !important;
        left: 14px !important;
        right: 14px !important;
        width: auto !important;
        max-width: 360px !important;
        margin: 0 auto !important;
        z-index: 2000 !important;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.95) !important;
    }

    /* Mobile Drawer */
    .drawer {
        width: 100vw !important;
        max-width: 100vw !important;
        border-left: none !important;
    }

    /* Capsule Navigation Centered Below */
    .header-center {
        grid-area: nav !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
        position: static !important;
        transform: none !important;
        margin: 0 auto !important;
    }

    .nav-capsule {
        width: 100% !important;
        max-width: 360px !important;
        display: flex !important;
        background: #11151c !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        border-radius: 100px !important;
        padding: 4px !important;
        justify-content: space-between !important;
        margin: 0 auto !important;
    }

    .nav-btn {
        flex: 1 !important;
        text-align: center !important;
        padding: 7px 12px !important;
        font-size: 12.5px !important;
        font-weight: 500 !important;
        color: #94a3b8 !important;
        border-radius: 100px !important;
        border: none !important;
        background: transparent !important;
        white-space: nowrap !important;
    }

    .nav-btn.active {
        background: #1c2430 !important;
        color: #ffffff !important;
        font-weight: 700 !important;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35) !important;
    }

    /* Controls & Subfilters Mobile */
    .controls-container {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
    }

    .control-group {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .control-label {
        font-size: 10.5px !important;
        font-weight: 600 !important;
        color: var(--text-tertiary, #64748b) !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }

    .control-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        scrollbar-width: none !important;
        gap: 6px !important;
        padding-bottom: 4px !important;
        width: 100% !important;
    }

    .control-row::-webkit-scrollbar {
        display: none;
    }

    .control-btn {
        flex-shrink: 0 !important;
        padding: 6px 12px !important;
        font-size: 12px !important;
        border-radius: 8px !important;
        white-space: nowrap !important;
    }

    .behavior-dropdown {
        width: 100% !important;
        font-size: 13px !important;
        padding: 8px 12px !important;
    }

    /* Mobile Pagination */
    .table-pagination {
        width: 100% !important;
        padding: 10px 12px !important;
        gap: 8px !important;
        justify-content: space-between !important;
        border-radius: 12px !important;
    }

    .pagination-btn {
        padding: 8px 14px !important;
        font-size: 12px !important;
        min-height: 40px !important;
    }

    .pagination-info {
        font-size: 12px !important;
    }
}

/* Card Styles */
.mobile-card {
    background: #11141c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    cursor: pointer;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.22);
}

.mobile-card:hover {
    background: #141823;
    border-color: rgba(255, 255, 255, 0.16);
}

.mobile-card:active {
    transform: scale(0.985);
    background: #161b27;
}

.mobile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-card-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.mobile-rank-badge {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #94a3b8;
    font-size: 10.5px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-variant-numeric: tabular-nums;
}

.mobile-rank-badge.top-1 {
    background: rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fbbf24;
}

.mobile-rank-badge.top-2 {
    background: rgba(226, 232, 240, 0.15);
    border-color: rgba(226, 232, 240, 0.35);
    color: #f1f5f9;
}

.mobile-rank-badge.top-3 {
    background: rgba(180, 83, 9, 0.2);
    border-color: rgba(180, 83, 9, 0.45);
    color: #f59e0b;
}

.mobile-card-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.mobile-card-address-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-card-address {
    font-size: 13.5px;
    font-weight: 600;
    color: #ffffff;
    font-family: 'JetBrains Mono', monospace, ui-monospace;
    letter-spacing: -0.2px;
    white-space: nowrap;
}

.mobile-card-tag {
    display: inline-flex;
    align-items: center;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.25);
    align-self: flex-start;
}

.mobile-card-tag.human {
    background: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.25);
}

.mobile-card-tag.bot {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    border-color: rgba(245, 158, 11, 0.25);
}

.mobile-card-tag.elite {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}

.mobile-card-highlight {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 4px;
}

.mobile-highlight-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-highlight-col.right {
    align-items: flex-end;
    text-align: right;
}

.mobile-highlight-label {
    font-size: 9.5px;
    font-weight: 600;
    color: var(--text-tertiary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.mobile-highlight-value {
    font-size: 17px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.3px;
}

.mobile-card-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-stat-box {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-stat-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-tertiary, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.mobile-stat-value {
    font-size: 12.5px;
    font-weight: 600;
    color: #f1f5f9;
    font-variant-numeric: tabular-nums;
}

.mobile-card-footer-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-size: 11.5px;
    font-weight: 600;
    color: #10b981;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    transition: opacity 0.15s ease;
}

.mobile-card:hover .mobile-card-footer-link {
    opacity: 0.85;
}

/* Tokens Card specific styles */
.mobile-token-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

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

.mobile-token-title {
    font-size: 14px;
    font-weight: 700;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mobile-token-sub {
    font-size: 11px;
    color: var(--text-secondary, #94a3b8);
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Copy Trading Buttons & Components (Non-Custodial MVP) */
/* ==========================================================================
   Minimalist Copy Trading System (Vercel / Financial Dark UI)
   ========================================================================== */

/* Button in Table & Drawer */
.copy-trader-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e5e5e5;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    margin-left: 6px;
    transition: all 0.15s ease;
    vertical-align: middle;
}

.copy-trader-btn:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: #000000;
}

.copy-trader-btn svg {
    width: 11px;
    height: 11px;
    color: #10b981;
    transition: color 0.15s ease;
}

.copy-trader-btn:hover svg {
    color: #000000;
}

.wallet-copy-trade-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #171717;
    border: 1px solid #262626;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.wallet-copy-trade-btn:hover {
    background: #262626;
    border-color: #404040;
}

.wallet-copy-trade-btn svg {
    width: 13px;
    height: 13px;
    color: #10b981;
}

/* Minimalist Modal Card */
.copy-modal-card {
    max-width: 440px !important;
    text-align: left !important;
    background: #0a0a0a !important;
    border: 1px solid #1f1f1f !important;
    border-radius: 18px !important;
    padding: 28px 24px 22px !important;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.03) !important;
}

.copy-modal-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #141414;
    border: 1px solid #262626;
    border-radius: 100px;
    padding: 3px 10px;
    font-size: 11px;
    font-weight: 600;
    color: #a3a3a3;
    letter-spacing: 0.02em;
}

.copy-modal-badge .status-dot-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    display: inline-block;
}

.copy-modal-header {
    margin-top: 14px;
    margin-bottom: 20px;
}

.copy-modal-title {
    font-size: 20px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.copy-modal-subtitle {
    font-size: 13px;
    color: #737373;
    line-height: 1.45;
}

/* Target Strip */
.copy-target-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111111;
    border: 1px solid #1f1f1f;
    border-radius: 10px;
    padding: 10px 14px;
    margin-bottom: 18px;
}

.copy-target-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.copy-target-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #525252;
}

.copy-target-addr {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 13px;
    font-weight: 600;
    color: #e5e5e5;
}

.copy-target-link {
    font-size: 12px;
    color: #a3a3a3;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: color 0.15s ease;
}

.copy-target-link:hover {
    color: #ffffff;
}

/* Fields & Inputs */
.copy-fields-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 14px;
}

.copy-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.copy-field-label {
    font-size: 11px;
    font-weight: 600;
    color: #737373;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.copy-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.copy-input {
    width: 100%;
    background: #111111;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    padding: 10px 42px 10px 12px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.copy-input:focus {
    border-color: #404040;
    background: #141414;
}

.copy-input-suffix {
    position: absolute;
    right: 12px;
    font-size: 11px;
    font-weight: 700;
    color: #525252;
    pointer-events: none;
}

/* Switches & Options */
.copy-options-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 14px;
}

.copy-pill-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111111;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    padding: 9px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #a3a3a3;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.copy-pill-toggle:has(input:checked) {
    background: #141414;
    border-color: #333333;
    color: #ffffff;
}

.copy-pill-toggle input {
    accent-color: #ffffff;
    width: 15px;
    height: 15px;
    cursor: pointer;
}

.copy-status-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111111;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 20px;
}

.copy-status-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.copy-status-title {
    font-size: 12.5px;
    font-weight: 600;
    color: #e5e5e5;
}

.copy-status-sub {
    font-size: 11px;
    color: #737373;
}

/* Action Buttons */
.copy-actions-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.copy-btn-primary {
    width: 100%;
    padding: 12px 18px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    color: #000000;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.copy-btn-primary:hover {
    background: #e5e5e5;
}

.copy-btn-primary:active {
    transform: scale(0.99);
}

.copy-btn-secondary-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.copy-btn-panic {
    padding: 9px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    background: rgba(239, 68, 68, 0.05);
    color: #f87171;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.copy-btn-panic:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.4);
}

.copy-btn-delete {
    padding: 9px;
    border-radius: 8px;
    border: 1px solid rgba(239, 68, 68, 0.35);
    background: rgba(239, 68, 68, 0.08);
    color: #f87171;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.copy-btn-delete:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.55);
    color: #fca5a5;
}

.copy-btn-cancel {
    padding: 9px;
    border-radius: 8px;
    border: 1px solid #1f1f1f;
    background: transparent;
    color: #737373;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-btn-cancel:hover {
    background: #141414;
    color: #ffffff;
}

/* ============================================================================
   Floating 1-Click Copy Trading Approval Card & Progress Bar
   ============================================================================ */
.copy-signal-card {
    position: fixed;
    bottom: 32px;
    right: 28px;
    width: 330px;
    background: #0d0d0d;
    border: 1px solid #222222;
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.04);
    z-index: 9999;
    overflow: hidden;
    animation: slideUpFade 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpFade {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }

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

.copy-signal-progress-track {
    width: 100%;
    height: 3px;
    background: #1c1c1c;
    position: relative;
    overflow: hidden;
}

.copy-signal-progress-bar {
    height: 100%;
    width: 100%;
    background: #38bdf8;
    transition: width 0.1s linear;
}

.copy-signal-content {
    padding: 16px 16px 14px;
}

.copy-signal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.copy-signal-type-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 6px;
}

.copy-signal-type-badge.buy {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.copy-signal-type-badge.sell {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    animation: pulseGlow 1.4s infinite;
}

@keyframes pulseGlow {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.35;
    }
}

.copy-signal-timer {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: #a3a3a3;
    font-variant-numeric: tabular-nums;
}

.copy-signal-body {
    margin-bottom: 14px;
}

.copy-signal-token-info {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 8px;
}

.copy-signal-token {
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
}

.copy-signal-wallet {
    font-size: 11px;
    color: #737373;
    font-family: monospace;
}

.copy-signal-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    background: #141414;
    border: 1px solid #1f1f1f;
    border-radius: 8px;
    padding: 8px 10px;
}

.copy-signal-metric {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.copy-signal-metric .metric-label {
    font-size: 10px;
    color: #737373;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.copy-signal-metric .metric-val {
    font-size: 12px;
    font-weight: 600;
    color: #e5e5e5;
}

.copy-signal-actions {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px;
}

.copy-signal-btn-approve {
    padding: 9px 12px;
    border-radius: 8px;
    border: none;
    background: #ffffff;
    color: #000000;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.copy-signal-btn-approve:hover {
    background: #e5e5e5;
    transform: translateY(-1px);
}

.copy-signal-btn-dismiss {
    padding: 9px 12px;
    border-radius: 8px;
    border: 1px solid #1f1f1f;
    background: transparent;
    color: #737373;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.copy-signal-btn-dismiss:hover {
    background: #181818;
    color: #ffffff;
}

/* ============================================================================
   Copy Trading Dashboard & Control Center Elements
   ============================================================================ */
.badge-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
}

.badge-status-pill.active {
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.badge-status-pill.paused {
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.badge-status-pill .status-dot-mini {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.badge-mini-order {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    background: #171717;
    color: #525252;
    border: 1px solid #262626;
}

.badge-mini-order.active {
    color: #e5e5e5;
    background: #222222;
    border-color: #383838;
}

.action-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 6px;
    background: #171717;
    border: 1px solid #262626;
    color: #e5e5e5;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
}

.action-btn-pill:hover {
    background: #222222;
    border-color: #404040;
    color: #ffffff;
}

.action-btn-pill.danger {
    color: #f87171;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.action-btn-pill.danger:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: rgba(239, 68, 68, 0.5);
}

.action-btn-pill.success {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.3);
    background: rgba(16, 185, 129, 0.08);
}

.action-btn-pill.success:hover {
    background: rgba(16, 185, 129, 0.18);
    border-color: rgba(16, 185, 129, 0.5);
}

.badge-signal-type {
    display: inline-block;
    padding: 3px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge-signal-type.buy {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-signal-type.sell {
    background: rgba(244, 63, 94, 0.15);
    color: #fb7185;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

.badge-exec-status {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.badge-exec-status.confirmed {
    background: rgba(16, 185, 129, 0.12);
    color: #34d399;
}

.badge-exec-status.sent_to_solana,
.badge-exec-status.signature_verified {
    background: rgba(14, 165, 233, 0.15);
    color: #38bdf8;
}

.badge-exec-status.failed,
.badge-exec-status.failed_simulation {
    background: rgba(239, 68, 68, 0.12);
    color: #f87171;
}

.badge-exec-status.failed_slippage {
    background: rgba(245, 158, 11, 0.15);
    color: #fbbf24;
}

.badge-exec-status.rejected_by_user,
.badge-exec-status.expired {
    background: rgba(115, 115, 115, 0.18);
    color: #a3a3a3;
}

.badge-exec-status.awaiting_signature,
.badge-exec-status.pending {
    background: rgba(245, 158, 11, 0.12);
    color: #fbbf24;
}

.solscan-tx-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: monospace;
    font-size: 11px;
    color: #38bdf8;
    text-decoration: none;
    transition: all 0.15s ease;
}

.solscan-tx-link:hover {
    color: #7dd3fc;
    text-decoration: underline;
}

/* ==========================================================================
   Copy Trading PRO Gate Showcase
   ========================================================================== */
.copytrade-pro-locked > .section-header,
.copytrade-pro-header-hidden {
    display: none !important;
}

.copytrade-pro-gate-wrapper {
    width: 100%;
    margin: clamp(24px, 5vw, 64px) 0 36px;
}

.copytrade-pro-gate-card {
    --gate-text: #f1f4f3;
    --gate-muted: #aab4b0;
    --gate-border: #343c38;
    --gate-accent: #70dca5;
    color: var(--gate-text);
}

.pro-gate-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: clamp(24px, 5vw, 80px);
}

.pro-gate-title {
    font-size: clamp(32px, 4vw, 54px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin: 0 0 14px;
}

.pro-gate-subtitle,
.pro-gate-steps p {
    color: var(--gate-muted);
    line-height: 1.55;
    margin: 0;
}

.pro-gate-subtitle {
    font-size: clamp(15px, 2vw, 19px);
    max-width: 34rem;
}

.pro-gate-actions {
    display: flex;
    align-items: center;
    gap: 14px 22px;
    flex-wrap: wrap;
    margin-top: 22px;
}

.pro-gate-upgrade-btn {
    border: 1px solid transparent;
    border-radius: 6px;
    background: var(--gate-accent);
    color: #10231a;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 10px 16px;
}

.pro-gate-upgrade-btn:hover {
    background: #91e8b9;
}

.pro-gate-sign-in {
    color: var(--gate-text);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.pro-gate-upgrade-btn:focus-visible,
.pro-gate-sign-in:focus-visible {
    outline: 2px solid var(--gate-accent);
    outline-offset: 4px;
}

.pro-gate-signal {
    padding: clamp(16px, 3vw, 28px);
    border: 1px solid var(--gate-border);
    border-radius: 10px;
    background: #131715;
}

.pro-gate-signal h3 {
    font-size: 17px;
    margin: 0 0 12px;
}

.pro-gate-signal dl {
    margin: 0;
}

.pro-gate-signal dl > div {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    padding: 10px 0;
    border-top: 1px solid var(--gate-border);
}

.pro-gate-signal dt {
    color: var(--gate-muted);
}

.pro-gate-signal dd {
    margin: 0;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.pro-gate-buy {
    color: var(--gate-accent);
    font-weight: 650;
}

.pro-gate-signature {
    margin: 0;
    padding-top: 12px;
    border-top: 1px solid var(--gate-border);
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--gate-muted);
    font-size: 13px;
}

.pro-gate-signature svg {
    flex: 0 0 auto;
    width: 15px;
    height: 15px;
}

.pro-gate-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: clamp(26px, 4vw, 42px) 0 0;
    padding: 18px 0 0;
    border-top: 1px solid var(--gate-border);
}

.pro-gate-steps li {
    padding: 0 clamp(10px, 2vw, 26px);
}

.pro-gate-steps li:first-child {
    padding-left: 0;
}

.pro-gate-steps li + li {
    border-left: 1px solid var(--gate-border);
}

.pro-gate-steps p {
    font-size: 14px;
    margin-top: 4px;
}

@media (max-width: 720px) {
    .pro-gate-layout,
    .pro-gate-steps {
        grid-template-columns: 1fr;
    }

    .pro-gate-steps li {
        padding: 10px 0;
    }

    .pro-gate-steps li + li {
        border-left: none;
    }
}

.badge-pro-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(168, 85, 247, 0.25) 100%);
    border: 1px solid rgba(234, 179, 8, 0.45);
    color: #fbbf24;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.05em;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 6px;
    line-height: 1.2;
    vertical-align: middle;
}