/* ===== Manager Panel — Block 1 ===== */
/* ============ CSS Variables — Koyu Tema (Default) ============ */
:root {
--primary: #6366f1;
--primary-dark: #4f46e5;
--primary-bg: rgba(99,102,241,0.1);
--bg: #0a0e17;
--bg2: #0d1320;
--card: #111827;
--card2: #1a2332;
--border: #1e293b;
--border2: #243049;
--gold: #d4a843;
--gold2: #b8942e;
--gold-soft: rgba(212,168,67,0.12);
--text: #f1f5f9;
--text2: #94a3b8;
--text3: #64748b;
--green: #10b981;
--red: #ef4444;
--blue: #3b82f6;
--purple: #8b5cf6;
--yellow: #eab308;
--cyan: #06b6d4;
--shadow: 0 4px 12px rgba(0,0,0,0.4);
--shadow-lg: 0 12px 32px rgba(0,0,0,0.5);
}
body.light {
--bg: #f8fafc;
--bg2: #eef2f7;
--card: #ffffff;
--card2: #f1f5f9;
--border: #e2e8f0;
--border2: #cbd5e1;
--gold: #b8942e;
--gold2: #d4a843;
--gold-soft: rgba(184,148,46,0.10);
--text: #0f172a;
--text2: #475569;
--text3: #64748b;
--shadow: 0 4px 12px rgba(15,23,42,0.08);
--shadow-lg: 0 12px 32px rgba(15,23,42,0.12);
}

/* ============ Reset & Base ============ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
background: var(--bg);
color: var(--text);
font-size: 14px;
line-height: 1.5;
-webkit-font-smoothing: antialiased;
overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; }
input:focus, select:focus, textarea:focus { outline: none; }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }

/* ============ Login Screen ============ */
#loginScreen {
position: fixed; inset: 0;
display: flex; align-items: center; justify-content: center;
background: linear-gradient(135deg, var(--bg) 0%, var(--bg2) 100%);
padding: 20px;
z-index: 100;
}
#loginScreen::before {
content: ""; position: absolute; inset: 0;
background: radial-gradient(ellipse at top right, rgba(212,168,67,0.08) 0%, transparent 60%),
radial-gradient(ellipse at bottom left, rgba(59,130,246,0.05) 0%, transparent 60%);
pointer-events: none;
}
.login-box {
background: var(--card);
border: 1px solid var(--border);
border-radius: 20px;
padding: 40px 36px;
width: 100%; max-width: 420px;
box-shadow: var(--shadow-lg);
position: relative;
z-index: 1;
}
.login-logo {
text-align: center; margin-bottom: 28px;
}
.login-logo .icon {
width: 64px; height: 64px; margin: 0 auto 16px;
background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
border-radius: 16px;
display: flex; align-items: center; justify-content: center;
font-size: 28px; color: #0a0e17;
box-shadow: 0 8px 24px rgba(212,168,67,0.3);
}
.login-logo h1 { font-size: 22px; font-weight: 700; margin-bottom: 4px; }
.login-logo p { color: var(--text2); font-size: 13px; }
.form-group { margin-bottom: 16px; }
.form-group label {
display: block; font-size: 12px; font-weight: 600;
color: var(--text2); margin-bottom: 6px;
text-transform: uppercase; letter-spacing: 0.5px;
}
.form-input, .form-select, .form-textarea {
width: 100%; padding: 12px 14px;
background: var(--bg2); border: 1px solid var(--border);
border-radius: 10px; color: var(--text);
transition: all 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
border-color: var(--gold); background: var(--bg);
box-shadow: 0 0 0 3px var(--gold-soft);
}
.form-textarea { resize: vertical; min-height: 80px; }
.btn {
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
padding: 11px 18px; border-radius: 10px; font-weight: 600;
cursor: pointer; transition: all 0.2s; font-size: 13.5px;
}
.btn-primary {
background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
color: #0a0e17;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(212,168,67,0.3); }
.btn-secondary { background: var(--card2); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-danger { background: var(--red); color: white; }
.btn-success { background: var(--green); color: white; }
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border); }
.btn-ghost:hover { background: var(--bg2); color: var(--text); }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 20px; font-size: 14px; }
.btn-sm { padding: 7px 12px; font-size: 12px; }

