@charset "UTF-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #0c0f15;
  --bg-2: #10141b;
  --surface: #141920;
  --surface-2: #1a2029;
  --surface-3: #212835;
  --line: #222a35;
  --line-2: #2d3644;
  --text: #e8ecf1;
  --text-2: #aab4c3;
  --text-3: #7c8798;
  --brand: #3d7bff;
  --brand-2: #2f66d9;
  --brand-soft: rgba(61, 123, 255, 0.12);
  --brand-line: rgba(61, 123, 255, 0.35);
  --green: #22c55e;
  --green-soft: rgba(34, 197, 94, 0.12);
  --green-line: rgba(34, 197, 94, 0.35);
  --red: #f0506e;
  --red-soft: rgba(240, 80, 110, 0.12);
  --red-line: rgba(240, 80, 110, 0.35);
  --amber: #f5a524;
  --amber-soft: rgba(245, 165, 36, 0.12);
  --amber-line: rgba(245, 165, 36, 0.35);
  --cyan: #22b8cf;
  --cyan-soft: rgba(34, 184, 207, 0.12);
  --cyan-line: rgba(34, 184, 207, 0.35);
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --sidebar-w: 256px;
  --header-h: 64px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

html { scroll-behavior: smooth; }
html, body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "tnum" 1, "cv11" 1;
}
body { min-height: 100vh; }
a { color: var(--brand); text-decoration: none; transition: color .15s ease; }
a:hover { color: #6b9bff; text-decoration: none; }
h1, h2, h3, h4, h5, h6 { color: var(--text); font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--text-2); }
strong, b { color: var(--text); font-weight: 600; }
code { background: var(--surface-3); color: #cdd8ec; padding: 2px 6px; border-radius: 5px; font-size: 12.5px; font-family: 'JetBrains Mono', Consolas, Menlo, monospace; }
small { color: var(--text-3); }
hr { border-top-color: var(--line); }
.hidden { display: none !important; }
::selection { background: rgba(61, 123, 255, 0.35); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #2a3240; border-radius: 6px; }
::-webkit-scrollbar-track { background: transparent; }
img { max-width: 100%; }
* { -webkit-tap-highlight-color: transparent; }

.app-container { position: relative; }

.app-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  z-index: 1030;
  transition: transform .2s ease, width .2s ease;
}
.sidebar-header { padding: 18px 18px 10px; }
.app-logo a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.app-logo img { max-height: 36px; max-width: 168px; object-fit: contain; }
.app-logo .logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }

.app-user { margin: 14px 0 0; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.app-user .user-name { font-weight: 600; font-size: 13.5px; color: var(--text); display: flex; align-items: center; gap: 8px; }
.app-user .user-name i { color: var(--text-3); }
.app-user .user-balance { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--text); }
.app-user .ub-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); font-weight: 600; }
.app-user .ub-amount { font-weight: 700; font-size: 16px; color: var(--text); }
.app-user .ub-add { font-size: 11.5px; color: var(--brand); font-weight: 600; }
.app-user .user-balance:hover .ub-add { color: #6b9bff; }

.sidebar-content { flex: 1; overflow-y: auto; padding: 6px 12px 20px; }
.sidebar-section { padding: 12px 12px 6px; font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-weight: 600; }
.sidebar-menu { list-style: none; margin: 0; padding: 0; }
.sidebar-menu li a {
  display: flex; align-items: center; gap: 11px;
  padding: 9px 12px; margin: 1px 0; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 13.5px;
  transition: background .15s ease, color .15s ease;
}
.sidebar-menu li a .menu-icon { width: 18px; text-align: center; font-size: 14px; color: var(--text-3); transition: color .15s ease; }
.sidebar-menu li a:hover { background: var(--surface); color: var(--text); }
.sidebar-menu li a:hover .menu-icon { color: var(--text-2); }
.sidebar-menu li.active a { background: var(--brand-soft); color: var(--text); font-weight: 600; box-shadow: inset 3px 0 0 var(--brand); }
.sidebar-menu li.active a .menu-icon { color: var(--brand); }
.menu-badge { margin-left: auto; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 999px; min-width: 20px; text-align: center; }
.sidebar-footer { padding: 12px 18px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); display: flex; gap: 14px; }
.sidebar-footer a { color: var(--text-2); }
.sidebar-footer a:hover { color: var(--text); }

