/* ==========================================================================
   TG Stock - MODERN TELEGRAM SAAS DARK DESIGN SYSTEM (2026)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    /* Color Palette */
    --bg-base: #070a11;
    --bg-surface: #0c101d;
    --bg-surface-raised: #121829;
    --bg-card: rgba(13, 19, 33, 0.75);
    --bg-card-hover: rgba(18, 26, 46, 0.85);
    --bg-input: rgba(6, 10, 18, 0.6);
    
    /* Telegram Signature Brand Colors */
    --primary: #0088cc;
    --primary-light: #24a1de;
    --primary-glow: rgba(0, 136, 204, 0.25);
    --primary-dim: rgba(0, 136, 204, 0.12);
    
    /* Accents & Feedback */
    --success: #10b981;
    --success-dim: rgba(16, 185, 129, 0.12);
    --danger: #ef4444;
    --danger-dim: rgba(239, 68, 68, 0.12);
    --warning: #f59e0b;
    --warning-dim: rgba(245, 158, 11, 0.12);
    
    /* Borders & Dividers */
    --border: rgba(255, 255, 255, 0.07);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-accent: rgba(0, 136, 204, 0.4);
    
    /* Typography Colors */
    --text-heading: #ffffff;
    --text-body: #94a3b8;
    --text-muted: #64748b;
    --text-link: #38bdf8;
    
    /* Radii */
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;
    
    /* Fonts & Transitions */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Plus Jakarta Sans', sans-serif;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Global Reset */
html {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 136, 204, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(36, 161, 222, 0.05) 0%, transparent 45%);
    background-attachment: fixed;
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 1.5;
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: var(--bg-base);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* App Container Layout */
.app-container {
    display: flex;
    width: 100vw;
    min-height: 100vh;
    position: relative;
}

/* ==========================================================================
   1. SIDEBAR (YAN MENÜ)
   ========================================================================== */
.sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(6px);
    z-index: 998;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: none;
}

.sidebar-backdrop.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.sidebar {
    width: 250px;
    background: rgba(10, 14, 24, 0.95);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1.1rem;
    position: fixed;
    height: 100vh;
    z-index: 999;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    padding: 0 0.4rem;
}

.brand-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    cursor: pointer;
}

.brand-icon {
    width: 34px;
    height: 34px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 14px var(--primary-glow);
    flex-shrink: 0;
}

.brand-icon svg {
    width: 19px;
    height: 19px;
    fill: #fff;
}

.brand-name {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.3px;
}

.sidebar-close-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}
.sidebar-close-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.sidebar-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid transparent;
}

.nav-link svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: var(--transition);
    flex-shrink: 0;
}

.nav-link:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.04);
}

.nav-link.active {
    color: #fff;
    background: var(--primary-dim);
    border-color: rgba(0, 136, 204, 0.3);
    font-weight: 600;
}

.nav-link.active svg {
    fill: var(--primary-light);
}

.sidebar-footer {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
}

.user-profile-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
}

.user-profile-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--border-light);
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.user-meta {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.user-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-heading);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--success);
}

/* ==========================================================================
   2. MAIN CONTENT & TOPBAR
   ========================================================================= */
.main-content {
    flex: 1;
    margin-left: 250px;
    padding: 1.8rem 2.2rem 4rem 2.2rem;
    min-height: 100vh;
    max-width: 1400px;
    width: calc(100vw - 250px);
}

.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
    gap: 15px;
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle-btn {
    display: none;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: #fff;
    padding: 6px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

.mobile-toggle-btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}

.page-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.3px;
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.balance-chip {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 136, 204, 0.1);
    border: 1px solid rgba(0, 136, 204, 0.25);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
}

.balance-chip:hover {
    background: rgba(0, 136, 204, 0.16);
    border-color: var(--primary);
}

.balance-chip-icon {
    width: 16px;
    height: 16px;
    fill: var(--primary-light);
}

.balance-chip-amount {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.92rem;
    color: #fff;
}

/* ==========================================================================
   3. HERO RIBBON & FILTERS
   ========================================================================== */
.hero-ribbon {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 0.9rem;
    margin-bottom: 1.8rem;
}

.hero-pill {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.9rem 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: var(--transition);
}

.hero-pill:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

.hero-pill-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--primary-dim);
    border: 1px solid rgba(0, 136, 204, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-light);
    flex-shrink: 0;
}

.hero-pill-info h4 {
    font-family: var(--font-heading);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-heading);
    margin-bottom: 2px;
}

