/* ==========================================================================
   OTP Aggregator — theme-v2.css  (loaded AFTER theme.css)
   Art-direction layer: compact density, navy admin rail with one colour per menu entry, glass surfaces
   (iOS frosted glass in light, tinted glass in dark), multi-hue stat cards, coloured section heads,
   split auth, 5-style buy layout for the client. No gradient text, no thick side-borders.
   ========================================================================== */

/* ---------- A. density ---------------------------------------------------- */
html { font-size: 14px; }
:root, [data-bs-theme="light"], [data-bs-theme="dark"] {
  --bs-body-font-size: .9286rem;          /* 13px */
  --otp-sidebar-w: 236px;
  --otp-sidebar-w-collapsed: 64px;
  --otp-topbar-h: 54px;
  --otp-radius: 12px;
  --otp-radius-sm: 8px;
}
body { line-height: 1.45; }
.app-content { padding: 1.1rem 1.25rem 1.5rem; max-width: 1560px; }
.page-header { margin-bottom: 1rem; gap: 10px; }
.page-title { font-size: 1.28rem; margin: 0 0 .1rem; }
.page-subtitle { font-size: .86rem; }
.breadcrumb { font-size: .75rem; }
.card { --bs-card-spacer-y: .9rem; --bs-card-spacer-x: 1rem; --bs-card-cap-padding-y: .7rem; }
.card-header { padding: .65rem 1rem; }
.card-title { font-size: .95rem; }
.btn { --bs-btn-padding-y: .38rem; --bs-btn-padding-x: .8rem; --bs-btn-font-size: .875rem; --bs-btn-border-radius: 9px; }
.btn-sm { --bs-btn-padding-y: .22rem; --bs-btn-padding-x: .55rem; --bs-btn-font-size: .78rem; --bs-btn-border-radius: 7px; }
.btn-lg { --bs-btn-padding-y: .55rem; --bs-btn-padding-x: 1.1rem; --bs-btn-font-size: .95rem; --bs-btn-border-radius: 11px; }
.btn-icon { width: 32px; height: 32px; }
.btn-icon.btn-sm { width: 26px; height: 26px; }
.form-control, .form-select { padding: .4rem .7rem; font-size: .875rem; border-radius: 9px; min-height: 36px; }
.form-control-sm, .form-select-sm { min-height: 30px; padding: .2rem .5rem; font-size: .8rem; }
.form-control-lg, .form-select-lg { min-height: 44px; font-size: .95rem; }
textarea.form-control { min-height: 72px; }
.form-label { font-size: .78rem; margin-bottom: .25rem; }
.form-text { font-size: .72rem; margin-top: .2rem; }
.mb-3 { margin-bottom: .8rem !important; }
.table > :not(caption) > * > * { padding: .5rem .75rem; }
.table thead th { font-size: .68rem; padding-top: .55rem; padding-bottom: .55rem; }
.stat-card { padding: .8rem .95rem; gap: 12px; }
.stat-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 1rem; }
.stat-value { font-size: 1.32rem; }
.stat-label { font-size: .68rem; }
.filter-bar { padding: .7rem .9rem; gap: 8px; margin-bottom: .75rem; }
.alert { --bs-alert-padding-y: .55rem; --bs-alert-padding-x: .85rem; font-size: .86rem; }
.dropdown-menu { font-size: .86rem; }
.badge-soft { font-size: .7rem; padding: .18em .55em; }
.empty-state { padding: 2rem 1rem; }
.empty-state-icon { width: 52px; height: 52px; font-size: 1.3rem; margin-bottom: .75rem; }
.sticky-actions { padding: .7rem 0 .15rem; }
.kv { gap: .4rem 1rem; }
.kv dt, .kv dd { font-size: .86rem; }

