/* ═══════════════════════════════════════════════════════
   Web3 Toolkit — Unified Design System
   Dark theme with purple/cyan accents
═══════════════════════════════════════════════════════ */

:root {
    --bg: #0a0a0f;
    --bg-card: rgba(18, 18, 28, 0.85);
    --bg-card-hover: rgba(24, 24, 38, 0.95);
    --bg-input: rgba(12, 12, 20, 0.9);
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(124, 58, 237, 0.4);
    --text: #e2e8f0;
    --text-muted: #64748b;
    --text-dim: #475569;
    --accent: #7c3aed;
    --accent-light: #a78bfa;
    --accent-cyan: #06b6d4;
    --success: #4ade80;
    --warning: #fbbf24;
    --error: #f87171;
    --sidebar-w: 220px;
    --topbar-h: 56px;
    --radius: 12px;
    --radius-sm: 8px;
    --font: 'Inter', -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Fira Code', monospace;
}

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 17px;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

::selection {
    background: var(--accent);
    color: white;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(124, 58, 237, 0.3);
    border-radius: 3px;
}

/* ─── SIDEBAR ─── */
.sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    height: 100vh;
    background: rgba(12, 12, 20, 0.95);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 22px 20px;
    border-bottom: 1px solid var(--border);
}

.brand-icon {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.15));
    border-radius: var(--radius-sm);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.brand-text {
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-light), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-items {
    flex: 1;
    padding: 12px 10px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    font-family: var(--font);
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(6, 182, 212, 0.08));
    color: white;
    border: 1px solid rgba(124, 58, 237, 0.25);
}

.nav-icon {
    font-size: 1.25rem;
}

.sidebar-footer {
    padding: 14px;
    border-top: 1px solid var(--border);
}

.wallet-range-compact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(124, 58, 237, 0.08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(124, 58, 237, 0.15);
}

.range-label {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.range-count {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: var(--mono);
}

/* ─── MOBILE ─── */
.mobile-topbar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--topbar-h);
    background: rgba(12, 12, 20, 0.95);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    z-index: 100;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
}

.mobile-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1rem;
}

.mobile-tabs {
    display: flex;
    gap: 4px;
}

.mobile-tab {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.mobile-tab.active {
    background: rgba(124, 58, 237, 0.15);
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }

    .mobile-topbar {
        display: flex;
    }

    .main-content {
        margin-left: 0 !important;
        padding-top: calc(var(--topbar-h) + 16px) !important;
    }
}

/* ─── MAIN CONTENT ─── */
.main-content {
    margin-left: var(--sidebar-w);
    flex: 1;
    padding: 28px 40px;
    max-width: 1500px;
}

/* ─── WALLET RANGE BAR ─── */
.wallet-range-bar {
    margin-bottom: 20px;
    padding: 12px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    backdrop-filter: blur(12px);
}

.range-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.range-icon {
    color: var(--text-muted);
    flex-shrink: 0;
}

.range-input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.95rem;
    outline: none;
}

.range-input::placeholder {
    color: var(--text-dim);
}

.range-badge {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent-light);
    background: rgba(124, 58, 237, 0.1);
    padding: 5px 12px;
    border-radius: 99px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    font-family: var(--mono);
    white-space: nowrap;
}

.btn-apply {
    padding: 6px 16px;
    border: 1px solid rgba(124, 58, 237, 0.4);
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.2), rgba(6, 182, 212, 0.1));
    color: var(--accent-light);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-apply:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.35), rgba(6, 182, 212, 0.2));
    border-color: var(--accent);
    transform: translateY(-1px);
}

.btn-apply:active {
    transform: translateY(0);
}

.range-hint {
    font-size: 0.7rem;
    color: var(--text-dim);
    margin-top: 6px;
}

.range-hint code {
    color: var(--accent-light);
    background: rgba(124, 58, 237, 0.1);
    padding: 1px 5px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 0.68rem;
}

/* ─── TOOL SECTIONS ─── */
.tool-section {
    display: none;
    animation: fadeIn 0.2s ease;
}

