/* ═══════════════════════════════════════════════════════
   HEYALK DROPBOT DASHBOARD — Glassmorphism Premium Theme
   Inspired by Finovate Finance Dashboard
   ═══════════════════════════════════════════════════════ */

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

:root {
    /* ── Deep Navy Color System ── */
    --bg-primary: #0a0e1a;
    --bg-secondary: rgba(13, 19, 40, 0.75);
    --bg-card: rgba(15, 23, 48, 0.55);
    --bg-card-solid: #0f1730;
    --bg-hover: rgba(30, 42, 75, 0.5);
    --bg-input: rgba(10, 16, 35, 0.8);
    --bg-glass: rgba(17, 25, 55, 0.45);

    --text-primary: #e8ecf4;
    --text-secondary: #8b95b0;
    --text-muted: #4a5575;

    --accent-blue: #6c63ff;
    --accent-blue-glow: rgba(108, 99, 255, 0.35);
    --accent-cyan: #22d3ee;
    --accent-cyan-glow: rgba(34, 211, 238, 0.25);
    --accent-green: #10b981;
    --accent-green-glow: rgba(16, 185, 129, 0.2);
    --accent-red: #f43f5e;
    --accent-red-glow: rgba(244, 63, 94, 0.2);
    --accent-orange: #f97316;
    --accent-yellow: #eab308;
    --accent-purple: #a855f7;
    --accent-purple-glow: rgba(168, 85, 247, 0.25);
    --accent-pink: #ec4899;

    --border: rgba(255, 255, 255, 0.06);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-glow: rgba(108, 99, 255, 0.15);

    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(108, 99, 255, 0.08);
    --glass-blur: blur(16px) saturate(180%);
    --glass-blur-heavy: blur(24px) saturate(200%);

    --sidebar-width: 250px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
}

/* ── Animated Background Orbs ───────────────────────── */

body::before {
    content: '';
    position: fixed;
    top: -20%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(108, 99, 255, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb1 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

body::after {
    content: '';
    position: fixed;
    bottom: -15%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    animation: floatOrb2 25s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(80px, 120px) scale(1.1); }
    66% { transform: translate(-40px, 60px) scale(0.95); }
}

@keyframes floatOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-60px, -80px) scale(1.05); }
    66% { transform: translate(40px, -40px) scale(0.9); }
}

/* ── Dashboard Layout ───────────────────────────────── */

.dashboard {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ═══════════════════════════════════════════════════════
   GLASSMORPHISM SIDEBAR (Finovate Floating Glass)
   ═══════════════════════════════════════════════════════ */

.sidebar {
    width: var(--sidebar-width);
    background: rgba(11, 17, 36, 0.78);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    margin: 16px;
    height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    transition: var(--transition);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glowing accent line on right edge */
.sidebar::after {
    content: '';
    position: absolute;
    top: 20px;
    right: -1px;
    width: 1px;
    height: calc(100% - 40px);
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(108, 99, 255, 0.4) 20%,
        rgba(168, 85, 247, 0.3) 50%,
        rgba(34, 211, 238, 0.2) 80%,
        transparent 100%
    );
}

.sidebar-header {
    padding: 20px 18px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-icon {
    font-size: 26px;
    filter: drop-shadow(0 0 8px rgba(108, 99, 255, 0.5));
}

.logo-text {
    font-size: 18px;
    font-weight: 800;
    background: linear-gradient(135deg, #6c63ff 0%, #a855f7 50%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.logo-sub {
    font-size: 10.5px;
    color: var(--text-muted);
    font-weight: 500;
}

.version {
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(108, 99, 255, 0.12);
    border: 1px solid rgba(108, 99, 255, 0.2);
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}

.nav-links {
    list-style: none;
    padding: 14px 10px;
    flex: 1 0 auto;
    min-height: 380px;
    overflow-y: auto;
}

.nav-links li {
    margin-bottom: 2px;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 13.5px;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 0;
    background: linear-gradient(180deg, var(--accent-blue), var(--accent-purple));
    border-radius: 0 4px 4px 0;
    transition: height 0.3s ease;
}

.nav-links a:hover {
    background: rgba(108, 99, 255, 0.08);
    color: var(--text-primary);
}

.nav-links a:hover::before {
    height: 60%;
}

.nav-links li.active a {
    background: linear-gradient(135deg, rgba(108, 99, 255, 0.15), rgba(168, 85, 247, 0.08));
    color: #b8b3ff;
    font-weight: 600;
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.08);
}

.nav-links li.active a::before {
    height: 65%;
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.5);
}

.nav-icon {
    font-size: 17px;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

/* Sidebar Engine Status Widget (Finovate Style Promo Card) */
.sidebar-engine-card {
    margin: 8px 12px 12px 12px;
    padding: 12px 14px;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.08));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 14px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.engine-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.engine-pulse {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 10px #10b981;
    animation: pulse-dot 2s infinite;
}

.engine-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #e8ecf4;
}

.engine-card-desc {
    font-size: 10.5px;
    color: #8b95b0;
    line-height: 1.35;
    margin-bottom: 8px;
}

.engine-card-btn {
    width: 100%;
    padding: 6px 10px;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35);
}

.engine-card-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(99, 102, 241, 0.5);
}

.sidebar-footer {
    padding: 14px 18px;
    border-top: 1px solid var(--border);
    background: rgba(10, 15, 30, 0.4);
    border-radius: 0 0 20px 20px;
}

.status-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-red);
    flex-shrink: 0;
}

.status-dot.online {
    background: var(--accent-green);
    box-shadow: 0 0 10px var(--accent-green), 0 0 20px rgba(16, 185, 129, 0.3);
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 10px var(--accent-green); }
    50% { opacity: 0.6; box-shadow: 0 0 20px var(--accent-green), 0 0 40px rgba(16, 185, 129, 0.2); }
}

/* ═══════════════════════════════════════════════════════
   MAIN CONTENT AREA
   ═══════════════════════════════════════════════════════ */

.main-content {
    flex: 1;
    margin-left: calc(var(--sidebar-width) + 32px);
    padding: 0 16px 24px 0;
    min-height: 100vh;
    position: relative;
}

/* ── Glassmorphism Top Bar (Finovate Style) ────────────── */

.top-bar {
    padding: 14px 24px;
    background: rgba(10, 16, 35, 0.72);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 50;
    margin-bottom: 10px;
}

.top-bar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 16px;
}

.top-bar-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.top-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 48, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 8px 16px;
    max-width: 380px;
    width: 100%;
    transition: var(--transition);
    cursor: text;
}

.top-search-wrap:focus-within {
    border-color: rgba(99, 102, 241, 0.5);
    background: rgba(18, 28, 60, 0.95);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.25);
}

.top-search-wrap input {
    background: transparent;
    border: none;
    outline: none;
    color: #e8ecf4;
    font-size: 13px;
    width: 100%;
}

.top-search-wrap input::placeholder {
    color: #6b779a;
}

.search-kbd {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 2px 6px;
    font-size: 10px;
    color: #8b95b0;
    font-family: inherit;
    transition: all 0.15s ease;
    cursor: pointer;
    user-select: none;
}

.search-kbd:hover {
    background: rgba(99, 102, 241, 0.25);
    color: #c7d2fe;
}

.global-search-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    width: 480px;
    max-width: 90vw;
    max-height: 480px;
    overflow-y: auto;
    background: #0d1428;
    border: 1px solid rgba(99, 102, 241, 0.35);
    border-radius: 14px;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75), 0 0 30px rgba(99, 102, 241, 0.2);
    backdrop-filter: blur(20px);
    z-index: 9999;
    display: none;
    flex-direction: column;
    padding: 8px;
    gap: 4px;
}

