:root {
    --bg: #0a0f1c;
    --bg-2: #0d1424;
    --panel: #111a2e;
    --panel-2: #16203a;
    --border: #1e2a45;
    --border-2: #263352;
    --text: #e6ecf7;
    --muted: #8c9ab4;
    --primary: #4f6ef7;
    --primary-2: #3b82f6;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #38bdf8;
    --radius: 14px;
    --radius-sm: 10px;
    --shadow: 0 18px 40px rgba(2, 6, 23, .45);
    --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body.app-body,
body.auth-body {
    background: radial-gradient(1200px 600px at 15% -10%, #17223d 0%, var(--bg) 55%) fixed;
    color: var(--text);
    font-family: var(--font);
    font-size: 14px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: #7aa7ff; }

.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 264px;
    flex: 0 0 264px;
    background: linear-gradient(180deg, #0e1730 0%, #0b1226 100%);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    z-index: 40;
}

.sidebar-brand { padding: 18px 18px 12px; border-bottom: 1px solid var(--border); }
.sidebar-brand a { display: flex; align-items: center; gap: 12px; color: var(--text); }
.sidebar-brand img { width: 42px; height: 42px; object-fit: contain; }
.sidebar-brand strong { display: block; font-size: 14px; letter-spacing: .2px; }
.sidebar-brand span { display: block; font-size: 11px; color: var(--muted); }

.sidebar-live {
    display: flex; align-items: center; gap: 8px;
    padding: 14px 18px 6px;
    font-size: 11px; letter-spacing: 1.4px; color: var(--muted); text-transform: uppercase;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(34,197,94,.15); animation: pulse 2s infinite; }
.live-text { color: var(--success); font-weight: 700; letter-spacing: 1px; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .45; } }

.sidebar-nav { padding: 8px 12px 20px; flex: 1; }
.nav-group { margin-bottom: 18px; }
.nav-group-title {
    font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase;
    color: #64708c; padding: 8px 10px 6px;
}
.nav-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: var(--radius-sm);
    color: #aab6cf; font-size: 13.5px; font-weight: 500;
    border: 1px solid transparent; margin-bottom: 2px; width: 100%;
    background: transparent; cursor: pointer; text-align: left; font-family: inherit;
}
.nav-item svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 18px; opacity: .85; }
.nav-item:hover { background: rgba(79,110,247,.10); color: #dbe6ff; }
.nav-item.active {
    background: linear-gradient(90deg, rgba(79,110,247,.28), rgba(79,110,247,.06));
    border-color: rgba(79,110,247,.45); color: #fff;
    box-shadow: inset 0 0 0 1px rgba(79,110,247,.15);
}
.nav-item span { flex: 1; }
.nav-button { font: inherit; }
.nav-badge {
    font-style: normal; font-size: 10px; font-weight: 700; text-transform: uppercase;
    background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(34,197,94,.35);
    padding: 2px 7px; border-radius: 999px;
}
.nav-badge.warn { background: rgba(245,158,11,.15); color: #fbbf24; border-color: rgba(245,158,11,.35); }
.sidebar-footer { padding: 12px; border-top: 1px solid var(--border); }

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 26px; border-bottom: 1px solid var(--border);
    background: rgba(10,15,28,.82); backdrop-filter: blur(10px);
    position: sticky; top: 0; z-index: 30;
}
.topbar-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.topbar-link {
    display: inline-flex; align-items: center; gap: 8px; color: #b9c5de; font-weight: 600; font-size: 13px;
    position: relative;
}
.topbar-link svg { width: 17px; height: 17px; fill: currentColor; }
.topbar-link:hover { color: #fff; }
.admin-chip { color: var(--muted); font-size: 13px; }
.admin-chip strong { color: var(--text); }

.icon-btn {
    background: transparent; border: 1px solid transparent; color: var(--text);
    width: 38px; height: 38px; border-radius: 10px; display: inline-flex;
    align-items: center; justify-content: center; cursor: pointer;
}
.icon-btn:hover { background: rgba(255,255,255,.06); }
.icon-btn svg { width: 20px; height: 20px; fill: currentColor; }
.sidebar-toggle { display: none; }

.dot-badge {
    font-style: normal; background: var(--danger); color: #fff; font-size: 10px;
    font-weight: 700; border-radius: 999px; padding: 1px 6px; line-height: 1.5;
}

.user-menu { position: relative; }
.user-menu-toggle {
    display: flex; align-items: center; gap: 10px; background: transparent;
    border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 12px 5px 5px;
    color: var(--text); cursor: pointer; font-family: inherit;
}
.avatar {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), #22d3ee);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; color: #fff; font-size: 14px;
}
.user-meta { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.user-meta strong { font-size: 13px; }
.user-meta small { color: var(--muted); font-size: 11px; }
.user-menu-toggle svg { width: 16px; height: 16px; fill: var(--muted); }
.dropdown-panel {
    position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px;
    background: var(--panel); border: 1px solid var(--border-2); border-radius: 12px;
    padding: 8px; display: none; box-shadow: var(--shadow); z-index: 50;
}
.dropdown-panel.open { display: block; }
.dropdown-panel a, .dropdown-panel button {
    display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px;
    color: #c8d3e8; font-size: 13px; background: transparent; border: 0; cursor: pointer; font-family: inherit;
}
.dropdown-panel a:hover, .dropdown-panel button:hover { background: rgba(79,110,247,.14); color: #fff; }

.app-content { padding: 26px; flex: 1; }
.app-footer {
    display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
    padding: 18px 26px; border-top: 1px solid var(--border); color: #5f6b85; font-size: 12px;
}

.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { margin: 0 0 4px; font-size: 26px; letter-spacing: -.3px; }
.page-head p { margin: 0; color: var(--muted); }
.page-head .actions { display: flex; gap: 10px; flex-wrap: wrap; }

.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.card {
    background: linear-gradient(180deg, rgba(22,32,58,.75), rgba(17,26,46,.95));
    border: 1px solid var(--border); border-radius: var(--radius);
    padding: 20px; box-shadow: 0 10px 30px rgba(2,6,23,.25);
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-head h2, .card-head h3 { margin: 0; font-size: 16px; }
.card-head .muted { color: var(--muted); font-size: 12px; }
.card-sub { color: var(--muted); font-size: 12.5px; margin-top: 2px; }

.stat-label { color: var(--muted); font-size: 12.5px; letter-spacing: .3px; text-transform: uppercase; }
.stat-value { font-size: 26px; font-weight: 700; margin: 8px 0 4px; letter-spacing: -.4px; }
.stat-meta { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 6px; }
.stat-icon {
    width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(79,110,247,.14); color: #8ea6ff;
}
.stat-icon svg { width: 20px; height: 20px; fill: currentColor; }
.stat-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }

.balance-hero { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.balance-hero .flex-gap { justify-content: center; }
.balance-hero .amount { font-size: 40px; font-weight: 700; letter-spacing: -1px; margin: 6px 0 2px; }
.pill {
    display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600;
    padding: 5px 11px; border-radius: 999px; background: rgba(34,197,94,.13);
    color: #4ade80; border: 1px solid rgba(34,197,94,.3);
}
.pill.warn { background: rgba(245,158,11,.13); color: #fbbf24; border-color: rgba(245,158,11,.3); }
.pill.danger { background: rgba(239,68,68,.13); color: #f87171; border-color: rgba(239,68,68,.3); }
.pill.info { background: rgba(56,189,248,.13); color: #7dd3fc; border-color: rgba(56,189,248,.3); }
.pill.muted { background: rgba(140,154,180,.12); color: #a7b3cb; border-color: rgba(140,154,180,.25); }

.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 11px 18px; border-radius: 11px; font-weight: 600; font-size: 13.5px;
    border: 1px solid transparent; cursor: pointer; font-family: inherit; text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
    transition: transform .08s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.08); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; fill: currentColor; }
.btn-block { width: 100%; }
.btn-outline { background: transparent; border-color: var(--border-2); color: #cfdaf0; }
.btn-outline:hover { border-color: var(--primary); color: #fff; background: rgba(79,110,247,.12); }
.btn-success { background: linear-gradient(135deg, #16a34a, #22c55e); }
.btn-danger { background: linear-gradient(135deg, #dc2626, #ef4444); }
.btn-warn { background: linear-gradient(135deg, #d97706, #f59e0b); color: #1b1204; }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

.alert { border-radius: 12px; padding: 13px 16px; margin-bottom: 12px; border: 1px solid; font-size: 13.5px; }
.alert-success { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.35); color: #86efac; }
.alert-danger { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.35); color: #fca5a5; }
.alert-info { background: rgba(56,189,248,.10); border-color: rgba(56,189,248,.35); color: #bae6fd; }
.flash-wrap { margin-bottom: 16px; }

.form-grid { display: grid; gap: 16px; }
.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; color: #cbd6ea; }
.field .hint { color: var(--muted); font-size: 12px; margin-top: 6px; }
.field input, .field select, .field textarea {
    width: 100%; padding: 12px 14px; border-radius: 11px; font-size: 14px; font-family: inherit;
    background: #0c1322; border: 1px solid var(--border-2); color: var(--text); outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,110,247,.18); }
.field textarea { min-height: 120px; resize: vertical; }
.field input[type="file"] { padding: 10px; }
.field .req { color: #f87171; }
.field.check { display: flex; gap: 10px; align-items: flex-start; }
.field.check input { width: auto; margin-top: 3px; }
.field.check label { font-weight: 500; margin: 0; }

.input-group { position: relative; }
.input-group .prefix {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--muted); font-weight: 600;
}
.input-group input { padding-left: 32px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 620px; }
table.data th {
    text-align: left; padding: 12px 14px; background: rgba(22,32,58,.7);
    color: #93a1bd; font-size: 11.5px; letter-spacing: .8px; text-transform: uppercase;
    border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.data td { padding: 13px 14px; border-bottom: 1px solid rgba(30,42,69,.6); color: #d5deef; vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: rgba(79,110,247,.05); }
table.data .strong { font-weight: 600; color: #fff; }
table.data .muted { color: var(--muted); font-size: 12.5px; }
.table-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.empty-state { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty-state strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 6px; }

.status { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 4px 10px; border-radius: 999px; display: inline-block; }
.status-pending { background: rgba(245,158,11,.14); color: #fbbf24; }
.status-approved, .status-completed, .status-paid, .status-active { background: rgba(34,197,94,.14); color: #4ade80; }
.status-rejected, .status-cancelled, .status-failed, .status-suspended { background: rgba(239,68,68,.14); color: #f87171; }
.status-info { background: rgba(56,189,248,.14); color: #7dd3fc; }

.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.tab {
    padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border-2);
    color: #b6c2da; font-size: 13px; font-weight: 600; background: transparent;
}
.tab.active { background: rgba(79,110,247,.16); border-color: var(--primary); color: #fff; }
.tab:hover { color: #fff; border-color: var(--primary); }

.plan-card { display: flex; flex-direction: column; gap: 14px; position: relative; overflow: hidden; }
.plan-card .badge {
    position: absolute; top: 16px; right: 16px; font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .8px; padding: 4px 10px; border-radius: 999px;
    background: rgba(79,110,247,.18); color: #9db4ff; border: 1px solid rgba(79,110,247,.4);
}
.plan-card h3 { margin: 0; font-size: 18px; }
.plan-roi { font-size: 30px; font-weight: 700; letter-spacing: -.5px; color: #86efac; }
.plan-roi small { font-size: 13px; color: var(--muted); font-weight: 500; }
.plan-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plan-list li { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: #c3cee4; border-bottom: 1px dashed rgba(38,51,82,.7); padding-bottom: 8px; }
.plan-list li span:first-child { color: var(--muted); }

.progress { height: 8px; border-radius: 999px; background: #0c1322; border: 1px solid var(--border); overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), #22d3ee); }

.pagination { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 18px; }
.pagination a, .pagination span {
    min-width: 36px; height: 36px; padding: 0 10px; border-radius: 10px; display: inline-flex;
    align-items: center; justify-content: center; border: 1px solid var(--border-2);
    color: #b6c2da; font-size: 13px;
}
.pagination .current { background: rgba(79,110,247,.18); border-color: var(--primary); color: #fff; }
.pagination .disabled { opacity: .4; }

.auth-body { display: flex; align-items: flex-start; justify-content: center; padding: 48px 18px; min-height: 100vh; }
.auth-shell { width: 100%; max-width: 560px; }
.auth-shell.narrow { max-width: 440px; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 22px; }
.auth-brand img { max-width: 230px; height: auto; }
.auth-badge {
    text-align: center; text-transform: uppercase; letter-spacing: 2px; font-size: 10.5px;
    color: #8ea6ff; margin-bottom: 10px;
}
.auth-card {
    background: linear-gradient(180deg, rgba(22,32,58,.8), rgba(13,20,36,.95));
    border: 1px solid var(--border); border-radius: 18px; padding: 28px;
    box-shadow: var(--shadow);
}
.auth-card h1 { margin: 0 0 6px; font-size: 22px; }
.auth-card .sub { color: var(--muted); margin: 0 0 22px; font-size: 13.5px; }
.auth-footer { text-align: center; margin-top: 18px; color: var(--muted); font-size: 13px; }

.steps { display: flex; align-items: flex-start; justify-content: center; gap: 26px; margin: 6px 0 26px; }
.step { text-align: center; color: var(--muted); font-size: 12.5px; }
.step .circle {
    width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
    background: #1a2338; border: 1px solid var(--border-2); color: #93a1bd; font-weight: 700; margin: 0 auto 8px;
}
.step.active .circle { background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff; border-color: transparent; }
.step.done .circle { background: linear-gradient(135deg, #16a34a, #22c55e); color: #fff; border-color: transparent; }
.step strong { display: block; color: var(--text); font-size: 13px; }
.step.active strong { color: #fff; }

.captcha-box { display: flex; align-items: center; gap: 14px; }
.captcha-code {
    font-family: "Courier New", monospace; font-size: 24px; font-weight: 700; letter-spacing: 6px;
    background: linear-gradient(135deg, #3b2a5e, #5b3f8f); padding: 12px 20px; border-radius: 12px;
    color: #ffe08a; user-select: none; border: 1px solid rgba(255,255,255,.12);
}
.req-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 12.5px; color: var(--muted); }
.req-list li.ok { color: #4ade80; }

.note {
    background: rgba(56,189,248,.07); border: 1px solid rgba(56,189,248,.25);
    border-radius: 12px; padding: 14px 16px; color: #bae6fd; font-size: 13px;
}
.note.warn { background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.3); color: #fde68a; }
.note.danger { background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.3); color: #fca5a5; }

.copy-row { display: flex; gap: 10px; align-items: stretch; }
.copy-row input { flex: 1; font-family: "Courier New", monospace; font-size: 13px; }
.copy-row .btn { white-space: nowrap; }

.kv { display: grid; gap: 10px; }
.kv div { display: flex; justify-content: space-between; gap: 14px; font-size: 13.5px; border-bottom: 1px dashed rgba(38,51,82,.6); padding-bottom: 9px; }
.kv span:first-child { color: var(--muted); }
.kv span:last-child { text-align: right; color: #e2e8f0; font-weight: 600; }

.section-title { font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #64708c; margin: 0 0 12px; }

.muted { color: var(--muted); }
.text-success { color: #4ade80; }
.text-danger { color: #f87171; }
.text-warn { color: #fbbf24; }
.text-right { text-align: right; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: 16px; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.flex-gap { display: flex; gap: 10px; flex-wrap: wrap; }
.nowrap { white-space: nowrap; }

.proof-thumb {
    max-width: 100%; border-radius: 12px; border: 1px solid var(--border-2); display: block;
}
.proof-box { background: #0c1322; border: 1px dashed var(--border-2); border-radius: 12px; padding: 14px; }

.modal-backdrop {
    position: fixed; inset: 0; background: rgba(2,6,23,.72); backdrop-filter: blur(3px);
    display: none; align-items: center; justify-content: center; padding: 20px; z-index: 90;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: linear-gradient(180deg, #16203a, #111a2e); border: 1px solid var(--border-2);
    border-radius: 16px; padding: 24px; width: 100%; max-width: 520px; box-shadow: var(--shadow);
    max-height: 90vh; overflow-y: auto;
}
.modal h3 { margin: 0 0 6px; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }

.announce-bar { background: linear-gradient(90deg, rgba(79,110,247,.25), rgba(34,211,238,.18)); color: #e6ecf7; padding: 10px 0; font-size: 13.5px; text-align: center; border-bottom: 1px solid var(--border); }

@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .sidebar {
        position: fixed; left: 0; top: 0; transform: translateX(-100%);
        transition: transform .22s ease; box-shadow: var(--shadow);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-toggle { display: inline-flex; }
    .app-content { padding: 18px; }
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .form-grid.two { grid-template-columns: 1fr; }
    .user-meta { display: none; }
}

.dash-top { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-rows: auto auto; gap: 18px; align-items: stretch; }
.dash-top .market-overview { grid-row: span 2; display: flex; flex-direction: column; }
.dash-top .quick-trade, .dash-top .place-trade { align-self: start; }
.dash-mid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }

.market-overview .market-tape { flex: 0 0 auto; margin: -4px -6px 12px; overflow: hidden; }
.market-overview .market-chart { flex: 1 1 auto; min-height: 420px; position: relative; }
.market-overview .market-chart .tradingview-widget-container {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    height: 100% !important; width: 100% !important;
}
.market-overview .market-chart .tradingview-widget-container__widget { height: 100%; width: 100%; }

.quick-trade {
    background: linear-gradient(150deg, #4f6ef7 0%, #3b5bdb 55%, #2f4bc0 100%);
    border-color: rgba(120, 150, 255, .55);
    color: #fff;
    text-align: center;
}
.quick-trade-inner { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 12px 4px; }
.quick-trade-icon {
    width: 52px; height: 52px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .25);
}
.quick-trade-icon svg { width: 26px; height: 26px; fill: #fff; }
.quick-trade h3 { margin: 0; font-size: 20px; color: #fff; }
.quick-trade p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 13.5px; }
.quick-trade .btn-outline { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .08); }
.quick-trade .btn-outline:hover { background: rgba(255, 255, 255, .2); border-color: #fff; color: #fff; }

.trade-form .field { margin-bottom: 14px; }
.trade-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trade-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.trade-actions .btn { width: 100%; }
.trade-side { font-size: 11px; font-weight: 700; letter-spacing: .6px; padding: 1px 7px; border-radius: 999px; margin-right: 4px; }
.trade-side-buy { background: rgba(34, 197, 94, .16); color: #4ade80; }
.trade-side-sell { background: rgba(239, 68, 68, .16); color: #f87171; }

.wallet-banner { display: flex; align-items: flex-start; gap: 18px; position: relative; background: linear-gradient(120deg, rgba(79, 110, 247, .18), rgba(34, 211, 238, .10)); border-color: rgba(79, 110, 247, .4); }
.wallet-banner-icon {
    flex: 0 0 56px; width: 56px; height: 56px; border-radius: 14px; display: inline-flex;
    align-items: center; justify-content: center; background: rgba(79, 110, 247, .22); border: 1px solid rgba(79, 110, 247, .45);
}
.wallet-banner-icon svg { width: 26px; height: 26px; fill: #a5b8ff; }
.wallet-banner-body { flex: 1; }
.wallet-banner-body h3 { margin: 0 0 4px; font-size: 18px; }
.wallet-banner-body p { margin: 0 0 14px; color: var(--muted); }
.wallet-banner-close { position: absolute; top: 12px; right: 12px; color: var(--muted); }
.wallet-banner.is-dismissed { display: none; }

.ticker-cards { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
.ticker-card { padding: 10px 8px 4px; overflow: hidden; }
.ticker-card .tradingview-widget-container { width: 100%; }

@media (max-width: 1400px) {
    .ticker-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1200px) {
    .dash-top { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 1000px) {
    .dash-top { grid-template-columns: 1fr; }
    .dash-top .market-overview { grid-row: auto; }
    .dash-mid { grid-template-columns: 1fr; }
    .market-overview .market-chart { flex: none; height: 380px; min-height: 0; }
}

@media (max-width: 720px) {
    .ticker-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wallet-banner { flex-direction: column; }
    .wallet-banner-close { top: 10px; right: 10px; }
    .market-overview .market-chart { height: 320px; }
    .trade-form-row { grid-template-columns: 1fr; }
    .page-head h1 { font-size: 22px; }
    .page-head .actions { width: 100%; }
    .page-head .actions .btn { flex: 1; }
}

@media (max-width: 480px) {
    .ticker-cards { grid-template-columns: 1fr; }
    .trade-actions { grid-template-columns: 1fr; }
}
