/* =========================================================
   Panel UI — orange & white (user + admin)
   Loaded AFTER blithe css. Keeps all blithe JS hooks working.
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@600;700;800&family=DM+Sans:wght@400;500;600&family=Hind+Siliguri:wght@400;500;600&display=swap');

:root {
  --brand: #0d6efd;
  --brand-d: #0b5ed7;
  --brand-l: #3d8bfd;
  --brand-soft: #eaf2ff;
  --brand-soft-2: #d6e6ff;
  --ink: #0f1b3d;
  --ink-2: #475569;
  --ink-3: #8a94a8;
  --line: #e3e9f4;
  --paper: #f5f8ff;
  --card: #ffffff;
  --ok: #16a34a;   --ok-soft: #e4f6ea;
  --wait: #d99100; --wait-soft: #fff4d6;
  --bad: #dc2626;  --bad-soft: #fde8e8;
  --info: #3b82f6; --info-soft: #e7f0ff;
  --glass: rgba(255,255,255,.62);
  --glass-line: rgba(255,255,255,.75);
  --r-xl: 22px; --r-lg: 16px; --r-md: 12px; --r-sm: 9px;
  --f-head: 'Plus Jakarta Sans', 'Hind Siliguri', system-ui, sans-serif;
  --f-body: 'Inter', 'Hind Siliguri', system-ui, sans-serif;
  --shadow-s: 0 1px 2px rgba(15,40,90,.05);
  --shadow-m: 0 10px 30px rgba(15,40,90,.10);
}
html[data-theme="dark"], body.dark, body.dark-theme {
  --ink:#eaf0fb; --ink-2:#b6c2d9; --ink-3:#8a94a8; --line:#243050; --paper:#0b1220; --card:#111a2e;
  --brand-soft:#3a2312; --brand-soft-2:#4a2c16; --ok-soft:#12301d; --wait-soft:#3a2d0c; --bad-soft:#3a1717; --info-soft:#14233f;
  --glass: rgba(31,22,16,.62); --glass-line: rgba(255,255,255,.08);
}

body {
  font-family: var(--f-body) !important; color: var(--ink); font-size: 14.5px; -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(900px 380px at 90% -120px, rgba(13,110,253,.10), transparent 60%),
    var(--paper) !important;
  background-attachment: fixed !important;
}
h1,h2,h3,h4,h5,h6,.section-title { font-family: var(--f-head); color: var(--ink); letter-spacing: -.01em; }
a { color: var(--brand-d); } a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
::selection { background: var(--brand-soft-2); }

/* ---------- floating glass top bar (all four corners rounded) ---------- */
.navbar-bg { display: none !important; }
.main-navbar, .navbar.main-navbar {
  position: fixed !important; top: 12px; left: 282px; right: 16px; width: auto;
  height: 60px; padding: 0 12px 0 8px; margin: 0;
  border-radius: 20px;
  background: var(--glass) !important;
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-line);
  box-shadow: 0 8px 28px rgba(80,40,5,.10), inset 0 1px 0 rgba(255,255,255,.65) !important;
  z-index: 880;
}
.main-navbar .nav-link { color: var(--ink-2) !important; border-radius: 12px; width: 40px; height: 40px; padding: 0; display: inline-grid; place-items: center; }
.main-navbar .nav-link:hover { background: rgba(13,110,253,.12); color: var(--brand-d) !important; }
.main-navbar .nav-link svg { width: 20px; height: 20px; }
.main-navbar .user-img-radious-style { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--brand-soft-2); }
.main-navbar .headerBadge1 { background: var(--brand) !important; border-radius: 50%; width: 9px; height: 9px; padding: 0; top: 8px; right: 8px; }
.main-navbar .dropdown-menu { margin-top: 12px; }

.dropdown-menu { border: 1px solid var(--line) !important; border-radius: 16px !important; box-shadow: var(--shadow-m) !important; background: var(--card); padding: 8px; }
.dropdown-item { color: var(--ink-2); border-radius: 10px; padding: 9px 12px; }
.dropdown-item:hover, .dropdown-item.active { background: var(--brand-soft); color: var(--brand-d); }
.dropdown-title { font-family: var(--f-head); font-weight: 700; padding: 8px 12px; color: var(--ink); }

/* ---------- side drawer (white, grouped) ---------- */
.main-sidebar, .main-sidebar aside, .main-sidebar #sidebar-wrapper {
  background: var(--card) !important; box-shadow: none !important; width: 270px;
}
.main-sidebar { border-right: 1px solid var(--line); z-index: 900; }
.main-sidebar .sidebar-brand { background: transparent !important; height: 72px; border-bottom: 1px solid var(--line); display: flex; align-items: center; padding: 0 22px; }
.main-sidebar .header-logo { max-height: 36px; width: auto; }
.sidebar-user { margin: 16px 14px 4px; padding: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); display: flex; gap: 12px; align-items: center; }
.sidebar-user-picture img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--brand-soft-2); }
.sidebar-user .user-name { font-family: var(--f-head); font-weight: 700; font-size: 15px; color: var(--ink); }
.sidebar-user .user-role { color: var(--ink-3); font-size: 12px; }
.sidebar-userpic-btn { display: flex; gap: 2px; margin-top: 4px; }
.sidebar-userpic-btn a { color: var(--ink-3) !important; padding: 3px 6px; border-radius: 8px; }
.sidebar-userpic-btn a:hover { background: var(--brand-soft); color: var(--brand-d) !important; }
.sidebar-userpic-btn svg { width: 15px; height: 15px; }

.sidebar-menu { padding: 6px 12px 28px; }
.sidebar-menu li.menu-header { color: var(--ink-3); font-size: 11.5px; font-weight: 700; padding: 20px 12px 8px; letter-spacing: .08em; text-transform: uppercase; }
.sidebar-menu li a { color: var(--ink-2) !important; border-radius: 12px; height: 44px; padding: 0 12px; margin: 2px 0; display: flex; align-items: center; font-weight: 500; position: relative; }
.sidebar-menu li a svg, .sidebar-menu li a i { width: 19px; height: 19px; margin-right: 12px; color: var(--ink-3); }
.sidebar-menu li a:hover { background: var(--brand-soft) !important; color: var(--brand-d) !important; }
.sidebar-menu li a:hover svg, .sidebar-menu li a:hover i { color: var(--brand); }
.sidebar-menu li.active > a, .sidebar-menu li a.active { background: var(--brand-soft) !important; color: var(--brand-d) !important; font-weight: 600; box-shadow: none; }
.sidebar-menu li.active > a::before { content: ''; position: absolute; left: -12px; top: 10px; bottom: 10px; width: 4px; border-radius: 0 4px 4px 0; background: var(--brand); }
.sidebar-menu li.active > a svg, .sidebar-menu li.active > a i { color: var(--brand); }
.sidebar-menu li ul.dropdown-menu { background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 0 0 20px; }
.sidebar-menu li ul.dropdown-menu li a { height: 38px; font-weight: 400; }
.sidebar-menu li ul.dropdown-menu li a::after { display: none; }
.sidebar-menu li ul.dropdown-menu li.active a { background: transparent !important; color: var(--brand-d) !important; font-weight: 600; }
.sidebar-menu li ul.dropdown-menu li.active a::before { display: none; }

/* ---------- page area ---------- */
.main-content { padding: 92px 24px 40px 294px; }
.section { margin-top: 0; }
.section-header { background: transparent !important; box-shadow: none !important; padding: 8px 0 18px !important; margin: 0 0 4px !important; border: 0 !important; }
.section-header h1 { font-family: var(--f-head); font-size: 26px; font-weight: 800; color: var(--ink); }
.card { background: var(--card) !important; border: 1px solid var(--line) !important; border-radius: var(--r-xl) !important; box-shadow: var(--shadow-s) !important; }
.card .card-header { background: transparent; border-bottom: 1px solid var(--line); padding: 18px 24px; min-height: 0; }
.card .card-header h4 { font-size: 16.5px; font-weight: 700; color: var(--ink); line-height: 1.4; }
.card .card-footer { background: var(--paper); border-top: 1px solid var(--line); border-radius: 0 0 var(--r-xl) var(--r-xl); }
.card .card-body { padding: 22px 24px; }

/* ---------- controls ---------- */
.btn { border-radius: 12px; font-weight: 600; letter-spacing: 0; padding: 10px 18px; transition: transform .12s, box-shadow .12s, background .12s; }
.btn:active { transform: translateY(1px); }
.btn-primary, .btn-modern, .btn-info { background: var(--brand) !important; border: 1px solid var(--brand-d) !important; color: #fff !important; box-shadow: none !important; }
.btn-primary:hover, .btn-modern:hover, .btn-info:hover { background: var(--brand-d) !important; box-shadow: none !important; }
.btn-outline-primary, .btn-light, .btn-secondary { background: var(--card) !important; color: var(--ink) !important; border: 1px solid var(--line) !important; box-shadow: none !important; }
.btn-outline-primary:hover, .btn-light:hover, .btn-secondary:hover { border-color: var(--brand) !important; color: var(--brand-d) !important; background: var(--brand-soft) !important; }
.btn-danger { background: var(--bad) !important; border-color: var(--bad) !important; }
.btn-success { background: var(--ok) !important; border-color: var(--ok) !important; }
.btn-warning { background: var(--wait) !important; border-color: var(--wait) !important; color: #fff !important; }
.btn-sm { padding: 6px 12px; border-radius: 10px; }
.form-control, .form-select, .select2-container--default .select2-selection--single, textarea.form-control {
  border: 1px solid var(--line) !important; border-radius: 12px !important; background: var(--card) !important; color: var(--ink) !important; min-height: 46px; box-shadow: none !important;
}
.form-control::placeholder { color: var(--ink-3); }
.form-control:focus, .form-select:focus { border-color: var(--brand) !important; box-shadow: 0 0 0 4px rgba(13,110,253,.14) !important; }
.input-group-text { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); }
label, .form-label { font-weight: 600; color: var(--ink-2); font-size: 13px; margin-bottom: 6px; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.badge { border-radius: 999px; font-weight: 600; padding: 5px 11px; }
.badge.bg-success, .badge-success, .badge.bg-primary { background: var(--ok-soft) !important; color: var(--ok) !important; }
.badge.bg-danger, .badge-danger { background: var(--bad-soft) !important; color: var(--bad) !important; }
.badge.bg-warning, .badge-warning { background: var(--wait-soft) !important; color: var(--wait) !important; }
.badge.bg-info, .badge-info { background: var(--info-soft) !important; color: var(--info) !important; }
.alert { border-radius: 14px; border: 1px solid var(--line); }
.nav-pills .nav-link, .nav-tabs .nav-link { border-radius: 12px; color: var(--ink-2); font-weight: 600; }
.nav-pills .nav-link.active, .nav-tabs .nav-link.active { background: var(--brand-soft) !important; color: var(--brand-d) !important; border-color: var(--brand) !important; }

/* ---------- tables ---------- */
.table { color: var(--ink); }
.table thead th { background: var(--paper) !important; color: var(--ink-3); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-bottom: 1px solid var(--line) !important; white-space: nowrap; }
.table td, .table th { border-color: var(--line) !important; vertical-align: middle; padding: 14px 16px; }
.table-striped > tbody > tr:nth-of-type(odd) > * { background: transparent !important; }
.table tbody tr:hover > * { background: var(--brand-soft) !important; }
.table-responsive { border-radius: var(--r-lg); }
.page-link { border-radius: 10px !important; color: var(--ink-2); border-color: var(--line); margin: 0 2px; }
.page-item.active .page-link { background: var(--brand); border-color: var(--brand); color: #fff; }
.modal-content { border: 0; border-radius: 22px; box-shadow: 0 30px 80px rgba(15,40,90,.28); background: var(--card); }
.modal-header { border-bottom: 1px solid var(--line); padding: 18px 24px; }
.modal-footer { border-top: 1px solid var(--line); }
.modal-backdrop.show { opacity: .35; }
.dataTables_wrapper .dataTables_filter input, .dataTables_wrapper .dataTables_length select { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; }

/* =========================================================
   Dashboard
   ========================================================= */
.pg-head { margin: 0 0 18px; }
.pg-head h1 { font-size: 28px; font-weight: 800; margin: 0; }
.pg-head p { color: var(--ink-2); margin: 4px 0 0; }
.pg-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 14px; }
.pg-actions .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pg-line { height: 1px; background: var(--line); margin: 14px 0 16px; border: 0; }

.seg { display: flex; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 6px; overflow-x: auto; scrollbar-width: none; margin-bottom: 18px; box-shadow: var(--shadow-s); }
.seg::-webkit-scrollbar { display: none; }
.seg a { flex: none; padding: 10px 18px; border-radius: 12px; color: var(--ink-2); font-weight: 600; white-space: nowrap; }
.seg a:hover { color: var(--brand-d); }
.seg a.active { background: var(--brand); color: #fff; }

.stat { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 20px 22px; box-shadow: var(--shadow-s); overflow: hidden; }
.stat .k { color: var(--ink-2); font-weight: 500; }
.stat .ico { position: absolute; right: 18px; top: 16px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-d); }
.stat .ico svg { width: 19px; height: 19px; }
.stat .v { font-family: var(--f-head); font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin: 6px 0 4px; line-height: 1.15; }
.stat .s { color: var(--ink-3); font-size: 13.5px; }
.stat .s b, .stat .s span { color: var(--ink); font-weight: 600; }
.stat.is-balance { border-left: 5px solid var(--brand); background: #fff; }
.stat.is-balance .v { color: var(--brand-d); font-size: 34px; }
.stat.is-balance .s { display: inline-flex; gap: 6px; align-items: center; color: var(--brand-d); font-weight: 500; }
.stat.is-ok .ico { background: var(--ok-soft); color: var(--ok); }
.stat.is-wait .ico { background: var(--wait-soft); color: var(--wait); }
.stat.is-pay .ico { background: var(--info-soft); color: var(--info); }
.stat-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; }
@media (min-width: 720px) { .stat-grid { grid-template-columns: repeat(2, 1fr); } .pg-actions { display: flex; } }
@media (min-width: 1200px) { .stat-grid.cols-4 { grid-template-columns: 1.3fr 1fr 1fr 1fr; } }

.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-s); margin-bottom: 18px; overflow: hidden; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-head h3 { font-size: 17px; font-weight: 800; margin: 0; }
.panel-head small { display: block; color: var(--ink-3); font-weight: 400; font-size: 13.5px; margin-top: 2px; }
.panel-body { padding: 18px 22px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--brand-soft); color: var(--brand-d); font-weight: 600; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; }
.chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.dash-two { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 1100px) { .dash-two { grid-template-columns: 1.6fr 1fr; } }