/* ============ App Shell ============ */
#appScreen { display: none; min-height: 100vh; }
#appScreen.active { display: block; }

.sidebar {
position: fixed; top: 0; left: 0; bottom: 0;
width: 260px;
background: var(--card);
border-right: 1px solid var(--border);
display: flex; flex-direction: column;
z-index: 50;
transition: transform 0.3s ease;
}
.sidebar-header {
padding: 22px 20px 18px;
border-bottom: 1px solid var(--border);
}
.sidebar-header h2 {
font-size: 17px; font-weight: 700;
background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
background-clip: text;
margin-bottom: 2px;
}
.sidebar-header p { color: var(--text3); font-size: 11px; letter-spacing: 0.4px; }

.sidebar-nav {
flex: 1; overflow-y: auto;
padding: 14px 12px 10px;
}
.nav-section { margin-bottom: 18px; }
.nav-section-title {
color: var(--text3); font-size: 10px; font-weight: 700;
letter-spacing: 1.2px; text-transform: uppercase;
padding: 0 12px; margin-bottom: 6px;
}
.nav-item {
display: flex; align-items: center; gap: 11px;
padding: 10px 12px; border-radius: 8px;
color: var(--text2); cursor: pointer;
margin-bottom: 2px; transition: all 0.18s;
font-size: 13px; font-weight: 500;
position: relative;
}
.nav-item:hover { background: var(--bg2); color: var(--text); }
.nav-item.active {
background: linear-gradient(135deg, rgba(212,168,67,0.15) 0%, rgba(212,168,67,0.04) 100%);
color: var(--gold);
border-left: 3px solid var(--gold);
padding-left: 9px;
}
.nav-item .ico {
width: 18px; flex-shrink: 0;
display: inline-flex; align-items: center; justify-content: center;
font-size: 14px;
}
.nav-item .badge {
margin-left: auto;
background: var(--red); color: white;
font-size: 10px; font-weight: 700;
padding: 2px 7px; border-radius: 999px;
min-width: 18px; text-align: center;
}
.nav-item.active .badge { background: var(--gold); color: #0a0e17; }

.sidebar-footer {
border-top: 1px solid var(--border);
padding: 14px 12px;
display: flex; gap: 8px;
}
.sidebar-footer button {
flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
padding: 9px; font-size: 12px; font-weight: 500;
background: var(--bg2); border: 1px solid var(--border); border-radius: 8px;
color: var(--text2); transition: all 0.2s;
}
.sidebar-footer button:hover { background: var(--border); color: var(--text); }

/* ============ Main Content ============ */
.main {
margin-left: 260px;
min-height: 100vh;
padding: 22px 28px 40px;
}

.topbar {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 22px; flex-wrap: wrap; gap: 12px;
}
.topbar-left h1 {
font-size: 22px; font-weight: 700; margin-bottom: 3px;
}
.topbar-left p { color: var(--text2); font-size: 13px; }
.topbar-right {
display: flex; align-items: center; gap: 10px;
}
.pill {
display: inline-flex; align-items: center; gap: 6px;
padding: 6px 12px; border-radius: 999px;
background: rgba(16,185,129,0.12); color: var(--green);
font-size: 11.5px; font-weight: 600;
border: 1px solid rgba(16,185,129,0.25);
}
.pill .dot {
width: 7px; height: 7px; border-radius: 50%;
background: var(--green);
box-shadow: 0 0 0 3px rgba(16,185,129,0.2);
animation: pulse 2s infinite;
}
@keyframes pulse {
0%, 100% { opacity: 1; }
50% { opacity: 0.4; }
}

/* ============ Mobile Header ============ */
.mobile-header {
display: none;
position: sticky; top: 0; z-index: 30;
background: var(--card); border-bottom: 1px solid var(--border);
padding: 12px 16px;
align-items: center; justify-content: space-between;
}
.menu-btn {
width: 38px; height: 38px;
display: flex; align-items: center; justify-content: center;
border-radius: 8px; background: var(--bg2); color: var(--text);
font-size: 18px;
}
.mobile-header h2 {
font-size: 15px; font-weight: 700;
background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.backdrop {
display: none; position: fixed; inset: 0;
background: rgba(0,0,0,0.5); z-index: 40;
}
body.drawer-open .backdrop { display: block; }
body.drawer-open .sidebar { transform: translateX(0); }

/* ============ Stat Cards (Dashboard) ============ */
.stat-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
gap: 14px;
margin-bottom: 22px;
}
.stat-card {
background: var(--card); border: 1px solid var(--border);
border-radius: 14px; padding: 18px;
border-left: 4px solid var(--gold);
transition: transform 0.2s, box-shadow 0.2s;
position: relative;
overflow: hidden;
}
.stat-card:hover {
transform: translateY(-2px);
box-shadow: var(--shadow);
}
.stat-card.gold { border-left-color: var(--yellow); }
.stat-card.green { border-left-color: var(--green); }
.stat-card.blue { border-left-color: var(--blue); }
.stat-card.red { border-left-color: var(--red); }
.stat-card.purple { border-left-color: var(--purple); }
.stat-card .head {
display: flex; align-items: flex-start; justify-content: space-between;
margin-bottom: 12px;
}
.stat-card .label {
color: var(--text2); font-size: 12.5px;
font-weight: 500;
}
.stat-card .ico {
width: 32px; height: 32px;
display: flex; align-items: center; justify-content: center;
border-radius: 8px; font-size: 14px;
background: var(--bg2); color: var(--text3);
}
.stat-card.gold .ico { background: rgba(234,179,8,0.12); color: var(--yellow); }
.stat-card.green .ico { background: rgba(16,185,129,0.12); color: var(--green); }
.stat-card.blue .ico { background: rgba(59,130,246,0.12); color: var(--blue); }
.stat-card.red .ico { background: rgba(239,68,68,0.12); color: var(--red); }
.stat-card.purple .ico { background: rgba(139,92,246,0.12); color: var(--purple); }
.stat-card .value {
font-size: 26px; font-weight: 700; line-height: 1.2;
font-variant-numeric: tabular-nums;
margin-bottom: 6px;
}
.stat-card .sub {
color: var(--text3); font-size: 11.5px;
display: flex; align-items: center; gap: 5px;
}
.stat-card .sub .dot {
width: 6px; height: 6px; border-radius: 50%;
background: var(--green);
}

/* ============ Card ============ */
.card {
background: var(--card); border: 1px solid var(--border);
border-radius: 14px; padding: 18px;
margin-bottom: 16px;
}
.card-header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 14px; flex-wrap: wrap; gap: 10px;
}
.card-header h3 {
font-size: 15px; font-weight: 700;
display: flex; align-items: center; gap: 8px;
}
.card-header .sub {
color: var(--text3); font-size: 12px; font-weight: 400;
}

