/* =====================================================
   EBM Tahsin - PREMIUM EDITION
   Deep space gradient + glassmorphism + animations
   ===================================================== */
:root {
    --bg-0: #060815;
    --bg-1: #0a0e27;
    --bg-2: #131838;
    --bg-3: #1a1f4a;

    --accent: #6366f1;
    --accent-2: #06b6d4;
    --accent-3: #a855f7;
    --gold: #fbbf24;
    --gold-2: #f59e0b;
    --green: #10d98a;
    --red: #f43f5e;

    --text: #f1f5f9;
    --text-soft: #cbd5e1;
    --muted: #94a3b8;
    --muted-2: #64748b;

    --card: rgba(255, 255, 255, 0.04);
    --card-hover: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.08);
    --border-bright: rgba(255, 255, 255, 0.15);

    --nav-h: 70px;
    --radius: 16px;
    --radius-sm: 12px;
    --radius-lg: 24px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--text);
    min-height: 100vh;
    background: var(--bg-0);
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Animated gradient background orbs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    animation: orbFloat 20s ease-in-out infinite;
}
body::before {
    width: 600px; height: 600px;
    top: -200px; left: -150px;
    background: radial-gradient(circle, #6366f1, transparent 70%);
}
body::after {
    width: 700px; height: 700px;
    bottom: -250px; right: -200px;
    background: radial-gradient(circle, #06b6d4, transparent 70%);
    animation-delay: -10s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, 30px) scale(1.1); }
    66% { transform: translate(-30px, 60px) scale(0.95); }
}

/* Third orb via real element */
.bg-orb {
    position: fixed;
    width: 500px; height: 500px;
    top: 30%; left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    filter: blur(140px);
    background: radial-gradient(circle, rgba(168, 85, 247, 0.25), transparent 70%);
    z-index: -1;
    pointer-events: none;
    animation: orbFloat 25s ease-in-out infinite reverse;
}

a { color: var(--accent-2); text-decoration: none; transition: color .2s; }
a:hover { color: #67e8f9; }

/* ---------- Glass effect ---------- */
.glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid var(--border-bright);
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.container {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Animated top header ---------- */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(10, 14, 39, 0.7);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
    transition: all .3s ease;
}
.topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: -0.02em;
}
.brand .logo {
    width: 38px; height: 38px;
    border-radius: 11px;
    background: linear-gradient(135deg, #6366f1, #06b6d4, #a855f7);
    background-size: 200% 200%;
    display: grid; place-items: center;
    font-weight: 900;
    color: #fff;
    font-size: 1.1rem;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    animation: gradientShift 4s ease infinite;
}
.brand span:last-child {
    background: linear-gradient(90deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* ---------- Desktop nav ---------- */
.nav-desktop {
    display: flex;
    gap: 4px;
    align-items: center;
}
.nav-desktop a {
    padding: 9px 16px;
    border-radius: 11px;
    color: var(--muted);
    font-weight: 500;
    text-decoration: none;
    font-size: 0.88rem;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    position: relative;
}
.nav-desktop a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
    transform: translateY(-1px);
}
.nav-desktop a.active {
    background: linear-gradient(135deg, rgba(99,102,241,0.3), rgba(6,182,212,0.2));
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.3);
    border: 1px solid rgba(99, 102, 241, 0.3);
}

/* ---------- Mobile bottom nav ---------- */
.nav-mobile { display: none; }
@media (max-width: 768px) {
    .nav-mobile {
        display: flex;
        position: fixed;
        bottom: 0; left: 0; right: 0;
        z-index: 60;
        background: rgba(10, 14, 39, 0.85);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-top: 1px solid var(--border-bright);
        height: var(--nav-h);
        padding-bottom: env(safe-area-inset-bottom);
        box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.4);
    }
    .nav-mobile a {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        color: var(--muted);
        text-decoration: none;
        font-size: 0.65rem;
        gap: 4px;
        transition: all .2s;
        font-weight: 600;
    }
    .nav-mobile a i { font-size: 1.2rem; transition: transform .2s; }
    .nav-mobile a.active {
        color: var(--accent-2);
        background: linear-gradient(180deg, transparent, rgba(6,182,212,0.1));
    }
    .nav-mobile a.active i { transform: translateY(-2px) scale(1.1); }
    .nav-desktop { display: none !important; }
    body { padding-bottom: var(--nav-h); }
    .container { padding: 0 14px; }
}