.global-search-dropdown.active {
    display: flex;
}

.search-group-header {
    font-size: 10.5px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #8b95b0;
    padding: 8px 10px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.15s ease, transform 0.1s ease;
    border: 1px solid transparent;
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(99, 102, 241, 0.35);
    transform: translateX(2px);
}

.search-item-icon {
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
}

.search-item-info {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
}

.search-item-meta {
    font-size: 11px;
    color: #8b95b0;
    margin-top: 2px;
}

.search-item-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 6px;
    flex-shrink: 0;
}

.search-item-badge.badge-prime {
    background: rgba(168, 85, 247, 0.2);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.35);
}

.search-item-badge.badge-dc {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.search-no-results {
    padding: 24px 16px;
    text-align: center;
    color: #8b95b0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.search-highlight {
    background: rgba(234, 179, 8, 0.3);
    color: #fde047;
    font-weight: 800;
    padding: 0 2px;
    border-radius: 3px;
}

@keyframes rowPulse {
    0% { background-color: rgba(99, 102, 241, 0.55); }
    100% { background-color: transparent; }
}

.row-highlight-pulse {
    animation: rowPulse 2.5s ease-out;
}

.top-bar-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}

.user-profile-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 48, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 4px 12px 4px 5px;
    border-radius: 24px;
}

.user-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #22d3ee);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 11px;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
}

.user-info-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.user-name {
    font-size: 11.5px;
    font-weight: 700;
    color: #e8ecf4;
}

.user-role {
    font-size: 10px;
    color: #8b95b0;
}

.header-bar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.header-nav-pills {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
}

.header-nav-pills::-webkit-scrollbar { display: none; }

.nav-pill {
    background: rgba(20, 30, 60, 0.6);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 7px 16px;
    border-radius: 24px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(8px);
}

.nav-pill:hover {
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.12);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.1);
}

.nav-pill.active {
    background: linear-gradient(135deg, #6c63ff, #a855f7);
    color: #ffffff;
    font-weight: 600;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.4), 0 0 1px rgba(255,255,255,0.2) inset;
}

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

/* ── Live Rate Badge ─────────────────────────────────── */

.live-rate-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 24px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 600;
    color: #34d399;
    backdrop-filter: blur(8px);
}

.rate-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 8px #10b981;
    animation: pulse-dot 2s infinite;
}

.rate-text {
    font-family: 'Inter', monospace;
    letter-spacing: 0.3px;
    font-size: 11.5px;
}

.btn-rate-refresh {
    background: none;
    border: none;
    color: #34d399;
    cursor: pointer;
    padding: 0 2px;
    font-size: 12px;
    transition: transform 0.3s ease;
}

.btn-rate-refresh:hover { transform: rotate(180deg); }

.spinning {
    display: inline-block;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.last-update {
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 400;
}

/* ═══════════════════════════════════════════════════════
   SECTIONS
   ═══════════════════════════════════════════════════════ */

.section {
    display: none;
    padding: 24px 28px;
    animation: fadeInSection 0.4s ease;
}

.section.active {
    display: block;
}

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

/* ═══════════════════════════════════════════════════════
   FINOVATE RICH OVERVIEW DASHBOARD STYLES
   ═══════════════════════════════════════════════════════ */

/* Welcome Banner */
.overview-welcome-banner {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
    padding: 4px 2px;
    flex-wrap: wrap;
    gap: 14px;
}

.welcome-greeting {
    font-size: 13.5px;
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: 4px;
    letter-spacing: 0.2px;
}

.welcome-title {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.welcome-sub {
    font-size: 12.5px;
    color: var(--text-secondary);
}

.date-range-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(15, 23, 48, 0.7);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-primary);
    backdrop-filter: blur(12px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.live-dot-pill {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* Finovate 4 Stat Cards with Sparklines */
.finovate-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 22px;
}

.finovate-stat-card {
    background: rgba(15, 23, 48, 0.6);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: var(--transition);
}

.finovate-stat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.45);
}