.tool-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tool-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-title {
    font-size: 1.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tool-icon {
    font-size: 1.5rem;
}

.tool-badge {
    font-size: 0.65rem;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--accent-light);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.tool-header-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* ─── SUB-TABS ─── */
.sub-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    padding: 4px;
    background: rgba(15, 15, 25, 0.6);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.sub-tab {
    padding: 10px 20px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}

.sub-tab:hover {
    color: var(--text);
}

.sub-tab.active {
    background: rgba(124, 58, 237, 0.15);
    color: white;
}

/* ─── CARDS ─── */
.card,
.dp-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 18px;
    backdrop-filter: blur(12px);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.card-title {
    font-size: 1.05rem;
    font-weight: 600;
}

.card-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ─── INPUTS ─── */
.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.input-hint {
    font-weight: 400;
    text-transform: none;
    font-size: 0.78rem;
    color: var(--text-dim);
    letter-spacing: 0;
    display: block;
    margin-top: 3px;
}

.input-field {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s;
    font-family: var(--font);
}

.input-field:focus {
    border-color: var(--accent);
}

.input-field.mono,
.mono {
    font-family: var(--mono);
}

.input-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.9rem;
    font-family: var(--mono);
    outline: none;
    resize: vertical;
    line-height: 1.6;
    transition: border-color 0.2s;
}

.input-textarea:focus {
    border-color: var(--accent);
}

.input-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 6px;
}

.wallet-count {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ─── BUTTONS ─── */
.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-primary:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-secondary {
    padding: 6px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text);
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.04);
}

.btn-text {
    background: none;
    border: none;
    color: var(--accent-light);
    font-size: 0.85rem;
    cursor: pointer;
    font-family: var(--font);
    padding: 4px;
    transition: color 0.15s;
}

.btn-text:hover {
    color: var(--accent-cyan);
}

.btn-sm {
    padding: 6px 12px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}

.btn-sm:hover {
    border-color: var(--accent);
    color: var(--text);
}

.btn-sm-accent {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.3);
    color: var(--accent-light);
}

.btn-connect {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 1px solid var(--border);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(6, 182, 212, 0.05));
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-connect:hover {
    border-color: var(--accent);
}

.btn-connect.connected {
    border-color: var(--success);
    background: rgba(74, 222, 128, 0.08);
}

.btn-icon {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.btn-icon:hover {
    border-color: var(--accent);
    color: var(--text);
}

.btn-disperse {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent), #4f46e5);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 12px;
    font-family: var(--font);
}

.btn-disperse:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-disperse:hover:not(:disabled) {
    opacity: 0.9;
    transform: translateY(-1px);
}

.btn-checker {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, #059669, #047857);
    color: white;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    margin-top: 12px;
    font-family: var(--font);
}

/* ─── BADGES ─── */
.badge {
    font-size: 0.8rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 99px;
    background: rgba(124, 58, 237, 0.12);
    color: var(--accent-light);
    font-family: var(--mono);
}

.badge-blue {
    background: rgba(6, 182, 212, 0.12);
    color: var(--accent-cyan);
}

.network-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(74, 222, 128, 0.08);
    border: 1px solid rgba(74, 222, 128, 0.2);
    font-size: 0.72rem;
    font-weight: 600;
}

.network-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* ─── CHAIN GRID ─── */
.chain-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}

.chain-controls {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.chain-chip {
    padding: 7px 13px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
    display: flex;
    align-items: center;
    gap: 5px;
}

.chain-chip:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.chain-chip.active {
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.08);
    color: var(--accent-light);
}

/* ─── STATS ─── */
.stats-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    text-align: center;
}

.stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-light);
    font-family: var(--mono);
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 4px;
    letter-spacing: 0.5px;
}

/* ─── PROGRESS ─── */
.progress-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 0.82rem;
}

.progress-status {
    font-weight: 600;
}

.progress-percent {
    color: var(--accent-light);
    font-family: var(--mono);
    font-weight: 600;
}

.progress-bar-track {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-detail {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ─── RESULTS ─── */
.results-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.results-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
}

.results-actions {
    display: flex;
    gap: 8px;
}

.results-content {
    margin-top: 12px;
}

/* Quick Scan outputs */
.qs-output-group {
    margin-bottom: 12px;
}

.qs-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.qs-output-box {
    width: 100%;
    padding: 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.78rem;
    resize: vertical;
    outline: none;
}

/* PNL */
.pnl-stats-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.pnl-stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(12, 12, 20, 0.5);
    border-radius: var(--radius-sm);
}

.pnl-stat-type {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--accent-light);
    min-width: 60px;
}

.pnl-stat-count {
    font-weight: 700;
    font-family: var(--mono);
    min-width: 40px;
}

.pnl-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.pnl-stat-eth {
    font-family: var(--mono);
    font-weight: 600;
}

.pnl-summary-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.pnl-summary-card {
    background: rgba(12, 12, 20, 0.5);
    border-radius: var(--radius-sm);
    padding: 10px;
    text-align: center;
}