/* ---------- Premium buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.92rem;
    border: none;
    cursor: pointer;
    color: #fff;
    transition: all .3s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}
.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left .6s;
}
.btn:hover::before { left: 100%; }
.btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
}
.btn:active { transform: translateY(0); }

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    box-shadow: 0 8px 24px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(99, 102, 241, 0.5); }

.btn-success {
    background: linear-gradient(135deg, #10d98a, #059669);
    box-shadow: 0 8px 24px rgba(16, 217, 138, 0.35);
}
.btn-success:hover { box-shadow: 0 12px 32px rgba(16, 217, 138, 0.5); }

.btn-danger {
    background: linear-gradient(135deg, #f43f5e, #be123c);
    box-shadow: 0 8px 24px rgba(244, 63, 94, 0.35);
}

.btn-gold {
    background: linear-gradient(135deg, #fbbf24, #d97706);
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35);
    color: #1a1a1a;
    font-weight: 700;
}
.btn-gold:hover { box-shadow: 0 12px 32px rgba(251, 191, 36, 0.5); }

.btn-ghost {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-bright);
    backdrop-filter: blur(10px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-block { width: 100%; }

/* ---------- Premium cards ---------- */
.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all .3s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
}
/* card::before এখন global shimmer section এ আছে */
.card:hover {
    border-color: var(--border-bright);
    background: var(--card-hover);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}
.card h3 {
    margin: 0 0 14px 0;
    font-size: 1.02rem;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Mobile: keep boxes side-by-side (2 per row) instead of stacking vertically */
@media (max-width: 768px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .card, .stat, .pkg-card { padding: 14px; }
    .card h3 { font-size: 0.9rem; margin-bottom: 8px; }
    .stat .label { font-size: 0.62rem; }
    .stat .value { font-size: 1.4rem; margin-top: 4px; }
    .table { font-size: 0.8rem; }
    .table th, .table td { padding: 9px 10px; white-space: nowrap; }
}
@media (max-width: 380px) {
    .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); gap: 8px; }
}

/* ---------- Premium stat box ---------- */
.stat {
    border-radius: var(--radius);
    padding: 20px;
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.06));
    border: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    transition: all .3s;
    position: relative;
    overflow: hidden;
}
/* stat::before এখন global shimmer section এ আছে */
.stat:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.25);
    border-color: rgba(99, 102, 241, 0.3);
}
.stat .label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }
.stat .label.live { display: flex; align-items: center; gap: 6px; }
.live-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
    flex-shrink: 0;
}
.stat .value {
    font-size: 1.9rem;
    font-weight: 800;
    margin-top: 6px;
    color: #fff;
    background: linear-gradient(135deg, #fff, #cbd5e1);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

/* ---------- Forms ---------- */
.field { margin-bottom: 16px; }
.field label {
    display: block;
    font-size: 0.82rem;
    color: var(--text-soft);
    margin-bottom: 7px;
    font-weight: 500;
    letter-spacing: 0.01em;
}
.field input, .field select, .field textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 0.95rem;
    outline: none;
    transition: all .25s;
    font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }

/* ---------- Real-time clock (premium) ---------- */
.clock-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 22px;
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(6,182,212,0.08), rgba(168,85,247,0.08));
    border: 1px solid var(--border-bright);
    margin: 16px 0;
    font-size: 0.92rem;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.clock-bar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    animation: shimmer 3s linear infinite;
}
.clock-bar .time {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
    color: var(--accent-2);
    font-size: 1.15rem;
    letter-spacing: 0.05em;
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.4);
}
.clock-bar .date {
    color: var(--text-soft);
    font-weight: 500;
    font-size: 0.88rem;
}

/* ---------- Premium signal display ---------- */
.signal-header {
    text-align: center;
    background: linear-gradient(135deg, rgba(251,191,36,0.12), rgba(168,85,247,0.08));
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--radius);
    padding: 16px;
    margin: 16px 0;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--gold);
    font-size: 1.05rem;
    text-shadow: 0 0 20px rgba(251, 191, 36, 0.3);
    position: relative;
    overflow: hidden;
    animation: fadeInUp .5s ease-out;
}
/* signal-header::before এখন global shimmer section এ আছে */