/* ============ Grid Layouts ============ */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
.grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }

/* ============ Table ============ */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
text-align: left; padding: 11px 12px;
color: var(--text3); font-size: 11px; font-weight: 700;
text-transform: uppercase; letter-spacing: 0.5px;
background: var(--bg2); border-bottom: 1px solid var(--border);
white-space: nowrap;
}
tbody td {
padding: 13px 12px; border-bottom: 1px solid var(--border);
font-size: 13px; vertical-align: middle;
}
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: rgba(255,255,255,0.02); }
tbody tr:last-child td { border-bottom: none; }

/* ============ Badges ============ */
.badge {
display: inline-flex; align-items: center; gap: 4px;
padding: 3px 9px; border-radius: 999px;
font-size: 11px; font-weight: 600;
white-space: nowrap;
}
.badge.pending { background: rgba(234,179,8,0.13); color: var(--yellow); }
.badge.approved { background: rgba(16,185,129,0.13); color: var(--green); }
.badge.rejected { background: rgba(239,68,68,0.13); color: var(--red); }
.badge.open { background: rgba(59,130,246,0.13); color: var(--blue); }
.badge.closed { background: var(--bg2); color: var(--text3); }
.badge.buy { background: rgba(16,185,129,0.13); color: var(--green); }
.badge.sell { background: rgba(239,68,68,0.13); color: var(--red); }