/* ---------- B. page backdrop + glass --------------------------------------- */
:root, [data-bs-theme="light"] {
  --otp-bg: #eaeef8;
  --otp-glass: rgba(255, 255, 255, .66);
  --otp-glass-strong: rgba(255, 255, 255, .82);
  --otp-glass-border: rgba(255, 255, 255, .85);
  --otp-glass-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 8px 28px rgba(31, 41, 90, .08);
  --otp-glass-blur: blur(18px) saturate(170%);
  --otp-border: #dfe4f0;
}
[data-bs-theme="dark"] {
  --otp-bg: #080d1c;
  --otp-glass: rgba(24, 33, 62, .55);
  --otp-glass-strong: rgba(24, 33, 62, .78);
  --otp-glass-border: rgba(255, 255, 255, .08);
  --otp-glass-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 10px 32px rgba(0, 0, 0, .35);
  --otp-glass-blur: blur(16px) saturate(140%);
  --otp-border: rgba(255, 255, 255, .09);
  --otp-surface: #111a30;
  --otp-surface-2: #16213b;
}
body { background: var(--otp-bg); position: relative; }
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(620px 420px at 8% -6%, rgba(99, 102, 241, .22), transparent 62%),
    radial-gradient(560px 420px at 96% 4%, rgba(6, 182, 212, .20), transparent 60%),
    radial-gradient(640px 460px at 70% 108%, rgba(236, 72, 153, .13), transparent 62%),
    radial-gradient(520px 380px at -4% 92%, rgba(16, 185, 129, .12), transparent 60%);
}
[data-bs-theme="dark"] body::before {
  background:
    radial-gradient(640px 440px at 8% -8%, rgba(99, 102, 241, .28), transparent 62%),
    radial-gradient(560px 420px at 98% 2%, rgba(6, 182, 212, .20), transparent 60%),
    radial-gradient(660px 460px at 72% 110%, rgba(168, 85, 247, .18), transparent 62%),
    radial-gradient(520px 380px at -6% 94%, rgba(16, 185, 129, .12), transparent 60%);
}
.card, .stat-card, .filter-bar, .rental-card, .feature, .hero-card, .auth-card, .modal-content, .accordion, .list-group, .glass {
  background: var(--otp-glass);
  border: 1px solid var(--otp-glass-border);
  box-shadow: var(--otp-glass-shadow);
  -webkit-backdrop-filter: var(--otp-glass-blur);
  backdrop-filter: var(--otp-glass-blur);
}
.card { --bs-card-bg: transparent; --bs-card-border-color: var(--otp-glass-border); }
.accordion { --bs-accordion-bg: transparent; }
.accordion-item { background: transparent; }
.list-group { --bs-list-group-bg: transparent; }
.card .card, .card .stat-card:not(.is-gradient):not([class*="is-g-"]), .card .filter-bar, .modal-content .card { background: var(--otp-surface-2); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.dropdown-menu { background: var(--otp-glass-strong); -webkit-backdrop-filter: var(--otp-glass-blur); backdrop-filter: var(--otp-glass-blur); border-color: var(--otp-glass-border); }
.form-control, .form-select, .select2-container--bootstrap-5 .select2-selection { background-color: var(--otp-glass-strong); }
[data-bs-theme="dark"] .form-control, [data-bs-theme="dark"] .form-select { background-color: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .12); }
[data-bs-theme="dark"] .form-control:focus, [data-bs-theme="dark"] .form-select:focus { background-color: rgba(255, 255, 255, .08); }
.table-card, .card.table-card { overflow: hidden; }
.table thead th { background: color-mix(in srgb, var(--otp-primary) 7%, var(--otp-surface-2)); }
.table > tbody > tr:nth-child(even) > * { background: color-mix(in srgb, var(--otp-primary) 3.5%, transparent); }
.table-hover > tbody > tr:hover > * { background: rgba(var(--otp-primary-rgb), .09) !important; }
.app-topbar { background: var(--otp-glass-strong); border-bottom: 1px solid var(--otp-glass-border); }