.empty { text-align: center; color: var(--ink-3); padding: 38px 12px; }
.empty .ei { width: 56px; height: 56px; border-radius: 18px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin: 0 auto 12px; }
.empty .ei svg { width: 26px; height: 26px; }
.empty h4 { font-size: 17px; margin: 0 0 4px; color: var(--ink-2); }

.rt-row { display: flex; align-items: center; gap: 12px; padding: 14px 22px; border-bottom: 1px solid var(--line); }
.rt-row:last-child { border-bottom: 0; }
.rt-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.rt-dot.ok { background: var(--ok); } .rt-dot.wait { background: var(--wait); }
.rt-main { flex: 1; min-width: 0; }
.rt-main b { display: block; font-weight: 600; } .rt-main small { color: var(--ink-3); }
.rt-amt { text-align: right; font-weight: 700; font-family: var(--f-head); }
.rt-amt small { display: block; font-weight: 600; font-family: var(--f-body); font-size: 12px; }
.rt-amt small.ok { color: var(--ok); } .rt-amt small.wait { color: var(--wait); }
.panel-foot { padding: 12px 22px; background: var(--paper); border-top: 1px solid var(--line); display: flex; gap: 18px; justify-content: flex-end; color: var(--ink-2); font-size: 13px; }
.panel-foot i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

.ch-list .product-list { display: flex; gap: 14px; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); }
.ch-list .product-list:last-child { border-bottom: 0; }
.ch-list .product-list img { border-radius: 12px; }
.ch-list .set-flex { flex: 1; min-width: 0; }
.ch-list .budget-price { position: relative; background: var(--paper); border-radius: 8px; height: 24px; margin-top: 6px; overflow: hidden; }
.ch-list .budget-price-square { height: 100%; border-radius: 8px; opacity: .92; }
.ch-list .budget-price-square.bg-primary { background: var(--brand) !important; }
.ch-list .budget-price-square.bg-danger { background: var(--wait) !important; }
.ch-list .budget-price-label { position: absolute; left: 10px; top: 0; line-height: 24px; font-size: 12px; font-weight: 700; color: var(--ink); }

/* ---------- collapsed rail + mobile drawer ---------- */
.sidebar-mini .main-navbar, .sidebar-mini .navbar.main-navbar { left: 82px; }
.sidebar-mini .main-content { padding-left: 98px; }
body.sidebar-gone .main-sidebar { left: -270px; }
@media (max-width: 1024px) {
  .main-navbar, .navbar.main-navbar, .sidebar-mini .main-navbar { left: 12px; right: 12px; }
  .main-content, .sidebar-mini .main-content { padding: 88px 14px 30px 14px; }
}
@media (max-width: 720px) {
  .pg-head h1 { font-size: 25px; }
  .stat .v { font-size: 26px; }
  .card .card-body { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- plans ---------- */
.plan-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 760px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px 26px 24px; box-shadow: var(--shadow-s); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s, border-color .15s; }
.plan-card:hover { border-color: var(--brand-soft-2); }
.plan-card.is-active { border: 2px solid var(--brand); background: #fff; }
.plan-flag { position: absolute; top: -13px; right: 22px; background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; letter-spacing: .04em; text-transform: uppercase; padding: 6px 14px; border-radius: 999px; display: inline-flex; gap: 6px; align-items: center; }
.plan-name { font-size: 22px; font-weight: 800; margin: 0 0 6px; text-transform: capitalize; }
.plan-desc { color: var(--ink-2); margin: 0 0 18px; min-height: 40px; }
.plan-price { padding-bottom: 18px; border-bottom: 1px dashed var(--line); margin-bottom: 18px; }
.plan-price .old { color: var(--bad); text-decoration: line-through; font-weight: 500; }
.plan-price .now { font-family: var(--f-head); font-weight: 800; font-size: 40px; letter-spacing: -.03em; color: var(--brand-d); line-height: 1.1; }
.plan-price .dur { color: var(--ink-3); font-weight: 600; margin-top: 4px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--line); color: var(--ink); font-weight: 500; }
.plan-list li:last-child { border-bottom: 0; }
.plan-list .pi { width: 32px; height: 32px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-d); display: grid; place-items: center; flex: none; }
.plan-list .pi svg { width: 16px; height: 16px; }
.plan-cta .btn, .plan-cta a, .plan-cta button { width: 100%; justify-content: center; text-align: center; display: block; }

/* generic bootstrap color helpers -> orange */
.text-primary { color: var(--brand-d) !important; }
.bg-primary { background-color: var(--brand) !important; }
.border-primary { border-color: var(--brand) !important; }
.btn-check:checked + .btn, .page-item.active .page-link { background: var(--brand); border-color: var(--brand); }
.progress-bar { background-color: var(--brand); }
.form-switch .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.select2-container--default .select2-results__option--highlighted[aria-selected] { background: var(--brand) !important; }