.finovate-stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.finovate-stat-card.card-cyan::before {
    background: linear-gradient(90deg, #22d3ee, transparent);
}
.finovate-stat-card.card-green::before {
    background: linear-gradient(90deg, #10b981, transparent);
}
.finovate-stat-card.card-purple::before {
    background: linear-gradient(90deg, #a855f7, transparent);
}
.finovate-stat-card.card-blue::before {
    background: linear-gradient(90deg, #6366f1, transparent);
}

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

.stat-icon-box {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.stat-icon-box.icon-cyan {
    background: rgba(34, 211, 238, 0.15);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.2);
}
.stat-icon-box.icon-green {
    background: rgba(16, 185, 129, 0.15);
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.2);
}
.stat-icon-box.icon-purple {
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}
.stat-icon-box.icon-blue {
    background: rgba(99, 102, 241, 0.15);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.2);
}

.stat-trend-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
}

.stat-trend-badge.up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.stat-trend-badge.neutral {
    background: rgba(168, 85, 247, 0.15);
    color: #c084fc;
    border: 1px solid rgba(168, 85, 247, 0.25);
}

.stat-trend-badge.blue {
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    border: 1px solid rgba(99, 102, 241, 0.25);
}

.stat-card-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.stat-card-val-primary {
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.stat-card-val-secondary {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 2px;
    font-weight: 500;
}

.stat-sparkline-wrap {
    margin-top: 10px;
    height: 30px;
    width: 100%;
}

.spark-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}

/* MAIN CHARTS GRID: Cash Flow + Profit & Loss */
.finovate-charts-main-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.finovate-chart-card {
    padding: 22px;
    background: rgba(15, 23, 48, 0.6);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.chart-header-custom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 12px;
}

.chart-title-text {
    font-size: 15.5px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.3px;
}

.chart-sub-text {
    font-size: 11.5px;
    color: var(--text-muted);
    margin-top: 3px;
}

.chart-header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-custom-legend {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 11.5px;
    color: var(--text-secondary);
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.chip-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.dot-cyan { background: #22d3ee; box-shadow: 0 0 8px #22d3ee; }
.dot-purple { background: #a855f7; box-shadow: 0 0 8px #a855f7; }

.chart-select-pill {
    background: rgba(10, 16, 35, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    color: #e8ecf4;
    padding: 5px 10px;
    font-size: 11.5px;
    cursor: pointer;
}

/* Profit & Loss Card */
.finovate-pnl-card {
    padding: 22px;
    background: rgba(15, 23, 48, 0.6);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

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

.pnl-rows-container {
    display: flex;
    flex-direction: column;
    gap: 11px;
    flex: 1;
    justify-content: center;
}

.pnl-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12.5px;
}

.pnl-row-label {
    color: var(--text-secondary);
    font-weight: 500;
}

.pnl-row-val {
    color: #ffffff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.pnl-badge-up {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
    font-size: 9.5px;
    padding: 2px 6px;
    border-radius: 6px;
}

.pnl-row-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.06);
    margin: 2px 0;
}

.pnl-row.pnl-highlight {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.25);
    padding: 10px 14px;
    border-radius: 12px;
    margin-top: 4px;
}

/* SECONDARY CHARTS GRID */
.finovate-charts-secondary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.finovate-sub-chart-card {
    padding: 20px;
    background: rgba(15, 23, 48, 0.6);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.allocations-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 8px;
}

.alloc-box {
    background: rgba(10, 16, 35, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 12px 14px;
    border-radius: 12px;
}

.alloc-title-row {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    font-weight: 600;
    color: #e8ecf4;
    margin-bottom: 8px;
}

.alloc-track {
    height: 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 6px;
}

.alloc-bar {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.alloc-bar.bar-cyan {
    background: linear-gradient(90deg, #22d3ee, #6366f1);
}

.alloc-bar.bar-purple {
    background: linear-gradient(90deg, #a855f7, #ec4899);
}

.alloc-footnote {
    font-size: 10.5px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════
   GLASSMORPHISM STAT CARDS (Legacy Support)
   ═══════════════════════════════════════════════════════ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
}

.stat-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.04;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    border-color: var(--border-light);
}

.stat-card:hover::after {
    opacity: 0.08;
}

.stat-card.revenue::before { background: linear-gradient(90deg, #6c63ff, #a855f7); }
.stat-card.revenue::after { background: radial-gradient(circle, #6c63ff, transparent); }
.stat-card.profit::before { background: linear-gradient(90deg, #10b981, #22d3ee); }
.stat-card.profit::after { background: radial-gradient(circle, #10b981, transparent); }
.stat-card.orders::before { background: linear-gradient(90deg, #f97316, #eab308); }
.stat-card.orders::after { background: radial-gradient(circle, #f97316, transparent); }
.stat-card.products::before { background: linear-gradient(90deg, #a855f7, #ec4899); }
.stat-card.products::after { background: radial-gradient(circle, #ec4899, transparent); }

.stat-icon {
    font-size: 28px;
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.stat-card.revenue .stat-icon { background: linear-gradient(135deg, rgba(108, 99, 255, 0.2), rgba(168, 85, 247, 0.15)); }
.stat-card.profit .stat-icon { background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(34, 211, 238, 0.15)); }
.stat-card.orders .stat-icon { background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 179, 8, 0.15)); }
.stat-card.products .stat-icon { background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15)); }

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

.stat-label {
    font-size: 11.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.stat-value {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

/* ═══════════════════════════════════════════════════════
   GLASSMORPHISM CARDS
   ═══════════════════════════════════════════════════════ */

.card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 20px;
    transition: var(--transition);
}

.card:hover {
    border-color: var(--border-light);
}

.card-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   DATA TABLES
   ═══════════════════════════════════════════════════════ */

.table-container {
    overflow-x: auto;
    border-radius: var(--radius-sm);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    text-align: left;
    padding: 12px 16px;
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
    font-weight: 700;
    background: rgba(10, 15, 30, 0.4);
}

.data-table td {
    padding: 11px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.data-table tr:hover td {
    background: rgba(108, 99, 255, 0.04);
    color: var(--text-primary);
}

.data-table tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════════════════════════════════════
   BADGES
   ═══════════════════════════════════════════════════════ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.badge-success { background: rgba(16, 185, 129, 0.15); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-pending { background: rgba(234, 179, 8, 0.12); color: #facc15; border: 1px solid rgba(234, 179, 8, 0.2); }
.badge-paid { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.2); }
.badge-processing { background: rgba(108, 99, 255, 0.12); color: #a5a0ff; border: 1px solid rgba(108, 99, 255, 0.2); }
.badge-delivered { background: rgba(34, 211, 238, 0.12); color: #22d3ee; border: 1px solid rgba(34, 211, 238, 0.2); }
.badge-failed { background: rgba(244, 63, 94, 0.12); color: #fb7185; border: 1px solid rgba(244, 63, 94, 0.2); }
.badge-refunded { background: rgba(168, 85, 247, 0.12); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.2); }
.badge-accent { background: rgba(108, 99, 255, 0.12); color: #a5a0ff; border: 1px solid rgba(108, 99, 255, 0.2); }
.badge-awaiting_verification { background: rgba(249, 115, 22, 0.12); color: #fb923c; border: 1px solid rgba(249, 115, 22, 0.2); }

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */

.btn {
    padding: 9px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-light);
    background: rgba(20, 30, 60, 0.6);
    backdrop-filter: blur(8px);
    color: var(--text-primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
    white-space: nowrap;
}

.btn:hover {
    background: rgba(108, 99, 255, 0.1);
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.08);
}

.btn-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border: none;
    color: white;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(108, 99, 255, 0.25);
}

.btn-accent:hover {
    opacity: 0.92;
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(108, 99, 255, 0.4);
}

.btn-secondary {
    background: rgba(20, 30, 60, 0.5);
    border: 1px solid var(--border-light);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--text-primary);
    background: rgba(108, 99, 255, 0.08);
    border-color: rgba(108, 99, 255, 0.25);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: var(--radius-xs);
}

.btn-danger {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.3);
    color: #fb7185;
}

.btn-danger:hover {
    background: rgba(244, 63, 94, 0.2);
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.15);
}

/* ═══════════════════════════════════════════════════════
   SUPPLIER HUB CARDS (Overview)
   ═══════════════════════════════════════════════════════ */

.supplier-hub-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.hub-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 14px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.hub-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.hub-card:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
}

.hub-card:hover::before {
    opacity: 1;
}

.dc-card { border-top: 2px solid #3b82f6; }
.dc-card::before { background: linear-gradient(180deg, rgba(59, 130, 246, 0.04) 0%, transparent 50%); }
.prime-card { border-top: 2px solid #a855f7; }
.prime-card::before { background: linear-gradient(180deg, rgba(168, 85, 247, 0.04) 0%, transparent 50%); }
.sync-card { border-top: 2px solid #10b981; }
.sync-card::before { background: linear-gradient(180deg, rgba(16, 185, 129, 0.04) 0%, transparent 50%); }

.hub-header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.hub-icon {
    font-size: 24px;
    line-height: 1;
    filter: drop-shadow(0 0 6px rgba(108, 99, 255, 0.3));
}

.hub-title {
    font-weight: 700;
    font-size: 13.5px;
    color: var(--text-primary);
}

.hub-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.hub-stats {
    display: flex;
    justify-content: space-between;
    background: rgba(10, 15, 30, 0.5);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}

.hub-label {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-bottom: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.hub-val {
    font-size: 16px;
    font-weight: 800;
    color: var(--text-primary);
    font-family: 'Inter', monospace;
    letter-spacing: -0.3px;
}

.hub-actions {
    display: flex;
    gap: 8px;
}

.hub-actions .btn {
    flex: 1;
    font-size: 11.5px;
    padding: 7px 10px;
    text-align: center;
}

/* ═══════════════════════════════════════════════════════
   SUPPLIERS GRID (Full Page)
   ═══════════════════════════════════════════════════════ */

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

.supplier-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    transition: var(--transition);
}

.supplier-card:hover {
    border-color: rgba(108, 99, 255, 0.3);
    box-shadow: 0 0 24px var(--accent-blue-glow);
    transform: translateY(-2px);
}

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

.supplier-name {
    font-weight: 700;
    font-size: 15px;
}

.supplier-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.supplier-status.active { background: var(--accent-green); box-shadow: 0 0 8px var(--accent-green-glow); }
.supplier-status.low_balance { background: var(--accent-orange); box-shadow: 0 0 6px rgba(249, 115, 22, 0.3); }
.supplier-status.error { background: var(--accent-red); box-shadow: 0 0 6px var(--accent-red-glow); }
.supplier-status.paused { background: var(--text-muted); }

.supplier-detail {
    display: flex;
    justify-content: space-between;
    padding: 7px 0;
    font-size: 13px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.supplier-detail:last-child { border-bottom: none; }
.supplier-detail .label { color: var(--text-muted); }

/* ═══════════════════════════════════════════════════════
   RECOMMENDATIONS
   ═══════════════════════════════════════════════════════ */

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recommendation-item {
    padding: 11px 16px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-left: 4px solid var(--accent-cyan);
    border-radius: 8px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #e2e8f0;
    margin-bottom: 8px;
    transition: var(--transition);
}

.recommendation-item:hover {
    background: rgba(22, 32, 58, 0.85);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.15);
}

.recommendation-item.critical { border-left-color: var(--accent-red); }
.recommendation-item.warning { border-left-color: var(--accent-orange); }

/* ═══════════════════════════════════════════════════════
   BALANCE CARDS
   ═══════════════════════════════════════════════════════ */

.balance-card {
    background: rgba(10, 15, 30, 0.5);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.balance-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.balance-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.balance-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.balance-fill.ok { background: linear-gradient(90deg, #10b981, #22d3ee); }
.balance-fill.warning { background: linear-gradient(90deg, #f97316, #eab308); }
.balance-fill.critical { background: linear-gradient(90deg, #f43f5e, #ef4444); }

/* ═══════════════════════════════════════════════════════
   ANALYTICS CHARTS
   ═══════════════════════════════════════════════════════ */

.analytics-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.chart-card {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    transition: var(--transition);
}

.chart-card:hover {
    border-color: var(--border-light);
}

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

.chart-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.chart-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 2px;
}

.chart-container {
    position: relative;
    width: 100%;
    min-height: 220px;
}

.chart-container canvas {
    width: 100% !important;
}

/* Stats mini cards in analytics */
.analytics-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.analytics-mini-stat {
    background: var(--bg-card);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 16px;
    text-align: center;
    transition: var(--transition);
}

.analytics-mini-stat:hover {
    border-color: var(--border-light);
    transform: translateY(-2px);
}

.analytics-mini-stat .mini-icon {
    font-size: 22px;
    margin-bottom: 6px;
}

.analytics-mini-stat .mini-value {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 2px;
}

.analytics-mini-stat .mini-label {
    font-size: 10.5px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.analytics-mini-stat .mini-trend {
    font-size: 11px;
    margin-top: 4px;
    font-weight: 600;
}

.mini-trend.up { color: #34d399; }
.mini-trend.down { color: #fb7185; }

/* Budget / Category allocation bars */
.allocation-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.allocation-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.allocation-label {
    font-size: 12.5px;
    color: var(--text-secondary);
    min-width: 100px;
    font-weight: 500;
}

.allocation-bar-bg {
    flex: 1;
    height: 8px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 4px;
    overflow: hidden;
}

.allocation-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.allocation-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    min-width: 40px;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════════════════════ */

.text-green { color: #34d399; }
.text-red { color: #fb7185; }
.text-orange { color: #fb923c; }
.text-blue { color: #818cf8; }
.text-cyan { color: #22d3ee; }
.text-muted { color: var(--text-muted); }

.loading-shimmer {
    padding: 20px;
    text-align: center;
    color: var(--text-muted);
    animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 0.4; }
    50% { opacity: 0.8; }
}

/* ═══════════════════════════════════════════════════════
   SETTINGS & PAYMENT GRID
   ═══════════════════════════════════════════════════════ */

.settings-main-card {
    padding: 24px;
    border-radius: 18px;
}

.settings-header-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 14px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.settings-header-text {
    flex: 1;
    min-width: 260px;
}

.settings-header-text .card-title {
    margin: 0;
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.3px;
    color: #ffffff;
}

.settings-header-sub {
    font-size: 12.5px;
    color: var(--text-muted);
    margin-top: 5px;
    line-height: 1.45;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 10px;
}

.setting-card {
    background: rgba(10, 15, 30, 0.55);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    box-sizing: border-box;
    overflow: hidden;
}

.setting-card:hover {
    border-color: rgba(108, 99, 255, 0.35);
    box-shadow: 0 8px 30px rgba(108, 99, 255, 0.12);
}

.setting-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}

.qris-code-textarea {
    width: 100%;
    box-sizing: border-box;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 11px;
    line-height: 1.45;
    word-break: break-all;
    overflow-wrap: break-word;
    resize: vertical;
    padding: 10px 12px;
    border-radius: 9px;
    background: rgba(5, 10, 20, 0.55);
    border: 1px solid var(--border);
    color: #e2e8f0;
    transition: var(--transition-fast);
}

.qris-code-textarea:focus {
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.2);
    outline: none;
}

.rate-label-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 6px;
}

.btn-check-rate {
    font-size: 11px;
    padding: 4px 10px;
    border-radius: 8px;
    white-space: nowrap;
    font-weight: 600;
}

.rate-input-pills-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.rate-input {
    flex: 1;
    font-weight: 700;
    font-size: 15px;
    min-width: 120px;
    box-sizing: border-box;
}

.quick-pills-wrap {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-shrink: 0;
}

.margin-formula-card {
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.25);
    border-radius: 12px;
    padding: 14px;
    box-sizing: border-box;
    width: 100%;
}

.btn-apply-margin {
    width: 100%;
    white-space: normal !important;
    text-align: center;
    line-height: 1.35;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 9px;
    box-shadow: 0 4px 14px rgba(108, 99, 255, 0.35);
}

.settings-bottom-actions {
    margin-top: 20px;
    display: flex;
    justify-content: flex-end;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.input-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hint-text {
    font-size: 10.5px;
    color: var(--text-muted);
    margin-top: 6px;
    line-height: 1.5;
}

/* ═══════════════════════════════════════════════════════
   TELEGRAM PREVIEW BUBBLE
   ═══════════════════════════════════════════════════════ */

.telegram-preview-bubble {
    background: linear-gradient(135deg, rgba(21, 30, 50, 0.9), rgba(15, 22, 40, 0.9));
    backdrop-filter: blur(12px);
    border-radius: var(--radius);
    padding: 16px 18px;
    color: #ffffff;
    max-width: 100%;
    border: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.tg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 11px;
    color: #60a5fa;
    font-weight: 600;
}

.tg-channel-name { color: #60a5fa; }
.tg-time { color: var(--text-muted); font-size: 10px; }

.tg-body {
    font-size: 13px;
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
    color: #e2e8f0;
    min-height: 80px;
    padding: 4px 0;
}

.tg-button {
    margin-top: 12px;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(108, 99, 255, 0.3));
    color: #ffffff;
    text-align: center;
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* ═══════════════════════════════════════════════════════
   DOMAIN BADGE & HEADER
   ═══════════════════════════════════════════════════════ */

.domain-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(108, 99, 255, 0.08);
    border: 1px solid rgba(108, 99, 255, 0.2);
    padding: 5px 14px;
    border-radius: 24px;
    font-size: 12px;
    font-family: 'Inter', monospace;
    color: #a5b4fc;
    transition: var(--transition);
    backdrop-filter: blur(8px);
}

.domain-badge:hover {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.4);
    box-shadow: 0 0 20px rgba(108, 99, 255, 0.15);
}

.domain-badge a {
    color: inherit;
    text-decoration: none;
    font-weight: 600;
    font-size: 11.5px;
    transition: color 0.2s;
}

.domain-badge a:hover {
    color: #fff;
    text-decoration: underline;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    box-shadow: 0 0 8px #22c55e;
    animation: pulseGlow 2s infinite;
    flex-shrink: 0;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.btn-icon {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    padding: 2px 4px;
    border-radius: 4px;
    transition: var(--transition-fast);
    opacity: 0.7;
}

.btn-icon:hover {
    opacity: 1;
    transform: scale(1.15);
}

.top-bar-row {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ═══════════════════════════════════════════════════════
   FORM CONTROLS
   ═══════════════════════════════════════════════════════ */

.controls-bar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 18px;
    width: 100%;
    box-sizing: border-box;
}

.search-input {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 240px;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.search-input:focus {
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 0 16px rgba(108, 99, 255, 0.15), 0 0 0 1px rgba(108, 99, 255, 0.1);
}

.category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill-btn {
    background: rgba(20, 30, 60, 0.5);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.pill-btn:hover {
    color: var(--text-primary);
    border-color: rgba(108, 99, 255, 0.3);
    background: rgba(108, 99, 255, 0.08);
}

.pill-btn.active {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    border-color: transparent;
    color: #fff;
    font-weight: 600;
    box-shadow: 0 2px 10px rgba(108, 99, 255, 0.3);
}

/* ── Inline Edit Controls ───────────────────────────── */

.inline-edit-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.inline-num-input {
    width: 65px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--text-primary);
    padding: 5px 6px;
    border-radius: var(--radius-xs);
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    outline: none;
    transition: var(--transition);
    font-family: inherit;
}

.inline-num-input:focus {
    border-color: rgba(108, 99, 255, 0.5);
    box-shadow: 0 0 8px rgba(108, 99, 255, 0.15);
}

.quick-btn {
    background: rgba(20, 30, 60, 0.6);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 4px 8px;
    border-radius: var(--radius-xs);
    font-size: 11px;
    cursor: pointer;
    transition: var(--transition);
    font-family: inherit;
}

.quick-btn:hover {
    background: rgba(108, 99, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(108, 99, 255, 0.3);
}

.quick-btn.pos:hover {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.4);
    background: rgba(16, 185, 129, 0.08);
}

.quick-btn.neg:hover {
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.4);
    background: rgba(244, 63, 94, 0.08);
}

/* ═══════════════════════════════════════════════════════
   SWITCH TOGGLE (iOS style)
   ═══════════════════════════════════════════════════════ */

.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 22px;
}

.switch input { opacity: 0; width: 0; height: 0; }

.slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    transition: .3s;
    border-radius: 22px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 3px;
    bottom: 3px;
    background-color: #fff;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

input:checked + .slider {
    background: linear-gradient(135deg, var(--accent-green), #22d3ee);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.3);
}

input:checked + .slider:before {
    transform: translateX(18px);
}

/* ═══════════════════════════════════════════════════════
   TOAST NOTIFICATIONS
   ═══════════════════════════════════════════════════════ */

.toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    min-width: 300px;
    max-width: 420px;
    background: rgba(15, 22, 42, 0.92);
    backdrop-filter: var(--glass-blur);
    border: 1px solid var(--accent-blue);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-blue-glow);
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    transition: opacity 0.3s ease;
}

.toast.success {
    border-color: var(--accent-green);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-green-glow);
}

.toast.error {
    border-color: var(--accent-red);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5), 0 0 20px var(--accent-red-glow);
}

@keyframes toastSlideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* ═══════════════════════════════════════════════════════
   MODALS (Glassmorphism)
   ═══════════════════════════════════════════════════════ */

.modal-backdrop {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(4, 7, 18, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 12px;
}

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

.modal-card {
    background: rgba(15, 22, 45, 0.92);
    backdrop-filter: var(--glass-blur-heavy);
    -webkit-backdrop-filter: var(--glass-blur-heavy);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 28px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6), 0 0 40px rgba(108, 99, 255, 0.06);
    position: relative;
    animation: modalPop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPop {
    from { transform: scale(0.92) translateY(20px); opacity: 0; }
    to { transform: scale(1) translateY(0); opacity: 1; }
}

.modal-title {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -0.3px;
}

.modal-close {
    position: absolute;
    top: 18px; right: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 18px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: var(--transition);
}

.modal-close:hover {
    color: var(--text-primary);
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
}

/* ═══════════════════════════════════════════════════════
   MOBILE NAVIGATION CONTROLS
   ═══════════════════════════════════════════════════════ */

.btn-mobile-menu {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(20, 30, 60, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 18px;
    cursor: pointer;
    flex-shrink: 0;
    transition: var(--transition);
}

.btn-mobile-menu:hover, .btn-mobile-menu:active {
    background: rgba(108, 99, 255, 0.15);
    border-color: rgba(108, 99, 255, 0.3);
}

.sidebar-close-btn {
    display: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    line-height: 1;
    transition: var(--transition);
}

.sidebar-close-btn:hover {
    color: var(--text-primary);
    background: rgba(244, 63, 94, 0.1);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(6px);
    z-index: 999;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.bottom-nav {
    display: none;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════════════════════ */

@media (max-width: 1200px) {
    .finovate-charts-main-grid {
        grid-template-columns: 1fr;
    }
    .finovate-charts-secondary-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .finovate-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    .analytics-stats-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    :root {
        --sidebar-width: 220px;
    }
    .top-bar {
        padding: 14px 16px;
    }
    .section {
        padding: 16px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .supplier-hub-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    body {
        overflow-x: hidden;
    }

    .nav-links {
        min-height: 0 !important;
        flex: 1 1 auto !important;
        overflow-y: auto !important;
    }

    .overview-welcome-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 16px;
    }
    .welcome-title {
        font-size: 19px !important;
    }
    .welcome-sub {
        font-size: 11.5px !important;
    }
    .date-range-badge {
        padding: 5px 10px !important;
        font-size: 11px !important;
    }

    .finovate-stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }
    .finovate-stat-card {
        padding: 14px 12px 10px 12px !important;
        border-radius: 14px !important;
    }
    .stat-card-val-primary {
        font-size: 17px !important;
    }
    .stat-card-val-secondary {
        font-size: 10.5px !important;
    }
    .stat-icon-box {
        width: 32px !important;
        height: 32px !important;
        font-size: 15px !important;
    }
    .stat-sparkline-wrap {
        height: 22px !important;
        margin-top: 6px !important;
    }

    .finovate-charts-main-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 16px !important;
    }
    .finovate-chart-card {
        padding: 16px !important;
        border-radius: 14px !important;
    }
    .chart-canvas-wrapper {
        height: 230px !important;
    }
    .finovate-pnl-card {
        padding: 16px !important;
        border-radius: 14px !important;
    }
    .finovate-charts-secondary-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        margin-bottom: 16px !important;
    }
    .finovate-sub-chart-card {
        padding: 16px !important;
        border-radius: 14px !important;
    }

    .user-info-text {
        display: none !important;
    }
    .user-profile-badge {
        padding: 2px !important;
        background: transparent !important;
        border: none !important;
    }

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

    .dashboard {
        display: block;
        min-height: 100vh;
        overflow-x: hidden;
    }

    /* ── Glassmorphism Off-canvas Sidebar ── */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        margin: 0 !important;
        border-radius: 0 !important;
        width: 280px;
        max-width: 82vw;
        height: 100vh;
        z-index: 10000;
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        box-shadow: 16px 0 48px rgba(0, 0, 0, 0.7);
        border-right: 1px solid var(--border-light);
        background: rgba(8, 12, 25, 0.95) !important;
        backdrop-filter: var(--glass-blur-heavy) !important;
        display: flex !important;
        flex-direction: column !important;
    }

    .sidebar.open {
        transform: translateX(0) !important;
    }

    .sidebar .logo-text, .sidebar .version, .sidebar .nav-links a span {
        display: inline-block !important;
    }

    .sidebar-overlay {
        z-index: 9999;
    }

    .sidebar-close-btn {
        display: inline-flex;
    }

    .btn-mobile-menu {
        display: inline-flex !important;
    }

    .supplier-hub-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .settings-main-card {
        padding: 14px 12px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .settings-header-banner {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }

    .settings-header-text .card-title {
        font-size: 16px !important;
        line-height: 1.35 !important;
    }

    .settings-header-sub {
        font-size: 11.5px !important;
    }

    .btn-save-settings-top,
    .btn-save-settings-bottom {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 11px 16px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        border-radius: 10px !important;
    }

    .settings-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .setting-card {
        padding: 14px 12px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .setting-card-header {
        gap: 8px !important;
        padding-bottom: 10px !important;
        align-items: center !important;
    }

    .setting-card-header > div:first-child {
        flex: 1 1 auto !important;
        min-width: 0 !important;
    }

    .setting-card-header > div:first-child > div:last-child {
        min-width: 0 !important;
    }

    .setting-card-header div[style*="font-weight: 700"] {
        font-size: 13.5px !important;
        line-height: 1.3 !important;
    }

    #setting-rate-status.badge {
        font-size: 9.5px !important;
        padding: 3px 7px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .rate-label-wrap {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 6px !important;
    }

    .btn-check-rate {
        width: 100% !important;
        justify-content: center !important;
        text-align: center !important;
        padding: 6px 10px !important;
    }

    .rate-input-pills-row {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
    }

    .rate-input {
        width: 100% !important;
    }

    .quick-pills-wrap {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 6px !important;
        width: 100% !important;
    }

    .quick-pills-wrap .quick-btn {
        width: 100% !important;
        text-align: center !important;
        padding: 7px 4px !important;
        font-size: 12px !important;
        justify-content: center !important;
    }

    .margin-formula-card {
        padding: 12px !important;
        border-radius: 10px !important;
    }

    .btn-apply-margin {
        font-size: 11.5px !important;
        padding: 10px 12px !important;
        line-height: 1.35 !important;
    }

    .settings-bottom-actions {
        width: 100% !important;
        margin-top: 14px !important;
        padding-top: 12px !important;
    }

    .broadcast-layout {
        grid-template-columns: 1fr !important;
        gap: 14px;
    }

    /* ── Full Width Main Content ── */
    .main-content {
        margin-left: 0 !important;
        width: 100% !important;
        max-width: 100vw !important;
        min-width: 0 !important;
        overflow-x: hidden !important;
        padding-bottom: 78px;
    }

    /* ── Glassmorphism Top Bar Mobile ── */
    .top-bar {
        padding: 10px 12px !important;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        position: sticky;
        top: 0;
        background: rgba(8, 12, 25, 0.92) !important;
        backdrop-filter: var(--glass-blur-heavy);
        z-index: 100;
        border-bottom: 1px solid var(--border);
    }

    .top-bar-row {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        width: 100%;
    }

    .top-bar-left {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-shrink: 0;
    }

    .top-bar-right {
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
        min-width: 0;
    }

    .live-rate-badge {
        padding: 4px 8px !important;
        font-size: 11px !important;
        flex-shrink: 0 !important;
        gap: 5px !important;
    }

    .domain-badge {
        display: none !important;
    }

    .header-bar-nav {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
        overflow: hidden;
    }

    .header-nav-pills {
        display: flex;
        gap: 8px;
        width: 100%;
        overflow-x: auto;
        padding: 4px 16px 8px 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .header-nav-pills::-webkit-scrollbar { display: none; }

    .nav-pill {
        padding: 7px 14px !important;
        font-size: 12px !important;
        font-weight: 600 !important;
        flex-shrink: 0 !important;
        white-space: nowrap !important;
        border-radius: 20px !important;
        line-height: 1.2 !important;
    }

    .nav-pill.active {
        background: linear-gradient(135deg, #6c63ff, #a855f7) !important;
        color: #fff !important;
        box-shadow: 0 4px 14px rgba(108, 99, 255, 0.45) !important;
    }

    .header-actions {
        display: flex;
        align-items: center;
        gap: 6px;
        width: 100%;
        overflow-x: auto;
        padding: 2px 16px 6px 2px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .header-actions::-webkit-scrollbar { display: none; }

    .header-actions .btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
        font-weight: 500 !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border-radius: 16px !important;
    }

    .last-update {
        display: none;
    }

    /* ── Sections & Cards Mobile ── */
    .section {
        padding: 14px 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 14px;
    }

    .stat-card {
        padding: 14px 12px;
        gap: 10px;
        border-radius: 12px;
    }

    .stat-icon {
        font-size: 20px;
        width: 40px;
        height: 40px;
        border-radius: 8px;
    }

    .stat-value {
        font-size: 17px;
    }

    .stat-label {
        font-size: 10px;
    }

    .card {
        padding: 16px 14px;
        border-radius: 12px;
        margin-bottom: 14px;
    }

    .card-title {
        font-size: 15px;
    }

    /* ── Controls & Filter Pills ── */
    .controls-bar {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .search-input {
        font-size: 13px;
        padding: 9px 14px;
        min-width: unset;
    }

    .category-pills {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .category-pills::-webkit-scrollbar { display: none; }

    .pill-btn {
        white-space: nowrap;
        flex-shrink: 0;
        font-size: 11px;
        padding: 5px 12px;
    }

    /* ── Tables ── */
    .table-container {
        margin: 0;
        width: 100%;
        border-radius: var(--radius-sm);
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        border: 1px solid var(--border);
    }

    .data-table {
        min-width: 600px;
    }

    .data-table th, .data-table td {
        padding: 9px 12px;
        font-size: 12px;
        white-space: nowrap;
    }

    .inline-num-input {
        width: 52px;
        font-size: 11.5px;
        padding: 3px 4px;
    }

    .quick-btn {
        padding: 3px 6px;
        font-size: 10.5px;
    }

    /* ── Suppliers Grid ── */
    .suppliers-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .supplier-card {
        padding: 16px 14px;
    }

    /* ── Analytics Responsive ── */
    .analytics-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .analytics-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .chart-container {
        min-height: 180px;
    }

    /* ── Modals ── */
    .modal-card {
        width: 95%;
        max-width: 95%;
        padding: 20px 16px;
        margin: 10px;
        max-height: 85vh;
        overflow-y: auto;
    }

    .modal-title {
        font-size: 16px;
    }

    /* ── Toast ── */
    .toast-container {
        top: 10px;
        right: 12px;
        left: 12px;
    }

    .toast {
        min-width: 0;
        width: 100%;
        max-width: 100%;
        font-size: 12px;
        padding: 12px 14px;
    }

    /* ── Glass Bottom Nav ── */
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background: rgba(8, 12, 25, 0.88);
        backdrop-filter: var(--glass-blur-heavy);
        -webkit-backdrop-filter: var(--glass-blur-heavy);
        border-top: 1px solid var(--border);
        z-index: 900;
        justify-content: space-around;
        align-items: center;
        padding: 4px 6px;
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.5);
    }

    .bottom-nav a {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--text-muted);
        text-decoration: none;
        font-size: 10px;
        font-weight: 500;
        gap: 3px;
        flex: 1;
        height: 100%;
        transition: color 0.2s ease, transform 0.15s ease;
        position: relative;
    }

    .bottom-nav a:active {
        transform: scale(0.92);
    }

    .bottom-nav a.active {
        color: #a5a0ff;
        font-weight: 600;
    }

    .bottom-nav a.active::before {
        content: '';
        position: absolute;
        top: 0;
        left: 50%;
        transform: translateX(-50%);
        width: 24px;
        height: 2px;
        background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
        border-radius: 2px;
    }

    .bottom-nav a.active .bottom-nav-icon {
        filter: drop-shadow(0 0 8px var(--accent-blue-glow));
    }

    .bottom-nav-icon {
        font-size: 20px;
        line-height: 1;
    }
}

@media (max-width: 380px) {
    .finovate-stats-grid {
        grid-template-columns: 1fr !important;
    }
    .stats-grid {
        grid-template-columns: 1fr;
    }
    .domain-badge {
        display: none;
    }
    .analytics-stats-row {
        grid-template-columns: 1fr;
    }
}

/* ═══════════════════════════════════════════════════════
   PRODUCT DESCRIPTION & TELEGRAM CARD MOCKUP PREVIEW
   ═══════════════════════════════════════════════════════ */

.product-edit-layout {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 18px;
    align-items: flex-start;
}

@media (max-width: 768px) {
    .product-edit-layout {
        grid-template-columns: 1fr;
    }
}

.tg-mockup-container {
    background: rgba(10, 16, 32, 0.6);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 14px;
    backdrop-filter: blur(12px);
    margin-top: 10px;
}

.tg-mockup-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.tg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22d3ee;
    box-shadow: 0 0 8px #22d3ee;
}

.tg-message-card {
    background: rgba(22, 32, 54, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), 0 0 1px rgba(255,255,255,0.1) inset;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 13px;
    line-height: 1.5;
}

.tg-msg-title {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    padding-bottom: 8px;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
}

.tg-msg-pricing {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 12.5px;
}

.tg-price-idr {
    color: #22d3ee;
    font-weight: 800;
    font-size: 14px;
}

.tg-feature-quote {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3.5px solid #ef4444;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #e2e8f0;
    line-height: 1.55;
    position: relative;
    white-space: pre-wrap;
}

.tg-feature-quote::after {
    content: '”';
    position: absolute;
    top: 2px;
    right: 8px;
    color: #ef4444;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.85;
    font-family: Georgia, serif;
}

.tg-desc-box {
    background: rgba(239, 68, 68, 0.08);
    border-left: 3.5px solid #ef4444;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 12px;
    color: #e2e8f0;
    white-space: pre-wrap;
    line-height: 1.6;
    max-height: 180px;
    overflow-y: auto;
    position: relative;
}

.tg-desc-box::after {
    content: '”';
    position: absolute;
    top: 2px;
    right: 8px;
    color: #ef4444;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    opacity: 0.85;
    font-family: Georgia, serif;
}

.tg-footer-note {
    font-size: 11px;
    color: #8b95b0;
    font-style: italic;
}

.tg-mock-button {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #ffffff;
    text-align: center;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
    letter-spacing: 0.2px;
}

/* Catalog Table Badges */
.desc-badge-active {
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.35);
    color: #22d3ee;
    padding: 4px 9px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.desc-badge-active:hover {
    background: rgba(34, 211, 238, 0.25);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
    transform: translateY(-1px);
}

.desc-badge-empty {
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 10.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.desc-badge-empty:hover {
    color: var(--text-primary);
    border-color: rgba(108, 99, 255, 0.4);
    background: rgba(108, 99, 255, 0.1);
}

/* ═══════════════════════════════════════════════════════
   STEPPER NUMBER INPUTS & TABLE CELLS (NO CLIPPING)
   ═══════════════════════════════════════════════════════ */

/* Remove default browser arrows */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input[type=number] {
    -moz-appearance: textfield;
}

.stepper-container {
    display: inline-flex;
    align-items: center;
    background: rgba(10, 16, 35, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 2px 4px;
    gap: 3px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25) inset;
    width: fit-content;
}

.stepper-container:focus-within {
    border-color: #6c63ff;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.35);
}

.stepper-currency {
    color: #8b95b0;
    font-size: 11px;
    font-weight: 700;
    padding-left: 2px;
}

.stepper-input {
    background: transparent;
    border: none;
    color: #ffffff;
    font-family: 'Inter', monospace;
    font-weight: 700;
    font-size: 13px;
    text-align: center;
    width: 60px;
    padding: 2px 1px;
    outline: none;
}

.stepper-btn {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #e2e8f0;
    border-radius: 5px;
    padding: 3px 6px;
    font-size: 10.5px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.2;
    user-select: none;
}

.stepper-btn:hover {
    background: rgba(108, 99, 255, 0.35);
    border-color: #6c63ff;
    color: #ffffff;
}

.stepper-btn.pos {
    color: #34d399;
    border-color: rgba(16, 185, 129, 0.25);
    background: rgba(16, 185, 129, 0.08);
}

.stepper-btn.pos:hover {
    background: rgba(16, 185, 129, 0.3);
    border-color: #10b981;
    color: #ffffff;
}

.stepper-btn.neg {
    color: #fb7185;
    border-color: rgba(244, 63, 94, 0.25);
    background: rgba(244, 63, 94, 0.08);
}

.stepper-btn.neg:hover {
    background: rgba(244, 63, 94, 0.3);
    border-color: #f43f5e;
    color: #ffffff;
}

/* Quick Action Buttons */
.quick-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.quick-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
}

.quick-btn.pos {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.quick-btn.pos:hover {
    background: rgba(16, 185, 129, 0.25);
    color: #ffffff;
}

.quick-btn.neg {
    background: rgba(244, 63, 94, 0.1);
    border-color: rgba(244, 63, 94, 0.3);
    color: #fb7185;
}

.quick-btn.neg:hover {
    background: rgba(244, 63, 94, 0.25);
    color: #ffffff;
}

/* ═══════════════════════════════════════════════════════
   ORCHESTRATOR REPORT RECOMMENDATIONS (NO OVERLAPPING BRACKETS)
   ═══════════════════════════════════════════════════════ */

.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.recommendation-item {
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-left: 4px solid var(--accent-blue);
    border-radius: 8px;
    padding: 11px 15px;
    margin-bottom: 0;
    font-size: 12.5px;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.recommendation-item:hover {
    background: rgba(22, 32, 58, 0.85);
    border-color: rgba(255, 255, 255, 0.14);
}

.recommendation-item.critical {
    border-left: 4px solid #f43f5e;
    background: rgba(244, 63, 94, 0.08);
    border-color: rgba(244, 63, 94, 0.25);
    color: #fca5a5;
}

.recommendation-item.warning {
    border-left: 4px solid #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
    color: #fcd34d;
}

/* ═══════════════════════════════════════════════════════
   WHOLESALE PRICING PREVIEW BOX
   ═══════════════════════════════════════════════════════ */

.tg-wholesale-box {
    background: rgba(37, 99, 235, 0.08);
    border-left: 3px solid #3b82f6;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 11.5px;
    color: #93c5fd;
    display: flex;
    flex-direction: column;
    gap: 3px;
    line-height: 1.5;
}

.tg-wholesale-title {
    font-weight: 700;
    color: #60a5fa;
    font-size: 11.5px;
    margin-bottom: 2px;
}

.tg-wholesale-item {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE PRODUCT EDIT MODAL
   ═══════════════════════════════════════════════════════ */

.edit-mobile-tabs {
    display: none;
    gap: 6px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}

.edit-tab-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    text-align: center;
}

.edit-tab-btn.active {
    background: rgba(108, 99, 255, 0.25);
    border-color: #6c63ff;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(108, 99, 255, 0.3);
}

.edit-prod-header-grid {
    display: grid;
    grid-template-columns: 80px 1.5fr 1fr;
    gap: 12px;
    margin-bottom: 12px;
}

.edit-prod-metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    margin-bottom: 10px;
}

.emoji-picker-container {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    flex-wrap: wrap;
    align-items: center;
}

@media (max-width: 860px) {
    .edit-mobile-tabs {
        display: flex;
    }
    .product-edit-layout {
        display: flex;
        flex-direction: column;
        gap: 14px;
    }
    .edit-form-column.tab-hidden,
    .edit-preview-column.tab-hidden {
        display: none !important;
    }
    .edit-prod-header-grid {
        grid-template-columns: 75px 1fr;
        gap: 8px;
    }
    .edit-prod-header-grid > div:last-child {
        grid-column: 1 / -1;
    }
    .edit-prod-metrics-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .mobile-preview-actions {
        display: flex !important;
    }
}

@media (max-width: 480px) {
    .edit-prod-metrics-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    .edit-prod-metrics-grid > div:last-child {
        grid-column: 1 / -1;
    }
    .emoji-picker-container {
        gap: 4px;
    }
    .emoji-picker-container .quick-btn {
        padding: 4px 6px;
        font-size: 10px;
    }
}

/* ═══════════════════════════════════════════════════════
   LOW STOCK ALERTS & COMPACT GRID IMPROVEMENTS
   ═══════════════════════════════════════════════════════ */

.recommendation-item {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    margin-bottom: 8px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-primary);
}
.recommendation-item.critical {
    border-left: 3.5px solid #ef4444;
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
}
.recommendation-item.warning {
    border-left: 3.5px solid #f59e0b;
    background: rgba(245, 158, 11, 0.08);
    border-color: rgba(245, 158, 11, 0.25);
}

.low-stock-grid-container::-webkit-scrollbar {
    width: 6px;
}
.low-stock-grid-container::-webkit-scrollbar-track {
    background: rgba(10, 16, 32, 0.4);
    border-radius: 4px;
}
.low-stock-grid-container::-webkit-scrollbar-thumb {
    background: rgba(108, 99, 255, 0.3);
    border-radius: 4px;
}
.low-stock-grid-container::-webkit-scrollbar-thumb:hover {
    background: rgba(108, 99, 255, 0.6);
}

.low-stock-card:hover {
    transform: translateY(-1px);
    border-color: rgba(108, 99, 255, 0.5) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

/* ═══════════════════════════════════════════════════════
   PRODUCT EDIT MODAL & WHOLESALE PREVIEW POLISH
   ═══════════════════════════════════════════════════════ */

.emoji-single-input {
    width: 100%;
    height: 38px;
    text-align: center;
    font-size: 22px;
    background: rgba(10, 16, 32, 0.85);
    border: 1px solid var(--border);
    border-radius: var(--radius-xs);
    color: #ffffff;
    padding: 0;
    outline: none;
    transition: var(--transition);
}
.emoji-single-input:focus {
    border-color: #6c63ff;
    box-shadow: 0 0 10px rgba(108, 99, 255, 0.35);
}

.tg-wholesale-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(34, 211, 238, 0.25);
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tg-wholesale-title {
    font-size: 11.5px;
    font-weight: 700;
    color: #22d3ee;
    margin-bottom: 2px;
    letter-spacing: 0.2px;
}
.tg-wholesale-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    font-size: 12px;
    gap: 8px;
}
.tg-wholesale-item:last-child {
    border-bottom: none;
}
.tg-wholesale-item .tier-qty {
    font-weight: 600;
    color: #e2e8f0;
    white-space: nowrap;
}
.tg-wholesale-item .tier-price {
    color: #22d3ee;
    font-weight: 700;
    white-space: nowrap;
    text-align: right;
}

/* ═══════════════════════════════════════════════════════
   RESPONSIVE MOBILE CATALOG & PRODUCT CARDS
   ═══════════════════════════════════════════════════════ */

/* ── Action Buttons Header ── */
.catalog-action-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

/* ── Search & Filter Controls Grid ── */
.search-filter-grid {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: 100%;
    align-items: center;
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
.search-filter-grid #prod-search {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    margin: 0;
}
.search-filter-grid #supplier-filter-select {
    width: auto;
    min-width: 180px;
    box-sizing: border-box;
    margin: 0;
}

/* ── Mobile Product List Container (Hidden on desktop > 768px) ── */
.products-mobile-list {
    display: none;
    flex-direction: column;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.desktop-only-table {
    display: block;
}

/* ── Product Line Item Row (Compact, Clean, "Per Line Bukan Grid") ── */
.prod-line-item {
    background: rgba(15, 23, 48, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.prod-line-item:hover,
.prod-line-item:active {
    border-color: rgba(108, 99, 255, 0.35);
    background: rgba(22, 33, 68, 0.88);
}

.prod-line-left {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1 1 auto;
    min-width: 0;
    cursor: pointer;
}

.prod-line-emoji {
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.prod-line-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
    overflow: hidden;
}

.prod-line-name {
    font-size: 13px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: flex;
    align-items: center;
    gap: 6px;
    line-height: 1.25;
}

.prod-line-title {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.prod-line-duration {
    font-size: 10px;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(255, 255, 255, 0.06);
    padding: 1px 5px;
    border-radius: 4px;
    flex-shrink: 0;
}

.prod-line-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    flex-wrap: wrap;
}

.prod-line-cat {
    font-size: 10px;
    color: var(--accent-blue);
    font-weight: 500;
}

.prod-line-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    text-align: right;
    cursor: pointer;
}

.prod-line-price {
    font-size: 13.5px;
    font-weight: 800;
    color: #22d3ee;
    letter-spacing: -0.2px;
    line-height: 1.2;
}

.prod-line-profit {
    font-size: 10px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 2px;
    line-height: 1.2;
}

.prod-line-margin {
    font-size: 9.5px;
    opacity: 0.85;
}

.prod-line-actions {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}

.prod-line-switch {
    transform: scale(0.78);
    transform-origin: center right;
    margin-right: -2px;
}

.prod-line-btn-edit {
    background: rgba(168, 85, 247, 0.18);
    border: 1px solid rgba(168, 85, 247, 0.4);
    color: #c084fc;
    font-size: 12px;
    padding: 5px 8px;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.prod-line-btn-edit:hover,
.prod-line-btn-edit:active {
    background: rgba(168, 85, 247, 0.35);
    border-color: #c084fc;
    transform: scale(1.05);
}

/* ── Mobile Viewport Queries ── */
@media (max-width: 768px) {
    .desktop-only-table {
        display: none !important;
    }
    .products-mobile-list {
        display: flex !important;
    }
    .catalog-action-buttons {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        margin-bottom: 4px;
    }
    .catalog-action-buttons .btn-margin-full {
        grid-column: 1 / -1;
        width: 100%;
        text-align: center;
        justify-content: center;
    }
    .controls-bar {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin: 8px 0 14px 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .search-filter-grid {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        margin: 0 !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    .search-filter-grid #prod-search,
    .search-filter-grid #supplier-filter-select {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
        margin: 0 !important;
        flex: unset !important;
    }
    .category-pills {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }
}

/* ═══════════════════════════════════════════════════════
   CUSTOM MENU ICONS & TELEGRAM ANIMATED EMOJI STYLES
   ═══════════════════════════════════════════════════════ */

.icon-setting-item {
    background: rgba(10, 16, 32, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-xs);
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition);
}
.icon-setting-item:hover {
    border-color: rgba(168, 85, 247, 0.4);
    background: rgba(15, 23, 42, 0.75);
}

.icon-input-group {
    display: flex;
    align-items: center;
    gap: 6px;
}
.icon-input-group input {
    flex: 1;
    min-width: 0;
    font-size: 13px;
    padding: 6px 10px;
    font-family: inherit;
}
.icon-input-group .quick-btn {
    font-size: 14px;
    padding: 4px 8px;
    min-width: 32px;
    text-align: center;
}

.tg-animated-emoji-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border-radius: 4px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(168, 85, 247, 0.4);
    box-shadow: 0 0 8px rgba(168, 85, 247, 0.3);
    font-size: 1.05em;
    vertical-align: middle;
    animation: tgEmojiPulse 2.4s ease-in-out infinite;
    cursor: default;
}

@keyframes tgEmojiPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 6px rgba(168, 85, 247, 0.3);
    }
    50% {
        transform: scale(1.08);
        box-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
    }
}