.signal-list {
    background: rgba(6, 8, 21, 0.6);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    padding: 14px;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-size: 0.95rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.signal-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 10px;
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    align-items: center;
    transition: background .2s;
    animation: slideInRight .4s ease-out backwards;
}
.signal-row:hover { background: rgba(255, 255, 255, 0.03); }
.signal-row:last-child { border-bottom: none; }
.signal-row .pair {
    color: #fff;
    font-weight: 700;
    letter-spacing: 0.04em;
}
.signal-row .time {
    color: var(--accent-2);
    font-weight: 700;
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.3);
}
.signal-row .dir {
    text-align: center;
    font-weight: 800;
    padding: 7px 16px;
    border-radius: 999px;
    font-size: 0.78rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    justify-self: end;
    letter-spacing: 0.06em;
    position: relative;
    transition: transform .2s, box-shadow .2s;
}
.signal-row .dir:hover { transform: translateY(-1px); }
.signal-row .dir i { font-size: 0.7rem; }

.dir.CALL {
    background: linear-gradient(135deg, rgba(16,217,138,0.28), rgba(5,150,105,0.14));
    color: #5eead4;
    box-shadow:
        0 2px 8px rgba(16, 217, 138, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.12);
    border: 1px solid rgba(52, 211, 153, 0.45);
    text-shadow: 0 0 12px rgba(52, 211, 153, 0.5);
}
.dir.CALL:hover { box-shadow: 0 4px 16px rgba(16, 217, 138, 0.4), inset 0 1px 0 rgba(255,255,255,0.16); }

.dir.PUT {
    background: linear-gradient(135deg, rgba(244,63,94,0.28), rgba(190,18,60,0.14));
    color: #fda4af;
    box-shadow:
        0 2px 8px rgba(244, 63, 94, 0.25),
        inset 0 1px 0 rgba(255,255,255,0.12);
    border: 1px solid rgba(251, 113, 133, 0.45);
    text-shadow: 0 0 12px rgba(251, 113, 133, 0.5);
}
.dir.PUT:hover { box-shadow: 0 4px 16px rgba(244, 63, 94, 0.4), inset 0 1px 0 rgba(255,255,255,0.16); }

.dir.NEUTRAL {
    background: rgba(148, 163, 184, 0.15);
    color: #cbd5e1;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ---------- Recent signals feed (dashboard) ---------- */
.signal-feed {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 4px;
}
.signal-feed::-webkit-scrollbar { width: 6px; }
.signal-feed::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 4px; }
.signal-feed::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 4px; }

.feed-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    transition: all .25s;
    animation: fadeInUp .4s ease-out backwards;
}
.feed-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-bright);
    transform: translateX(2px);
}
.feed-item .feed-pair {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 700;
    color: #fff;
    font-size: 0.86rem;
    letter-spacing: 0.02em;
    flex: 1 1 auto;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.feed-item .feed-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 0.7rem;
    color: var(--muted);
    flex-shrink: 0;
}
.feed-item .feed-time {
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    color: var(--accent-2);
    font-weight: 600;
}
.feed-item .feed-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.feed-empty {
    text-align: center;
    padding: 28px 10px;
    color: var(--muted);
    font-size: 0.88rem;
}
.feed-empty i { font-size: 1.6rem; display: block; margin-bottom: 8px; opacity: .5; }

/* ---------- Asset multi-select ---------- */

/* Toolbar row: search box (left) + select all / clear (right) */
.asset-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}
.asset-search {
    position: relative;
    flex: 1 1 220px;
    min-width: 0;
}
.asset-search i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 0.85rem;
    pointer-events: none;
}
.asset-search input {
    width: 100%;
    padding: 10px 14px 10px 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: #fff;
    font-size: 0.85rem;
    outline: none;
    transition: all .25s;
    font-family: inherit;
}
.asset-search input:focus {
    border-color: var(--accent);
    background: rgba(99, 102, 241, 0.06);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}