.pnl-summary-label {
    display: block;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.pnl-summary-value {
    display: block;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--mono);
    color: var(--text);
    margin-top: 4px;
}

.pnl-pl-card {
    border: 1px solid rgba(124, 58, 237, 0.3);
}

/* ─── ERROR STATE ─── */
.error-state {
    background: rgba(248, 113, 113, 0.05);
    border: 1px solid rgba(248, 113, 113, 0.2);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 12px;
}

.error-state h4 {
    font-size: 0.82rem;
    color: var(--error);
    margin-bottom: 8px;
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 2rem;
    margin-bottom: 8px;
}

.empty-state h3 {
    font-size: 1rem;
    margin-bottom: 4px;
    color: var(--text);
}

.empty-state p {
    font-size: 0.78rem;
}

/* ─── NFT DISPERSE SPECIFIC ─── */
.nft-hero {
    text-align: center;
    padding: 40px 20px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.hero-sub {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.wallet-options-row {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-wallet-opt {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    background: var(--bg-card);
    color: var(--text);
    font-size: 0.88rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
    transition: all 0.2s;
    font-family: var(--font);
}

.btn-wallet-opt:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 900px) {
    .panel-grid {
        grid-template-columns: 1fr;
    }
}

.chain-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow-x: auto;
}

.chain-bar-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.chain-tabs {
    display: flex;
    gap: 4px;
}

.chain-tab {
    padding: 5px 10px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: var(--font);
}

.chain-tab:hover {
    color: var(--text);
}

.chain-tab.active {
    background: rgba(124, 58, 237, 0.12);
    color: var(--accent-light);
    border-color: rgba(124, 58, 237, 0.3);
}

.collection-list {
    max-height: 300px;
    overflow-y: auto;
}

.collection-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.15s;
}

.collection-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.collection-item.active {
    background: rgba(124, 58, 237, 0.1);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.collection-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.collection-thumb {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
}

.collection-name {
    font-size: 0.82rem;
    font-weight: 500;
}

.collection-chain {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.collection-stats {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.collection-value {
    font-size: 0.72rem;
    font-family: var(--mono);
    color: var(--accent-light);
}

.collection-count {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.search-box,
.search-inline {
    width: 100%;
    padding: 7px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.78rem;
    outline: none;
    margin-bottom: 8px;
    font-family: var(--font);
}

.nft-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
    gap: 8px;
    max-height: 400px;
    overflow-y: auto;
}

.nft-card {
    position: relative;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.15s;
    background: var(--bg-card);
}

.nft-card:hover {
    border-color: var(--border-hover);
}

.nft-card.selected {
    border-color: var(--accent);
    background: rgba(124, 58, 237, 0.08);
}

.nft-img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.nft-img-placeholder {
    width: 100%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.02);
    font-size: 1.2rem;
}

.nft-info {
    padding: 6px;
}

.nft-name {
    font-size: 0.68rem;
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nft-id {
    font-size: 0.6rem;
    color: var(--text-muted);
    font-family: var(--mono);
}

.nft-check {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(124, 58, 237, 0.8);
    display: none;
    place-items: center;
    color: white;
}

.nft-card.selected .nft-check {
    display: grid;
}

.nft-actions {
    display: flex;
    gap: 6px;
}

.nft-filter-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.selected-count {
    font-size: 0.72rem;
    color: var(--accent-light);
    font-family: var(--mono);
    white-space: nowrap;
}

/* Recipients */
.bulk-section {
    margin-bottom: 12px;
}

.bulk-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.bulk-textarea {
    width: 100%;
    padding: 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.78rem;
    resize: vertical;
    outline: none;
}

.bulk-actions {
    display: flex;
    gap: 6px;
    margin-top: 6px;
}

.addr-list {
    max-height: 200px;
    overflow-y: auto;
}

.addr-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px 6px;
    border-radius: 4px;
}

.addr-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.addr-index {
    font-size: 0.65rem;
    color: var(--text-muted);
    min-width: 18px;
    font-family: var(--mono);
}

.addr-text {
    flex: 1;
    font-size: 0.72rem;
    font-family: var(--mono);
    color: var(--text);
    overflow: hidden;
    text-overflow: ellipsis;
}

.addr-valid {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.addr-valid.ok {
    background: var(--success);
}

.addr-valid.err {
    background: var(--error);
}

.addr-del {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
}

.addr-del:hover {
    color: var(--error);
}

.add-addr-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}

.addr-input-single {
    flex: 1;
    padding: 7px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.78rem;
    outline: none;
}

.btn-add-addr {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: transparent;
    color: var(--accent-light);
    cursor: pointer;
    font-size: 1.1rem;
    display: grid;
    place-items: center;
}

/* Summary */
.summary-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    padding: 4px 0;
}

.summary-row span:last-child {
    font-family: var(--mono);
    font-weight: 600;
}

/* Gas */
.gas-section {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.gas-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.gas-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 8px;
}

.gas-tab {
    padding: 5px 10px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font);
}