/* ============ Pill Tabs ============ */
.tab-bar {
display: flex; flex-wrap: wrap; gap: 6px;
margin-bottom: 14px;
}
.tab-pill {
padding: 7px 14px; border-radius: 999px;
background: var(--bg2); color: var(--text2);
font-size: 12.5px; font-weight: 600;
cursor: pointer; transition: all 0.18s;
border: 1px solid var(--border);
display: inline-flex; align-items: center; gap: 6px;
}
.tab-pill:hover { background: var(--card2); color: var(--text); }
.tab-pill.active {
background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
color: #0a0e17; border-color: var(--gold);
}
.tab-pill .count {
background: rgba(0,0,0,0.15); padding: 1px 7px; border-radius: 999px;
font-size: 11px;
}

/* ============ Action Buttons (icon style) ============ */
.icon-btn {
width: 32px; height: 32px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: 8px; border: 1px solid var(--border);
background: var(--bg2); color: var(--text2);
cursor: pointer; transition: all 0.18s;
font-size: 13px;
}
.icon-btn:hover { background: var(--card2); color: var(--text); }
.icon-btn.approve { background: rgba(16,185,129,0.10); color: var(--green); border-color: rgba(16,185,129,0.25); }
.icon-btn.approve:hover { background: rgba(16,185,129,0.18); }
.icon-btn.reject { background: rgba(239,68,68,0.10); color: var(--red); border-color: rgba(239,68,68,0.25); }
.icon-btn.reject:hover { background: rgba(239,68,68,0.18); }
.icon-btn.view { color: var(--gold); border-color: rgba(212,168,67,0.25); }
.icon-btn.edit { color: var(--blue); border-color: rgba(59,130,246,0.25); }

/* ============ Empty State ============ */
.empty {
padding: 40px 20px; text-align: center;
color: var(--text3); font-size: 13px;
}
.empty .ico {
width: 50px; height: 50px; margin: 0 auto 12px;
border-radius: 50%; background: var(--bg2);
display: flex; align-items: center; justify-content: center;
font-size: 20px;
}

/* ============ User row (avatar+name) ============ */
.user-row { display: flex; align-items: center; gap: 10px; }
.avatar {
width: 36px; height: 36px; border-radius: 50%;
background: linear-gradient(135deg, var(--gold) 0%, var(--gold2) 100%);
color: #0a0e17; font-weight: 700; font-size: 13px;
display: flex; align-items: center; justify-content: center;
flex-shrink: 0;
}
.user-row .info { min-width: 0; }
.user-row .name { font-weight: 600; font-size: 13.5px; }
.user-row .meta { font-size: 11.5px; color: var(--text3); }
.amount { font-variant-numeric: tabular-nums; font-weight: 600; }
.amount.green { color: var(--green); }
.amount.red { color: var(--red); }

/* ============ Modal ============ */
.modal-overlay {
display: none; position: fixed; inset: 0;
background: rgba(0,0,0,0.65); backdrop-filter: blur(4px);
z-index: 90;
align-items: center; justify-content: center;
padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
background: var(--card); border: 1px solid var(--border);
border-radius: 16px; padding: 22px;
width: 100%; max-width: 520px;
max-height: 90vh; overflow-y: auto;
box-shadow: var(--shadow-lg);
animation: modalIn 0.25s ease;
}
.modal.wide { max-width: 900px; }
@keyframes modalIn {
from { opacity: 0; transform: translateY(-12px) scale(0.98); }
to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-header {
display: flex; align-items: center; justify-content: space-between;
margin-bottom: 16px; padding-bottom: 14px;
border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 17px; font-weight: 700; }
.close-btn {
width: 32px; height: 32px;
display: flex; align-items: center; justify-content: center;
border-radius: 8px; background: var(--bg2); color: var(--text2);
font-size: 18px;
}
.close-btn:hover { background: var(--border); color: var(--text); }
.modal-actions {
display: flex; gap: 10px; justify-content: flex-end;
margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border);
}