.app-header {
  position: sticky; top: 0; z-index: 1020;
  margin-left: var(--sidebar-w);
  height: var(--header-h);
  background: rgba(12, 15, 21, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center;
  padding: 0 24px;
  transition: margin .2s ease;
}
.app-header .hdr-left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.app-header .page-title { font-size: 16px; font-weight: 600; color: var(--text); margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-header .hdr-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.dash-menu-btn { display: none; width: 38px; height: 38px; border-radius: var(--radius-sm); align-items: center; justify-content: center; color: var(--text); background: var(--surface); border: 1px solid var(--line-2); cursor: pointer; flex-shrink: 0; }
.header-btn {
  height: 38px; padding: 0 12px; border-radius: var(--radius-sm); display: inline-flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: 13px; white-space: nowrap;
}
.header-btn:hover { color: var(--text); border-color: #3a4556; }
.header-btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.header-btn.primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.header-balance { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-weight: 600; border: 1px solid var(--line-2); }
.header-balance i { color: var(--green); }
.header-balance small { color: var(--text-3); font-weight: 500; }

.app-content { margin-left: var(--sidebar-w); padding: 24px 24px 90px; transition: margin .2s ease; min-height: calc(100vh - var(--header-h)); }
.app-content .container-fluid { max-width: 1320px; padding: 0; }

.app-sidebar.sidebar-inact { transform: translateX(-100%); }
.app-header.sidebar-inact, .app-content.sidebar-inact { margin-left: 0; }

.app-navbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1025;
  background: rgba(16, 20, 27, 0.97); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.app-navbar .row { margin: 0; }
.app-navbar a { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-3); font-size: 10.5px; font-weight: 600; padding: 6px 0 4px; }
.app-navbar a i { font-size: 17px; }
.app-navbar a.active { color: var(--brand); }
.app-navbar a.mid { position: relative; top: -12px; }
.app-navbar a.mid .mid-btn { width: 48px; height: 48px; border-radius: 50%; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 18px; border: 4px solid var(--bg); }

.d-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.d-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.d-card-head h5, .d-card-head h2, .d-card-head h3 { margin: 0; font-size: 14.5px; font-weight: 600; display: flex; align-items: center; gap: 9px; }
.d-card-head h5 i, .d-card-head h2 i, .d-card-head h3 i { color: var(--text-3); font-size: 13px; }
.d-card-body { padding: 18px; }
.d-card-body.p0, .p0 { padding: 0 !important; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 20px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; gap: 12px; align-items: center; min-width: 0; }
.stat .ic { width: 38px; height: 38px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 15px; background: var(--brand-soft); color: var(--brand); flex-shrink: 0; }
.stat .ic.green { background: var(--green-soft); color: var(--green); }
.stat .ic.amber { background: var(--amber-soft); color: var(--amber); }
.stat .ic.cyan { background: var(--cyan-soft); color: var(--cyan); }
.stat .lbl { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .val { font-size: 17px; font-weight: 700; color: var(--text); line-height: 1.2; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

label, .control-label { font-size: 12.5px; font-weight: 600; color: var(--text-2); margin-bottom: 6px; display: block; }
.form-group { margin-bottom: 16px; }
.form-control, select.form-control, textarea.form-control, .form-control:focus {
  background: var(--bg-2); border: 1px solid var(--line-2); color: var(--text);
  border-radius: var(--radius-sm); height: 42px; padding: 9px 12px; font-size: 14px; box-shadow: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.form-control { height: auto; min-height: 120px; }
.form-control:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.form-control::placeholder { color: var(--text-3); }
.form-control[readonly], .form-control:disabled { background: var(--surface-2); color: var(--text-2); opacity: 1; }
select.form-control { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aab4c3' d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
select.form-control option { background: var(--surface-2); color: var(--text); }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group-append .btn, .input-group-btn .btn { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; height: 42px; }
input[type=checkbox] { accent-color: var(--brand); width: 15px; height: 15px; vertical-align: -2px; margin-right: 6px; }
.help-block, .form-text { color: var(--text-3); font-size: 12px; margin-top: 6px; }
.terms { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--text-2); }
.terms a { margin-left: 4px; }
#fields .form-group label { color: var(--text-2); }
#fields .help-block { color: var(--text-3); }

.btn { border-radius: var(--radius-sm); font-weight: 600; font-size: 13.5px; padding: 9px 16px; border: 1px solid transparent; transition: background .15s ease, border-color .15s ease, color .15s ease; box-shadow: none; line-height: 1.4; }
.btn:focus { box-shadow: 0 0 0 3px var(--brand-soft) !important; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn-primary:hover, .btn-primary:not(:disabled):not(.disabled):active { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.btn-secondary, .btn-default { background: var(--surface-2); border-color: var(--line-2); color: var(--text); }
.btn-secondary:hover, .btn-default:hover { background: var(--surface-3); border-color: #3a4556; color: #fff; }
.btn-success { background: var(--green); border-color: var(--green); color: #06130b; }
.btn-success:hover { background: #1fb254; border-color: #1fb254; color: #06130b; }
.btn-danger { background: var(--red); border-color: var(--red); color: #fff; }
.btn-outline { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-outline:hover { border-color: #3a4556; background: var(--surface); color: #fff; }
.btn-link { color: var(--brand); }
.btn-lg { padding: 12px 20px; font-size: 14.5px; }
.btn-sm, .btn-xs { padding: 6px 11px; font-size: 12.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn i { margin-right: 6px; }
.btn.disabled, .btn:disabled { opacity: .55; }

.alert { border-radius: var(--radius-sm); border: 1px solid; padding: 12px 40px 12px 14px; font-size: 13.5px; position: relative; }
.alert .close { position: absolute; right: 12px; top: 9px; color: inherit; opacity: .6; text-shadow: none; font-size: 20px; }
.alert-success { background: var(--green-soft); border-color: var(--green-line); color: #bdf0cf; }
.alert-danger { background: var(--red-soft); border-color: var(--red-line); color: #ffc9d2; }
.alert-info { background: var(--brand-soft); border-color: var(--brand-line); color: #cbdcff; }
.alert-warning { background: var(--amber-soft); border-color: var(--amber-line); color: #fde3b3; }
.alert h4 { font-size: 15px; margin-bottom: 8px; color: inherit; }

.table { color: var(--text); margin-bottom: 0; }
.table thead th { border: 0; border-bottom: 1px solid var(--line); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 600; padding: 11px 14px; white-space: nowrap; background: var(--bg-2); }
.table td { border-top: 1px solid var(--line); padding: 11px 14px; vertical-align: middle; font-size: 13.5px; color: var(--text-2); }
.table tbody tr:hover td { background: rgba(255,255,255,.015); }
.table td strong { color: var(--text); }
.table-responsive { border-radius: 0 0 var(--radius) var(--radius); }
.nowrap { white-space: nowrap; }
.width-40 { width: 40%; }
.table .link, .table .width-40 { word-break: break-all; }

.nav-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; padding: 0; list-style: none; align-items: center; }
.nav-pills > li > a, .nav-pills .nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: 13px; }
.nav-pills > li > a:hover, .nav-pills .nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-pills > li.active > a, .nav-pills .nav-link.active, .nav-pills > li > a.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.nav-pills > li.pull-right, .nav-pills > li.search { margin-left: auto; }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
.fastside { padding: 12px 14px 0; margin: 0; }
.fastside .nav-item { flex: 1; }
.fastside .nav-link { width: 100%; justify-content: center; }

.dfb-search { display: flex; align-items: center; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 3px 3px 3px 12px; min-width: 240px; }
.dfb-search:focus-within { border-color: var(--brand); }
.dfb-search .dfb-input { flex: 1; background: transparent; border: 0; color: var(--text); outline: none; font-size: 13.5px; min-width: 0; }
.dfb-search .dfb-submit { width: 32px; height: 32px; border-radius: 6px; border: 0; background: var(--surface-3); color: var(--text-2); cursor: pointer; }
.dfb-search .dfb-submit:hover { background: var(--brand); color: #fff; }

.dropdown-menu { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); box-shadow: var(--shadow); padding: 6px; min-width: 240px; max-height: 360px; overflow-y: auto; }
.dropdown-item { color: var(--text-2); border-radius: 6px; padding: 8px 12px; font-size: 13.5px; white-space: normal; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--surface-3); color: #fff; }
.dropdown-item.active { background: var(--brand); color: #fff; }
.dropdown-toggle::after { display: none; }
.select-like { display: flex; align-items: center; justify-content: space-between; gap: 10px; text-align: left; cursor: pointer; }
.select-like .caret-ic { color: var(--text-3); font-size: 12px; }
.fs-twc, .fs-kck, .fs-ig, .fs-yt, .fs-tw, .fs-fb, .fs-telegram, .fs-tiktok, .fs-tktok, .fs-dc, .fs-sp, .fs-generic { margin-right: 7px; display: inline-block; width: 16px; text-align: center; }
.fs-twc { color: #a970ff; } .fs-kck { color: #53fc18; } .fs-ig { color: #ff5c8a; } .fs-yt { color: #ff4b4b; } .fs-tw { color: #7cc4ff; } .fs-fb { color: #5b8cff; } .fs-telegram { color: #38b6ff; } .fs-tiktok, .fs-tktok { color: #ff3b7f; } .fs-dc { color: #7289da; } .fs-sp { color: #1db954; } .fs-generic { color: var(--text-3); }

.badge, .sb-badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 6px; font-size: 11.5px; font-weight: 600; background: var(--surface-3); color: var(--text-2); }
.ordStatus { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 12.5px !important; padding: 5px 11px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); white-space: nowrap; }
.st-ok, .ordStatus.st-ok { background: var(--green-soft); color: var(--green) !important; border-color: var(--green-line); }
.st-warn, .ordStatus.st-warn { background: var(--amber-soft); color: var(--amber) !important; border-color: var(--amber-line); }
.st-info, .ordStatus.st-info { background: var(--brand-soft); color: var(--brand) !important; border-color: var(--brand-line); }
.st-cyan, .ordStatus.st-cyan { background: var(--cyan-soft); color: var(--cyan) !important; border-color: var(--cyan-line); }
.st-bad, .ordStatus.st-bad { background: var(--red-soft); color: var(--red) !important; border-color: var(--red-line); }
.st-muted { color: var(--text-3) !important; }
.text-ok { color: var(--green) !important; }
.text-warn { color: var(--amber) !important; }
.text-bad { color: var(--red) !important; }
.text-info { color: var(--brand) !important; }

.pagination { display: flex; gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; flex-wrap: wrap; }
.pagination li a, .pagination li span { display: inline-flex; min-width: 34px; height: 34px; padding: 0 10px; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: 13px; }
.pagination li a:hover { color: #fff; border-color: #3a4556; }
.pagination li.active a { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }

.modal-content { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); color: var(--text); box-shadow: var(--shadow); }
.modal-header, .modal-footer { border-color: var(--line); }
.modal-title { font-size: 15.5px; font-weight: 600; }
.modal-header .close { color: var(--text); text-shadow: none; opacity: .7; }
.modal-backdrop.show, .modal-backdrop.in { opacity: .7; }

.tooltip-inner { background: #0c0f15; border: 1px solid var(--line-2); color: var(--text); font-size: 12px; border-radius: 6px; }

.orders-btn { padding: 14px 16px 0 !important; }
.orders-btn .nav-pills { margin-bottom: 0; }
.orders-btn .nav-pills > li { margin: 0 !important; }
.orders-btn .nav-pills > li > a { padding: 7px 12px; }
.accordion { padding: 14px 16px 6px; margin-top: 0 !important; }
.accordion .card { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius) !important; margin: 0 0 10px; overflow: hidden; }
.accordion .card .card-header { background: transparent; border: 0; padding: 16px 18px !important; }
.accordion .card .card-header h4 { word-break: break-word; margin-bottom: 4px; font-size: 14.5px !important; font-weight: 600; }
.accordion .card .card-header small { color: var(--text-3); line-height: 1.7; }
.accordion .card .card-header small strong { color: var(--text-2); font-weight: 600; }
.accordion .card .card-body { border-top: 1px solid var(--line); background: var(--surface); color: var(--text-2); }
.accordion .card .card-body a { word-break: break-all; }
.ordNumber { padding-left: 18px !important; font-size: 13px !important; }
.ordNumber strong { color: var(--text-3); font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.ordNumber code { background: var(--surface-3); color: var(--text); font-size: 13px; }
.noorders { text-align: center; padding: 50px 20px; }
.noorders p { color: var(--text-2); }
.noorders-icon { font-size: 44px; color: var(--text-3); margin: 20px 0 16px; }
.order-extra-detail { margin-top: 6px; }
.order-extra-pre { white-space: pre-wrap; word-break: break-word; background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; padding: 8px 10px; font-size: 12px; max-height: 180px; overflow: auto; color: var(--text-2); margin: 4px 0 0; font-family: inherit; }
.order-action-bar { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.order-action-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--line-2) !important; background: var(--surface-2) !important; color: var(--text) !important; font-weight: 600; font-size: 12.5px; cursor: pointer; box-shadow: none !important; transition: background .15s ease, border-color .15s ease; }
.order-action-btn:hover { background: var(--surface-3) !important; border-color: #3a4556 !important; }
.order-action-settings { background: var(--brand) !important; border-color: var(--brand) !important; color: #fff !important; }
.order-action-settings:hover { background: var(--brand-2) !important; border-color: var(--brand-2) !important; }
.order-action-report i { color: var(--amber); }
.btn-copy-inline { color: var(--text-3) !important; background: transparent !important; border: 0 !important; padding: 0 4px !important; cursor: pointer; }
.btn-copy-inline:hover { color: var(--brand) !important; }
[id^="countdownWrapper"] strong { color: var(--text-2) !important; }
[id^="countdownWrapper"] .fa-hourglass-half { color: var(--text-3) !important; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 21px; margin: 0; }
.page-head p { margin: 4px 0 0; color: var(--text-3); font-size: 13px; }

.ticket-message-block { margin-bottom: 14px; }
.ticket-message { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 15px; color: var(--text); font-size: 14px; line-height: 1.6; word-break: break-word; }
.ticket-message-right .ticket-message { background: var(--brand-soft); border-color: var(--brand-line); }
.ticket-message-block .info { font-size: 12px; color: var(--text-3); margin-top: 6px; }
.ticket-message-block .info strong { color: var(--text-2); }
.ticket-message-block .message a { word-break: break-all; }

.faq-ss-tabs .home-ss-tab { border: 1px solid var(--line); border-radius: var(--radius-sm); margin-bottom: 8px; background: var(--bg-2); overflow: hidden; }
.faq-ss-tabs .ss-tab-head { padding: 13px 16px; font-weight: 600; cursor: pointer; color: var(--text); font-size: 13.5px; }
.faq-ss-tabs .ss-tab-head .right-p i { color: var(--text-3); }
.faq-ss-tabs .ss-tab-head .right-p .fa-minus { display: none; }
.faq-ss-tabs .home-ss-tab.active .ss-tab-head .right-p .fa-plus { display: none; }
.faq-ss-tabs .home-ss-tab.active .ss-tab-head .right-p .fa-minus { display: inline; }
.faq-ss-tabs .ss-tab-content { display: none; padding: 0 16px 16px; color: var(--text-2); font-size: 13.5px; line-height: 1.65; }

.rich-content, .rtl-content { color: var(--text-2); line-height: 1.7; }
.rich-content h1, .rich-content h2, .rich-content h3 { margin-top: 1.2em; }
.rich-content ul { padding-left: 20px; }
.rich-content img { border-radius: var(--radius-sm); }

#service-table td.service-name, .service-name { color: var(--text); font-weight: 500; }
#service-table tr[data-filter-table-category-id] td[colspan] { background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 13px; padding: 10px 14px; }
#service-table tr[data-filter-table-category-id] td[colspan] strong { color: var(--text); }
#service-table tr[data-filter-table-category-id] td[colspan] span { color: var(--text-3); margin-right: 4px; }
.favorite-active .fa-star { color: var(--amber); }
[data-favorite-service-id] { cursor: pointer; color: var(--text-3); }
.rate-pill { display: inline-block; padding: 3px 9px; border-radius: 6px; background: var(--green-soft); color: var(--green); font-weight: 600; font-size: 12.5px; white-space: nowrap; }
.services-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.services-toolbar .dfb-search { flex: 1; min-width: 220px; }

.platform-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.platform-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 11px 5px 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text-2); font-weight: 600; font-size: 12.5px; cursor: pointer; transition: all .15s ease; }
.platform-chip:hover { border-color: #3a4556; color: var(--text); }
.platform-chip.active { background: var(--brand-soft); border-color: var(--brand-line); color: var(--text); }
.platform-chip .chip-icon { width: 22px; height: 22px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; }
.platform-chip .chip-count { font-size: 11px; color: var(--text-3); }
.platform-empty { display: none; margin-top: 8px; font-size: 12.5px; color: var(--text-3); }

.order-info-list { list-style: none; padding: 0; margin: 0; }
.order-info-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--text-2); }
.order-info-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.order-info-list li:first-child { padding-top: 0; }
.order-info-list li i { color: var(--brand); width: 18px; text-align: center; margin-top: 2px; font-style: normal; font-weight: 700; }
.order-info-list li strong { display: block; color: var(--text); font-size: 13.5px; margin-bottom: 2px; }
#search-results { margin-top: 8px; background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); max-height: 320px; overflow-y: auto; box-shadow: var(--shadow); }
.search-result-item { padding: 10px 14px; cursor: pointer; border-bottom: 1px solid var(--line); }
.search-result-item:last-child { border-bottom: 0; }
.search-result-item:hover { background: var(--surface-3); }
.search-result-item .sr-id { color: var(--brand); font-weight: 600; font-size: 12px; }
.search-result-item .sr-name { color: var(--text); font-size: 13px; }
.search-result-item .sr-cat { color: var(--text-3); font-size: 11.5px; }
.service-desc-box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; color: var(--text-2); font-size: 13.5px; line-height: 1.65; max-height: 260px; overflow-y: auto; }

.quick-amounts { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; margin-top: 12px; }
.btn-quick-amount { background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); padding: 9px 6px; color: var(--text); font-weight: 600; cursor: pointer; transition: all .15s ease; }
.btn-quick-amount:hover { border-color: #3a4556; }
.btn-quick-amount.active { background: var(--brand); border-color: var(--brand); color: #fff; }

.api-table td:first-child { color: var(--text); font-weight: 600; width: 34%; }
pre { background: var(--bg-2); border: 1px solid var(--line); color: #cfd9ea; border-radius: var(--radius-sm); padding: 14px; font-size: 12.5px; overflow: auto; }

.text-muted { color: var(--text-3) !important; }
.mt-4 { margin-top: 1.5rem !important; }
.card-note { font-size: 12.5px; color: var(--text-3); }
.divider { height: 1px; background: var(--line); margin: 16px 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span:first-child { color: var(--text-3); }
.kv span:last-child { color: var(--text); font-weight: 600; text-align: right; word-break: break-all; }

.toast-container { position: fixed; top: 18px; right: 18px; z-index: 9998; max-width: 360px; }
.toast-notification { background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 10px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 12px; animation: slideInRight .2s ease; border-left: 3px solid var(--brand); font-size: 13.5px; }
.toast-notification.success { border-left-color: var(--green); }
.toast-notification.error { border-left-color: var(--red); }
.toast-notification.warning { border-left-color: var(--amber); }
@keyframes slideInRight { from { transform: translateX(30px); opacity: 0; } to { transform: none; opacity: 1; } }

body.home-body { background: var(--bg); }
.site-header { position: sticky; top: 0; z-index: 1020; height: 66px; display: flex; align-items: center; background: rgba(12,15,21,.9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.site-header .site-name a { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.site-header .site-name img { max-height: 36px; }
.site-header .site-name .logo-mark { width: 32px; height: 32px; border-radius: 8px; background: var(--brand); display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: 14px; }
.site-header .header-menu { display: flex; align-items: center; gap: 4px; }
.site-header .header-menu a { color: var(--text-2); font-weight: 500; padding: 8px 12px; border-radius: var(--radius-sm); font-size: 13.5px; }
.site-header .header-menu a:hover { color: var(--text); background: var(--surface); }
.site-header .header-menu a.btn-primary { color: #fff; background: var(--brand); border-color: var(--brand); font-weight: 600; padding: 8px 14px; }
.site-header .header-menu a.btn-primary:hover { background: var(--brand-2); border-color: var(--brand-2); color: #fff; }
.site-header .header-menu .dropdown-toggle { color: var(--text-2); }

.hero { padding: 72px 0 48px; border-bottom: 1px solid var(--line); }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); margin-bottom: 18px; }
.hero .eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--brand); }
.hero h1 { font-size: 40px; line-height: 1.12; letter-spacing: -0.03em; margin-bottom: 16px; font-weight: 700; }
.hero h1 span { color: var(--brand); }
.hero .lead { font-size: 16px; color: var(--text-2); max-width: 520px; line-height: 1.6; }
.hero .hl-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.hero-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 36px; max-width: 560px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.hero-points .hp { padding: 14px 16px; border-right: 1px solid var(--line); }
.hero-points .hp:last-child { border-right: 0; }
.hero-points .hp b { display: block; font-size: 15px; color: var(--text); font-weight: 600; }
.hero-points .hp small { color: var(--text-3); font-size: 12px; }
.auth-card { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 26px; box-shadow: var(--shadow); position: relative; }
.auth-card h2 { font-size: 20px; margin-bottom: 4px; }
.auth-card .sub { color: var(--text-3); font-size: 13px; margin-bottom: 20px; }
.auth-card .form-control { height: 44px; }
.auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 4px 0 14px; font-size: 13px; }
.auth-foot label { margin: 0; font-weight: 500; display: inline-flex; align-items: center; }
.auth-switch { text-align: center; margin-top: 18px; color: var(--text-3); font-size: 13.5px; }
.auth-page { max-width: 460px; margin: 40px auto; }

.section { padding: 56px 0; border-bottom: 1px solid var(--line); }
.section h2 { font-size: 26px; letter-spacing: -0.02em; margin-bottom: 8px; }
.section .sub { color: var(--text-2); margin-bottom: 28px; max-width: 620px; font-size: 15px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 26px; }
.section-head h2, .section-head .sub { margin-bottom: 0; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.step .n { display: inline-flex; width: 28px; height: 28px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); align-items: center; justify-content: center; font-weight: 700; font-size: 13px; margin-bottom: 14px; }
.step h3 { font-size: 15px; margin-bottom: 6px; }
.step p { font-size: 13.5px; margin: 0; }
.feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.feature { background: var(--surface); padding: 20px 22px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); display: flex; gap: 14px; }
.feature:nth-child(2n) { border-right: 0; }
.feature .fi { width: 36px; height: 36px; border-radius: var(--radius-sm); background: var(--surface-3); color: var(--text); display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; }
.feature h3 { font-size: 14.5px; margin-bottom: 4px; }
.feature p { font-size: 13.5px; margin: 0; }
.platform-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.platform-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; text-align: center; color: var(--text-2); font-weight: 600; font-size: 13px; transition: border-color .15s ease, color .15s ease; }
.platform-card i { display: block; font-size: 22px; margin-bottom: 8px; }
.platform-card:hover { border-color: #3a4556; color: var(--text); }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
.faq-item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq-item h3 { font-size: 14.5px; margin-bottom: 6px; }
.faq-item p { font-size: 13.5px; margin: 0; }
.cta-band { padding: 48px 0; }
.cta-band .inner { background: var(--surface); border: 1px solid var(--line-2); border-radius: 14px; padding: 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-band h2 { font-size: 22px; margin: 0 0 4px; }
.cta-band p { margin: 0; }
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--text-3); font-size: 13px; }
.site-footer .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; margin-bottom: 26px; }
.site-footer h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-3); margin-bottom: 12px; font-weight: 600; }
.site-footer .brand { color: var(--text); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.site-footer .brand img { max-height: 30px; }
.site-footer p { font-size: 13px; max-width: 320px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
.site-footer .bottom { border-top: 1px solid var(--line); padding-top: 18px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

.viewer-settings-panel { background: var(--surface) !important; border: 1px solid var(--line-2) !important; box-shadow: none !important; border-radius: var(--radius) !important; }
.vsp-header h5 { color: var(--text) !important; font-weight: 600 !important; }
.vsp-header h5 i, .vsp-control-head i, .vsp-inline-toggle i, .vsp-channel i { color: var(--brand) !important; }
.vsp-control-card, .vsp-inline-toggle, .vsp-channel, .vsp-status-row { background: var(--bg-2) !important; border: 1px solid var(--line) !important; color: var(--text) !important; border-radius: var(--radius-sm) !important; }
.vsp-control-head, .vsp-inline-toggle { color: var(--text) !important; }
.vsp-control-max { color: var(--text-3) !important; }
.vsp-input { background: var(--bg) !important; border-color: var(--line-2) !important; color: var(--text) !important; }
.vsp-control-value, .vsp-order-tag { background: var(--brand) !important; box-shadow: none !important; }
.vsp-save-btn { background: var(--brand) !important; box-shadow: none !important; }
.vsp-save-btn:hover { background: var(--brand-2) !important; }
.vsp-footer { border-top-color: var(--line) !important; }
.vsp-footer .vsp-meta { color: var(--text-3) !important; }
.vsp-status-row { box-shadow: inset 3px 0 0 var(--green) !important; }
.vsp-status-btn { color: var(--green) !important; border-color: var(--green-line) !important; background: var(--green-soft) !important; }
.vsp-channel-edit-btn { color: var(--brand) !important; border-color: var(--brand-line) !important; background: var(--brand-soft) !important; }
.vsp-mini-btn { color: var(--brand) !important; border-color: var(--line-2) !important; }

@media (max-width: 1199px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .platform-grid { grid-template-columns: repeat(3, 1fr); }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 991px) {
  .app-sidebar { transform: translateX(-100%); width: 280px; }
  .app-sidebar.sidebar-inact { transform: none; box-shadow: 0 0 0 100vw rgba(0,0,0,.55); }
  .app-header, .app-content { margin-left: 0 !important; }
  .dash-menu-btn { display: inline-flex; }
  .app-navbar { display: block; }
  .app-header { padding: 0 14px; }
  .app-content { padding: 16px 14px 100px; }
  .hero { padding: 32px 0 28px; }
  .hero h1 { font-size: 30px; }
  .hero-points { max-width: none; }
  .site-header .header-menu a:not(.btn-primary) { display: none; }
  .auth-card { margin-bottom: 30px; }
  .steps, .feature-list, .faq-grid { grid-template-columns: 1fr; }
  .feature { border-right: 0; }
  .section { padding: 40px 0; }
  .section h2 { font-size: 22px; }
}
@media (max-width: 767px) {
  .d-card-body { padding: 16px; }
  .d-card-head { padding: 13px 16px; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat .val { font-size: 15px; }
  .platform-grid { grid-template-columns: 1fr 1fr 1fr; }
  .nav-pills > li.pull-right, .nav-pills > li.search { margin-left: 0; width: 100%; }
  .dfb-search { width: 100%; min-width: 0; }
  .header-balance small { display: none; }
  .page-head h1 { font-size: 19px; }
  .accordion { padding: 12px 12px 4px; }
  .accordion .card .card-header { padding: 14px !important; }
  .ordNumber { padding-left: 15px !important; }
  .order-action-bar { justify-content: flex-start; margin-top: 10px; }
  .site-footer .cols { grid-template-columns: 1fr; }
  .cta-band .inner { padding: 24px; }
  .table-mobile-cards thead { display: none; }
  .table-mobile-cards tbody tr { display: block; border: 1px solid var(--line); border-radius: var(--radius); margin: 10px 12px; background: var(--surface-2); }
  .table-mobile-cards tbody td { display: flex; justify-content: space-between; gap: 12px; border: 0; border-bottom: 1px solid var(--line); padding: 9px 12px; text-align: right; }
  .table-mobile-cards tbody td:last-child { border-bottom: 0; }
  .table-mobile-cards tbody td::before { content: attr(data-label); color: var(--text-3); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; text-align: left; }
  .table-mobile-cards tbody td[colspan] { display: block; text-align: left; }
  .table-mobile-cards tbody td[colspan]::before { display: none; }
  .table-mobile-cards tbody td.service-name { display: block; text-align: left; font-weight: 600; }
  .table-mobile-cards tbody td.service-name::before { display: block; margin-bottom: 4px; }
}
@media (max-width: 480px) {
  .hero-points { grid-template-columns: 1fr; }
  .hero-points .hp { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-points .hp:last-child { border-bottom: 0; }
  .auth-card { padding: 20px; }
  .platform-grid { grid-template-columns: 1fr 1fr; }
  .hero .hl-btns .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

[id^="endDateWrapper"] { white-space: nowrap; }
.sb-badge { white-space: nowrap; }