.gas-tab.active {
    border-color: var(--accent);
    color: var(--accent-light);
    background: rgba(124, 58, 237, 0.08);
}

.gas-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gas-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.72rem;
}

.custom-gas-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.gas-field label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.gas-input {
    width: 100%;
    padding: 6px 8px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.78rem;
    outline: none;
}

/* Pairs */
.pairs-section {
    margin-top: 10px;
}

.pairs-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.pairs-list {
    max-height: 200px;
    overflow-y: auto;
}

.pair-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
    font-size: 0.72rem;
}

.pair-nft {
    color: var(--accent-light);
    font-weight: 500;
}

.pair-arrow {
    color: var(--text-dim);
}

.pair-addr {
    font-family: var(--mono);
    color: var(--text-muted);
}

/* ─── MODAL ─── */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    backdrop-filter: blur(4px);
}

.modal {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    margin-bottom: 16px;
}

.modal-header h3 {
    font-size: 1.05rem;
    font-weight: 700;
}

.modal-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.progress-bar-outer {
    height: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar-inner {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
    border-radius: 3px;
    transition: width 0.3s;
}

.progress-label-modal {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
}

.tx-list {
    max-height: 300px;
    overflow-y: auto;
    margin-top: 12px;
}

.tx-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 0.78rem;
}

.tx-item.success {
    background: rgba(74, 222, 128, 0.05);
}

.tx-item.failed {
    background: rgba(248, 113, 113, 0.05);
}

.tx-status-icon {
    width: 20px;
    text-align: center;
}

.tx-details {
    flex: 1;
}

.tx-title {
    font-weight: 500;
    font-size: 0.78rem;
}

.tx-addr {
    font-family: var(--mono);
    font-size: 0.65rem;
    color: var(--text-muted);
}

.tx-hash {
    color: var(--accent-light);
    font-family: var(--mono);
    font-size: 0.65rem;
    text-decoration: none;
}

.tx-nft-thumb {
    width: 28px;
    height: 28px;
    border-radius: 4px;
    object-fit: cover;
}

.modal-footer {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    justify-content: flex-end;
}

.btn-retry-failed {
    padding: 8px 14px;
    border: 1px solid var(--warning);
    background: rgba(251, 191, 36, 0.1);
    color: var(--warning);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.82rem;
}

.btn-modal-close {
    padding: 8px 14px;
    border: 1px solid var(--accent);
    background: rgba(124, 58, 237, 0.1);
    color: var(--accent-light);
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font);
    font-size: 0.82rem;
}

.settings-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-label {
    font-size: 0.78rem;
    font-weight: 600;
}

.settings-input-row {
    display: flex;
    gap: 8px;
}

.settings-input {
    flex: 1;
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 0.82rem;
    outline: none;
}

/* ─── DISPERSE PRO SPECIFIC ─── */
.dp-status-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 99px;
    background: rgba(74, 222, 128, 0.08);
    color: var(--success);
}

.dp-chain-select {
    padding: 6px 10px;
    background: rgba(30, 30, 45, 0.9);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    font-family: var(--font);
}

.dp-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    overflow-x: auto;
}

.dp-tab {
    padding: 8px 14px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: var(--font);
}

.dp-tab.active {
    color: var(--accent-light);
    border-bottom-color: var(--accent);
}

.dp-network-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(124, 58, 237, 0.05);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: var(--radius-sm);
    margin-bottom: 12px;
}

.dp-network-label {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--accent-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dp-chain-name {
    color: white;
}

.dp-mode-desc {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dp-mode-desc code {
    color: var(--accent-light);
}

.dp-asset-toggle {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: rgba(15, 15, 25, 0.5);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    width: fit-content;
    margin-bottom: 12px;
}

.dp-asset-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s;
    font-family: var(--font);
}

.dp-asset-btn.active {
    background: var(--accent);
    color: white;
}

.dp-asset-btn .uppercase {
    text-transform: uppercase;
}

.dp-quick-tokens {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 12px;
}

.dp-quick-token {
    padding: 4px 8px;
    border: 1px solid rgba(124, 58, 237, 0.2);
    background: rgba(124, 58, 237, 0.05);
    color: var(--accent-light);
    font-size: 0.65rem;
    font-weight: 700;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font);
}