.asset-search input::placeholder { color: var(--muted-2); }
.asset-search .clear-btn {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px; height: 22px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.08);
    color: var(--muted);
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: all .2s;
}
.asset-search .clear-btn:hover { background: rgba(255,255,255,0.16); color: #fff; }
.asset-search.has-value .clear-btn { display: flex; }

.asset-toolbar-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

/* Collapsible wrapper */
.asset-collapse {
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    background: rgba(6, 8, 21, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    overflow: hidden;
}
.asset-collapse-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    user-select: none;
    transition: background .2s;
}
.asset-collapse-head:hover { background: rgba(255,255,255,0.03); }
.asset-collapse-head .chev {
    color: var(--accent-2);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    font-size: 0.85rem;
}
.asset-collapse.open .asset-collapse-head .chev { transform: rotate(180deg); }
.asset-collapse-head .summary {
    font-size: 0.85rem;
    color: var(--text-soft);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.asset-collapse-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s cubic-bezier(.4,0,.2,1);
    border-top: 1px solid transparent;
}
.asset-collapse.open .asset-collapse-body {
    border-top: 1px solid var(--border);
}

.asset-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    max-height: 340px;
    overflow-y: auto;
    padding: 14px;
}
.asset-grid::-webkit-scrollbar { width: 8px; }
.asset-grid::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 4px; }
.asset-grid::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 4px; }
.asset-grid::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,0.6); }
.asset-grid .asset-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 18px 0;
    color: var(--muted);
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
}

.asset-chip {
    padding: 10px 12px;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    cursor: pointer;
    text-align: center;
    font-size: 0.78rem;
    font-family: 'JetBrains Mono', 'Courier New', monospace;
    font-weight: 600;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    user-select: none;
    letter-spacing: 0.03em;
}
.asset-chip:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
    background: rgba(99, 102, 241, 0.08);
}
.asset-chip.selected {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(99, 102, 241, 0.4);
    transform: translateY(-1px);
}
.asset-chip.filtered-out { display: none; }

@media (max-width: 480px) {
    .asset-toolbar { flex-direction: column; align-items: stretch; }
    .asset-toolbar-actions { justify-content: stretch; }
    .asset-toolbar-actions .btn { flex: 1; }
}