.hero-pill-info p {
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* Filter & Search Bar */
.filter-bar {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 0.8rem 1rem;
    margin-bottom: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.filter-btn {
    background: transparent;
    border: 1px solid transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-family: var(--font-body);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.filter-btn:hover {
    color: var(--text-heading);
    background: rgba(255, 255, 255, 0.04);
}

.filter-btn.active {
    background: var(--primary-dim);
    border-color: rgba(0, 136, 204, 0.3);
    color: #fff;
    font-weight: 600;
}

.search-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.search-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 12px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.82rem;
    width: 170px;
    outline: none;
    transition: var(--transition);
}

.search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

.sort-select {
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    color: var(--text-muted);
    font-family: var(--font-body);
    font-size: 0.82rem;
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.sort-select:focus {
    border-color: var(--primary);
    color: #fff;
}

/* ==========================================================================
   4. PRODUCT CARDS (UNIFIED & CLEAN)
   ========================================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    letter-spacing: -0.2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.3rem;
}

.product-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    position: relative;
}

.product-card:hover {
    border-color: var(--border-accent);
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(0, 136, 204, 0.12);
}

.product-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.product-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: var(--primary-dim);
    border: 1px solid rgba(0, 136, 204, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-icon-wrap svg {
    width: 20px;
    height: 20px;
    fill: var(--primary-light);
}

.product-badges {
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-pill {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    letter-spacing: 0.2px;
}

.badge-pill.status {
    background: var(--success-dim);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-pill.category {
    background: var(--primary-dim);
    color: var(--primary-light);
    border: 1px solid rgba(0, 136, 204, 0.25);
}

.product-info h3 {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 6px;
    letter-spacing: -0.2px;
}

.product-info p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-bottom: 14px;
    min-height: 38px;
}

/* Standardized Package Info Line */
.package-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    margin-bottom: 12px;
}

.package-indicator strong {
    color: var(--primary-light);
}

/* 5+ Bulk Deal Tag */
.bulk-deal-tag {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--success-dim);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: var(--radius-sm);
    padding: 7px 10px;
    font-size: 0.8rem;
    color: #e2e8f0;
    margin-bottom: 14px;
}

.bulk-deal-tag span {
    color: var(--success);
    font-weight: 600;
}

.product-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 12px;
    margin-top: auto;
}

.price-box {
    display: flex;
    flex-direction: column;
}

.price-main {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.price-unit {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ==========================================================================
   5. BUTTONS & INPUTS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 8px 16px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    border: 1px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    color: #fff;
    box-shadow: 0 4px 12px var(--primary-glow);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #38bdf8, var(--primary-light));
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 136, 204, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--border);
    color: #e2e8f0;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--border-light);
    color: #fff;
}

.btn-success {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
    background: linear-gradient(135deg, #34d399, #10b981);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.78rem;
}

.form-group {
    margin-bottom: 1rem;
}

.form-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    padding: 9px 12px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: var(--transition);
}

.form-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--primary-glow);
}

/* ==========================================================================
   6. DASHBOARD & CHECKOUT WIDGETS
   ========================================================================== */
.welcome-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 1.3rem 1.6rem;
    margin-bottom: 1.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.welcome-text h2 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 3px;
}

.welcome-text p {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 1rem;
    margin-bottom: 1.8rem;
}

.kpi-tile {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    transition: var(--transition);
}

.kpi-tile:hover {
    border-color: var(--border-accent);
    transform: translateY(-2px);
}

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

.kpi-tile-title {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted);
}

.kpi-tile-icon {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary-light);
}

.kpi-tile-value {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.3px;
}

.kpi-tile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.72rem;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 6px;
    color: var(--text-muted);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: 1.2fr 1.2fr;
    gap: 1.4rem;
    align-items: start;
}

.widget-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.4rem;
}

.quick-order-row {
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    transition: var(--transition);
}

.quick-order-row:hover {
    border-color: var(--border-accent);
    background: var(--primary-dim);
}

.quick-order-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.quick-order-sub {
    font-size: 0.72rem;
    color: var(--success);
}

.guide-step-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.guide-step-item:last-child {
    margin-bottom: 0;
}

.guide-badge-num {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-dim);
    color: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ==========================================================================
   6.1. MODERN KRİPTO SEÇİCİ GRID & KARTLAR (SIFIR EMOJİ)
   ========================================================================== */
.crypto-selector-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 1rem;
}

.crypto-select-card {
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 10px 8px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    transition: var(--transition);
    user-select: none;
}

.crypto-select-card:hover {
    border-color: var(--border-light);
    background: rgba(255, 255, 255, 0.03);
}

.crypto-select-card.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(0, 136, 204, 0.2);
}

.coin-badge {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
}

.coin-badge.trx { background: #eb0029; }
.coin-badge.ltc { background: #345d9d; }
.coin-badge.doge { background: #c2a633; }

.crypto-select-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #fff;
}

.crypto-select-net {
    font-size: 0.68rem;
    color: var(--text-muted);
}

.crypto-card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.crypto-coin-name {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 0.92rem;
    font-weight: 700;
    color: #fff;
}

.crypto-network-badge {
    font-size: 0.68rem;
    font-weight: 600;
    padding: 2px 7px;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--primary-light);
}

.crypto-card-item {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 14px;
    transition: var(--transition);
}

.crypto-card-item:hover {
    border-color: var(--border-accent);
    background: rgba(0, 136, 204, 0.05);
}

.crypto-address-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 6px 10px;
    gap: 8px;
}