.dp-token-input {
    margin-bottom: 12px;
}

.dp-token-input label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.dp-token-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-token-meta {
    font-size: 0.65rem;
    color: var(--text-dim);
    margin-top: 4px;
    font-style: italic;
}

.dp-amount-input {
    margin-bottom: 12px;
}

.dp-amount-input label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--accent-light);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.dp-amount-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-symbol {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.dp-recipients {
    margin-bottom: 12px;
}

.dp-recipients label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    display: block;
    margin-bottom: 4px;
}

.dp-summary {
    background: rgba(12, 12, 20, 0.5);
    border: 1px dashed rgba(124, 58, 237, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-bottom: 12px;
    font-family: var(--mono);
}

.dp-summary-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
    padding-bottom: 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.dp-summary-rows {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dp-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
}

.dp-summary-row span:first-child {
    color: var(--text-muted);
}

.dp-summary-row span:last-child {
    font-weight: 600;
}

.dp-topup-results {
    max-height: 320px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    margin-bottom: 12px;
}

.dp-warning {
    background: rgba(248, 113, 113, 0.08);
    border: 1px solid rgba(248, 113, 113, 0.3);
    border-radius: var(--radius-sm);
    padding: 12px;
    margin-top: 12px;
}

.dp-warning h4 {
    font-size: 0.82rem;
    color: var(--error);
}

.dp-warning p {
    font-size: 0.72rem;
    color: var(--error);
    opacity: 0.8;
}

.dp-status-msg {
    text-align: center;
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    margin-top: 8px;
}

/* ─── PORTFOLIO ─── */
.portfolio-controls {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 16px;
}

.controls-grid {
    display: flex;
    gap: 16px;
    align-items: flex-end;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.control-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
}

.control-input {
    padding: 8px 10px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font-family: var(--mono);
    outline: none;
    width: 100px;
}

.chain-selector {
    margin-top: 8px;
}

.chain-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.chain-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chain-filter-panel {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.section-title {
    font-size: 0.95rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-count {
    font-size: 0.72rem;
    color: var(--text-muted);
}

.section-actions {
    display: flex;
    gap: 8px;
}

.sort-arrow {
    font-size: 0.72rem;
}

.table-wrapper {
    overflow-x: auto;
    margin-bottom: 16px;
}

.collection-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.78rem;
}

.collection-table th {
    text-align: left;
    padding: 8px 10px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    letter-spacing: 0.5px;
}

.collection-table td {
    padding: 10px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.col-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.col-thumb {
    width: 38px !important;
    height: 38px !important;
    border-radius: 6px;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    flex-shrink: 0;
}

.col-link {
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.col-link:hover {
    color: var(--accent-light);
    text-decoration: underline;
}

.wallets-cell {
    max-width: 250px;
    font-size: 0.7rem;
    color: var(--text-muted);
}

.collection-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* ─── SPINNER ─── */
.spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
    margin: 0 auto 8px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ─── TOAST ─── */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 9999;
}

.toast {
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    max-width: 360px;
    transition: all 0.3s;
    backdrop-filter: blur(12px);
}

.toast.info {
    background: rgba(99, 102, 241, 0.15);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
}

.toast.success {
    background: rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.3);
    color: var(--success);
}

.toast.warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    color: var(--warning);
}

.toast.error {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: var(--error);
}

/* ─── UTILITY ─── */
.hidden {
    display: none !important;
}

/* ─── BALANCE CHECKER SPECIFIC ─── */
.bc-chain-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
}

.bc-status-badge {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.bc-asset-btn {
    padding: 8px 16px;
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s;
}

.bc-asset-btn.active {
    background: rgba(124, 58, 237, 0.15);
    border-color: var(--accent);
    color: white;
}

/* ─── MARKET INSIGHTS ─── */
.nd-insights-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.insight-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 12px;
    transition: all 0.2s;
}

.insight-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-hover);
}

.insight-title {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.insight-value {
    font-size: 1.15rem;
    font-weight: 800;
    font-family: var(--mono);
    color: var(--accent-light);
    margin-bottom: 4px;
}

.insight-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
    line-height: 1.3;
}

.nd-filter-controls .switch-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

.input-select-sm {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8rem;
    outline: none;
}