/* ---------- Premium packages ---------- */
.pkg-card {
    border-radius: var(--radius-lg);
    padding: 28px 22px;
    text-align: center;
    border: 1px solid var(--border-bright);
    background: linear-gradient(160deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02));
    transition: all .35s cubic-bezier(.4,0,.2,1);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.pkg-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.pkg-card.green::before   { background: linear-gradient(90deg, #10d98a, #059669); }
.pkg-card.blue::before    { background: linear-gradient(90deg, #6366f1, #06b6d4); }
.pkg-card.yellow::before  { background: linear-gradient(90deg, #fbbf24, #f59e0b); }
.pkg-card.orange::before  { background: linear-gradient(90deg, #f97316, #f43f5e); }

/* pkg-card hover glow এখন pseudo element এর বদলে box-shadow দিয়ে করা হয়েছে
   কারণ ::after এখন rotating border এর জন্য ব্যবহৃত */
.pkg-card:hover {
    transform: translateY(-8px);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        inset 0 0 80px rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.2);
}
.pkg-card .pkg-icon { font-size: 2rem; margin-bottom: 8px; }
.pkg-card .pkg-name {
    font-weight: 800;
    font-size: 1.15rem;
    color: #fff;
    letter-spacing: -0.01em;
}
.pkg-card .pkg-count {
    font-size: 0.85rem;
    color: var(--text-soft);
    margin: 6px 0;
    font-weight: 500;
}
.pkg-card .pkg-price {
    font-size: 2.2rem;
    font-weight: 900;
    color: transparent;
    background: linear-gradient(135deg, var(--gold), var(--gold-2));
    -webkit-background-clip: text;
    background-clip: text;
    margin: 10px 0;
    letter-spacing: -0.03em;
}
.pkg-card .pkg-meta {
    font-size: 0.76rem;
    color: var(--muted);
    margin-bottom: 16px;
    line-height: 1.5;
}

/* ---------- Tables ---------- */

/* Wrap any .table in this on pages where the table might overflow narrow
   screens (e.g. dashboard). Allows horizontal scroll instead of clipping. */
.table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0 -4px;
    padding: 0 4px;
}
.table-wrap::-webkit-scrollbar { height: 6px; }
.table-wrap::-webkit-scrollbar-track { background: rgba(255,255,255,0.02); border-radius: 4px; }
.table-wrap::-webkit-scrollbar-thumb { background: rgba(99,102,241,0.4); border-radius: 4px; }

.table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.table th, .table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.table th {
    color: var(--muted);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.02);
}
.table tr { transition: background .2s; }
.table tr:hover td { background: rgba(99, 102, 241, 0.05); }

/* ---------- Badges ---------- */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 7px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}
.badge.green  { background: rgba(16,217,138,0.18); color: #34d399; border: 1px solid rgba(16,217,138,0.3); }
.badge.red    { background: rgba(244,63,94,0.18); color: #fb7185; border: 1px solid rgba(244,63,94,0.3); }
.badge.yellow { background: rgba(251,191,36,0.18); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }
.badge.blue   { background: rgba(99,102,241,0.18); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }
.badge.gray   { background: rgba(148,163,184,0.18); color: #cbd5e1; border: 1px solid rgba(148,163,184,0.3); }
.badge.gold   { background: rgba(251,191,36,0.18); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); }

/* ---------- Alerts ---------- */
.alert {
    padding: 13px 16px;
    border-radius: 12px;
    margin: 12px 0;
    font-size: 0.9rem;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fadeInUp .3s ease-out;
}
.alert-success { background: rgba(16,217,138,0.1); border-color: var(--green); color: #6ee7b7; }
.alert-error   { background: rgba(244,63,94,0.1); border-color: var(--red); color: #fca5a5; }
.alert-info    { background: rgba(99,102,241,0.1); border-color: var(--accent); color: #a5b4fc; }
.alert-warning { background: rgba(251,191,36,0.1); border-color: var(--gold); color: #fcd34d; }

/* ---------- Page heading ---------- */
.page-head {
    margin: 22px 0;
    animation: fadeInUp .5s ease-out;
}
.page-head h1 {
    margin: 0;
    font-size: 1.7rem;
    color: #fff;
    font-weight: 800;
    letter-spacing: -0.02em;
    background: linear-gradient(135deg, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.page-head p {
    margin: 6px 0 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

/* ---------- PREMIUM HERO (landing) ---------- */
.hero {
    text-align: center;
    padding: 80px 0 50px;
    position: relative;
    animation: fadeInUp .8s ease-out;
}
.hero h1 {
    font-size: 3.5rem;
    font-weight: 900;
    margin: 0 0 14px;
    background: linear-gradient(135deg, #fff 0%, #818cf8 50%, #06b6d4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.04em;
    line-height: 1.05;
    text-shadow: 0 0 80px rgba(99, 102, 241, 0.3);
}
.hero h1 .accent {
    background: linear-gradient(135deg, #fbbf24, #f97316);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p {
    color: var(--text-soft);
    max-width: 640px;
    margin: 0 auto 28px;
    font-size: 1.1rem;
    line-height: 1.7;
}
.hero .actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}
.hero .actions .btn { padding: 14px 28px; font-size: 1rem; }

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 16px;
    border-radius: 100px;
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #a5b4fc;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.hero-badge .dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px var(--green);
    animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

@media (max-width: 768px) {
    .hero { padding: 50px 0 30px; }
    .hero h1 { font-size: 2.3rem; }
    .hero p { font-size: 0.95rem; }
}

/* ---------- Auth (login/register) ---------- */
.auth-wrap {
    min-height: calc(100vh - 64px);
    display: grid;
    place-items: center;
    padding: 30px 0 100px;
}
.auth-card {
    width: 100%;
    max-width: 440px;
    padding: 32px;
    border-radius: var(--radius-lg);
    animation: fadeInUp .5s ease-out;
}
.auth-card h2 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.auth-card p.sub {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 0.9rem;
}
.auth-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 22px;
    background: rgba(255, 255, 255, 0.04);
    padding: 5px;
    border-radius: 12px;
    border: 1px solid var(--border);
}
.auth-tabs button {
    flex: 1;
    padding: 10px;
    border-radius: 9px;
    border: none;
    background: transparent;
    color: var(--muted);
    font-weight: 600;
    cursor: pointer;
    transition: all .25s;
}
.auth-tabs button.active {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: #fff;
    box-shadow: 0 4px 16px rgba(99, 102, 241, 0.4);
}
.auth-tabs button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- Spinner ---------- */
.spinner {
    display: inline-block;
    width: 18px; height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Animations ---------- */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}
.fade-in-up { animation: fadeInUp .5s ease-out; }
.fade-in    { animation: fadeIn .5s ease-out; }

/* Stagger children animation */
.stagger > * { animation: fadeInUp .5s ease-out backwards; }
.stagger > *:nth-child(1) { animation-delay: 0.05s; }
.stagger > *:nth-child(2) { animation-delay: 0.1s; }
.stagger > *:nth-child(3) { animation-delay: 0.15s; }
.stagger > *:nth-child(4) { animation-delay: 0.2s; }
.stagger > *:nth-child(5) { animation-delay: 0.25s; }
.stagger > *:nth-child(6) { animation-delay: 0.3s; }

/* ---------- Hidden ---------- */
.hidden { display: none !important; }

/* ---------- Helpers ---------- */
.text-center { text-align: center; }
.text-muted  { color: var(--muted); }
.mt-2 { margin-top: 8px; }  .mt-3 { margin-top: 12px; }  .mt-4 { margin-top: 16px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; }
.wrap { flex-wrap: wrap; }

/* ---------- Modal ---------- */
.modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(6, 8, 21, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    z-index: 200;
    padding: 20px;
    animation: fadeIn .3s ease-out;
}
.modal-card {
    max-width: 440px; width: 100%;
    animation: fadeInUp .4s ease-out;
}

/* ---------- Progress bar ---------- */
.progress {
    background: rgba(6, 8, 21, 0.6);
    border-radius: 8px;
    height: 7px;
    margin-top: 12px;
    overflow: hidden;
    border: 1px solid var(--border);
}
.progress > div {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 8px;
    transition: width .6s cubic-bezier(.4,0,.2,1);
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.5);
}

/* ---------- Code inline ---------- */
code {
    background: rgba(99, 102, 241, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    color: #a5b4fc;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85em;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* ==========================================================
   BORDER SHIMMER SWEEP — সব box এ apply
   clock-bar এ যেভাবে top border এ আলো বাম থেকে ডানে sweep করে,
   সেই একই effect সব box এ।
   ========================================================== */

/* সব box এ overflow: hidden + position: relative নিশ্চিত */
.card, .stat, .signal-header, .auth-card,
.modal-card, .signal-list, .pkg-card, .asset-collapse,
.asset-chip, .alert, .glass, .progress, .auth-tabs,
.hero-badge {
    position: relative;
}
.card, .stat, .signal-header, .auth-card,
.modal-card, .signal-list, .pkg-card,
.asset-chip, .alert, .glass, .progress, .auth-tabs,
.hero-badge {
    overflow: hidden;
}

/* clock-bar এর ::before ইতিমধ্যে shimmer করছে — বাকি সব box এ */
.card::before,
.stat::before,
.signal-header::before,
.auth-card::before,
.modal-card::before,
.signal-list::before,
.pkg-card::before,
.asset-collapse::before,
.asset-chip::before,
.alert::before,
.glass::before,
.auth-tabs::before,
.hero-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent-2) 50%,
        transparent 100%
    );
    animation: shimmer 3s linear infinite;
    pointer-events: none;
    z-index: 3;
}

/* stat এর আগের top accent line টা ছিল static — এখন shimmer দিয়ে replace */
.stat::before {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--accent) 30%,
        var(--accent-2) 50%,
        var(--accent) 70%,
        transparent 100%
    );
    animation: shimmer 2.5s linear infinite;
}

/* pkg-card এর ::before ছিল color bar (4px) — shimmer রাখি তবে উজ্জ্বল */
.pkg-card::before {
    height: 3px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.6) 40%,
        rgba(255,255,255,0.9) 50%,
        rgba(255,255,255,0.6) 60%,
        transparent 100%
    );
    animation: shimmer 2.8s linear infinite;
}
.pkg-card.green::before  { background: linear-gradient(90deg, transparent, #10d98a, #fff, #10d98a, transparent); }
.pkg-card.blue::before   { background: linear-gradient(90deg, transparent, #6366f1, #06b6d4, #6366f1, transparent); }
.pkg-card.yellow::before { background: linear-gradient(90deg, transparent, #fbbf24, #fff, #fbbf24, transparent); }
.pkg-card.orange::before { background: linear-gradient(90deg, transparent, #f97316, #f43f5e, #f97316, transparent); }

/* signal-header এর ::before ছিল gold gradient bar — shimmer করে */
.signal-header::before {
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        var(--gold) 30%,
        #fff 50%,
        var(--gold) 70%,
        transparent 100%
    );
    animation: shimmer 2.5s linear infinite;
}

/* progress bar এর shimmer — bottom এ */
.progress {
    position: relative;
    overflow: hidden;
}
.progress::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-2), transparent);
    animation: shimmer 3s linear infinite;
    pointer-events: none;
    z-index: 3;
}

/* shimmer keyframe (clock-bar এ ছিল, এখন global) */
@keyframes shimmer {
    0%   { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}