.crypto-address-code {
    font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 0.78rem;
    color: var(--text-link);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: all;
}

.crypto-copy-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--primary-dim);
    border: 1px solid rgba(0, 136, 204, 0.3);
    color: var(--primary-light);
    border-radius: var(--radius-sm);
    padding: 4px 8px;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.crypto-copy-btn:hover {
    background: var(--primary);
    color: #fff;
}

.crypto-copy-btn svg {
    width: 12px;
    height: 12px;
    fill: currentColor;
}

.deposit-step-view {
    display: none;
}

.deposit-step-view.active {
    display: block;
    animation: modalIn 0.2s ease-out;
}

.crypto-order-card {
    background: rgba(0, 136, 204, 0.05);
    border: 1px solid rgba(0, 136, 204, 0.25);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1rem;
}

.crypto-order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
    margin-bottom: 10px;
}

.crypto-countdown {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--warning);
    background: var(--warning-dim);
    padding: 3px 8px;
    border-radius: var(--radius-sm);
}

.crypto-pay-amount {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 800;
    color: #fff;
    margin: 4px 0 8px 0;
}

/* ==========================================================================
   7. TRANSACTION LEDGER & INVENTORY
   ========================================================================== */
.tx-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tx-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.tx-row:hover {
    background: rgba(0, 0, 0, 0.35);
    border-color: var(--border-light);
}

.tx-row-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tx-type-icon {
    width: 30px;
    height: 30px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tx-type-icon svg {
    width: 15px;
    height: 15px;
}

.tx-type-icon.deposit { background: var(--success-dim); fill: var(--success); }
.tx-type-icon.purchase { background: var(--danger-dim); fill: var(--danger); }
.tx-type-icon.transfer-in { background: var(--success-dim); fill: var(--success); }
.tx-type-icon.transfer-out { background: var(--warning-dim); fill: var(--warning); }

.tx-title-text {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
}

.tx-date-text {
    font-size: 0.7rem;
    color: var(--text-muted);
}

.tx-amount-text {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
}

.tx-amount-text.positive { color: var(--success); }
.tx-amount-text.negative { color: var(--danger); }

/* Inventory Grid */
.inventory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.3rem;
}

.inventory-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.3rem;
}

/* ==========================================================================
   8. MODALS & POPUPS
   ========================================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1100;
    padding: 1rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: var(--bg-surface-raised);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    padding: 1.8rem;
    width: 100%;
    max-width: 440px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.6);
    animation: modalIn 0.25s ease-out;
}

@keyframes modalIn {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}

.modal-title-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
}

.modal-close-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-muted);
}
.modal-close-btn svg {
    width: 19px;
    height: 19px;
    fill: currentColor;
}
.modal-close-btn:hover { color: #fff; }

/* Interactive Stepper & Calc Box */
.qty-stepper {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 4px;
}

.qty-step-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.qty-step-btn:hover {
    background: var(--primary);
}

.qty-input-box {
    width: 45px;
    background: transparent;
    border: none;
    text-align: center;
    color: #fff;
    font-weight: 700;
    outline: none;
}

.preset-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 8px;
}

.preset-chip-btn {
    padding: 5px 9px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.preset-chip-btn:hover, .preset-chip-btn.active {
    background: var(--primary-dim);
    border-color: var(--primary);
    color: #fff;
}

.calc-box {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.9rem;
    margin: 1rem 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.calc-line {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.calc-line.total {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    border-top: 1px dashed var(--border);
    padding-top: 8px;
    margin-top: 4px;
}

/* Toast */
.notification-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    background: var(--bg-surface-raised);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 0.82rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    display: none;
    align-items: center;
    gap: 8px;
    z-index: 2000;
}

.notification-toast.show {
    display: flex;
    animation: toastIn 0.25s ease-out;
}

.notification-toast.success { border-left: 4px solid var(--success); }
.notification-toast.danger { border-left: 4px solid var(--danger); }

@keyframes toastIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   9. RESPONSIVE BREAKPOINTS
   ========================================================================== */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar-close-btn {
        display: flex;
    }
    .main-content {
        margin-left: 0;
        width: 100vw;
        padding: 1.5rem 1.1rem 4rem 1.1rem;
    }
    .mobile-toggle-btn {
        display: flex;
    }
    .dashboard-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .main-content {
        padding: 1.2rem 0.9rem 4rem 0.9rem;
    }
    .page-title {
        font-size: 1.2rem;
    }
    .kpi-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.7rem;
    }
    .product-grid, .inventory-grid {
        grid-template-columns: 1fr;
    }
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .search-group {
        width: 100%;
    }
    .search-input, .sort-select {
        flex: 1;
    }
    .crypto-selector-grid {
        grid-template-columns: 1fr;
    }
}

.app-section { display: none; }
.app-section.active { display: block; }


