/* OWForex portal & admin — light workspace, dark navy sidebar, gold accent (matches the storefront) */
:root {
  --brand: #151a2d;          /* navy: primary buttons, headings */
  --brand-dark: #0c1020;
  --brand-light: #eef0f6;
  --gold: #d4a843;
  --gold-l: #e8c65a;
  --gold-d: rgba(212,168,67,.14);
  --ink: #1b1f2e;
  --muted: #6b7180;
  --line: #e6e8ef;
  --line2: #d5d8e2;
  --bg: #f3f4f8;
  --card: #ffffff;
  --sidebar: #0b0e1a;
  --sidebar2: #11152a;
  --green: #16a679;
  --red: #e5484d;
  --amber: #e8a23a;
  --blue: #3b6fe0;
  --violet: #7c5cf0;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16,20,40,.04), 0 6px 24px rgba(16,20,40,.05);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 14.5px; margin: 0; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--brand); }
h1,h2,h3,h4,h5 { font-weight: 700; letter-spacing: -.01em; }
b, strong { font-weight: 650; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: #cfd3de; border-radius: 8px; } ::-webkit-scrollbar-track { background: transparent; }

/* ---- buttons / forms ---- */
.btn { border-radius: 10px; font-weight: 600; padding: .5rem .95rem; transition: all .18s ease; }
.btn-sm { padding: .32rem .7rem; font-size: 13px; border-radius: 8px; }
.btn-brand { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-brand:hover, .btn-brand:focus { background: var(--gold); border-color: var(--gold); color: #0b0e1a; box-shadow: 0 6px 18px rgba(212,168,67,.3); }
.btn-outline-brand { border-color: var(--line2); color: var(--brand); background: #fff; }
.btn-outline-brand:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: #0b0e1a; }
.btn-gold:hover { background: var(--gold-l); border-color: var(--gold-l); color: #0b0e1a; }
.btn-primary { background: var(--brand); border-color: var(--brand); } .btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-success { background: var(--green); border-color: var(--green); } .btn-danger { background: var(--red); border-color: var(--red); }
.btn-outline-secondary, .btn-outline-primary, .btn-outline-danger, .btn-outline-success, .btn-outline-info { background: #fff; }
.btn-outline-primary { color: var(--brand); border-color: var(--line2); } .btn-outline-primary:hover { background: var(--brand); border-color: var(--brand); }
.btn-outline-danger { border-color: var(--line2); } .btn-outline-success { border-color: var(--line2); }
.btn-info, .btn-outline-info { --bs-btn-color: #fff; }
.text-brand { color: var(--brand) !important; }
.text-gold { color: var(--gold) !important; }
.bg-brand { background: var(--brand) !important; color: #fff; }
.badge { font-weight: 600; border-radius: 6px; padding: .35em .6em; letter-spacing: .01em; }
.badge.bg-success { background: rgba(22,166,121,.14) !important; color: #0e7a58; }
.badge.bg-danger { background: rgba(229,72,77,.13) !important; color: #b3262b; }
.badge.bg-warning { background: rgba(232,162,58,.16) !important; color: #9a5f0c; }
.badge.bg-info { background: rgba(59,111,224,.13) !important; color: #2952b3; }
.badge.bg-secondary { background: var(--brand-light) !important; color: var(--muted); }
.badge.bg-primary, .badge.bg-dark { background: var(--brand) !important; color: #fff; }
.badge-soft { background: var(--gold-d); color: #8a6414; font-weight: 600; }
.form-control, .form-select, .input-group-text { border-radius: 10px; border-color: var(--line2); padding: .5rem .8rem; font-size: 14px; }
.form-control-sm, .form-select-sm { border-radius: 8px; }
.input-group > .form-control:not(:last-child), .input-group > .input-group-text:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group > :not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-text { background: #f7f8fb; color: var(--muted); }
.form-control:focus, .form-select:focus { border-color: var(--gold); box-shadow: 0 0 0 .2rem rgba(212,168,67,.2); }
.form-label { font-weight: 600; font-size: 13px; color: #3a3f52; margin-bottom: .3rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-switch .form-check-input:checked { background-color: var(--green); border-color: var(--green); }
.page-link { color: var(--brand); border-color: var(--line); border-radius: 8px !important; margin: 0 2px; font-weight: 600; font-size: 13px; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.select2-container--default .select2-selection--single { border-radius: 10px; border-color: var(--line2); height: 40px; }
.select2-container--default .select2-selection--single .select2-selection__rendered { line-height: 38px; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 38px; }
.dropdown-menu { border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgba(16,20,40,.12); padding: 6px; }
.dropdown-item { border-radius: 8px; font-weight: 500; padding: .45rem .7rem; }
.dropdown-item:hover { background: var(--brand-light); }
.modal-content { border: 0; border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.modal-header { border-bottom: 1px solid var(--line); } .modal-footer { border-top: 1px solid var(--line); }
.alert { border: 0; border-radius: 12px; font-weight: 500; }
.alert-success { background: rgba(22,166,121,.12); color: #0e6b4e; }
.alert-danger { background: rgba(229,72,77,.11); color: #a3262b; }
.alert-warning { background: rgba(232,162,58,.15); color: #85520a; }
.alert-info { background: rgba(59,111,224,.11); color: #2952b3; }
.nav-pills .nav-link { border-radius: 10px; font-weight: 600; color: var(--muted); }
.nav-pills .nav-link.active { background: var(--brand); color: #fff; }
.nav-tabs { border-color: var(--line); } .nav-tabs .nav-link { border: 0; color: var(--muted); font-weight: 600; padding: .6rem 1rem; }
.nav-tabs .nav-link.active { color: var(--brand); border-bottom: 2px solid var(--gold); background: transparent; }
.list-group-item { border-color: var(--line); padding: .8rem 1.1rem; font-weight: 500; }
.list-group-item-action:hover { background: #f7f8fb; }
.progress { height: 8px; border-radius: 8px; background: var(--brand-light); } .progress-bar { background: var(--gold); }

/* ---- app shell ---- */
.app { display: flex; min-height: 100vh; }
.sidebar { width: 256px; background: linear-gradient(180deg, var(--sidebar2) 0%, var(--sidebar) 100%); color: #a7abbd; flex-shrink: 0; position: fixed; top: 0; bottom: 0; left: 0; overflow-y: auto; z-index: 1030; transition: transform .25s cubic-bezier(.16,1,.3,1); display: flex; flex-direction: column; padding: 0 12px 16px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 20px 10px 18px; color: #fff; font-weight: 700; font-size: 18px; letter-spacing: -.01em; border-bottom: 1px solid rgba(255,255,255,.06); margin-bottom: 8px; }
.sidebar .brand img { height: 34px; }
.sidebar .brand span { color: var(--gold); font-weight: 500; }
.sidebar .nav-label { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: #5f6480; padding: 14px 12px 5px; font-weight: 600; }
.sidebar a.nav-link { color: #b4b8c9; padding: 7px 12px; margin: 1px 0; display: flex; align-items: center; gap: 11px; font-weight: 500; font-size: 14px; border-radius: 10px; position: relative; transition: background .15s, color .15s; }
.sidebar a.nav-link i { width: 18px; text-align: center; color: #6f7490; font-size: 14px; transition: color .15s; }
.sidebar a.nav-link:hover { color: #fff; background: rgba(255,255,255,.05); }
.sidebar a.nav-link:hover i { color: #cfd2df; }
.sidebar a.nav-link.active { color: #fff; background: rgba(212,168,67,.13); }
.sidebar a.nav-link.active::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 3px; background: var(--gold); }
.sidebar a.nav-link.active i { color: var(--gold); }
.sidebar .side-user { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; gap: 10px; color: #fff; }
.sidebar .side-user .avatar { width: 34px; height: 34px; font-size: 13px; background: var(--gold); color: #0b0e1a; }
.sidebar .side-user .who { min-width: 0; flex: 1; }
.sidebar .side-user .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .side-user .who small { color: #7d8199; font-size: 11.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar .side-user a { color: #7d8199; } .sidebar .side-user a:hover { color: var(--gold); }
.main { flex: 1; margin-left: 256px; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: rgba(255,255,255,.85); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); height: 62px; display: flex; align-items: center; padding: 0 28px; gap: 14px; position: sticky; top: 0; z-index: 1020; }
.topbar .toggle { display: none; font-size: 20px; color: var(--ink); background: none; border: 0; padding: 4px 8px; }
.topbar .spacer { flex: 1; }
.topbar .crumb { font-size: 13px; color: var(--muted); font-weight: 500; }
.topbar .crumb b { color: var(--ink); font-weight: 650; }
.topbar .tb-btn { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 13px; font-weight: 600; }
.topbar .tb-btn:hover { border-color: var(--gold); color: var(--brand); }
.topbar .user-btn { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); padding: 5px 8px 5px 5px; border-radius: 12px; }
.topbar .user-btn:hover { background: var(--brand-light); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; }
.content { padding: 28px; flex: 1; }
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.page-head h1 { font-size: 24px; margin: 0; letter-spacing: -.02em; }
.breadcrumb { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--brand); }

/* ---- cards & tables ---- */
.card { border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); background: var(--card); }
.card-header { background: transparent; border-bottom: 1px solid var(--line); font-weight: 650; font-size: 14.5px; padding: 14px 20px; border-radius: var(--radius) var(--radius) 0 0 !important; }
.card-body { padding: 20px; }
.card .card-body.small { font-size: 13px; }
.table { --bs-table-hover-bg: #f8f9fc; margin-bottom: 0; }
.table thead th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: #f8f9fc; border-bottom: 1px solid var(--line); white-space: nowrap; font-weight: 650; padding: 11px 14px; }
.table td { vertical-align: middle; border-color: var(--line); padding: 11px 14px; }
.table-sm td, .table-sm th { padding: 9px 12px; }
.table tbody tr:last-child td { border-bottom: 0; }
.table .thumb { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; background: #eef0f6; border: 1px solid var(--line); }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); }
.card > .table-responsive:first-child, .card > .table-responsive:first-child .table thead th:first-child { border-top-left-radius: var(--radius); }

/* stat tiles: white, tinted icon */
.stat { border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 12px; transition: transform .18s, box-shadow .18s; height: 100%; }
a.stat:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(16,20,40,.1); color: var(--ink); }
.stat .n { font-size: 28px; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
.stat .l { color: var(--muted); margin-top: 6px; font-size: 13px; font-weight: 500; }
.stat i { font-size: 20px; width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stat.purple i { background: rgba(124,92,240,.13); color: var(--violet); }
.stat.cyan i { background: rgba(59,111,224,.12); color: var(--blue); }
.stat.navy i { background: var(--gold-d); color: #b8892a; }
.stat.green i { background: rgba(22,166,121,.13); color: var(--green); }
.stat.text-white, .stat.text-white .n { color: var(--ink) !important; }

.footer { padding: 14px 28px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: transparent; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-bar .form-control { max-width: 420px; }
.price-badges .badge { font-weight: 600; margin-right: 4px; }
.product-detail img.title { max-height: 380px; width: auto; max-width: 100%; border-radius: 12px; border: 1px solid var(--line); }
.product-detail iframe { width: 100%; min-height: 315px; border-radius: 12px; }
.plan-card { border: 1px solid var(--line); border-radius: 16px; padding: 24px; height: 100%; transition: border-color .15s, box-shadow .15s, transform .15s; background: #fff; }
.plan-card:hover { border-color: var(--gold); box-shadow: 0 12px 30px rgba(212,168,67,.15); transform: translateY(-2px); }
.plan-card img { height: 90px; }
.plan-card .price-line { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line2); padding: 7px 0; }
.kbw-signature { border: 1px solid var(--line2); touch-action: none; width: 100%; height: 180px; border-radius: 10px; background: #fff; }
.sig-img { max-width: 320px; border: 1px solid var(--line); border-radius: 10px; }
.alert ul { margin: 0; padding-left: 18px; }
.w-120 { width: 120px; }
.action-btns .btn { margin: 2px 2px 2px 0; }
pre.bg-light { background: #0b0e1a !important; color: #d7dbea; border-radius: 12px; font-size: 12.5px; }
code { color: #8a5a10; background: var(--gold-d); padding: .1em .35em; border-radius: 5px; font-size: .9em; }
pre code { background: none; color: inherit; padding: 0; }
.empty { text-align: center; color: var(--muted); padding: 34px 16px; }
.empty i { font-size: 30px; color: var(--line2); display: block; margin-bottom: 10px; }

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  body.nav-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.5); }
  .main { margin-left: 0; }
  .topbar { padding: 0 16px; }
  .topbar .toggle { display: inline-block; }
  .content { padding: 16px; }
  .page-head h1 { font-size: 21px; }
  .overlay { display: none; position: fixed; inset: 0; background: rgba(5,7,15,.55); backdrop-filter: blur(2px); z-index: 1025; }
  body.nav-open .overlay { display: block; }
}

/* ---- auth pages ---- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px; background: radial-gradient(900px 500px at 15% -10%, rgba(212,168,67,.18), transparent 60%), radial-gradient(700px 500px at 100% 100%, rgba(124,92,240,.16), transparent 60%), #07070c; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border-radius: 20px; padding: 38px 34px; box-shadow: 0 30px 80px rgba(0,0,0,.45); }
.auth-card .logo { display: block; margin: 0 auto 18px; height: 64px; }
.auth-card h1 { font-size: 22px; text-align: center; margin-bottom: 4px; }
.auth-card p.sub { text-align: center; color: var(--muted); margin-bottom: 22px; font-size: 14px; }
.auth-card .btn-brand { width: 100%; padding: .65rem; }