/* ---------- profile ---------- */
.pf-grid { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 992px) { .pf-grid { grid-template-columns: 340px 1fr; } }
.pf-card { text-align: center; }
.pf-avatar img { width: 104px; height: 104px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 0 0 3px var(--brand-soft-2), var(--shadow-m); margin-bottom: 14px; }
.pf-name { font-size: 20px; font-weight: 800; margin: 0; }
.pf-mail { color: var(--ink-3); margin: 2px 0 10px; word-break: break-all; }
.pf-status { margin-bottom: 14px; }
.pf-rows { border-top: 1px solid var(--line); margin: 6px 0 16px; text-align: left; }
.pf-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pf-rows span { color: var(--ink-3); } .pf-rows b { font-weight: 700; }
.btn.pf-logout { width: 100%; background: var(--bad-soft) !important; color: var(--bad) !important; border: 1px solid transparent !important; box-shadow: none !important; display: inline-flex; gap: 8px; align-items: center; justify-content: center; }
.pf-tabs { gap: 8px; margin-bottom: 16px !important; }
.pf-tabs .nav-link { flex: 1; display: flex; gap: 8px; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); padding: 12px; text-align: center; }
.profile-photo { position: relative; display: inline-block; cursor: pointer; }
.profile-photo img { border: 3px solid #fff; box-shadow: 0 0 0 2px var(--brand-soft-2); }
.profile-photo .myCl { position: absolute; right: -2px; bottom: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; border: 2px solid #fff; }

/* ---------- add funds modal ---------- */
.af-brand { display: flex; gap: 14px; align-items: center; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.af-brand img { width: 92px; height: auto; border-radius: 12px; }
.af-brand b { display: block; font-family: var(--f-head); font-size: 17px; }
.af-brand small { color: var(--ink-3); }
.af-limits { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 13px; margin: 8px 0 18px; }
.af-limits b { color: var(--ink); }
.af-presets > span { display: block; font-weight: 600; margin-bottom: 8px; }
.af-presets > div { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.af-consent { display: flex; gap: 10px; align-items: flex-start; background: var(--brand-soft); border: 1px solid var(--brand-soft-2); border-left: 4px solid var(--brand); border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; color: var(--ink-2); }
.af-consent input { margin-top: 4px; accent-color: var(--brand); }
.af-actions { display: flex; gap: 10px; }

/* ---------- shared helpers: filter cards, empty items, switches ---------- */
.data-empty .empty { background: var(--card); border: 1px dashed var(--brand-soft-2); border-radius: var(--r-xl); padding: 48px 16px; }
.page-title { font-family: var(--f-head); font-size: 26px; font-weight: 800; margin: 6px 0 18px; }
.search-area .form-control { min-height: 44px; }
.btn-group .btn, .filter-btn, .btn-filter { border-radius: 12px; margin: 0 4px 6px 0; }
.custom-switch-input:checked ~ .custom-switch-indicator { background: var(--brand) !important; border-color: var(--brand) !important; }
.card-table thead th { padding-top: 14px; padding-bottom: 14px; }
.card .card-title { font-family: var(--f-head); font-weight: 800; }
.breadcrumb-item.active, .breadcrumb a { color: var(--brand-d); }
#loader { background: var(--paper) !important; }

/* bootstrap variable remap */
:root { --bs-primary: #0d6efd; --bs-primary-rgb: 249,115,22; --bs-link-color: #0b5ed7; --bs-link-hover-color: #0d6efd; --bs-body-font-family: var(--f-body); }
.empty .ei i { font-size: 24px; }
.link-primary { color: var(--brand-d) !important; }
.btn-link { color: var(--brand-d); }
.nav-link { color: var(--ink-2); }
.list-group-item.active { background: var(--brand); border-color: var(--brand); }
.bg-label-primary { background: var(--brand-soft) !important; color: var(--brand-d) !important; }
.fa-spin, .spinner-border { color: var(--brand); }

/* admin dashboard gradient cards -> orange family */
.l-bg-style1 { background: linear-gradient(135deg, #3d8bfd, #0b5ed7) !important; color: #fff; }
.l-bg-style2 { background: linear-gradient(135deg, #6ea8fe, #0a58ca) !important; color: #fff; }
.l-bg-style3 { background: linear-gradient(135deg, #0d6efd, #084298) !important; color: #fff; }
.l-bg-style4 { background: linear-gradient(135deg, #9ec5fe, #0d6efd) !important; color: #fff; }
.l-bg-style1 *, .l-bg-style2 *, .l-bg-style3 *, .l-bg-style4 * { color: #fff; }
.l-bg-purple, .l-bg-orange, .l-bg-cyan, .l-bg-green, .l-bg-cherry { background: rgba(255,255,255,.85) !important; }
.card-statistic-3 .card-icon-large .fa, .card-statistic-3 .card-icon-large .fas { color: rgba(255,255,255,.22) !important; }

/* =========================================================
   v2: drawer menu, glass top bar, toast, loader
   ========================================================= */
.main-content { padding: 92px 24px 40px 294px; }

/* ----- side drawer ----- */
.rail { position: fixed; top: 0; left: 0; bottom: 0; width: 270px; background: var(--card); border-right: 1px solid var(--line); z-index: 1040; display: flex; flex-direction: column; overflow: hidden; }
.rail-head { height: 72px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 20px; border-bottom: 1px solid var(--line); }
.rail-logo img { max-height: 36px; width: auto; display: block; }
.rail-close { display: none; width: 38px; height: 38px; border: 0; background: transparent; border-radius: 10px; color: var(--ink-3); cursor: pointer; place-items: center; }
.rail-close:hover { background: var(--brand-soft); color: var(--brand-d); }
.rail-card { flex: none; margin: 16px 14px 4px; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); display: flex; align-items: center; gap: 12px; }
.rail-card img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid #fff; box-shadow: 0 0 0 2px var(--brand-soft-2); flex: none; }
.rail-card b { display: block; font-family: var(--f-head); font-weight: 700; color: var(--ink); line-height: 1.3; word-break: break-word; }
.rail-chip { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 10px; border: 1px solid var(--brand-soft-2); background: var(--brand-soft); color: var(--brand-d); border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.rail-chip svg { width: 13px; height: 13px; }
.rail-nav { flex: 1; overflow-y: auto; padding: 4px 12px 28px; overscroll-behavior: contain; }
.rail-nav::-webkit-scrollbar { width: 6px; } .rail-nav::-webkit-scrollbar-thumb { background: var(--line); border-radius: 6px; }
.rail-title { padding: 20px 12px 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.rail-link { display: flex; align-items: center; gap: 12px; width: 100%; height: 44px; padding: 0 12px; margin: 2px 0; border: 0; border-radius: 12px; background: transparent; color: var(--ink-2); font: inherit; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; position: relative; }
.rail-link svg { width: 19px; height: 19px; flex: none; color: var(--ink-3); }
.rail-link span { flex: 1; }
.rail-link:hover { background: var(--brand-soft); color: var(--brand-d); }
.rail-link:hover svg { color: var(--brand); }
.rail-link.active, .rail-group.has-active > .rail-toggle { background: var(--brand-soft); color: var(--brand-d); font-weight: 600; }
.rail-link.active svg, .rail-group.has-active > .rail-toggle svg { color: var(--brand); }
.rail-plus { position: relative; width: 14px; height: 14px; flex: none; font-style: normal; }
.rail-plus::before, .rail-plus::after { content: ''; position: absolute; left: 50%; top: 50%; background: var(--ink-3); border-radius: 2px; transition: transform .2s; }
.rail-plus::before { width: 12px; height: 2px; margin: -1px 0 0 -6px; }
.rail-plus::after { width: 2px; height: 12px; margin: -6px 0 0 -1px; }
.rail-group.open > .rail-toggle .rail-plus::after { transform: scaleY(0); }
.rail-sub { display: none; padding: 2px 0 6px 20px; }
.rail-group.open > .rail-sub { display: block; }
.rail-sublink { display: block; padding: 9px 12px 9px 22px; margin: 1px 0; border-radius: 10px; color: var(--ink-2); text-decoration: none; position: relative; }
.rail-sublink::before { content: ''; position: absolute; left: 8px; top: 50%; width: 5px; height: 5px; margin-top: -2.5px; border-radius: 50%; background: var(--line); }
.rail-sublink:hover { background: var(--brand-soft); color: var(--brand-d); }
.rail-sublink.active { color: var(--brand-d); font-weight: 600; }
.rail-sublink.active::before { background: var(--brand); }
.rail-overlay { display: none; position: fixed; inset: 0; background: rgba(29,23,18,.45); z-index: 1035; opacity: 0; transition: opacity .2s; }

/* ----- floating glass top bar ----- */
.topbar { position: fixed; top: 12px; left: 282px; right: 16px; height: 60px; padding: 0 10px; border-radius: 20px; display: flex; align-items: center; justify-content: space-between; z-index: 1030;
  background: var(--glass); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-line); box-shadow: 0 8px 26px rgba(80,40,5,.09), inset 0 1px 0 rgba(255,255,255,.7); }
.tb-right { display: flex; align-items: center; gap: 6px; }
.tb-btn { width: 42px; height: 42px; border: 0; background: transparent; border-radius: 13px; color: var(--ink-2); display: inline-grid; place-items: center; cursor: pointer; text-decoration: none; position: relative; }
.tb-btn:hover { background: rgba(13,110,253,.12); color: var(--brand-d); }
.tb-btn svg { width: 21px; height: 21px; }
.tb-menu { display: none; }
.tb-avatar { display: inline-block; width: 42px; height: 42px; border-radius: 50%; padding: 2px; background: #fff; box-shadow: 0 0 0 2px var(--brand-soft-2); }
.tb-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.tb-drop { min-width: 230px; margin-top: 12px !important; }
.tb-drop .dropdown-item { display: flex; align-items: center; gap: 10px; }
.tb-drop .dropdown-item svg { width: 16px; height: 16px; }
.tb-empty { padding: 14px 12px; color: var(--ink-3); text-align: center; }

@media (max-width: 1024px) {
  .tb-menu { display: inline-grid; }
  .topbar { left: 12px; right: 12px; }
  .main-content { padding: 88px 14px 30px 14px; }
  .rail { transform: translateX(-102%); transition: transform .25s ease; box-shadow: none; width: min(300px, 86vw); }
  .rail-close { display: inline-grid; }
  .rail-overlay { display: block; pointer-events: none; }
  body.rail-open .rail { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.25); }
  body.rail-open .rail-overlay { opacity: 1; pointer-events: auto; }
  body.rail-open { overflow: hidden; }
}

/* ----- toast (one style everywhere) ----- */
#ui-toasts { position: fixed; top: 16px; right: 16px; z-index: 20000; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 24px)); pointer-events: none; }
.ui-toast { pointer-events: auto; position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 14px 16px 14px; box-shadow: 0 12px 34px rgba(15,40,90,.16); transform: translateY(-14px); opacity: 0; transition: transform .25s ease, opacity .25s ease; color: #0f1b3d; }
.ui-toast.in { transform: none; opacity: 1; }
.ui-toast .t-ico { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: 15px; line-height: 1; }
.ui-toast .t-msg { flex: 1; font-size: 14.5px; font-weight: 500; line-height: 1.4; word-break: break-word; }
.ui-toast .t-x { width: 28px; height: 28px; border: 0; background: transparent; border-radius: 8px; color: #8a94a8; font-size: 20px; line-height: 1; cursor: pointer; flex: none; }
.ui-toast .t-x:hover { background: #eaf2ff; color: #0b5ed7; }
.ui-toast .t-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 100%; transform-origin: left; animation: ui-toast-bar linear forwards; }
.ui-toast.success .t-ico, .ui-toast.success .t-bar { background: #16a34a; }
.ui-toast.error .t-ico, .ui-toast.error .t-bar { background: #dc2626; }
.ui-toast.warning .t-ico, .ui-toast.warning .t-bar { background: #0a58ca; }
.ui-toast.info .t-ico, .ui-toast.info .t-bar { background: #0d6efd; }
.ui-toast.cancel .t-ico, .ui-toast.cancel .t-bar { background: #6b7280; }
@keyframes ui-toast-bar { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 520px) { #ui-toasts { top: 10px; right: 12px; left: 12px; width: auto; } }

/* ----- loaders ----- */
#loader { position: fixed; inset: 0; z-index: 30000; background: #fff; display: grid; place-items: center; opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
#loader.show { opacity: 1; visibility: visible; animation: ui-loader-gone .35s ease 2.2s forwards; }
#loader::before { content: ''; width: 54px; height: 54px; border-radius: 50%; border: 4px solid #d6e6ff; border-top-color: #0d6efd; animation: ui-spin .8s linear infinite; }
#loader::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 6px; background: #0d6efd; animation: ui-pulse 1s ease-in-out infinite; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
@keyframes ui-pulse { 0%,100% { transform: scale(.7); opacity: .55; } 50% { transform: scale(1); opacity: 1; } }
@keyframes ui-loader-gone { to { opacity: 0; visibility: hidden; } }
#page-overlay { background: rgba(255,255,255,.72) !important; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
#page-overlay .lds-double-ring, #page-overlay .loader-wrapper-inner * { display: none !important; }
#page-overlay .loader-wrapper-inner::before { content: ''; display: block; width: 46px; height: 46px; border-radius: 50%; border: 4px solid #d6e6ff; border-top-color: #0d6efd; animation: ui-spin .8s linear infinite; margin: 0 auto; }

/* ---------- add balance page ---------- */
.af-page { display: grid; grid-template-columns: 1fr; gap: 18px; align-items: start; }
@media (min-width: 1000px) { .af-page { grid-template-columns: 1.4fr 1fr; } }
.af-side { display: grid; gap: 18px; }
.af-brand-pad { padding: 22px; margin: 0; }
.af-help .panel-body { display: flex; gap: 14px; align-items: flex-start; }
.af-help p { margin: 4px 0 0; color: var(--ink-2); }
.af-help a { font-weight: 600; }
.af-help-ico { width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.af-help-ico svg { width: 18px; height: 18px; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv span { color: var(--ink-3); } .kv b { text-align: right; font-weight: 600; }
.kv-title { margin: 16px 0 8px; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.kv-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.kv-chips span { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 7px 14px; font-weight: 500; }

/* ---------- page form + list helpers ---------- */
.pg-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.pg-btns .btn, .pg-head .btn { display: inline-flex; align-items: center; gap: 8px; }
.pg-btns .btn svg, .pg-actions .btn svg, .form-foot .btn svg { width: 16px; height: 16px; }
.btn-dark-soft, .btn.btn-upgrade { background: #3a342f !important; border: 1px solid #3a342f !important; color: #fff !important; box-shadow: none !important; display: inline-flex; align-items: center; gap: 8px; }
.btn.btn-upgrade:hover { background: #0f1b3d !important; }
.btn.btn-green { background: var(--ok) !important; border: 1px solid var(--ok) !important; color: #fff !important; display: inline-flex; align-items: center; gap: 8px; box-shadow: none !important; }
.h-ico { width: 18px !important; height: 18px !important; color: var(--brand); vertical-align: -3px; margin-right: 6px; }
.back-link { display: inline-flex; gap: 8px; align-items: center; color: var(--ink-2); font-weight: 500; margin: 4px 0 10px; }
.back-link svg { width: 16px; height: 16px; } .back-link:hover { color: var(--brand-d); }
.form-stack { display: grid; gap: 18px; padding: 24px; }
.fgroup label { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); font-size: 14px; margin-bottom: 8px; }
.fgroup label svg { width: 16px; height: 16px; color: var(--ink-3); }
.fgroup label b { color: var(--bad); font-weight: 700; }
.fgroup small { display: block; color: var(--ink-3); margin-top: 6px; }
.note-warn { background: var(--wait-soft); border: 1px solid #f3dca0; color: #7a5200; border-radius: 12px; padding: 12px 14px; }
.form-foot { justify-content: flex-end !important; gap: 10px !important; padding: 16px 22px !important; }
.form-foot .btn { display: inline-flex; align-items: center; gap: 8px; }
.panel-head .h-ico + * { vertical-align: middle; }
.table-responsive > .table { margin-bottom: 0; }
.panel .table thead th:first-child, .panel .table td:first-child { padding-left: 22px; }
.notice { display: flex; gap: 12px; align-items: flex-start; border-radius: 14px; padding: 14px 16px; border: 1px solid var(--brand-soft-2); background: var(--brand-soft); color: var(--ink-2); }
.notice svg { width: 20px; height: 20px; color: var(--brand); flex: none; margin-top: 2px; }
.notice.ok { background: var(--ok-soft); border-color: #bfe6cc; } .notice.ok svg { color: var(--ok); }
.notice b { color: var(--ink); }
.filter-card { padding: 18px 22px; margin-bottom: 18px; }
.filter-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 900px) { .filter-grid { grid-template-columns: 2fr 1fr 1fr 1fr auto; } }
.filter-grid .btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }

/* ---------- gateway pills ---------- */
.gw-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.gw-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--ink); font-weight: 500; text-decoration: none; }
.gw-pill:hover { border-color: var(--brand); color: var(--brand-d); }
.gw-pill.active { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-d); font-weight: 600; }
.gw-badge { font-style: normal; color: #fff; font-size: 12px; font-weight: 700; padding: 3px 8px; border-radius: 6px; line-height: 1.2; }
.gw-ico { color: var(--ink-3); font-size: 16px; }
.gw-brand-tabs { padding: 10px 14px 0; border-bottom: 1px solid var(--line); gap: 6px; flex-wrap: nowrap; overflow-x: auto; }
.gw-brand-tabs .nav-link { border-radius: 10px 10px 0 0; white-space: nowrap; }
.setting-sidebar { display: none; }

/* ---------- buy plan popup ---------- */
.buy-box { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 16px; }
.buy-name { display: block; font-family: var(--f-head); font-size: 20px; font-weight: 800; text-transform: capitalize; }
.buy-dur { color: var(--ink-3); margin-top: 6px; }
.chip-plain { display: inline-block; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 4px 12px; color: var(--ink); font-weight: 500; margin-left: 4px; }
.buy-price { text-align: right; font-family: var(--f-head); font-size: 26px; font-weight: 800; color: var(--brand-d); }
.buy-price small { display: block; font-family: var(--f-body); font-size: 13px; color: var(--ink-3); font-weight: 400; }
.buy-coupon-link { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; }
.buy-coupon-link svg { width: 16px; height: 16px; }
.modal-footer.form-foot { background: var(--paper); border-radius: 0 0 22px 22px; }
.btn-green { background: var(--ok) !important; border: 1px solid var(--ok) !important; color: #fff !important; box-shadow: none !important; display: inline-flex; align-items: center; gap: 8px; }

/* =========================================================
   v3: flat design — no shadows, thin strokes, one single top bar
   ========================================================= */
:root { --r-xl: 14px; --r-lg: 12px; --r-md: 10px; --r-sm: 8px; --line: #e3e9f4; }
*, *::before, *::after { box-shadow: none !important; text-shadow: none !important; }
body { background: var(--paper) !important; }

/* one single bar: sidebar header and top bar share the same height and line */
.rail { border-right: 1px solid var(--line); }
.rail-head { height: 64px; }
.topbar { top: 0; left: 270px; right: 0; height: 64px; padding: 0 14px; border-radius: 0 0 16px 16px; border: 1px solid var(--line); border-top: 0; background: rgba(255,255,255,.9); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.tb-avatar { padding: 0; border: 2px solid var(--brand-soft-2); background: #fff; width: 40px; height: 40px; }
.rail-card img { border: 2px solid var(--brand-soft-2); }
.main-content { padding: 88px 24px 40px 294px; }
@media (max-width: 1024px) {
  .topbar { left: 0; right: 0; padding: 0 10px; }
  .main-content { padding: 82px 16px 30px 16px; }
}

/* cards: thin stroke only */
.card, .panel, .stat, .plan-card, .seg { border: 1px solid var(--line) !important; border-radius: var(--r-xl) !important; background: var(--card); }
.card .card-header, .panel-head { padding: 16px 20px; }
.panel-body { padding: 16px 20px; }
.dropdown-menu, .modal-content, .ui-toast { border: 1px solid var(--line) !important; }
.modal-content { border-radius: 16px; }
.form-control, .form-select, .input-group-text { border-radius: 10px !important; min-height: 44px; }
.form-control:focus, .form-select:focus { border-color: var(--brand) !important; outline: 0; }
.btn { border-radius: 10px; padding: 10px 16px; }
.btn-primary, .btn-modern, .btn-info { background: var(--brand) !important; border: 1px solid var(--brand) !important; }
.btn-primary:hover, .btn-modern:hover, .btn-info:hover { background: var(--brand-d) !important; border-color: var(--brand-d) !important; }
.btn-outline-primary, .btn-light, .btn-secondary { background: #fff !important; border: 1px solid var(--line) !important; color: var(--ink) !important; }

/* dashboard like the reference: simple cards, plain line icons */
.pg-head h1 { font-size: 26px; font-weight: 700; }
.pg-actions { grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 12px; }
.pg-actions .btn { height: 46px; padding: 0 12px; }
.seg { padding: 5px; gap: 2px; border-radius: 12px !important; margin-bottom: 16px; }
.seg a { padding: 9px 16px; border-radius: 9px; font-weight: 500; }
.seg a.active { background: var(--brand); color: #fff; font-weight: 600; }
.stat { padding: 18px 20px; }
.stat .ico { background: transparent !important; width: auto; height: auto; top: 18px; right: 20px; border-radius: 0; color: var(--ink-3); }
.stat .ico svg { width: 20px; height: 20px; }
.stat.is-balance { border-left: 4px solid var(--brand) !important; background: var(--card); }
.stat.is-balance .ico { color: var(--brand); }
.stat.is-ok .ico { color: var(--ok); }
.stat.is-wait .ico { color: var(--wait); }
.stat.is-pay .ico { color: #6366f1; }
.stat .k { font-weight: 400; color: var(--ink-2); }
.stat .v { font-size: 26px; font-weight: 700; margin: 8px 0 6px; }
.stat.is-balance .v { font-size: 28px; color: var(--ink); }
.stat .s { font-size: 14px; }
.chip { background: var(--brand-soft); border-radius: 6px; padding: 5px 10px; font-weight: 600; }
.chip::before { display: none; }
.panel-head h3 { font-weight: 700; font-size: 17px; }
.panel-foot { background: var(--paper); }
.empty .ei { background: transparent; border: 0; width: auto; height: auto; color: #c9cdd3; margin-bottom: 8px; }
.empty .ei svg { width: 46px; height: 46px; stroke-width: 1.5; }
.empty h4 { font-weight: 600; color: var(--ink-2); }
.rt-row { padding: 14px 20px; }

/* plans, popups */
.plan-card.is-active { border: 2px solid var(--brand) !important; }
.plan-flag { border-radius: 999px; }
.buy-box { border-radius: 12px; }
.ui-toast { border-radius: 12px; }
.badge { border-radius: 6px; font-weight: 600; }
.plan-price .now { font-weight: 700; }

/* =========================================================
   v4: match the reference screens exactly (orange instead of blue)
   ========================================================= */
body { background: #fafafa !important; }

/* top bar: plain white bar with one thin line, like the reference */
.topbar { top: 0; left: 270px; right: 0; height: 56px; padding: 0 14px; border-radius: 0; border: 0; border-bottom: 1px solid #e3e9f4; background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
.rail-head { height: 56px; }
.tb-btn { width: 40px; height: 40px; border-radius: 10px; color: #0f1b3d; }
.tb-btn svg { width: 22px; height: 22px; }
.tb-avatar { width: 38px; height: 38px; border: 0; background: transparent; }
.main-content { padding: 76px 24px 40px 294px; }
@media (max-width: 1024px) {
  .topbar { left: 0; right: 0; padding: 0 14px; }
  .main-content { padding: 72px 14px 30px 14px; }
  .rail { width: min(300px, 72vw); }
}
.rail-card { border-radius: 12px; }

/* dashboard cards */
.card, .panel, .stat, .seg, .pk-card { border-color: #e3e9f4 !important; border-radius: 12px !important; background: #fff; }
.panel-head { border-bottom: 1px solid #e3e9f4; }
.pg-head h1 { font-size: 28px; font-weight: 700; letter-spacing: -.02em; }
.pg-head p { color: #64748b; font-size: 17px; }
.stat .k { font-size: 16px; color: #64748b; }
.stat .v { font-size: 25px; font-weight: 700; color: #0f1b3d; }
.stat .s { color: #64748b; }
.stat.is-balance { border-left: 4px solid var(--brand) !important; }
.stat.is-balance .v { color: #0f1b3d; font-size: 25px; }
.stat.is-balance .s { color: var(--brand-d); }
.pg-actions .btn { border-radius: 8px; }
.bal-pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #e3e9f4; background: #fff; border-radius: 8px; padding: 9px 16px; font-weight: 500; color: #0f1b3d; }
.bal-pill svg { width: 17px; height: 17px; color: #64748b; }

/* package cards */
.pk-grid { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 760px) { .pk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .pk-grid { grid-template-columns: repeat(3, 1fr); } }
.pk-card { position: relative; border: 1px solid #e3e9f4; border-top: 4px solid #e3e9f4; padding: 26px 22px 22px; display: flex; flex-direction: column; }
.pk-card.is-active { border-color: var(--brand) !important; border-top-color: var(--brand) !important; }
.pk-flag { position: absolute; top: -17px; right: 18px; display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; padding: 7px 14px; border-radius: 999px; }
.pk-flag svg { width: 13px; height: 13px; fill: #fde68a; stroke: #fde68a; }
.pk-name { font-size: 24px; font-weight: 700; margin: 4px 0 6px; color: #0f1b3d; text-transform: capitalize; }
.pk-desc { color: #64748b; margin: 0 0 16px; font-size: 16px; line-height: 1.5; }
.pk-price { padding-bottom: 16px; border-bottom: 1px solid #e3e9f4; margin-bottom: 14px; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.pk-price s { color: #94a3b8; }
.pk-price b { font-family: var(--f-head); font-size: 40px; font-weight: 800; letter-spacing: -.02em; color: #0f1b3d; line-height: 1; }
.pk-price span { color: #64748b; font-size: 16px; }
.pk-list { list-style: none; padding: 0; margin: 0; }
.pk-list li { display: flex; align-items: center; gap: 12px; padding: 11px 0; color: #1e293b; font-size: 16px; }
.pk-list li > svg, .pk-list li > i { width: 20px; height: 20px; flex: none; color: var(--brand); }
.pk-list li span { flex: 1; line-height: 1.35; }
.pk-list li span b { font-weight: 700; }
.pk-list li em { flex: none; color: #94a3b8; font-style: normal; cursor: help; display: inline-flex; }
.pk-list li em svg { width: 18px; height: 18px; }
.pk-list li.dim { color: #94a3b8; }
.pk-list li.dim > svg, .pk-list li.dim > i { color: #94a3b8; }
.pk-hr { border: 0; border-top: 1px solid #e3e9f4; margin: 8px 0; opacity: 1; }
.pk-cta { margin-top: 20px; }
.pk-cta a { display: block; width: 100%; text-align: center; padding: 12px; border-radius: 8px; font-weight: 600; font-size: 16px; }
.pk-cta .badge { display: inline-block; margin-bottom: 10px; }

/* =========================================================
   v5: compact sizes and colours measured from the reference screens
   (blue replaced by orange, everything else kept)
   ========================================================= */
:root { --ink: #111827; --ink-2: #4b5563; --ink-3: #9ca3af; --line: #e5e7eb; --paper: #f9fafb; --brand-soft: #eaf2ff; --brand-soft-2: #ffd9b8; --r-xl: 8px; --r-lg: 8px; --r-md: 6px; --r-sm: 5px; }
html { font-size: 14px; }
body { font-size: 13.5px !important; color: var(--ink); background: #f9fafb !important; background-image: none !important; }
h1, h2, h3, h4, h5, h6 { color: var(--ink); }

/* top bar: 47px, white, one thin line */
.topbar { height: 47px !important; padding: 0 12px !important; border-bottom: 1px solid var(--line) !important; background: #fff !important; border-radius: 0 !important; }
.rail-head { height: 47px !important; padding: 0 16px; }
.rail-logo img { max-height: 26px; }
.tb-btn { width: 34px; height: 34px; border-radius: 8px; color: #374151; }
.tb-btn svg { width: 19px; height: 19px; stroke-width: 1.8; }
.tb-avatar { width: 28px; height: 28px; }
.tb-right { gap: 8px; }
.tb-drop { margin-top: 8px !important; min-width: 200px; }
.main-content { padding: 61px 14px 28px 14px !important; }
@media (min-width: 1025px) { .main-content { padding: 61px 22px 30px 262px !important; } .topbar { left: 250px !important; } .rail { width: 250px !important; } .tb-menu { display: none; } }
@media (max-width: 1024px) { .rail { width: min(250px, 62vw) !important; } .topbar { left: 0 !important; right: 0 !important; } }

/* page heading + action buttons */
.section { padding-top: 14px; }
.pg-head { margin: 0 0 10px; }
.pg-head h1 { font-size: 22px !important; font-weight: 700; margin: 0 0 3px; letter-spacing: -.02em; line-height: 1.25; }
.pg-head p { font-size: 14px !important; color: #6b7280 !important; margin: 0; line-height: 1.5; }
.pg-actions { gap: 8px; margin: 12px 0 10px; }
.pg-btns { margin: 12px 0 0; gap: 8px; }
.pg-line { margin: 10px 0 14px; background: var(--line); }
.btn { font-size: 14px !important; font-weight: 500 !important; border-radius: 5px !important; padding: 0 14px !important; min-height: 31px; line-height: 29px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; }
.btn svg { width: 15px !important; height: 15px !important; }
.btn-sm { min-height: 28px; line-height: 26px; padding: 0 10px !important; }
.btn-primary, .btn-modern, .btn-info { background: #0d6efd !important; border: 1px solid #0b5ed7 !important; color: #fff !important; }
.btn-primary:hover, .btn-modern:hover, .btn-info:hover, .btn-primary:active { background: #0b5ed7 !important; border-color: #084298 !important; }
.btn-outline-primary, .btn-light, .btn-secondary { background: #fff !important; border: 1px solid #d1d5db !important; color: #111827 !important; }
.btn-outline-primary:hover, .btn-light:hover, .btn-secondary:hover { background: #f0f6ff !important; border-color: #0d6efd !important; color: #084298 !important; }
.btn-block { width: 100%; }
.btn-upgrade, .btn.btn-upgrade { background: #4b5563 !important; border: 1px solid #374151 !important; color: #fff !important; }
.btn-green, .btn.btn-green { background: #3f9d6b !important; border: 1px solid #2f855a !important; color: #fff !important; }
.pg-actions .btn { height: 31px; padding: 0 10px !important; }

/* tabs */
.seg { padding: 4px !important; border-radius: 8px !important; gap: 0 !important; margin-bottom: 14px !important; background: #fff; }
.seg a { padding: 0 14px !important; height: 31px; line-height: 31px; font-size: 14px; border-radius: 6px !important; color: #111827 !important; font-weight: 400 !important; }
.seg a.active { background: #0d6efd !important; color: #fff !important; font-weight: 500 !important; }

/* cards */
.card, .panel, .stat, .pk-card { border: 1px solid var(--line) !important; border-radius: 8px !important; background: #fff; }
.stat { padding: 13px 16px !important; margin: 0; }
.stat .k { font-size: 14px !important; color: #6b7280 !important; font-weight: 400 !important; }
.stat .v { font-size: 20px !important; font-weight: 700 !important; margin: 6px 0 4px !important; letter-spacing: -.01em; color: #111827 !important; }
.stat .s { font-size: 14px !important; color: #6b7280 !important; }
.stat .ico { top: 12px !important; right: 14px !important; }
.stat .ico svg { width: 16px !important; height: 16px !important; stroke-width: 1.7; }
.stat.is-balance { border-left: 3px solid #0d6efd !important; }
.stat.is-balance .v { font-size: 20px !important; }
.stat.is-balance .s { color: #0d6efd !important; display: flex; align-items: center; gap: 6px; }
.stat.is-balance .ico { color: #0d6efd !important; }
.stat.is-ok .ico { color: #16a34a !important; } .stat.is-wait .ico { color: #0a58ca !important; } .stat.is-pay .ico { color: #084298 !important; }
.stat-grid { gap: 12px; margin-bottom: 14px; }
.panel { margin-bottom: 14px; }
.panel-head { padding: 13px 16px !important; }
.panel-head h3 { font-size: 15px !important; font-weight: 700 !important; }
.panel-head h3 small { font-size: 13px; color: #6b7280; margin-top: 1px; }
.panel-body { padding: 14px 16px !important; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 4px; background: #eaf2ff; color: #0b5ed7; }
.card .card-header { padding: 13px 16px; }
.card .card-header h4 { font-size: 15px; }
.card .card-body { padding: 14px 16px; }
.empty { padding: 30px 12px !important; }
.empty h4 { font-size: 16px !important; font-weight: 600; color: #4b5563; margin: 0 0 3px; }
.empty p { font-size: 13.5px; color: #9ca3af; }
.empty .ei svg { width: 34px !important; height: 34px !important; stroke-width: 1.4; color: #cbd5e1; }
.rt-row { padding: 11px 16px; }
.panel-foot { padding: 10px 16px !important; font-size: 13.5px; }

/* forms / tables */
.form-control, .form-select, .input-group-text { min-height: 38px !important; font-size: 14px !important; border-radius: 6px !important; border: 1px solid #d1d5db !important; }
.form-control:focus, .form-select:focus { border-color: #0d6efd !important; }
label, .form-label { font-size: 14px !important; font-weight: 500 !important; color: #111827 !important; }
.table thead th { font-size: 11.5px !important; padding: 10px 14px !important; }
.table td { padding: 10px 14px !important; font-size: 13.5px; }
.nav-pills .nav-link.active, .nav-tabs .nav-link.active { background: #eaf2ff !important; color: #084298 !important; border-color: #0d6efd !important; }

/* side drawer (reference: 250px wide, 37px rows, 14px text) */
.rail-card { margin: 12px 12px 2px; padding: 10px; border-radius: 8px; gap: 10px; background: #f9fafb; border: 1px solid var(--line); }
.rail-card img { width: 36px; height: 36px; border: 0; }
.rail-card b { font-size: 14px; }
.rail-chip { font-size: 12px; padding: 2px 9px; background: #fff; border: 1px solid #9ec5fe; color: #0b5ed7; margin-top: 3px; }
.rail-nav { padding: 2px 10px 24px; }
.rail-title { padding: 16px 10px 6px; font-size: 11px; letter-spacing: .06em; color: #9ca3af; }
.rail-link { height: 37px; font-size: 14px; gap: 12px; padding: 0 10px; margin: 1px 0; border-radius: 6px; color: #374151; }
.rail-link svg, .rail-link i { width: 18px; height: 18px; color: #6b7280; }
.rail-link.active, .rail-group.has-active > .rail-toggle { background: #eaf2ff !important; color: #0b5ed7 !important; font-weight: 500; }
.rail-link.active svg, .rail-group.has-active > .rail-toggle svg { color: #0d6efd !important; }
.rail-link:hover { background: #f0f6ff; color: #0b5ed7; }
.rail-sublink { padding: 8px 10px 8px 40px; font-size: 14px; border-radius: 6px; }
.rail-sublink::before { left: 24px; }
.rail-sub { padding: 1px 0 4px 0; }
.rail-sublink.active { background: #eaf2ff; color: #0b5ed7; }

/* package cards (reference sizes) */
.pk-grid { gap: 18px; }
.pk-card { border-top: 3px solid #e5e7eb !important; padding: 20px 18px 16px !important; }
.pk-flag { top: -14px; right: 14px; font-size: 12px; padding: 5px 12px; background: #0d6efd; }
.pk-name { font-size: 18px !important; font-weight: 700; margin: 2px 0 4px; }
.pk-desc { font-size: 14px !important; color: #6b7280; margin: 0 0 12px; }
.pk-price { padding-bottom: 12px; margin-bottom: 8px; gap: 4px; align-items: baseline; }
.pk-price sup { font-size: 14px; font-weight: 700; color: #111827; align-self: flex-start; margin-top: 8px; }
.pk-price b { font-size: 34px !important; font-weight: 800; }
.pk-price span { font-size: 14px !important; margin-left: 4px; }
.pk-list li { padding: 9px 0 !important; font-size: 14.5px !important; gap: 11px; }
.pk-list li > svg, .pk-list li > i { width: 17px !important; height: 17px !important; color: #0d6efd; font-size: 16px; text-align: center; }
.pk-list li em svg { width: 15px !important; height: 15px !important; }
.pk-list li.dim, .pk-list li.dim > svg, .pk-list li.dim > i { color: #9ca3af !important; }
.pk-hr { margin: 6px 0; }
.pk-cta { margin-top: 14px; }
.pk-cta a { padding: 0 !important; height: 36px; line-height: 34px; font-size: 14px !important; border-radius: 5px !important; }

/* profile */
.pf-grid { gap: 14px; }
.pf-avatar img { width: 96px; height: 96px; }
.pf-name { font-size: 17px; }
.pf-rows > div { padding: 11px 0; }
.btn.pf-logout { min-height: 34px; background: #fdf2f2 !important; }
.pf-tabs .nav-link { padding: 8px; font-size: 14px; border-radius: 6px; }

/* balance verification + switches */
.bv-device { border: 1px solid var(--line); border-radius: 8px; margin-top: 12px; overflow: hidden; }
.bv-title { display: flex; gap: 8px; align-items: center; padding: 10px 14px; background: #f9fafb; border-bottom: 1px solid var(--line); font-weight: 600; }
.bv-title svg { width: 16px; height: 16px; color: #0d6efd; }
.bv-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bv-row:last-child { border-bottom: 0; }
.ui-switch { position: relative; width: 38px; height: 22px; display: inline-block; flex: none; margin: 0; }
.ui-switch input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.ui-switch i { position: absolute; inset: 0; border-radius: 22px; background: #d1d5db; transition: background .15s; }
.ui-switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.ui-switch input:checked + i { background: #0d6efd; }
.ui-switch input:checked + i::after { transform: translateX(16px); }
.notice { font-size: 13.5px; padding: 12px 14px; border-radius: 8px; margin-bottom: 4px; }

/* toasts a little smaller too */
.ui-toast { padding: 11px 12px 13px; border-radius: 8px !important; }
.ui-toast .t-msg { font-size: 14px; }

/* ---------- profile (reference layout: two stacked cards) ---------- */
.pf-page { max-width: 760px; margin: 0 auto; }
.pf-top .panel-body { text-align: center; padding: 22px 20px 18px !important; }
.pf-avatar-box { display: inline-block; margin-bottom: 10px; }
.profile-photo { position: relative; display: inline-block; cursor: pointer; margin: 0; }
.profile-photo img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid #fff; outline: 1px solid #e5e7eb; display: block; }
.profile-photo .myCl { position: absolute; right: 0; bottom: 2px; width: 28px; height: 28px; border-radius: 50%; background: #0d6efd; color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.profile-photo .myCl svg { width: 14px; height: 14px; }
.pf-name { font-size: 17px; font-weight: 700; margin: 4px 0 2px; }
.pf-mail { color: #9ca3af; font-size: 14px; margin-bottom: 10px; word-break: break-all; }
.pf-status { margin-bottom: 14px; }
.pf-active { display: inline-flex; align-items: center; gap: 7px; background: #ecfdf3; border: 1px solid #bbf0d0; color: #166534; font-weight: 500; font-size: 14px; padding: 5px 14px; border-radius: 6px; }
.pf-active svg { width: 15px; height: 15px; }
.pf-rows { border-top: 1px solid #e5e7eb; text-align: left; margin-bottom: 12px; }
.pf-rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; font-size: 14px; }
.pf-rows span { color: #6b7280; } .pf-rows b { font-weight: 600; color: #111827; }
.pf-rows b.v-orange { color: #0b5ed7; }
.pf-rows > div:last-child { padding-bottom: 14px; border-bottom: 1px solid #e5e7eb; }
.pf-logout { display: flex; align-items: center; justify-content: center; gap: 8px; height: 34px; margin-top: 12px; border-radius: 5px; background: #fdf2f2; color: #dc2626; font-weight: 500; font-size: 14px; text-decoration: none; }
.pf-logout svg { width: 15px; height: 15px; } .pf-logout:hover { background: #fbe4e4; color: #b91c1c; }
.pf-forms .panel-body { padding: 16px !important; }
.pf-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pf-tab { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 6px 8px; border: 1px solid #e5e7eb; border-radius: 6px; background: #f9fafb; color: #4b5563; font: inherit; font-size: 14px; font-weight: 500; line-height: 1.25; cursor: pointer; text-align: center; }
.pf-tab svg { width: 15px; height: 15px; flex: none; }
.pf-tab.active { background: #eaf2ff; border-color: #0d6efd; color: #0b5ed7; }
.pf-sep { border: 0; border-top: 1px solid #e5e7eb; margin: 14px 0; opacity: 1; }
.pf-field { margin-bottom: 12px; }
.pf-field label { display: block; margin-bottom: 6px; }
.pf-field label b { color: #dc2626; }
.pf-field .form-control[readonly] { background: #f9fafb !important; color: #6b7280; }
.pf-actions { display: flex; justify-content: flex-end; }
.pf-actions .btn { min-height: 36px; }


/* =========================================================
   v6: own identity (type, shapes), no stray blue/purple, nicer plans
   ========================================================= */
:root { --f-head: 'Manrope', 'Hind Siliguri', system-ui, sans-serif; --f-body: 'DM Sans', 'Hind Siliguri', system-ui, sans-serif; }
body { font-family: var(--f-body) !important; }

/* every link / helper colour that used to be blue, indigo or purple becomes orange */
a { color: #0b5ed7; } a:hover { color: #084298; }
.text-info, .text-primary, .link-primary, .text-purple, .text-indigo { color: #0b5ed7 !important; }
.bg-info, .bg-primary, .bg-purple, .bg-indigo { background-color: #0d6efd !important; color: #fff !important; }
.badge.bg-info, .badge.bg-primary, .badge-info, .badge-primary, .badge.bg-label-primary, .badge.bg-label-info, .badge.badge-pill { background: #eaf2ff !important; color: #084298 !important; }
.btn .badge, .btn-group .badge { background: #eaf2ff !important; color: #084298 !important; border-radius: 4px; padding: 3px 7px; font-weight: 600; }
.btn.btn-primary .badge, .btn.active .badge { background: #fff !important; color: #0b5ed7 !important; }
.btn-group .btn.btn-primary { background: #0d6efd !important; color: #fff !important; }
.btn-group .btn { border: 1px solid #e5e7eb !important; background: #fff; color: #111827; }
.fa-filter, .fas.fa-filter, .filter-icon, .card-header .fa, .card-header i[class*="text-"] { color: #0d6efd !important; }
.sidebar-icon, .fa-search { color: inherit; }
.rail a, .rail button { color: #374151 !important; }
.rail a.rail-link.active, .rail .rail-toggle:hover, .rail a.rail-link:hover { color: #0b5ed7 !important; }
.rail .rail-group.has-active > .rail-toggle { color: #0b5ed7 !important; }
.rail a.rail-sublink { color: #4b5563 !important; }
.rail a.rail-sublink:hover, .rail a.rail-sublink.active { color: #0b5ed7 !important; }
.rail a.rail-sublink.active::before { background: #0d6efd; }
.card-body a:not(.btn), .table a:not(.btn) { color: #1f2937; }
.table a:not(.btn):hover { color: #0b5ed7; }
.page-item.active .page-link { background: #0d6efd !important; border-color: #0d6efd !important; color: #fff !important; }
.page-link { color: #374151; } .page-link:hover { color: #0b5ed7; background: #f0f6ff; }
::selection { background: #ffd9b8; }

/* own touches so it does not read as a copy */
.pg-head h1 { position: relative; padding-bottom: 8px; margin-bottom: 6px; }
.pg-head h1::after { content: ''; position: absolute; left: 0; bottom: 0; width: 26px; height: 3px; border-radius: 3px; background: #0d6efd; }
.pf-page .pg-head h1::after { left: 0; }
.panel, .card, .stat { border-radius: 10px !important; }
.btn { border-radius: 7px !important; }
.form-control, .form-select { border-radius: 8px !important; }
.stat .ico { width: 30px !important; height: 30px !important; top: 11px !important; right: 12px !important; border-radius: 9px; background: #eaf2ff !important; display: grid; place-items: center; }
.stat.is-ok .ico { background: #ecfdf3 !important; } .stat.is-wait .ico { background: #fff8e1 !important; } .stat.is-pay .ico { background: #eaf2ff !important; }
.stat.is-balance { border-left: 0 !important; border-top: 3px solid #0d6efd !important; }
.rail-title { display: flex; align-items: center; gap: 8px; }
.rail-title::before { content: ''; width: 5px; height: 5px; border-radius: 2px; background: #0d6efd; }
.seg { background: #f3f4f6; border-color: #eceef1 !important; }
.seg a.active { border-radius: 7px !important; }
.rail-link { border-radius: 8px; }
.rail-link.active, .rail-group.has-active > .rail-toggle { box-shadow: inset 3px 0 0 #0d6efd !important; }
.rail-card { background: #f0f6ff; border-color: #ffe0c2; }
.empty .ei svg { color: #f2c7a2 !important; }

/* package cards */
.pk-card { border-top: 0 !important; padding: 22px 18px 16px !important; background: #fff; overflow: visible; }
.pk-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 10px 10px 0 0; background: #f3f4f6; }
.pk-card.is-active::before { background: #0d6efd; }
.pk-card:hover { border-color: #9ec5fe !important; }
.pk-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.pk-name { font-size: 19px !important; margin: 0 !important; }
.pk-save { background: #ecfdf3; color: #15803d; font-weight: 600; font-size: 12px; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.pk-desc { margin: 6px 0 0 !important; }
.pk-price { display: block !important; padding: 14px 0 14px !important; margin: 12px 0 8px !important; border-top: 1px dashed #e5e7eb; border-bottom: 1px dashed #e5e7eb; }
.pk-price s { display: block; font-size: 13px; color: #9ca3af; margin-bottom: 2px; }
.pk-amt { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.pk-amt b { font-family: var(--f-head); font-size: 32px !important; font-weight: 800; letter-spacing: -.03em; color: #111827; line-height: 1.05; }
.pk-amt span { color: #6b7280; font-size: 14px; }
.pk-list li > svg, .pk-list li > i { background: #eaf2ff; padding: 5px; border-radius: 7px; width: 26px !important; height: 26px !important; box-sizing: border-box; display: grid; place-items: center; font-size: 12px !important; }
.pk-list li.dim > svg, .pk-list li.dim > i { background: #f3f4f6 !important; }
.pk-list li { padding: 7px 0 !important; }
.pk-flag { background: #0d6efd !important; }
.pk-cta .btn-success, .pk-cta .btn-outline-success { background: #fff !important; color: #0b5ed7 !important; border: 1px solid #0d6efd !important; }
.pk-cta .btn-success:hover { background: #eaf2ff !important; }
.pk-cta .btn-danger, .pk-cta .btn-warning { background: #fff !important; color: #374151 !important; border: 1px solid #d1d5db !important; }
.pk-cta a.btn { width: 100%; height: 38px; }


/* =========================================================
   Motion: scroll reveal, entrances, small hover effects
   ========================================================= */
.js-motion [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js-motion [data-reveal].is-in { opacity: 1; transform: none; }
#ui-progress { position: fixed; left: 0; top: 0; height: 3px; width: 100%; background: #0d6efd; transform-origin: left; transform: scaleX(0); z-index: 40000; pointer-events: none; }
#ui-top { position: fixed; right: 16px; bottom: 18px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid #9ec5fe; background: #fff; color: #0b5ed7; display: grid; place-items: center; cursor: pointer; z-index: 900; opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s, background .15s; }
#ui-top.show { opacity: 1; transform: none; pointer-events: auto; }
#ui-top:hover { background: #eaf2ff; }

@keyframes ui-fade-up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes ui-pop { 0% { transform: scale(.94); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes ui-bell { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 60% { transform: rotate(8deg); } 80% { transform: rotate(-5deg); } }
@keyframes ui-shimmer { 0% { background-position: -200px 0; } 100% { background-position: 200px 0; } }

/* panel pages */
.main-content .section { animation: ui-fade-up .4s ease both; }
.stat-grid .stat { animation: ui-pop .45s ease both; }
.stat-grid .stat:nth-child(2) { animation-delay: .06s; } .stat-grid .stat:nth-child(3) { animation-delay: .12s; } .stat-grid .stat:nth-child(4) { animation-delay: .18s; }
.rt-row { animation: ui-fade-up .35s ease both; }
.rt-row:nth-child(2) { animation-delay: .05s; } .rt-row:nth-child(3) { animation-delay: .1s; } .rt-row:nth-child(4) { animation-delay: .15s; }
.stat, .pk-card, .panel { transition: border-color .2s, transform .25s ease, background-color .2s; }
.stat:hover, .pk-card:hover { transform: translateY(-2px); border-color: #9ec5fe !important; }
.btn { transition: background-color .15s, border-color .15s, color .15s, transform .12s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.tb-btn:hover svg { animation: ui-bell .7s ease; transform-origin: 50% 0; }
.tb-avatar { transition: transform .2s; } .tb-avatar:hover { transform: scale(1.06); }
.rail-link { transition: background-color .15s, color .15s, padding-left .15s; }
.rail-link:hover { padding-left: 14px; }
.rail-sub { animation: ui-fade-up .22s ease both; }
.rail-title, .rail-card { animation: ui-fade-up .4s ease both; }
.rail-plus::before, .rail-plus::after { transition: transform .22s ease; }
.seg a { transition: background-color .15s, color .15s; }
.profile-photo img { transition: transform .25s; } .profile-photo:hover img { transform: scale(1.04); }
.pf-tab { transition: background-color .15s, border-color .15s, color .15s; }
.gw-pill { transition: border-color .15s, background-color .15s, transform .15s; } .gw-pill:hover { transform: translateY(-1px); }
.badge, .chip { transition: background-color .2s; }
.table tbody tr { transition: background-color .15s; }
.modal.fade .modal-dialog { transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .2s; }
.dropdown-menu.show { animation: ui-pop .16s ease both; }
.empty .ei { animation: ui-pop .5s ease both; }
.ui-switch i, .ui-switch i::after { transition: background-color .18s, transform .18s; }
#page-overlay .loader-wrapper-inner::before { animation: ui-spin .8s linear infinite; }

.pk-used { width: 100%; background: #f3f4f6 !important; border: 1px solid #e5e7eb !important; color: #9ca3af !important; cursor: not-allowed; height: 38px; }
.pk-note { margin: 8px 0 0; text-align: center; font-size: 12.5px; color: #9ca3af; }


/* =========================================================
   v7 fixes: popups always stay on screen
   ========================================================= */
@keyframes ui-fade { from { opacity: 0; } to { opacity: 1; } }
.dropdown-menu.show { animation: ui-fade .14s ease both !important; }
.topbar .dropdown { position: relative; }
.topbar .tb-drop { position: absolute !important; top: 100% !important; right: 0 !important; left: auto !important; bottom: auto !important; transform: none !important; margin: 8px 0 0 !important; width: 240px; max-width: calc(100vw - 20px); inset: 100% 0 auto auto !important; }
.topbar .tb-drop .dropdown-item { white-space: normal; }
@media (max-width: 480px) { .topbar .dropdown:first-child .tb-drop { right: -44px !important; } }
.modal-dialog { max-width: min(500px, calc(100vw - 20px)); margin-left: auto; margin-right: auto; }
.modal-dialog.modal-lg, .modal-dialog.modal-xl { max-width: min(800px, calc(100vw - 20px)); }
.modal-content { max-width: 100%; overflow: hidden; }
.modal-body { overflow-wrap: anywhere; }
.select2-container { max-width: 100%; }
.select2-dropdown { max-width: calc(100vw - 20px); }
#ui-toasts { max-width: calc(100vw - 20px); }
body { overflow-x: hidden; }
.table-responsive { max-width: 100%; }

/* =========================================================
   Add Balance page (own look)
   ========================================================= */
.ab-steps { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; font-size: 13.5px; color: #9ca3af; }
.ab-steps li { list-style: none; display: flex; align-items: center; gap: 8px; }
.ab-steps { padding: 0; }
.ab-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #f3f4f6; color: #6b7280; transition: background .3s, color .3s; }
.ab-steps li.on b { background: #0d6efd; color: #fff; } .ab-steps li.on { color: #111827; font-weight: 500; }
.ab-steps li.done b { background: #eaf2ff; color: #0b5ed7; }
.ab-steps i { flex: 1; height: 2px; background: #e5e7eb; min-width: 16px; border-radius: 2px; position: relative; overflow: hidden; }
.ab-steps i::after { content: ''; position: absolute; inset: 0; background: #0d6efd; transform: scaleX(0); transform-origin: left; transition: transform .5s ease; }
.ab-steps i.fill::after { transform: scaleX(1); }
.ab-layout { display: grid; grid-template-columns: 1fr; gap: 14px; align-items: start; }
@media (min-width: 1000px) { .ab-layout { grid-template-columns: 1.5fr 1fr; } }
.ab-gw { display: flex; align-items: center; gap: 14px; padding: 16px; border-bottom: 1px solid #e5e7eb; }
.ab-gw img { height: 40px; width: auto; max-width: 120px; object-fit: contain; }
.ab-gw b { display: block; font-family: var(--f-head); font-size: 16px; }
.ab-gw small { color: #6b7280; }
.ab-live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: #15803d; background: #ecfdf3; border: 1px solid #bbf0d0; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.ab-live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; animation: ab-blink 1.6s ease-in-out infinite; }
@keyframes ab-blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ab-body { padding: 16px; }
.ab-label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 500; margin-bottom: 8px; }
.ab-label small { color: #9ca3af; font-weight: 400; }
.ab-amount { display: flex; align-items: center; border: 1.5px solid #d1d5db; border-radius: 10px; background: #fff; padding: 0 14px; height: 60px; transition: border-color .2s, background .2s; }
.ab-amount:focus-within { border-color: #0d6efd; background: #f8fbff; }
.ab-amount span { font-family: var(--f-head); font-size: 26px; font-weight: 800; color: #0d6efd; margin-right: 10px; }
.ab-amount input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--f-head); font-size: 28px; font-weight: 800; color: #111827; letter-spacing: -.02em; }
.ab-amount input::placeholder { color: #d1d5db; }
.ab-amount input::-webkit-outer-spin-button, .ab-amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ab-amount input[type=number] { -moz-appearance: textfield; }
.ab-amount.shake { animation: ab-shake .35s ease; border-color: #dc2626; }
@keyframes ab-shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.ab-meter { height: 6px; background: #f3f4f6; border-radius: 6px; margin: 12px 0 6px; overflow: hidden; }
.ab-meter i { display: block; height: 100%; width: 0; background: #0d6efd; border-radius: 6px; transition: width .35s ease; }
.ab-limits { display: flex; justify-content: space-between; color: #9ca3af; font-size: 13px; }
.ab-limits b { color: #4b5563; font-weight: 600; }
.ab-presets { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.ab-chip { border: 1px solid #e5e7eb; background: #fff; border-radius: 999px; padding: 7px 16px; font: inherit; font-size: 14px; font-weight: 500; color: #374151; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .12s; }
.ab-chip:hover { border-color: #0d6efd; background: #f0f6ff; color: #084298; }
.ab-chip:active, .ab-chip.pop { transform: scale(.92); }
.ab-chip.reset { color: #9ca3af; border-style: dashed; }
.ab-sum { border: 1px dashed #9ec5fe; background: #f8fbff; border-radius: 10px; padding: 12px 14px; margin-bottom: 14px; }
.ab-sum div { display: flex; justify-content: space-between; padding: 4px 0; color: #4b5563; }
.ab-sum div:last-child { border-top: 1px dashed #cfe2ff; margin-top: 6px; padding-top: 10px; color: #111827; font-weight: 700; font-size: 16px; }
.ab-sum b { font-variant-numeric: tabular-nums; }
.ab-consent { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 12px 14px; border: 1px solid #e5e7eb; border-radius: 10px; margin-bottom: 14px; transition: border-color .2s, background .2s; }
.ab-consent input { position: absolute; opacity: 0; pointer-events: none; }
.ab-tick { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #d1d5db; flex: none; display: grid; place-items: center; margin-top: 1px; transition: background .2s, border-color .2s; }
.ab-tick svg { width: 13px; height: 13px; stroke: #fff; stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .3s ease; }
.ab-consent input:checked + .ab-tick { background: #0d6efd; border-color: #0d6efd; }
.ab-consent input:checked + .ab-tick svg { stroke-dashoffset: 0; }
.ab-consent:has(input:checked) { border-color: #9ec5fe; background: #f8fbff; }
.ab-consent span:last-child { color: #4b5563; font-size: 14px; line-height: 1.5; }
.ab-actions { display: flex; gap: 10px; }
.ab-pay { flex: 1; height: 44px !important; font-size: 15px !important; }
.ab-pay svg { transition: transform .2s; } .ab-pay:hover svg { transform: translateX(4px); }
.ab-pay.is-loading { pointer-events: none; opacity: .85; }
.ab-pay.is-loading svg { animation: ab-spin .8s linear infinite; }
@keyframes ab-spin { to { transform: rotate(360deg); } }
.ab-bal { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; padding: 16px; position: relative; overflow: hidden; }
.ab-bal::after { content: ''; position: absolute; right: -30px; top: -30px; width: 110px; height: 110px; border-radius: 50%; border: 18px solid #eaf2ff; }
.ab-bal small { color: #6b7280; } .ab-bal b { display: block; font-family: var(--f-head); font-size: 28px; font-weight: 800; margin: 4px 0; letter-spacing: -.02em; position: relative; z-index: 1; }
.ab-bal .ok { color: #0b5ed7; display: inline-flex; gap: 6px; align-items: center; position: relative; z-index: 1; }
.ab-bal .ok svg { width: 15px; height: 15px; }
.ab-trust { display: grid; gap: 10px; }
.ab-trust div { display: flex; gap: 10px; align-items: flex-start; color: #4b5563; font-size: 14px; }
.ab-trust svg { width: 18px; height: 18px; color: #0d6efd; flex: none; margin-top: 1px; }
.ab-in { animation: ui-fade-up .5s ease both; }
.ab-in:nth-child(2) { animation-delay: .08s; } .ab-in:nth-child(3) { animation-delay: .16s; } .ab-in:nth-child(4) { animation-delay: .24s; }


/* API page */
.api-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #f3f4f6; }
.api-row > div { flex: 1; min-width: 0; }
.api-row small, .api-hd small { display: block; color: #9ca3af; font-size: 12.5px; margin-bottom: 3px; }
.api-m { background: #eaf2ff; color: #084298; font-weight: 700; font-size: 12px; padding: 4px 9px; border-radius: 6px; border: 1px solid #cfe2ff; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: #111827; word-break: break-all; background: transparent; }
.api-hd { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; padding-top: 12px; }
@media (min-width: 640px) { .api-hd { grid-template-columns: 1fr 1fr; } }
.api-copy, .api-ico { width: 34px; height: 34px; border: 1px solid #e5e7eb; background: #fff; border-radius: 8px; color: #6b7280; display: inline-grid; place-items: center; cursor: pointer; flex: none; transition: border-color .15s, color .15s, background .15s, transform .12s; }
.api-copy:hover, .api-ico:hover { border-color: #0d6efd; color: #0b5ed7; background: #f0f6ff; }
.api-copy:active, .api-ico:active { transform: scale(.92); }
.api-copy svg, .api-ico svg { width: 16px; height: 16px; }
.api-key { margin-bottom: 14px; }
.api-key-name { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-bottom: 8px; }
.api-key-name svg { width: 16px; height: 16px; color: #0d6efd; }
.api-key-box { display: flex; gap: 8px; }
.api-key-input { flex: 1; min-width: 0; height: 38px; border: 1px solid #d1d5db; border-radius: 8px; padding: 0 12px; font-family: ui-monospace, Menlo, monospace; font-size: 13px; background: #f9fafb; color: #111827; }
.api-note { color: #9ca3af; font-size: 13.5px; margin: 10px 0 0; }
.api-tabs { display: inline-flex; background: #f3f4f6; border-radius: 8px; padding: 3px; }
.api-tabs button { border: 0; background: transparent; padding: 5px 14px; border-radius: 6px; font: inherit; font-size: 13.5px; color: #6b7280; cursor: pointer; }
.api-tabs button.on { background: #fff; color: #0b5ed7; font-weight: 600; }
.api-code { position: relative; }
.api-code[hidden] { display: none; }
.api-code .api-copy { position: absolute; right: 8px; top: 8px; }
.api-code pre { margin: 0; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 14px 52px 14px 14px; overflow-x: auto; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; line-height: 1.6; color: #1f2937; white-space: pre; }

/* =========================================================
   v8: smaller sizes, no blue anywhere, ring button, tables, admin look
   ========================================================= */
/* ---- no blue on tap, focus, click, popups ---- */
* { -webkit-tap-highlight-color: rgba(13,110,253,.18); }
a:focus, button:focus, .btn:focus, .form-control:focus, .form-select:focus, .btn:active:focus { outline: none; box-shadow: none !important; }
:focus-visible { outline: 2px solid #0d6efd !important; outline-offset: 2px; }
input[type=checkbox], input[type=radio] { accent-color: #0d6efd; }
.btn-primary, .btn-info { --bs-btn-bg: #0d6efd; --bs-btn-border-color: #0b5ed7; --bs-btn-hover-bg: #0b5ed7; --bs-btn-hover-border-color: #084298; --bs-btn-active-bg: #084298; --bs-btn-active-border-color: #9a3412; --bs-btn-focus-shadow-rgb: 249,115,22; --bs-btn-color: #fff; --bs-btn-hover-color: #fff; --bs-btn-active-color: #fff; --bs-btn-disabled-bg: #9ec5fe; --bs-btn-disabled-border-color: #9ec5fe; }
.btn-primary:focus, .btn-primary:active, .btn-primary.active, .btn-primary:not(:disabled):not(.disabled):active, .show > .btn-primary.dropdown-toggle, .btn-info:focus, .btn-info:active { background: #0b5ed7 !important; border-color: #084298 !important; color: #fff !important; }
.btn-primary:disabled, .btn-primary.disabled { background: #9ec5fe !important; border-color: #9ec5fe !important; }
.btn-outline-primary:focus, .btn-outline-primary:active, .btn-light:active, .btn-secondary:active { background: #eaf2ff !important; border-color: #0d6efd !important; color: #084298 !important; }
.dropdown-item:active, .dropdown-item.active { background: #0d6efd !important; color: #fff !important; }
.swal2-confirm, .swal2-styled.swal2-confirm, .swal-button--confirm, .swal-button.swal-button--confirm { background-color: #0d6efd !important; box-shadow: none !important; border-radius: 6px !important; }
.swal2-cancel, .swal2-styled.swal2-cancel { background: #fff !important; color: #374151 !important; border: 1px solid #d1d5db !important; box-shadow: none !important; }
.swal2-popup { border-radius: 12px !important; font-family: var(--f-body) !important; }
.swal2-icon.swal2-question, .swal2-icon.swal2-info { border-color: #9ec5fe !important; color: #0d6efd !important; }
.swal2-timer-progress-bar { background: #0d6efd !important; }
.swal2-input:focus, .swal2-textarea:focus { border-color: #0d6efd !important; box-shadow: none !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current, .dataTables_wrapper .dataTables_paginate .paginate_button.current:hover { background: #0d6efd !important; border: 1px solid #0d6efd !important; color: #fff !important; border-radius: 6px; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover { background: #eaf2ff !important; border: 1px solid #9ec5fe !important; color: #0b5ed7 !important; border-radius: 6px; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { background: #0d6efd !important; color: #fff !important; }
.select2-container--default .select2-results__option[aria-selected=true] { background: #eaf2ff !important; color: #084298; }
.select2-container--default.select2-container--focus .select2-selection--multiple, .select2-container--default .select2-search--dropdown .select2-search__field:focus { border-color: #0d6efd !important; }
.page-link:focus, .nav-link:focus, .nav-tabs .nav-link:focus { box-shadow: none; color: #0b5ed7; }
.progress-bar, .bg-gradient-primary { background: #0d6efd !important; }
.form-check-input:checked { background-color: #0d6efd !important; border-color: #0d6efd !important; }
.form-check-input:focus { box-shadow: none !important; border-color: #0d6efd !important; }
.topbar .tb-btn { color: #374151 !important; }
.topbar .tb-btn:hover { color: #0b5ed7 !important; }
.topbar .tb-btn svg { stroke: currentColor; }
.text-primary, .text-info, a.text-primary { color: #0b5ed7 !important; }
.border-primary { border-color: #0d6efd !important; }
.alert-primary, .alert-info { background: #f0f6ff; border-color: #cfe2ff; color: #9a3412; }

/* ---- smaller, calmer sizes ---- */
html { font-size: 13.5px; }
body { font-size: 13px !important; }
.topbar { height: 44px !important; padding: 0 10px !important; }
.rail-head { height: 44px !important; }
.main-content { padding-top: 56px !important; }
@media (min-width: 1025px) { .rail { width: 236px !important; } .topbar { left: 236px !important; } .main-content { padding-left: 250px !important; } }
.tb-btn { width: 32px; height: 32px; } .tb-btn svg { width: 18px; height: 18px; }
.tb-avatar { width: 28px; height: 28px; display: block; border-radius: 50%; overflow: hidden; border: 1.5px solid #9ec5fe; }
.tb-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.pg-head h1 { font-size: 20px !important; } .pg-head h1::after { width: 22px; height: 2.5px; }
.pg-head p { font-size: 13px !important; }
.btn { font-size: 13px !important; min-height: 30px; line-height: 28px; padding: 0 12px !important; }
.pg-actions .btn { height: 30px; }
.seg a { height: 28px; line-height: 28px; font-size: 13px; padding: 0 12px !important; }
.stat { padding: 11px 14px !important; }
.stat .k { font-size: 13px !important; } .stat .v { font-size: 18px !important; margin: 4px 0 3px !important; } .stat .s { font-size: 12.5px !important; }
.stat.is-balance .v { font-size: 20px !important; }
.panel-head { padding: 11px 14px !important; } .panel-head h3 { font-size: 14px !important; }
.panel-body { padding: 12px 14px !important; }
.form-control, .form-select, .input-group-text { min-height: 34px !important; font-size: 13px !important; }
label, .form-label { font-size: 13px !important; }
.table thead th { font-size: 11px !important; padding: 8px 12px !important; } .table td { padding: 9px 12px !important; font-size: 13px; }
.rail-card img { width: 32px; height: 32px; } .rail-card b { font-size: 13px; }
.rail-link { height: 34px; font-size: 13.5px; } .rail-link svg { width: 17px; height: 17px; }
.rail-sublink { padding: 7px 10px 7px 38px; font-size: 13.5px; } .rail-title { padding: 14px 10px 5px; font-size: 10.5px; }
.pk-name { font-size: 16px !important; } .pk-amt b { font-size: 26px !important; } .pk-list li { font-size: 13.5px !important; padding: 6px 0 !important; }
.pk-list li > svg, .pk-list li > i { width: 24px !important; height: 24px !important; }
.pk-desc { font-size: 13px !important; } .pk-cta a.btn { height: 34px; }
.pf-avatar img, .profile-photo img { width: 84px; height: 84px; } .pf-name { font-size: 16px; }
.pf-rows > div { padding: 10px 0; font-size: 13px; } .pf-active { font-size: 13px; padding: 4px 12px; }
.pf-tab { font-size: 13px; min-height: 36px; } .pf-field { margin-bottom: 10px; }
.empty { padding: 24px 10px !important; } .empty h4 { font-size: 15px !important; }
.notice { font-size: 13px; padding: 10px 12px; }
.ui-toast .t-msg { font-size: 13px; }

/* ---- plain Add Balance page ---- */
.ab-steps, .ab-meter, .ab-sum, .ab-live { display: none; }
.ab-layout { gap: 12px; }
.ab-gw { padding: 14px; } .ab-gw img { height: 34px; } .ab-gw b { font-size: 15px; } .ab-gw small { font-size: 12.5px; }
.ab-body { padding: 14px; }
.ab-label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 13px; } .ab-label b { color: #dc2626; }
.ab-limits { margin-top: 6px; }
.ab-presets { margin: 8px 0 14px; }
.ab-chip { border-radius: 6px; padding: 6px 12px; font-size: 13px; }
.ab-chip.reset { display: none; }
.ab-consent { border-radius: 8px; background: #f0f6ff; border-color: #cfe2ff; border-left: 3px solid #0d6efd; }
.ab-consent input { position: static !important; opacity: 1 !important; pointer-events: auto !important; width: 16px; height: 16px; margin: 2px 0 0; flex: none; }
.ab-consent span { font-size: 13px; color: #4b5563; }
.ab-actions .btn { height: 34px; } .ab-pay { flex: 0 0 auto !important; }

/* ---- Add Data provider tiles, gateways ---- */
.prov-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 480px) { .prov-grid { grid-template-columns: repeat(3, 1fr); } }
.prov-tile { position: relative; margin: 0 !important; cursor: pointer; }
.prov-tile input { position: absolute; opacity: 0; width: 0; height: 0; }
.prov-card { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; transition: border-color .15s, background .15s; }
.prov-card em { width: 26px; height: 26px; border-radius: 6px; color: #fff; font-style: normal; font-weight: 700; font-size: 13px; display: grid; place-items: center; flex: none; }
.prov-card b { font-weight: 500; font-size: 13.5px; color: #111827; }
.prov-tile:hover .prov-card { border-color: #9ec5fe; }
.prov-tile input:checked + .prov-card { border-color: #0d6efd; background: #f0f6ff; }
.prov-tile input:focus-visible + .prov-card { outline: 2px solid #0d6efd; }
.gw-pills { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .gw-pills { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1100px) { .gw-pills { grid-template-columns: repeat(6, 1fr); } }
.gw-pill { position: relative; padding: 8px 10px; font-size: 13px; border-radius: 8px; min-width: 0; }
.gw-pill span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gw-on { position: absolute; right: 8px; top: 8px; width: 7px; height: 7px; border-radius: 50%; background: #16a34a; }
.gw-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid #e5e7eb; }
.gw-head b { font-family: var(--f-head); font-size: 15px; } .gw-head small { display: block; color: #9ca3af; margin-top: 2px; }
.gw-state { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.gw-state.on { background: #ecfdf3; color: #15803d; } .gw-state.off { background: #f3f4f6; color: #6b7280; }
.bv-what { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 11px 13px; margin-bottom: 12px; }
.bv-what p { margin: 4px 0 0; color: #4b5563; line-height: 1.55; }

/* ---- scroll to top ring ---- */
#ui-progress { display: none !important; }
#ui-top { position: fixed; right: 14px; bottom: 16px; width: 44px; height: 44px; padding: 0; border: 0 !important; border-radius: 50%; background: #fff !important; color: #0b5ed7; display: grid; place-items: center; cursor: pointer; z-index: 900; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .25s, transform .25s; }
#ui-top.show { opacity: 1; transform: none; pointer-events: auto; }
#ui-top .ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
#ui-top .ring-bg { fill: #fff; stroke: #cfe2ff; stroke-width: 3; }
#ui-top .ring-fg { fill: none; stroke: #0d6efd; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 113.1; stroke-dashoffset: 113.1; transition: stroke-dashoffset .1s linear; }
#ui-top .arrow { position: relative; }
#ui-top:hover .arrow { animation: ui-nudge .5s ease; }
@keyframes ui-nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

/* ---- fewer animations in the panel; none on profile ---- */
.main-content .section, .stat-grid .stat, .rt-row, .rail-title, .rail-card, .rail-sub, .empty .ei, .ab-in { animation: none !important; }
.pf-page, .pf-page * { animation: none !important; }
.pf-page .stat:hover, .pf-page .panel:hover { transform: none !important; }

/* ---- tables become cards on phones ---- */
@media (max-width: 640px) {
  table.stack { min-width: 0 !important; }
  table.stack thead { display: none; }
  table.stack, table.stack tbody, table.stack tr, table.stack td { display: block; width: 100%; }
  table.stack tr { border: 1px solid #e5e7eb; border-radius: 8px; margin: 0 0 10px; padding: 6px 12px; background: #fff; }
  table.stack tr:hover > * { background: transparent !important; }
  table.stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0 !important; border: 0 !important; text-align: right; font-size: 13px; }
  table.stack td::before { content: attr(data-label); color: #9ca3af; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; text-align: left; flex: none; }
  table.stack td:not([data-label])::before { display: none; }
  table.stack td + td { border-top: 1px dashed #f3f4f6 !important; }
  table.stack tr.stack-empty { border: 0; padding: 0; } table.stack tr.stack-empty td { display: block; text-align: center; }
  .table-responsive:has(table.stack) { border: 0; overflow: visible; }
}

/* ---- admin look: same family, dark side menu ---- */
.admin-ui .rail { background: #0f1b3d; border-right-color: #1e293b; }
.admin-ui .rail-head { border-bottom-color: #1e293b; }
.admin-ui .rail-logo img { filter: brightness(0) invert(1); }
.admin-ui .rail-close { color: #94a3b8; }
.admin-ui .rail-card { background: #1e293b; border-color: #3a3532; }
.admin-ui .rail-card b { color: #fff; }
.admin-ui .rail-chip { background: #3a2a1c; border-color: #7c3f12; color: #9ec5fe; }
.admin-ui .rail a.rail-link, .admin-ui .rail button.rail-link, .admin-ui .rail a.rail-sublink { color: #d6d3d1 !important; }
.admin-ui .rail .rail-link svg { color: #94a3b8; }
.admin-ui .rail a.rail-link:hover, .admin-ui .rail button.rail-link:hover, .admin-ui .rail a.rail-sublink:hover { background: rgba(13,110,253,.14) !important; color: #9ec5fe !important; }
.admin-ui .rail a.rail-link.active, .admin-ui .rail .rail-group.has-active > .rail-toggle, .admin-ui .rail a.rail-sublink.active { background: rgba(13,110,253,.18) !important; color: #9ec5fe !important; }
.admin-ui .rail .rail-link.active svg, .admin-ui .rail .rail-group.has-active > .rail-toggle svg { color: #3d8bfd !important; }
.admin-ui .rail-title { color: #64748b; }
.admin-ui .rail-plus::before, .admin-ui .rail-plus::after { background: #94a3b8; }
.admin-ui .rail-sublink::before { background: #44403c; }
.admin-ui .rail-nav::-webkit-scrollbar-thumb { background: #44403c; }
.l-bg-style1, .l-bg-style2, .l-bg-style3, .l-bg-style4 { background: #fff !important; color: #111827 !important; border: 1px solid #e5e7eb !important; }
.l-bg-style1 *, .l-bg-style2 *, .l-bg-style3 *, .l-bg-style4 * { color: #4b5563; }
.card-statistic-3 { padding: 14px; position: relative; }
.card-statistic-3 .card-title { font-size: 13px !important; font-weight: 500 !important; color: #6b7280 !important; margin-bottom: 4px; }
.card-statistic-3 .card-content > span:first-of-type { display: block; font-family: var(--f-head); font-size: 22px; font-weight: 800; color: #111827 !important; }
.card-statistic-3 .card-icon-large { position: absolute; right: 14px; top: 12px; font-size: 20px; }
.card-statistic-3 .card-icon-large .fa, .card-statistic-3 .card-icon-large i { color: #9ec5fe !important; }
.card-statistic-3 .progress { background: #f3f4f6; height: 5px !important; border-radius: 5px; }
.l-bg-purple, .l-bg-orange, .l-bg-cyan, .l-bg-green, .l-bg-cherry { background: #0d6efd !important; }
.admin-ui .main-content .card-header { background: #fafafa; }