/* ============ Toast ============ */
#toast-container {
position: fixed; top: 20px; right: 20px;
z-index: 200; display: flex; flex-direction: column; gap: 10px;
pointer-events: none;
}
.toast {
background: var(--card); border: 1px solid var(--border);
border-radius: 12px; padding: 14px 16px;
min-width: 280px; max-width: 380px;
box-shadow: var(--shadow-lg);
display: flex; align-items: center; gap: 10px;
pointer-events: auto;
animation: slideIn 0.3s ease;
border-left: 4px solid var(--gold);
}
.toast.success { border-left-color: var(--green); }
.toast.error { border-left-color: var(--red); }
.toast.warn { border-left-color: var(--yellow); }
@keyframes slideIn {
from { opacity: 0; transform: translateX(20px); }
to { opacity: 1; transform: translateX(0); }
}

/* ============ User Detail (Müşteri Detay) ============ */
.user-detail-header {
display: flex; align-items: center; gap: 16px;
padding: 18px; background: var(--bg2);
border-radius: 12px; margin-bottom: 16px;
flex-wrap: wrap;
}
.user-detail-header .avatar { width: 56px; height: 56px; font-size: 20px; }
.user-detail-header .info { flex: 1; min-width: 200px; }
.user-detail-header .name { font-size: 18px; font-weight: 700; }
.user-detail-header .email { color: var(--text2); font-size: 13px; margin-top: 2px; }
.user-detail-header .id-badge {
display: inline-block; padding: 3px 8px;
background: var(--card); border-radius: 6px;
font-size: 11px; color: var(--text3);
margin-top: 6px; font-family: ui-monospace, monospace;
}
.fin-grid {
display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
gap: 10px; margin-bottom: 16px;
}
.fin-cell {
background: var(--bg2); border: 1px solid var(--border);
border-radius: 10px; padding: 12px;
}
.fin-cell .lbl { color: var(--text3); font-size: 11px; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.fin-cell .val { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fin-cell .val.green { color: var(--green); }
.fin-cell .val.red { color: var(--red); }
.fin-cell .val.gold { color: var(--gold); }

/* ============ Sub Tabs (within detail) ============ */
.subtabs {
display: flex; gap: 0; border-bottom: 1px solid var(--border);
margin-bottom: 14px; overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.subtab {
padding: 10px 16px; color: var(--text2);
font-weight: 600; font-size: 12.5px; cursor: pointer;
border-bottom: 2px solid transparent;
white-space: nowrap;
transition: all 0.15s;
}
.subtab:hover { color: var(--text); }
.subtab.active { color: var(--gold); border-bottom-color: var(--gold); }

/* ============ Recent transactions ============ */
.recent-list { display: flex; flex-direction: column; }
.recent-item {
display: flex; align-items: center; gap: 12px;
padding: 10px 0; border-bottom: 1px solid var(--border);
}
.recent-item:last-child { border-bottom: none; }
.recent-item .ico {
width: 36px; height: 36px; border-radius: 50%;
background: var(--bg2);
display: flex; align-items: center; justify-content: center;
font-size: 14px; flex-shrink: 0;
}
.recent-item .info { flex: 1; min-width: 0; }
.recent-item .name { font-weight: 600; font-size: 13px; }
.recent-item .time { color: var(--text3); font-size: 11.5px; }

/* ============ Placeholder Pages ============ */
.placeholder-page {
display: flex; flex-direction: column; align-items: center; justify-content: center;
padding: 80px 30px; text-align: center;
background: var(--card); border: 1px dashed var(--border2);
border-radius: 14px; min-height: 380px;
}
.placeholder-page .big-ico {
width: 80px; height: 80px; border-radius: 20px;
background: linear-gradient(135deg, var(--gold-soft) 0%, transparent 100%);
display: flex; align-items: center; justify-content: center;
font-size: 36px; color: var(--gold);
margin-bottom: 18px;
}
.placeholder-page h2 { font-size: 19px; margin-bottom: 6px; }
.placeholder-page p { color: var(--text2); max-width: 420px; font-size: 13.5px; }
.placeholder-page .coming-soon {
display: inline-block; margin-top: 14px;
padding: 5px 12px; border-radius: 999px;
background: var(--gold-soft); color: var(--gold);
font-size: 11.5px; font-weight: 600;
}

/* ============ Views ============ */
.view { display: none; }
.view.active { display: block; }

/* ============ Responsive ============ */
@media (max-width: 980px) {
.sidebar { transform: translateX(-100%); box-shadow: var(--shadow-lg); }
.main { margin-left: 0; padding: 16px; }
.mobile-header { display: flex; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.topbar { margin-top: 6px; }
}
@media (max-width: 560px) {
.topbar-left h1 { font-size: 19px; }
.stat-card .value { font-size: 22px; }
.modal { padding: 18px; }
.login-box { padding: 30px 22px; }
}

/* ===== Manager Panel — Block 2 ===== */
/* ============ S52 Faz 2: User Detail Page ============ */
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-left {
background: var(--bg2); border-radius: 12px;
padding: 20px; border: 1px solid var(--border);
}
.detail-avatar-row {
display: flex; align-items: center; gap: 14px; margin-bottom: 18px;
}
.detail-avatar {
width: 60px; height: 60px; border-radius: 50%;
background: linear-gradient(135deg, #6366f1, #8b5cf6);
color: #fff; display: flex; align-items: center; justify-content: center;
font-size: 22px; font-weight: 700;
}
.detail-name { font-size: 17px; font-weight: 700; color: var(--text); }
.detail-acct-type {
display: inline-block; margin-top: 4px; padding: 2px 8px;
background: var(--card); border-radius: 4px;
font-size: 11px; color: var(--text2); font-family: ui-monospace, monospace;
}
.detail-stats {
display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px;
}
.detail-stat {
background: var(--card); border-radius: 8px; padding: 10px;
border-left: 3px solid var(--success);
}
.detail-stat.red { border-left-color: var(--danger); }
.detail-stat .lbl { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; }
.detail-stat .val { font-size: 16px; font-weight: 700; margin-top: 4px; }
.detail-stat .val.green { color: var(--success); }
.detail-stat .val.red { color: var(--danger); }
.detail-info-row {
display: flex; justify-content: space-between;
padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13px;
}
.detail-info-row:last-child { border-bottom: none; }
.detail-info-row .key { color: var(--text2); }
.detail-info-row .val { color: var(--text); font-weight: 500; text-align: right; }
.detail-actions { margin-top: 18px; display: flex; flex-direction: column; gap: 8px; }
.detail-actions .btn { width: 100%; justify-content: center; }
.detail-right {
background: var(--bg2); border-radius: 12px;
padding: 20px; border: 1px solid var(--border); min-height: 400px;
}
.detail-tabs {
display: flex; gap: 4px; margin-bottom: 16px;
border-bottom: 1px solid var(--border); overflow-x: auto;
}
.detail-tab {
padding: 10px 14px; color: var(--text2); font-weight: 600; font-size: 12.5px;
cursor: pointer; border-bottom: 2px solid transparent;
white-space: nowrap; transition: all 0.15s;
}
.detail-tab:hover { color: var(--text); }
.detail-tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.detail-tab .count {
display: inline-block; margin-left: 4px; padding: 0 6px;
background: var(--card); border-radius: 8px; font-size: 10px;
}
.detail-tx-row {
display: grid; grid-template-columns: 140px 110px 130px 1fr; gap: 12px;
padding: 10px 0; border-bottom: 1px solid var(--border);
font-size: 13px; align-items: center;
}
.detail-tx-row:last-child { border-bottom: none; }
.detail-tx-row .tx-amount.green { color: var(--success); }
.detail-tx-row .tx-amount.red { color: var(--danger); }
.detail-tx-row .tx-date { color: var(--text3); font-size: 12px; }
.detail-tx-row .tx-type {
display: inline-block; padding: 2px 8px;
background: var(--card); border-radius: 4px;
font-size: 11px; font-weight: 600;
}
.detail-back {
display: inline-flex; align-items: center; gap: 6px;
padding: 6px 12px; background: var(--card); border-radius: 6px;
color: var(--text2); cursor: pointer; font-size: 12.5px; margin-bottom: 12px;
}
.detail-back:hover { color: var(--text); }