/* ---------- C. admin rail: navy, one colour per entry ----------------------- */
.app-sidebar {
  --rail-text: #b8c3e0; --rail-muted: #6f7ca6; --rail-hover: rgba(255, 255, 255, .06); --rail-active: rgba(255, 255, 255, .11);
  background: linear-gradient(180deg, #121d46 0%, #0e1738 55%, #0a1230 100%);
  border-right: 1px solid rgba(255, 255, 255, .06);
  color: var(--rail-text);
}
[data-bs-theme="dark"] .app-sidebar { background: linear-gradient(180deg, #0c1431 0%, #090f26 100%); }
.sidebar-brand { border-bottom: 1px solid rgba(255, 255, 255, .07); height: var(--otp-topbar-h); flex-basis: var(--otp-topbar-h); padding: 0 1rem; }
.sidebar-brand a, .brand-name { color: #fff; }
.brand-name small { color: var(--rail-muted); }
.sidebar-nav { padding: .5rem .55rem 1rem; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .18) transparent; }
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .16); border-radius: 6px; }
.nav-caption { color: var(--rail-muted); font-size: .64rem; letter-spacing: .12em; padding: .5rem .6rem; margin-top: .25rem; }
.nav-caption:hover { color: #fff; }
.nav-caption .nav-caption-icon { color: var(--rail-muted); }
.nav-link-item { color: var(--rail-text); padding: .38rem .55rem; margin: 1px 0; gap: 10px; border-radius: 10px; font-size: .86rem; }
.nav-link-item .nav-ico { flex: 0 0 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; font-size: .8rem; color: var(--c, #94a3b8); background: color-mix(in srgb, var(--c, #94a3b8) 18%, transparent); transition: background-color .15s ease, color .15s ease, transform .15s ease; }
.nav-link-item:hover { background: var(--rail-hover); color: #fff; }
.nav-link-item:hover .nav-ico { transform: scale(1.06); }
.nav-link-item.active { background: var(--rail-active); color: #fff; font-weight: 600; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset; }
.nav-link-item.active .nav-ico { background: var(--c, #6366f1); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--c, #6366f1) 45%, transparent); }
.sidebar-foot { border-top: 1px solid rgba(255, 255, 255, .07); padding: .55rem; }
.sidebar-user { background: rgba(255, 255, 255, .06); }
.sidebar-user-name { color: #fff; }
.sidebar-user-role { color: var(--rail-muted); }
html.sidebar-collapsed .nav-link-item .nav-ico { margin: 0; }

/* ---------- D. multi-hue stat cards + coloured section heads ---------------- */
.stat-card.is-g-blue, .stat-card.is-g-violet, .stat-card.is-g-green, .stat-card.is-g-amber, .stat-card.is-g-rose, .stat-card.is-g-cyan { color: #fff; border-color: transparent; }
.stat-card.is-g-blue { background: linear-gradient(135deg, #2563eb, #3b82f6 60%, #60a5fa); }
.stat-card.is-g-violet { background: linear-gradient(135deg, #6d28d9, #8b5cf6 60%, #a78bfa); }
.stat-card.is-g-green { background: linear-gradient(135deg, #059669, #10b981 60%, #34d399); }
.stat-card.is-g-amber { background: linear-gradient(135deg, #d97706, #f59e0b 60%, #fbbf24); }
.stat-card.is-g-rose { background: linear-gradient(135deg, #e11d48, #f43f5e 60%, #fb7185); }
.stat-card.is-g-cyan { background: linear-gradient(135deg, #0891b2, #06b6d4 60%, #22d3ee); }
[class*="is-g-"] .stat-label, [class*="is-g-"] .stat-sub { color: rgba(255, 255, 255, .85); }
[class*="is-g-"] .stat-value { color: #fff; }
[class*="is-g-"] .stat-icon { background: rgba(255, 255, 255, .22); color: #fff; }
/* "period" card: title row + 2x2 mini boxes (dashboard) */
.period-card { position: relative; border-radius: var(--otp-radius); padding: .85rem; color: #fff; overflow: hidden; box-shadow: 0 10px 26px rgba(15, 23, 42, .18); height: 100%; }
.period-card .pc-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .65rem; }
.period-card .pc-title { font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: .86rem; }
.period-card .pc-icon { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .22); display: grid; place-items: center; }
.period-card .pc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.period-card .pc-box { background: rgba(255, 255, 255, .17); border-radius: 9px; padding: .4rem .6rem; }
.period-card .pc-box small { display: block; font-size: .68rem; opacity: .85; }
.period-card .pc-box b { font-size: 1.02rem; font-variant-numeric: tabular-nums; }
.period-card.c-blue { background: linear-gradient(135deg, #1d4ed8, #3b82f6); } .period-card.c-violet { background: linear-gradient(135deg, #6d28d9, #8b5cf6); }
.period-card.c-green { background: linear-gradient(135deg, #047857, #10b981); } .period-card.c-amber { background: linear-gradient(135deg, #d97706, #f59e0b); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; padding: .12rem .6rem; border-radius: 999px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; color: var(--otp-heading); background: var(--otp-glass-strong); border: 1px solid var(--otp-border-strong); }
.live-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: otp-pulse-ring 1.4s ease-out infinite; }
.live-pill.is-off::before { background: #94a3b8; animation: none; }
.section-head { display: flex; align-items: center; gap: 12px; padding: .75rem 1rem; color: #fff; border-radius: var(--otp-radius) var(--otp-radius) 0 0; }
.section-head .sh-icon { width: 34px; height: 34px; border-radius: 10px; background: rgba(255, 255, 255, .22); display: grid; place-items: center; flex: 0 0 auto; }
.section-head .sh-title { font-weight: 700; font-size: .9rem; text-transform: uppercase; letter-spacing: .03em; line-height: 1.15; }
.section-head .sh-sub { font-size: .72rem; opacity: .88; margin: 0; }
.section-head.h-violet { background: linear-gradient(135deg, #7c3aed, #3b82f6); } .section-head.h-red { background: linear-gradient(135deg, #e11d48, #a855f7); }
.section-head.h-amber { background: linear-gradient(135deg, #f59e0b, #84cc16); } .section-head.h-teal { background: linear-gradient(135deg, #0d9488, #06b6d4); }
.section-head.h-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); } .section-head.h-pink { background: linear-gradient(135deg, #db2777, #f97316); }
.section-card { padding: 0; overflow: hidden; margin-bottom: 1rem; }
.section-card > .section-body { padding: 1rem; }
.title-bar { display: flex; align-items: center; gap: 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: .82rem; color: var(--otp-heading); }
.title-bar::before { content: ""; width: 18px; height: 3px; border-radius: 3px; background: var(--otp-gradient); }
.chart-box { position: relative; height: 260px; }
.chart-box.sm { height: 190px; }
.feed { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow-y: auto; }
.feed li { display: flex; gap: 10px; padding: .5rem 0; border-bottom: 1px dashed var(--otp-border); font-size: .84rem; }
.feed li:last-child { border-bottom: 0; }
.feed .feed-time { flex: 0 0 auto; color: var(--otp-text-muted); font-size: .72rem; min-width: 64px; }

/* ---------- E. form + plugin fixes ----------------------------------------- */
/* horizontal page scroll must never come from a dropdown or a wide child */
html, body { max-width: 100%; overflow-x: clip; }
.app-main { min-width: 0; overflow-x: clip; }
.select2-container { max-width: 100%; }
.select2-container--bootstrap-5 .select2-dropdown { max-width: min(520px, calc(100vw - 20px)); min-width: 0; }
.select2-container--bootstrap-5 .select2-results__option { white-space: normal; word-break: break-word; padding: .4rem .7rem; font-size: .86rem; }
.select2-container--bootstrap-5 .select2-selection { min-height: 36px; padding: .15rem .55rem; display: flex; align-items: center; }
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered { padding-left: 0; padding-right: 1.4rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.select2-container--bootstrap-5 .select2-selection--single .select2-selection__arrow { right: .5rem; }
.select2-container--bootstrap-5.select2--small .select2-selection, .select2-container--bootstrap-5 .select2-selection.select2--small { min-height: 30px; font-size: .8rem; }
.select2-search--dropdown { padding: .45rem; }
.select2-container--bootstrap-5 .select2-results__options { max-height: 260px; }
.nav-scroll, .nav-pills, .nav-tabs { flex-wrap: nowrap; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; -ms-overflow-style: none; }
.nav-scroll::-webkit-scrollbar, .nav-pills::-webkit-scrollbar, .nav-tabs::-webkit-scrollbar { display: none; }
.nav-pills .nav-link, .nav-tabs .nav-link { white-space: nowrap; font-size: .86rem; padding: .4rem .8rem; }
.nav-pills { gap: 4px; padding: 4px; background: var(--otp-glass); border: 1px solid var(--otp-glass-border); border-radius: 12px; width: fit-content; max-width: 100%; }
.nav-pills .nav-link { border-radius: 9px; color: var(--otp-text-muted); }
.nav-pills .nav-link.active { background: var(--otp-primary); color: #fff; box-shadow: 0 4px 12px rgba(var(--otp-primary-rgb), .3); }
.table-responsive { scrollbar-width: thin; }

/* ---------- F. toasts (colour chips, no side borders) ----------------------- */
.toast-host { top: 14px; right: 14px; z-index: 3000; }
.toast-host .toast { background: var(--otp-glass-strong); border: 1px solid var(--otp-glass-border); -webkit-backdrop-filter: var(--otp-glass-blur); backdrop-filter: var(--otp-glass-blur); box-shadow: var(--otp-shadow-md); }
.toast-ico { width: 28px; height: 28px; flex: 0 0 28px; border-radius: 9px; display: grid; place-items: center; font-size: .9rem; margin-top: 0; color: #fff; }
.toast-ok .toast-ico { background: var(--otp-success); } .toast-err .toast-ico { background: var(--otp-danger); }
.toast-warn .toast-ico { background: var(--otp-warning); } .toast-info .toast-ico { background: var(--otp-info); }

/* ---------- G. language + header controls ---------------------------------- */
.lang-btn { display: inline-flex; align-items: center; gap: 6px; }
.lang-flag { font-size: 1.05rem; line-height: 1; }
.dropdown-item.is-current { background: var(--otp-primary-soft); color: var(--otp-primary); font-weight: 600; }
.round-btn { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid var(--otp-glass-border); background: var(--otp-glass-strong); color: var(--otp-text); }
.round-btn:hover { background: var(--otp-primary-soft); color: var(--otp-primary); }

/* ---------- H. auth: split screen -------------------------------------------- */
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-aside { position: relative; overflow: hidden; padding: 2.2rem 2.6rem; display: flex; flex-direction: column; justify-content: space-between; color: #fff; background:
    radial-gradient(520px 360px at 12% 8%, rgba(34, 211, 238, .38), transparent 62%),
    radial-gradient(520px 420px at 92% 100%, rgba(236, 72, 153, .32), transparent 62%),
    linear-gradient(145deg, #1e2a78 0%, #4f46e5 52%, #7c3aed 100%); }
.auth-aside::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .13) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, transparent, #000 40%, transparent); pointer-events: none; }
.auth-aside > * { position: relative; z-index: 1; }
.auth-aside .brand-name, .auth-aside .brand-name small { color: #fff; }
.auth-headline { font-size: clamp(1.7rem, 2.8vw, 2.5rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; margin: 0 0 .75rem; color: #fff; }
.auth-lead { color: rgba(255, 255, 255, .82); max-width: 440px; font-size: .98rem; }
.auth-stats { display: flex; gap: 1.5rem; flex-wrap: wrap; margin-top: 1.2rem; }
.auth-stats b { display: block; font-size: 1.35rem; font-weight: 800; }
.auth-stats span { font-size: .78rem; color: rgba(255, 255, 255, .78); }
.phone-mock { width: 210px; padding: 12px; border-radius: 30px; background: #0b1020; box-shadow: 0 30px 60px rgba(0, 0, 0, .35); animation: otp-float 6s ease-in-out infinite; }
.phone-mock::before { content: ""; display: block; width: 64px; height: 6px; border-radius: 6px; background: #1f2937; margin: 0 auto 10px; }
.phone-mock .sms { background: #fff; color: #0f172a; border-radius: 12px; padding: .5rem .65rem; font-size: .72rem; margin-bottom: 7px; box-shadow: 0 2px 8px rgba(0, 0, 0, .15); }
.phone-mock .sms b { color: #4f46e5; font-family: var(--otp-mono); letter-spacing: .06em; }
.phone-mock .sms small { display: block; color: #64748b; font-size: .62rem; }
.auth-main { display: grid; place-items: center; padding: 2rem 1.25rem; position: relative; }
.auth-main .auth-wrap { max-width: 420px; }
.auth-split .auth-card { background: var(--otp-glass-strong); }
.auth-top { position: absolute; top: 14px; right: 14px; display: flex; gap: 8px; }
@media (max-width: 991.98px) { .auth-split { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* ---------- I. client site: 5-style hero + buy layout ------------------------ */
.site-header { background: var(--otp-glass-strong); border-bottom: 1px solid var(--otp-glass-border); }
.site-nav { min-height: 58px; gap: .9rem; }
.site-menu a { padding: .4rem .7rem; font-size: .88rem; }
.balance-chip { padding: .3rem .7rem; font-size: .82rem; }
.hero { padding: 3.4rem 0 2.6rem; text-align: center; }
.hero .hero-badge { display: inline-flex; align-items: center; gap: 8px; padding: .25rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 700; color: var(--otp-primary); background: var(--otp-primary-soft); border: 1px solid rgba(var(--otp-primary-rgb), .25); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); margin-bottom: .7rem; }
.hero p.lead { margin: 0 auto 1.4rem; font-size: 1rem; }
.hero-search { display: flex; align-items: center; gap: 8px; max-width: 620px; margin: 0 auto; padding: .35rem .35rem .35rem 1rem; border-radius: 16px; background: var(--otp-glass-strong); border: 1px solid rgba(var(--otp-primary-rgb), .3); box-shadow: 0 12px 34px rgba(var(--otp-primary-rgb), .16); }
.hero-search i { color: var(--otp-text-muted); }
.hero-search input { flex: 1; border: 0; background: transparent; outline: 0; font-size: .95rem; color: var(--otp-text); min-width: 0; padding: .45rem 0; }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: .32rem .75rem; border-radius: 999px; background: var(--otp-glass-strong); border: 1px solid var(--otp-border); color: var(--otp-text); font-weight: 550; font-size: .82rem; text-decoration: none; transition: transform .15s ease, border-color .15s ease; }
.chip:hover { transform: translateY(-2px); border-color: var(--otp-primary); text-decoration: none; color: var(--otp-primary); }
.chip .svc-dot { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: .72rem; color: #fff; background: var(--c, #6366f1); }
.buy-grid { display: grid; grid-template-columns: 310px 330px minmax(0, 1fr); gap: .9rem; align-items: start; }
.panel { background: var(--otp-glass); border: 1px solid var(--otp-glass-border); border-radius: var(--otp-radius); box-shadow: var(--otp-glass-shadow); -webkit-backdrop-filter: var(--otp-glass-blur); backdrop-filter: var(--otp-glass-blur); padding: .9rem; }
.panel-title { font-weight: 700; font-size: .95rem; margin-bottom: .6rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pick-list { max-height: 300px; overflow-y: auto; margin: .5rem -.2rem 0; padding: 0 .2rem; scrollbar-width: thin; }
.pick-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: .42rem .55rem; border: 0; border-radius: 9px; background: transparent; color: var(--otp-text); text-align: left; font-size: .86rem; }
.pick-item:hover { background: var(--otp-sidebar-hover-bg); }
.pick-item.is-active { background: var(--otp-primary-soft); color: var(--otp-primary); font-weight: 650; }
.pick-item .ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-size: .72rem; color: #fff; background: var(--c, #6366f1); flex: 0 0 auto; }
.tier { display: flex; align-items: center; gap: 10px; padding: .5rem .6rem; border-radius: 10px; cursor: pointer; border: 1px solid transparent; }
.tier:hover { background: var(--otp-sidebar-hover-bg); }
.tier.is-active { background: var(--otp-primary-soft); border-color: rgba(var(--otp-primary-rgb), .3); }
.tier .price { font-family: var(--otp-mono); font-weight: 700; }
.tier .count { margin-left: auto; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; background: rgba(var(--otp-success-rgb), .14); color: var(--otp-success); font-weight: 700; }
.cta-buy { width: 100%; padding: .7rem 1rem; font-weight: 700; border-radius: 12px; }
@media (max-width: 1199.98px) { .buy-grid { grid-template-columns: 290px minmax(0, 1fr); } .buy-grid > :nth-child(3) { grid-column: 1 / -1; } }
@media (max-width: 767.98px) { .buy-grid { grid-template-columns: 1fr; } }
.docs-layout { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 1.4rem; align-items: start; }
.docs-toc { position: sticky; top: 76px; padding: .85rem; font-size: .84rem; }
.docs-toc a { display: block; padding: .22rem .5rem; border-radius: 7px; color: var(--otp-text-muted); }
.docs-toc a:hover, .docs-toc a.active { background: var(--otp-primary-soft); color: var(--otp-primary); text-decoration: none; }
.docs-section { margin-bottom: 1.4rem; }
.method-badge { display: inline-block; font-family: var(--otp-mono); font-size: .72rem; font-weight: 800; padding: .15rem .5rem; border-radius: 6px; color: #fff; letter-spacing: .04em; }
.method-get { background: #0ea5e9; } .method-post { background: #10b981; } .method-delete { background: #ef4444; } .method-put { background: #f59e0b; }
.code-block { position: relative; border-radius: 12px; background: #0b1226; color: #dbe4ff; padding: .9rem 1rem; font-family: var(--otp-mono); font-size: .8rem; overflow-x: auto; border: 1px solid rgba(255, 255, 255, .08); }
.code-block .code-copy { position: absolute; top: 8px; right: 8px; }
@media (max-width: 991.98px) { .docs-layout { grid-template-columns: 1fr; } .docs-toc { display: none; } }

/* ---------- J. responsive polish ---------------------------------------------- */
@media (max-width: 991.98px) {
  .app-sidebar { width: min(84vw, var(--otp-sidebar-w)); }
  .app-content { padding: .9rem .8rem 1.2rem; }
  .page-header { flex-direction: column; align-items: stretch; }
  .page-actions { width: 100%; }
  .page-actions .btn { flex: 1 1 auto; }
}
@media (max-width: 575.98px) {
  html { font-size: 14px; }
  .filter-bar > * { flex: 1 1 100%; min-width: 0; }
  .filter-bar .btn { width: 100%; }
  .card-header { flex-direction: column; align-items: stretch; }
  .period-card .pc-box b { font-size: .95rem; }
  .table-footer { justify-content: center; }
  .auth-card { padding: 1.25rem 1rem; }
}

.lang-code { font-size: .7rem; font-weight: 800; letter-spacing: .04em; line-height: 1; }

/* ---------- K. compact lists: slim stat strip + collapsible filter bar -------------------------------- */
.stat-strip { --bs-gutter-x: .6rem; --bs-gutter-y: .6rem; margin-bottom: .6rem !important; }
.stat-strip .stat-card { padding: .45rem .7rem; gap: 9px; border-radius: 12px; }
.stat-strip .stat-icon { width: 30px; height: 30px; border-radius: 9px; font-size: .82rem; }
.stat-strip .stat-label { font-size: .62rem; margin: 0; }
.stat-strip .stat-value { font-size: 1.05rem; line-height: 1.2; }
.stat-strip .stat-sub { display: none; }
.collapse-bar { display: flex; justify-content: flex-end; margin: 0 0 .4rem; }
.collapse-toggle { display: inline-flex; align-items: center; gap: .45rem; padding: .22rem .65rem; font-size: .74rem; font-weight: 600; color: var(--otp-text-muted); background: var(--otp-glass); border: 1px solid var(--otp-glass-border); border-radius: 999px; cursor: pointer; transition: color .15s, background .15s; }
.collapse-toggle:hover { color: var(--otp-primary); background: var(--otp-glass-strong); }
.collapse-toggle .caret { font-size: .62rem; transition: transform .18s ease; }
.collapse-toggle.is-open .caret, .collapse-toggle.is-closed .caret { transform: rotate(180deg); }
.collapse-toggle .count { min-width: 17px; height: 17px; padding: 0 5px; display: inline-grid; place-items: center; font-size: .66rem; color: #fff; background: var(--otp-primary); border-radius: 999px; }
.filter-bar { margin-bottom: .6rem; }
.filter-bar[hidden], .stat-strip[hidden] { display: none !important; }
@media (max-width: 575.98px) { .stat-strip .stat-card { padding: .4rem .55rem; } .stat-strip .stat-icon { display: none; } }
/* QR upload block */
.qr-drop { display: grid; place-items: center; min-height: 190px; border: 1.5px dashed var(--otp-border); border-radius: 14px; background: var(--otp-surface-2); overflow: hidden; }
.qr-drop img { max-width: 100%; height: auto; border-radius: 10px; background: #fff; padding: 6px; }
