/* --- Template: soya --- */
/* ==========================================================================
   SOYA — a simple, glass-style digital services theme
   File: css/soya.css   (standalone — does not depend on any other theme CSS)
   Colours: every colour is an HSL triplet token used as hsl(var(--token)).
   Change the look of the whole theme by editing the tokens in :root below.
   ========================================================================== */

/* ---------- 1. Design tokens ------------------------------------------- */
:root {
  /* brand */
  --p: 158 64% 36%;            /* primary  (soy green)           */
  --p-2: 190 78% 40%;          /* secondary accent for gradients */
  --p-fg: 0 0% 100%;           /* text on primary                */

  /* surfaces */
  --base: 210 30% 96%;         /* page background                */
  --card: 0 0% 100%;           /* glass / card surface           */
  --card-solid: 0 0% 100%;     /* opaque surface (menus, modals) */
  --fill: 220 20% 46%;         /* subtle fills (use with alpha)  */
  --border: 220 20% 62%;       /* hairlines (use with alpha)     */
  --shadow: 222 40% 20%;       /* shadow colour                  */

  /* text */
  --text: 222 32% 14%;
  --muted: 218 14% 40%;

  /* status */
  --success: 152 62% 34%;
  --warning: 36 94% 44%;
  --danger: 0 72% 50%;
  --info: 210 88% 50%;

  /* glass recipe */
  --glass-alpha: .62;
  --glass-blur: 18px;
  --glass-border-alpha: .35;

  /* shape + rhythm */
  --radius: 16px;
  --radius-sm: 11px;
  --radius-lg: 22px;
  --gap: 16px;
  --topbar-h: 56px;
  --sidebar-w: 248px;
  --nav-h: 62px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  /* type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;

  /* legacy aliases — keeps older inline styles / generated markup themed */
  --primary: hsl(var(--p));
  --primary-gradient: hsl(var(--p));
  --text-primary: hsl(var(--p));
  --dark-text-primary: hsl(var(--p));
  --bg-secondary: hsl(var(--card-solid));
  color-scheme: light;
}

/* Dark theme — toggled with <html data-theme="dark"> */
html[data-theme="dark"] {
  --p: 158 62% 46%;
  --p-2: 190 80% 52%;
  --p-fg: 160 60% 6%;
  --base: 224 30% 7%;
  --card: 224 26% 13%;
  --card-solid: 224 26% 12%;
  --fill: 220 22% 62%;
  --border: 220 18% 60%;
  --shadow: 224 60% 2%;
  --text: 210 30% 95%;
  --muted: 215 16% 68%;
  --success: 152 60% 48%;
  --warning: 38 92% 56%;
  --danger: 0 80% 64%;
  --info: 210 92% 66%;
  --glass-alpha: .55;
  --glass-border-alpha: .22;
  color-scheme: dark;
}

/* ---------- 2. Reset + base -------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 14.5px;
  line-height: 1.55;
  color: hsl(var(--text));
  background: hsl(var(--base));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
/* soft colour blobs behind the glass */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(60vmax 50vmax at 8% -8%, hsl(var(--p) / .20), transparent 60%),
    radial-gradient(55vmax 45vmax at 100% 0%, hsl(var(--p-2) / .16), transparent 60%),
    radial-gradient(50vmax 50vmax at 60% 110%, hsl(var(--info) / .10), transparent 60%);
}
img, svg, video { max-width: 100%; vertical-align: middle; }
img { height: auto; border: 0; }
a { color: hsl(var(--p)); text-decoration: none; transition: color .15s var(--ease), opacity .15s var(--ease); }
a:hover { color: hsl(var(--p) / .8); text-decoration: none; }
hr { border: 0; border-top: 1px solid hsl(var(--border) / .3); margin: 1rem 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 .5rem; font-weight: 650; line-height: 1.25; color: hsl(var(--text)); letter-spacing: -.01em; }
h1 { font-size: 1.9rem; } h2 { font-size: 1.5rem; } h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; } h5 { font-size: 1rem; } h6 { font-size: .92rem; }
p { margin: 0 0 .8rem; }
ul, ol { margin: 0 0 .8rem; padding-left: 1.2rem; }
small, .small { font-size: .82em; }
strong, b { font-weight: 650; }
code, kbd, pre, samp { font-family: var(--mono); font-size: .88em; }
code { background: hsl(var(--fill) / .14); padding: .1em .4em; border-radius: 6px; color: hsl(var(--text)); }
pre { margin: 0; overflow: auto; }
label { display: inline-block; margin-bottom: .35rem; font-weight: 550; font-size: .86rem; }
button { font-family: inherit; }
::selection { background: hsl(var(--p) / .28); }
:focus-visible { outline: 2px solid hsl(var(--p) / .7); outline-offset: 2px; }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-thumb { background: hsl(var(--fill) / .35); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: hsl(var(--fill) / .55); background-clip: padding-box; border: 2px solid transparent; }
* { scrollbar-width: thin; scrollbar-color: hsl(var(--fill) / .4) transparent; }

/* ---------- 3. Glass recipe -------------------------------------------- */
.glass,
.card,
.well {
  background: hsl(var(--card) / var(--glass-alpha));
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid hsl(var(--border) / var(--glass-border-alpha));
  box-shadow: 0 1px 0 hsl(0 0% 100% / .35) inset, 0 10px 30px hsl(var(--shadow) / .08);
}
html[data-theme="dark"] .glass,
html[data-theme="dark"] .card,
html[data-theme="dark"] .well {
  box-shadow: 0 1px 0 hsl(0 0% 100% / .05) inset, 0 12px 34px hsl(var(--shadow) / .45);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .card, .well { background: hsl(var(--card-solid) / .96); }
}

/* ---------- 4. Grid (Bootstrap-compatible class names, own implementation) */
.container, .container-fluid { width: 100%; margin-inline: auto; padding-inline: 14px; }
.container { max-width: 1180px; }
.container-fluid { max-width: none; }
.row { display: flex; flex-wrap: wrap; margin-inline: -8px; row-gap: var(--gap); }
.row > * { padding-inline: 8px; max-width: 100%; }
.row.g-0 { margin-inline: 0; row-gap: 0; } .row.g-0 > * { padding-inline: 0; }
.row.g-2, .row.g-3 { row-gap: 12px; }
.row.g-4, .row.g-5 { row-gap: 20px; }
.col { flex: 1 0 0%; min-width: 0; }
.col-auto { flex: 0 0 auto; width: auto; }
.col-12 { flex: 0 0 100%; width: 100%; }
.col-6 { flex: 0 0 50%; width: 50%; }
.col-5 { flex: 0 0 41.6667%; width: 41.6667%; }
.col-4 { flex: 0 0 33.3333%; width: 33.3333%; }
.col-3 { flex: 0 0 25%; width: 25%; }
.col-2 { flex: 0 0 16.6667%; width: 16.6667%; }
.col-1 { flex: 0 0 8.3333%; width: 8.3333%; }
[class*="col-"] { min-width: 0; }
.row > [class*="col-"] { width: 100%; }
@media (min-width: 576px) {
  .col-sm-12 { flex: 0 0 100%; width: 100%; } .col-sm-6 { flex: 0 0 50%; width: 50%; }
  .col-sm-4 { flex: 0 0 33.3333%; width: 33.3333%; } .col-sm-3 { flex: 0 0 25%; width: 25%; }
}
@media (min-width: 768px) {
  .col-md-12 { flex: 0 0 100%; width: 100%; } .col-md-11 { flex: 0 0 91.6667%; width: 91.6667%; }
  .col-md-10 { flex: 0 0 83.3333%; width: 83.3333%; } .col-md-9 { flex: 0 0 75%; width: 75%; }
  .col-md-8 { flex: 0 0 66.6667%; width: 66.6667%; } .col-md-7 { flex: 0 0 58.3333%; width: 58.3333%; }
  .col-md-6 { flex: 0 0 50%; width: 50%; } .col-md-5 { flex: 0 0 41.6667%; width: 41.6667%; }
  .col-md-4 { flex: 0 0 33.3333%; width: 33.3333%; } .col-md-3 { flex: 0 0 25%; width: 25%; }
  .col-md-2 { flex: 0 0 16.6667%; width: 16.6667%; } .col-md-1 { flex: 0 0 8.3333%; width: 8.3333%; }
  .offset-md-2, .col-md-offset-2 { margin-left: 16.6667%; } .offset-md-3 { margin-left: 25%; }
}
@media (min-width: 992px) {
  .col-lg-12 { flex: 0 0 100%; width: 100%; } .col-lg-9 { flex: 0 0 75%; width: 75%; }
  .col-lg-8 { flex: 0 0 66.6667%; width: 66.6667%; } .col-lg-7 { flex: 0 0 58.3333%; width: 58.3333%; }
  .col-lg-6 { flex: 0 0 50%; width: 50%; } .col-lg-5 { flex: 0 0 41.6667%; width: 41.6667%; }
  .col-lg-4 { flex: 0 0 33.3333%; width: 33.3333%; } .col-lg-3 { flex: 0 0 25%; width: 25%; }
  .col-lg-2 { flex: 0 0 16.6667%; width: 16.6667%; } .col-lg-auto { flex: 0 0 auto; width: auto; }
}
@media (min-width: 1200px) {
  .col-xl-4 { flex: 0 0 33.3333%; width: 33.3333%; } .col-xl-3 { flex: 0 0 25%; width: 25%; }
  .col-xl-6 { flex: 0 0 50%; width: 50%; } .col-xl-8 { flex: 0 0 66.6667%; width: 66.6667%; }
}

/* ---------- 5. Utilities ----------------------------------------------- */
.d-none { display: none !important; } .d-block { display: block !important; }
.d-inline { display: inline !important; } .d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; } .d-inline-flex { display: inline-flex !important; }
.d-grid { display: grid !important; }
@media (min-width: 768px) { .d-md-none { display: none !important; } .d-md-block { display: block !important; } .d-md-flex { display: flex !important; } }
@media (min-width: 992px) { .d-lg-none { display: none !important; } .d-lg-block { display: block !important; } .d-lg-flex { display: flex !important; } }
@media (max-width: 767.98px) { .hide_phone { display: none !important; } }
@media (min-width: 768px) { .show_phone { display: none !important; } }
.flex-row { flex-direction: row !important; } .flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; } .flex-nowrap { flex-wrap: nowrap !important; }
.flex-fill { flex: 1 1 auto !important; } .flex-grow-1 { flex-grow: 1 !important; } .flex-shrink-0 { flex-shrink: 0 !important; }
@media (min-width: 576px) { .flex-sm-row { flex-direction: row !important; } .flex-sm-fill { flex: 1 1 auto !important; } .text-sm-center { text-align: center !important; } }
.justify-content-start { justify-content: flex-start !important; } .justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; } .justify-content-between { justify-content: space-between !important; }
.align-items-start { align-items: flex-start !important; } .align-items-center { align-items: center !important; }
.align-items-end { align-items: flex-end !important; } .align-items-stretch { align-items: stretch !important; }
.align-self-center { align-self: center !important; }
.gap-1 { gap: .25rem !important; } .gap-2 { gap: .5rem !important; } .gap-3 { gap: 1rem !important; } .gap-4 { gap: 1.5rem !important; }
.flex { display: flex; } .justify-between { justify-content: space-between; }
.w-100 { width: 100% !important; } .w-auto { width: auto !important; } .h-100 { height: 100% !important; }
.mw-100 { max-width: 100% !important; } .position-relative { position: relative !important; }
.overflow-auto { overflow: auto !important; } .overflow-hidden { overflow: hidden !important; }
.text-center { text-align: center !important; } .text-start, .text-left { text-align: left !important; }
.text-end, .text-right { text-align: right !important; }
.text-muted { color: hsl(var(--muted)) !important; } .text-white { color: hsl(var(--text)) !important; }
.text-dark { color: hsl(var(--text)) !important; } .text-light { color: hsl(var(--muted)) !important; }
.text-primary, .text-green2 { color: hsl(var(--p)) !important; }
.text-success, .text-green { color: hsl(var(--success)) !important; }
.text-danger, .text-red { color: hsl(var(--danger)) !important; }
.text-warning, .text-yellow { color: hsl(var(--warning)) !important; }
.text-info { color: hsl(var(--info)) !important; }
.text-uppercase { text-transform: uppercase !important; } .text-nowrap, .nowrap { white-space: nowrap !important; }
.text-truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fw-bold, .font-weight-bold, .fw-semibold { font-weight: 650 !important; } .fw-normal { font-weight: 400 !important; }
.fs-6 { font-size: .95rem !important; } .lead { font-size: 1.1rem; color: hsl(var(--muted)); }
.border { border: 1px solid hsl(var(--border) / .4) !important; border-radius: var(--radius-sm); }
.border-0 { border: 0 !important; } .rounded { border-radius: var(--radius-sm) !important; } .rounded-pill { border-radius: 99px !important; }
.shadow-sm { box-shadow: 0 6px 18px hsl(var(--shadow) / .08) !important; }
.img-fluid { max-width: 100%; height: auto; }
.visually-hidden, .sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.clearfix::after { content: ""; display: table; clear: both; }
.ms-auto, .ml-auto { margin-left: auto !important; } .me-auto, .mr-auto { margin-right: auto !important; } .mx-auto { margin-inline: auto !important; }

/* spacing scale 0 .25 .5 1 1.5 3 */
.m-0 { margin: 0 !important; } .mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .25rem !important; } .mt-2 { margin-top: .5rem !important; } .mt-3 { margin-top: 1rem !important; } .mt-4 { margin-top: 1.5rem !important; } .mt-5 { margin-top: 3rem !important; }
.mb-1 { margin-bottom: .25rem !important; } .mb-2 { margin-bottom: .5rem !important; } .mb-3 { margin-bottom: 1rem !important; } .mb-4 { margin-bottom: 1.5rem !important; } .mb-5 { margin-bottom: 3rem !important; }
.mb-13 { margin-bottom: 1rem !important; }
.ms-1, .ml-1 { margin-left: .25rem !important; } .ms-2, .ml-2 { margin-left: .5rem !important; } .ms-3 { margin-left: 1rem !important; }
.me-1, .mr-1 { margin-right: .25rem !important; } .me-2, .mr-2 { margin-right: .5rem !important; } .me-3 { margin-right: 1rem !important; }
.p-0 { padding: 0 !important; } .p-1 { padding: .25rem !important; } .p-2 { padding: .5rem !important; } .p-3 { padding: 1rem !important; } .p-4 { padding: 1.5rem !important; } .p-5 { padding: 3rem !important; }
.px-3 { padding-inline: 1rem !important; } .px-4 { padding-inline: 1.5rem !important; }
.py-2 { padding-block: .5rem !important; } .py-3 { padding-block: 1rem !important; } .py-4 { padding-block: 1.5rem !important; } .py-5 { padding-block: 3rem !important; }
@media (min-width: 992px) { .px-lg-4 { padding-inline: 1.5rem !important; } }
.pt-2 { padding-top: .5rem !important; } .pb-2 { padding-bottom: .5rem !important; } .pb-3 { padding-bottom: 1rem !important; }

/* ---------- 6. Buttons -------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .6rem 1.1rem; min-height: 40px;
  font-size: .9rem; font-weight: 600; line-height: 1.2; text-align: center; white-space: nowrap;
  color: hsl(var(--text));
  background: hsl(var(--fill) / .12);
  border: 1px solid hsl(var(--border) / .3);
  border-radius: var(--radius-sm);
  cursor: pointer; user-select: none; text-decoration: none;
  transition: transform .15s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), border-color .15s var(--ease), opacity .15s;
}
.btn:hover { background: hsl(var(--fill) / .2); color: hsl(var(--text)); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn:disabled, .btn.disabled { opacity: .55; pointer-events: none; }
.btn-primary, .btn-big-primary, .btn-gradient, .btn-success {
  color: hsl(var(--p-fg)); border-color: transparent;
  background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2)));
  box-shadow: 0 8px 20px hsl(var(--p) / .28);
}
.btn-primary:hover, .btn-big-primary:hover, .btn-gradient:hover, .btn-success:hover {
  color: hsl(var(--p-fg)); background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); filter: brightness(1.07);
  box-shadow: 0 10px 26px hsl(var(--p) / .36);
}
.btn-secondary, .btn-default, .btn-light { background: hsl(var(--fill) / .12); }
.btn-danger { color: #fff; background: hsl(var(--danger)); border-color: transparent; }
.btn-danger:hover { color: #fff; background: hsl(var(--danger)); filter: brightness(1.08); }
.btn-warning { color: hsl(30 80% 10%); background: hsl(var(--warning)); border-color: transparent; }
.btn-warning:hover { color: hsl(30 80% 10%); background: hsl(var(--warning)); filter: brightness(1.06); }
.btn-info { color: #fff; background: hsl(var(--info)); border-color: transparent; }
.btn-info:hover { color: #fff; background: hsl(var(--info)); filter: brightness(1.06); }
.btn-outline-primary { color: hsl(var(--p)); background: transparent; border-color: hsl(var(--p) / .55); }
.btn-outline-primary:hover { color: hsl(var(--p-fg)); background: hsl(var(--p)); }
.btn-outline-secondary, .btn-outline-light { background: transparent; }
.btn-link { background: transparent; border-color: transparent; color: hsl(var(--p)); min-height: 0; padding: .2rem .3rem; }
.btn-sm, .btn-xs { padding: .35rem .7rem; min-height: 32px; font-size: .8rem; border-radius: 9px; }
.btn-lg, .btn-big-primary { padding: .8rem 1.4rem; min-height: 48px; font-size: 1rem; }
.btn-block, .btn.w-100 { display: flex; width: 100%; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.btn-icon { padding: .45rem; min-width: 38px; }
.btn-close, .close {
  display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0;
  font-size: 1.2rem; line-height: 1; color: hsl(var(--muted)); background: transparent; border: 0; border-radius: 50%; cursor: pointer; opacity: .8;
}
.btn-close::before { content: "\00d7"; }
.btn-close:hover, .close:hover { background: hsl(var(--fill) / .16); color: hsl(var(--text)); opacity: 1; }
.btn .spinner, .spinner-border-sm { vertical-align: -2px; }

/* ---------- 7. Forms ---------------------------------------------------- */
.form-group, .mb-form { margin-bottom: 1rem; }
.control-label, .form-label { display: block; margin-bottom: .4rem; font-size: .84rem; font-weight: 600; color: hsl(var(--muted)); }
.form-control, .form-select, select, textarea, input[type="text"], input[type="password"], input[type="email"],
input[type="number"], input[type="tel"], input[type="url"], input[type="search"], input[type="date"], input[type="datetime-local"] {
  display: block; width: 100%; min-height: 44px; padding: .6rem .9rem;
  font: inherit; font-size: .93rem; color: hsl(var(--text));
  background: hsl(var(--card-solid) / .55);
  border: 1px solid hsl(var(--border) / .4);
  border-radius: var(--radius-sm);
  outline: none; appearance: none; -webkit-appearance: none;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), background .15s var(--ease);
}
textarea, textarea.form-control { min-height: 110px; resize: vertical; line-height: 1.5; }
.form-control::placeholder, input::placeholder, textarea::placeholder { color: hsl(var(--muted) / .75); }
.form-control:hover, select:hover { border-color: hsl(var(--border) / .65); }
.form-control:focus, .form-select:focus, select:focus, textarea:focus, input:focus {
  border-color: hsl(var(--p)); background: hsl(var(--card-solid) / .85);
  box-shadow: 0 0 0 4px hsl(var(--p) / .16);
}
.form-control[readonly], .form-control:disabled, input:disabled, select:disabled, textarea:disabled { opacity: .7; cursor: not-allowed; }
.form-control-sm { min-height: 36px; padding: .4rem .7rem; font-size: .85rem; }
.form-control-lg { min-height: 52px; font-size: 1.02rem; }
select, .form-select {
  padding-right: 2.4rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%23889' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center;
}
select option { background: hsl(var(--card-solid)); color: hsl(var(--text)); }
input[type="file"] { padding: .5rem; min-height: 0; }
input[type="checkbox"], input[type="radio"] {
  appearance: auto; -webkit-appearance: auto; width: 1.05rem; height: 1.05rem; min-height: 0; padding: 0;
  accent-color: hsl(var(--p)); vertical-align: -2px; margin-right: .35rem; cursor: pointer; box-shadow: none;
}
input[type="checkbox"]:focus, input[type="radio"]:focus { box-shadow: none; }
.form-check { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.form-check label, .form-check-label { margin: 0; font-weight: 500; }
.help-block, .form-text, .form-hint { display: block; margin-top: .3rem; font-size: .8rem; color: hsl(var(--muted)); }
.has-error .form-control, .is-invalid { border-color: hsl(var(--danger)); }
.has-error .help-block, .invalid-feedback { color: hsl(var(--danger)); }
.form-group__line { display: none; }
.fg-control { position: relative; }

.input-group { display: flex; align-items: stretch; width: 100%; }
.input-group > .form-control, .input-group > input, .input-group > select { flex: 1 1 auto; min-width: 0; }
.input-group > :not(:first-child):not(.input-group-btn):not(.input-group-append) { border-top-left-radius: 0; border-bottom-left-radius: 0; margin-left: -1px; }
.input-group > :not(:last-child):not(.input-group-btn):not(.input-group-append) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-btn, .input-group-append, .input-group-prepend, .input-group-text { display: flex; }
.input-group-text, .input-group-addon {
  align-items: center; padding: 0 .9rem; font-size: .88rem; color: hsl(var(--muted));
  background: hsl(var(--fill) / .12); border: 1px solid hsl(var(--border) / .4);
}
.input-group-btn > .btn, .input-group-append > .btn { border-top-left-radius: 0; border-bottom-left-radius: 0; height: 100%; }

/* ---------- 8. Alerts · badges · progress · spinner --------------------- */
.alert {
  position: relative; display: flow-root; margin: 0 0 1rem; padding: .85rem 2.6rem .85rem 1rem; font-size: .9rem;
  color: hsl(var(--text)); background: hsl(var(--fill) / .1);
  border: 1px solid hsl(var(--border) / .3); border-left: 4px solid hsl(var(--muted)); border-radius: var(--radius-sm);
}
.alert .close, .alert .btn-close { position: absolute; top: .55rem; right: .55rem; }
.alert-success { background: hsl(var(--success) / .12); border-color: hsl(var(--success) / .35); border-left-color: hsl(var(--success)); }
.alert-danger, .alert-error { background: hsl(var(--danger) / .12); border-color: hsl(var(--danger) / .35); border-left-color: hsl(var(--danger)); }
.alert-warning { background: hsl(var(--warning) / .14); border-color: hsl(var(--warning) / .4); border-left-color: hsl(var(--warning)); }
.alert-info { background: hsl(var(--info) / .12); border-color: hsl(var(--info) / .35); border-left-color: hsl(var(--info)); }
.alert a { font-weight: 600; text-decoration: underline; }

.badge, .label {
  display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem;
  font-size: .72rem; font-weight: 650; line-height: 1.2; letter-spacing: .01em; white-space: nowrap;
  color: hsl(var(--text)); background: hsl(var(--fill) / .16); border-radius: 99px;
}
.badge-rounded { border-radius: 99px; }
.bg-primary, .badge-primary { color: hsl(var(--p-fg)) !important; background: hsl(var(--p)) !important; }
.bg-success, .badge-success { color: #fff !important; background: hsl(var(--success)) !important; }
.bg-danger, .badge-danger { color: #fff !important; background: hsl(var(--danger)) !important; }
.bg-warning, .badge-warning { color: hsl(30 80% 10%) !important; background: hsl(var(--warning)) !important; }
.bg-info, .badge-info { color: #fff !important; background: hsl(var(--info)) !important; }
.bg-secondary, .badge-secondary { color: hsl(var(--text)) !important; background: hsl(var(--fill) / .22) !important; }
.bg-light, .bg-white { background: hsl(var(--fill) / .08) !important; }
.bg-dark { background: hsl(var(--text) / .85) !important; color: hsl(var(--base)) !important; }
.bg-transparent { background: transparent !important; }

.progress { height: 8px; overflow: hidden; background: hsl(var(--fill) / .18); border-radius: 99px; }
.progress-bar { height: 100%; background: linear-gradient(90deg, hsl(var(--p)), hsl(var(--p-2))); border-radius: 99px; transition: width .4s var(--ease); }

@keyframes soya-spin { to { transform: rotate(360deg); } }
.spinner-border, .spinner, .loading-spinner {
  display: inline-block; width: 1.4rem; height: 1.4rem; vertical-align: -.3em;
  border: 2.5px solid hsl(var(--p) / .25); border-top-color: hsl(var(--p)); border-radius: 50%;
  animation: soya-spin .7s linear infinite;
}
.spinner-border-sm { width: 1rem; height: 1rem; border-width: 2px; }
.bx-spin, .fa-spin { animation: soya-spin 1s linear infinite; }

/* ---------- 9. Tables (desktop) + mobile cards -------------------------- */
.table-responsive, .table-wr, .table-bg, .component_table { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table, table.responsive-table, table.def_table, table.app-mtable {
  width: 100%; margin: 0; border-collapse: separate; border-spacing: 0; font-size: .88rem; color: hsl(var(--text));
}
.table th, .table td, .def_table th, .def_table td, .app-mtable th, .app-mtable td {
  padding: .8rem .9rem; text-align: left; vertical-align: middle; border-bottom: 1px solid hsl(var(--border) / .22);
}
.table thead th, .def_table thead th, .app-mtable thead th {
  position: sticky; top: 0; z-index: 1; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: hsl(var(--muted)); background: hsl(var(--card-solid) / .85); white-space: nowrap;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.table tbody tr { transition: background .12s; }
.table tbody tr:hover, .def_table tbody tr:hover { background: hsl(var(--p) / .06); }
.table tbody tr:last-child td { border-bottom: 0; }
.table-striped tbody tr:nth-child(even) { background: hsl(var(--fill) / .05); }
.table td a { font-weight: 600; }
.table .btn, .table .btn-actions { white-space: nowrap; }
td .badge { vertical-align: middle; }

/* every table stacks into labelled cards on phones.
   soya.js copies each <th> text into data-label on the matching <td>. */
@media (max-width: 767.98px) {
  table.soya-stack, table.soya-stack thead, table.soya-stack tbody, table.soya-stack tr, table.soya-stack th, table.soya-stack td { display: block; width: 100%; }
  table.soya-stack { border: 0; }
  table.soya-stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  table.soya-stack tbody { display: grid; gap: 10px; }
  table.soya-stack tr {
    padding: .35rem .9rem; border: 1px solid hsl(var(--border) / .3); border-radius: var(--radius);
    background: hsl(var(--card) / .6);
  }
  table.soya-stack tbody tr:hover { background: hsl(var(--card) / .75); }
  table.soya-stack td {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 0; text-align: right;
    border-bottom: 1px dashed hsl(var(--border) / .25); word-break: break-word;
  }
  table.soya-stack td:last-child { border-bottom: 0; }
  table.soya-stack td::before {
    content: attr(data-label); flex: 0 0 38%; max-width: 42%; text-align: left;
    font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: hsl(var(--muted));
  }
  table.soya-stack td[data-label=""]::before, table.soya-stack td:not([data-label])::before { display: none; }
  table.soya-stack td[colspan] { justify-content: center; text-align: center; }
  table.soya-stack td[colspan]::before { display: none; }
  .table-responsive, .table-wr, .table-bg, .component_table { overflow-x: visible; }
}

/* ---------- 10. Pagination ---------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; padding: 0; margin: 1rem 0 0; list-style: none; }
.pagination li, .page-item { display: inline-flex; }
.pagination a, .pagination span, .page-link {
  display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 .75rem;
  font-weight: 600; font-size: .86rem; color: hsl(var(--text)); background: hsl(var(--fill) / .1);
  border: 1px solid hsl(var(--border) / .3); border-radius: 10px;
}
.pagination a:hover, .page-link:hover { background: hsl(var(--p) / .14); color: hsl(var(--p)); }
.pagination .active a, .pagination .active span, .page-item.active .page-link { color: hsl(var(--p-fg)); background: hsl(var(--p)); border-color: transparent; }
.pagination .disabled a, .pagination .disabled span, .page-item.disabled .page-link { opacity: .45; pointer-events: none; }

/* ---------- 11. Tabs / pills (supports .active on li or a) -------------- */
.nav { display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 1rem; list-style: none; }
.nav-item { display: block; }
.nav-link, .nav > li > a {
  display: flex; align-items: center; justify-content: center; gap: .4rem; padding: .55rem .95rem;
  font-size: .86rem; font-weight: 600; color: hsl(var(--muted)); border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; transition: background .15s var(--ease), color .15s var(--ease);
}
.nav-link:hover, .nav > li > a:hover { color: hsl(var(--text)); background: hsl(var(--fill) / .12); }
.nav-pills .nav-link.active, .nav-pills .show > .nav-link, .nav-pills .nav-item.active > .nav-link, .nav-pills > li.active > a,
.nav-tabs .nav-link.active, .nav-tabs .nav-item.active > .nav-link, .nav .nav-link.active {
  color: hsl(var(--p-fg)); background: hsl(var(--p)); box-shadow: 0 6px 16px hsl(var(--p) / .28);
}
.nav-pills.flex-column, .nav.flex-column { flex-direction: column; }
.nav-fill > .nav-item, .flex-sm-fill { flex: 1 1 auto; text-align: center; }
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }

/* ---------- 12. Fade / collapse / dropdown / modal (BS-compatible states) */
.fade { transition: opacity .18s linear; }
.fade:not(.show):not(.in) { opacity: 0; }
.collapse:not(.show):not(.in) { display: none; }
.collapsing { height: 0; overflow: hidden; transition: height .25s var(--ease); }

.dropdown, .dropup, .btn-group-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: 100%; right: 0; z-index: 1050; display: none; min-width: 200px; margin: 6px 0 0; padding: .4rem; list-style: none; text-align: left;
  background: hsl(var(--card-solid) / .92); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5); backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid hsl(var(--border) / .35); border-radius: var(--radius-sm); box-shadow: 0 18px 40px hsl(var(--shadow) / .22);
}
.dropdown-menu.show, .open > .dropdown-menu { display: block; }
.dropdown-item, .dropdown-menu > li > a {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .55rem .75rem; font-size: .88rem; font-weight: 550; color: hsl(var(--text));
  background: transparent; border: 0; border-radius: 8px; cursor: pointer;
}
.dropdown-item:hover, .dropdown-menu > li > a:hover { background: hsl(var(--fill) / .14); color: hsl(var(--text)); }
.dropdown-divider { height: 1px; margin: .35rem 0; background: hsl(var(--border) / .25); }

body.modal-open { overflow: hidden; }
.modal-backdrop { position: fixed; inset: 0; z-index: 1040; background: hsl(222 40% 4% / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.modal-backdrop.fade { opacity: 0; } .modal-backdrop.show, .modal-backdrop.in { opacity: 1; }
.modal { position: fixed; inset: 0; z-index: 1055; display: none; overflow-x: hidden; overflow-y: auto; outline: 0; padding: 0; }
.modal-dialog { position: relative; width: auto; max-width: 520px; margin: 1.25rem auto; padding-inline: 12px; pointer-events: none; transform: translateY(14px) scale(.98); transition: transform .2s var(--ease); }
.modal.show .modal-dialog, .modal.in .modal-dialog { transform: none; }
.modal-lg { max-width: 820px; } .modal-sm { max-width: 360px; }
.modal-dialog-centered { display: flex; align-items: center; min-height: calc(100% - 2.5rem); }
.modal-dialog-centered .modal-content { width: 100%; }
.modal-content {
  position: relative; display: flex; flex-direction: column; width: 100%; pointer-events: auto; overflow: hidden;
  background: hsl(var(--card-solid) / .9); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border: 1px solid hsl(var(--border) / .35); border-radius: var(--radius-lg); box-shadow: 0 30px 80px hsl(var(--shadow) / .4);
}
.modal-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.2rem; border-bottom: 1px solid hsl(var(--border) / .25); }
.modal-title { margin: 0; font-size: 1.05rem; }
.modal-body { padding: 1.2rem; position: relative; flex: 1 1 auto; }
.modal-footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; padding: .9rem 1.2rem; border-top: 1px solid hsl(var(--border) / .25); }
.modal-dialog-scrollable .modal-content { max-height: calc(100vh - 2.5rem); }
.modal-dialog-scrollable .modal-body { overflow-y: auto; }

/* accordion / list-group */
.list-group { display: flex; flex-direction: column; gap: 6px; padding: 0; margin: 0; list-style: none; }
.list-group-item { display: block; padding: .7rem .9rem; background: hsl(var(--fill) / .08); border: 1px solid hsl(var(--border) / .25); border-radius: var(--radius-sm); }
a.list-group-item:hover { background: hsl(var(--p) / .08); }
.accordion-item { margin-bottom: 8px; overflow: hidden; border: 1px solid hsl(var(--border) / .3); border-radius: var(--radius-sm); background: hsl(var(--card) / .5); }
.accordion-header { margin: 0; }
.accordion-button { width: 100%; padding: .9rem 1rem; text-align: left; font-weight: 600; color: hsl(var(--text)); background: transparent; border: 0; cursor: pointer; }
.accordion-body { padding: .2rem 1rem 1rem; color: hsl(var(--muted)); }

/* tooltips (tippy.js ships its own) */
.tippy-box { font-size: .8rem; }

/* ==========================================================================
   13. APP SHELL  —  slim glass top bar · sidebar · content · floating bottom nav
   ========================================================================== */
#main_container { min-height: 100vh; }
.dashboard .content_area { min-height: 100vh; padding: calc(var(--topbar-h) + 16px) 14px calc(var(--nav-h) + 34px); }
@media (min-width: 992px) {
  .dashboard .content_area { margin-left: var(--sidebar-w); padding: calc(var(--topbar-h) + 22px) 26px 40px; transition: margin .25s var(--ease); }
  .toogle_sidebar .content_area { margin-left: 0; }
  .toogle_sidebar .sidebar { transform: translateX(-100%); }
  .toogle_sidebar .top_header { left: 0; }
}
.dashboard .content_area > .container,
.dashboard .content_area > .container-fluid { max-width: 1120px; padding-inline: 0; }

/* ---- top bar (slim, glass) ---- */
.top_header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1030; height: var(--topbar-h);
  background: hsl(var(--card) / .66);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6); backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border-bottom: 1px solid hsl(var(--border) / .28);
  transition: left .25s var(--ease);
}
@media (min-width: 992px) { .top_header { left: var(--sidebar-w); } }
.top_head_wrap { display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 100%; padding: 0 14px; }
.top_head_wrap .item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sidebar_menu_icon, .day_night_btn, .btn_profiles, .top_icon_btn {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; position: relative;
  color: hsl(var(--text)); background: hsl(var(--fill) / .12); border: 1px solid hsl(var(--border) / .28); border-radius: 12px; cursor: pointer;
  transition: background .15s var(--ease);
}
.sidebar_menu_icon:hover, .day_night_btn:hover, .btn_profiles:hover { background: hsl(var(--fill) / .22); }
.logo_off_nav a { display: inline-flex; align-items: center; color: hsl(var(--text)); font-weight: 700; }
.logo_off_nav img { height: 28px; width: auto; max-width: 150px; object-fit: contain; }
@media (min-width: 992px) { .logo_off_nav { display: none; } }
.user_settings { gap: 8px !important; }
.top_balance {
  display: inline-flex; align-items: center; gap: .45rem; height: 38px; padding: 0 .85rem; font-weight: 700; font-size: .88rem;
  color: hsl(var(--text)); background: hsl(var(--p) / .13); border: 1px solid hsl(var(--p) / .3); border-radius: 12px; white-space: nowrap;
}
.top_balance:hover { color: hsl(var(--text)); background: hsl(var(--p) / .2); }
.top_balance i { color: hsl(var(--p)); }
.currency_btn { display: inline-flex; align-items: center; gap: .35rem; height: 38px; padding: 0 .7rem; font-size: .84rem; font-weight: 650; color: hsl(var(--text)); background: hsl(var(--fill) / .12); border: 1px solid hsl(var(--border) / .28); border-radius: 12px; cursor: pointer; }
.currency_btn i { color: hsl(var(--warning)); }
/* theme toggle — shows moon in light mode, sun in dark mode */
.day_night_btn .night_mode, .day_night_btn .day_mode { display: inline-grid; place-items: center; }
.day_night_btn .active_circle { display: none; }
.day_night_btn .day_mode { display: none; }
html[data-theme="dark"] .day_night_btn .night_mode { display: none; }
html[data-theme="dark"] .day_night_btn .day_mode { display: inline-grid; color: hsl(var(--warning)); }
.user_top_avatar img, .btn_profiles img { width: 26px !important; height: 26px; border-radius: 50%; object-fit: cover; }
.btn_profiles::after { display: none !important; }
.settings_drop { min-width: 190px; }
.user_menu__item { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border-radius: 8px; color: hsl(var(--text)); font-weight: 550; font-size: .88rem; }
.user_menu__item:hover { background: hsl(var(--fill) / .14); color: hsl(var(--text)); }
.user_menu_icon { width: 20px; text-align: center; color: hsl(var(--muted)); }
@media (max-width: 420px) { .top_balance .balance_label, .currency_btn span { display: none; } }

/* ---- sidebar ---- */
.sidebar {
  position: fixed; top: 0; bottom: 0; left: 0; z-index: 1045; width: min(var(--sidebar-w), 84vw); display: flex; flex-direction: column;
  transform: translateX(-102%); transition: transform .28s var(--ease);
  background: hsl(var(--card-solid) / .78);
  -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6);
  border-right: 1px solid hsl(var(--border) / .28);
}
@media (min-width: 992px) { .sidebar { transform: none; z-index: 1035; } }
.toogle_sidebar .sidebar, body.sidebar_open .sidebar { transform: none; }
@media (min-width: 992px) { .toogle_sidebar .sidebar { transform: translateX(-100%); } }
.sidebar_scrim { position: fixed; inset: 0; z-index: 1040; display: none; background: hsl(222 40% 4% / .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@media (max-width: 991.98px) { .toogle_sidebar .sidebar_scrim { display: block; } }
.sidebar_top { padding: 14px 14px 10px; }
.sidebar .logo { display: flex; align-items: center; justify-content: space-between; height: 40px; margin-bottom: 12px; }
.sidebar .logo img { height: 34px; width: auto; max-width: 160px; object-fit: contain; }
.close_btn_phone { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-left: auto; color: hsl(var(--muted)); background: hsl(var(--fill) / .12); border: 0; border-radius: 10px; cursor: pointer; }
@media (min-width: 992px) { .close_btn_phone { display: none; } }
.user_card { display: flex; align-items: center; gap: .7rem; padding: .7rem; background: hsl(var(--fill) / .09); border: 1px solid hsl(var(--border) / .25); border-radius: var(--radius); }
.user_card .v2_avatar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
.user_card .u_name { display: block; font-weight: 650; font-size: .9rem; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user_card .u_level { display: inline-block; margin-top: 2px; padding: .05rem .5rem; font-size: .68rem; font-weight: 700; letter-spacing: .02em; color: hsl(var(--p)); background: hsl(var(--p) / .13); border-radius: 99px; cursor: pointer; }
.user_card .u_info { min-width: 0; }
.sidebar_bottom { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 4px 10px 18px; }
.sidebar_menu { display: flex; flex-direction: column; gap: 3px; }
.menu_item {
  display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; font-size: .9rem; font-weight: 600; color: hsl(var(--muted));
  border-radius: 12px; border: 0; background: transparent; width: 100%; text-align: left; cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease);
}
.menu_item:hover { color: hsl(var(--text)); background: hsl(var(--fill) / .12); }
.menu_item.active { color: hsl(var(--p-fg)); background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); box-shadow: 0 8px 18px hsl(var(--p) / .28); }
.menu_icon { position: relative; display: inline-grid; place-items: center; width: 22px; flex: 0 0 22px; font-size: 1rem; }
.menu_name { display: flex; align-items: center; gap: .4rem; flex: 1 1 auto; }
.menu_name_wrapper { display: flex; flex-direction: column; line-height: 1.2; }
.menu_subtext { font-size: .68rem; font-weight: 500; opacity: .75; }
.menu_badge { position: absolute; top: -9px; right: -14px; padding: 0 .35rem; font-size: .55rem; font-weight: 800; color: #fff; background: hsl(var(--danger)); border-radius: 99px; }
.menu_name .badge { margin-left: auto; color: hsl(30 80% 10%); background: hsl(var(--warning)); }
#more_menu { display: none; flex-direction: column; gap: 3px; margin-top: 3px; }
#more_menu.active_more_menu { display: flex; }

/* ---- floating glass bottom nav (mobile) ---- */
.mobile-bottom-nav {
  position: fixed; left: 50%; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 1030; transform: translateX(-50%);
  width: min(calc(100% - 24px), 460px); height: var(--nav-h); top: auto; right: auto;
  background: hsl(var(--card) / .72);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.7); backdrop-filter: blur(var(--glass-blur)) saturate(1.7);
  border: 1px solid hsl(var(--border) / .32); border-radius: 22px; box-shadow: 0 16px 40px hsl(var(--shadow) / .22);
}
@media (min-width: 992px) { .mobile-bottom-nav { display: none; } }
.mobile-bottom-nav .nav-menu-wrapper { display: flex; align-items: stretch; justify-content: space-around; height: 100%; padding: 6px; gap: 2px; }
.navigation-item {
  position: relative; display: flex; flex: 1 1 0; min-width: 0; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: hsl(var(--muted)); border-radius: 16px; font-size: .66rem; font-weight: 650; transition: background .15s var(--ease), color .15s var(--ease);
}
.navigation-item i { font-size: 1.12rem; }
.navigation-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.navigation-item:hover { color: hsl(var(--text)); }
.navigation-item.active { color: hsl(var(--p)); background: hsl(var(--p) / .14); }
button.navigation-item { background: transparent; border: 0; cursor: pointer; }

/* ---- page header + stat tiles used across pages ---- */
.page_head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.page_head h1, .page_head h2 { margin: 0; font-size: 1.35rem; }
.page_head p { margin: 0; color: hsl(var(--muted)); font-size: .88rem; }

/* ---- status pill for iconify/PWA/connection widgets ---- */
.pwa-container { display: flex; flex-direction: column; align-items: center; gap: .7rem; text-align: center; }
.pwa-container .logo { height: 42px; width: auto; }
.pwa-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.pwa-btn { padding: .75rem; font-weight: 700; color: hsl(var(--p-fg)); background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); border: 0; border-radius: var(--radius-sm); cursor: pointer; }
.pwa-close { padding: .6rem; color: hsl(var(--muted)); background: transparent; border: 0; cursor: pointer; }

/* ==========================================================================
   14. PUBLIC (logged-out) PAGES — floating glass nav + simple footer
   ========================================================================== */
.noAuth { padding-top: 76px; }
.noAuth #navbar {
  position: fixed; top: 10px; left: 50%; z-index: 1030; transform: translateX(-50%);
  width: min(calc(100% - 20px), 1120px); height: var(--topbar-h);
  background: hsl(var(--card) / .66); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.6); backdrop-filter: blur(var(--glass-blur)) saturate(1.6);
  border: 1px solid hsl(var(--border) / .3); border-radius: 18px; box-shadow: 0 10px 30px hsl(var(--shadow) / .12);
}
.noAuth #navbar .container { display: flex; align-items: center; justify-content: space-between; height: 100%; max-width: none; }
.navbar-brand { display: inline-flex; align-items: center; color: hsl(var(--text)); font-weight: 750; }
.navbar-brand img { height: 28px; width: auto; max-width: 150px; object-fit: contain; }
.navbar-nav { display: none; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 992px) { .navbar-nav { display: flex; } .navbar-toggler { display: none !important; } }
.navbar-nav .nav-link { padding: .45rem .8rem; }
.navbar-icon { display: none; }
.navbar-nav .nav-link.active { box-shadow: none; }
.navbar-toggler { display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; background: hsl(var(--fill) / .12); border: 1px solid hsl(var(--border) / .28); border-radius: 12px; cursor: pointer; }
.navbar-toggler img { display: none; }
.navbar-toggler::before { content: ""; width: 16px; height: 2px; border-radius: 2px; background: hsl(var(--text)); box-shadow: 0 -5px 0 hsl(var(--text)), 0 5px 0 hsl(var(--text)); }
.btn__sp__nav .btn { min-height: 36px; padding: .4rem 1rem; }
.sp__icon { display: none; }
#navMob { position: fixed; inset: 0; z-index: 1100; display: none; padding: 20px; background: hsl(var(--base) / .86); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); overflow-y: auto; }
#navMob.active { display: block; }
#cls { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; color: hsl(var(--text)); background: hsl(var(--fill) / .14); border: 0; border-radius: 12px; cursor: pointer; }
#navMob .nav_content { max-width: 420px; margin: 56px auto 0; }
.menu_mobs { display: grid; gap: 6px; padding: 0; margin: 0 0 18px; list-style: none; }
.menu_mobs a { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; font-weight: 650; color: hsl(var(--text)); background: hsl(var(--card) / .6); border: 1px solid hsl(var(--border) / .28); border-radius: var(--radius-sm); }
.menu_mobs a.active { color: hsl(var(--p)); border-color: hsl(var(--p) / .5); }
#navMob .navbar-icon { display: inline-block; width: 20px; color: hsl(var(--p)); }
#navMob .btn.btn-wrap, #navMob .auth_btns { display: grid; gap: 8px; }
#navMob .auth_btns a { display: flex; justify-content: center; padding: .85rem; font-weight: 700; border-radius: var(--radius-sm); border: 1px solid hsl(var(--border) / .35); color: hsl(var(--text)); }
#navMob .auth_btns a:last-child { color: hsl(var(--p-fg)); background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); border-color: transparent; }

.footer__v2 { margin-top: 40px; padding: 36px 0 22px; border-top: 1px solid hsl(var(--border) / .25); background: hsl(var(--card) / .4); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.footer__v2 h4 { font-size: .95rem; margin-bottom: .7rem; }
.foo__menu { display: grid; gap: .45rem; }
.foo__menu a { color: hsl(var(--muted)); font-size: .88rem; } .foo__menu a:hover { color: hsl(var(--p)); }
.logo__white img { height: 32px; width: auto; margin-bottom: .8rem; }
.infos__wrap { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; color: hsl(var(--muted)); }
.infos__icon { color: hsl(var(--p)); } .infos__txt h6 { margin: 0; font-size: .78rem; }
.hr-line { height: 1px; background: hsl(var(--border) / .25); }
.footer__v2 .text-center { color: hsl(var(--muted)) !important; font-size: .8rem; }

/* ==========================================================================
   15. CARDS + generic blocks (all page templates)
   ========================================================================== */
.card, .card_v2, .well, .wrapper-content, .component_card, .component_content_card, .hlight-box, .howto-card, .payment-card, .sm_aff_item, .aff_item {
  border-radius: var(--radius); margin-bottom: var(--gap); position: relative;
}
.card, .well { overflow: visible; }
.card-body, .wrapper-content__body, .sm_content { padding: 1.1rem; }
.card-header, .v2_header, .wrapper-content__header, .component_content_headers {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .9rem 1.1rem;
  font-weight: 650; border-bottom: 1px solid hsl(var(--border) / .22); background: transparent;
}
.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .v2_header h4, .v2_header h5, .v2_header .name { margin: 0; font-size: 1rem; }
.card-footer { padding: .8rem 1.1rem; border-top: 1px solid hsl(var(--border) / .22); }
.card_v2 > .card-body, .card_v2 .card-body { padding: 1.1rem; }
.card .card, .card_v2 .card_v2 { box-shadow: none; background: hsl(var(--fill) / .06); }
.card_v2 .icon, .v2_header .icon { display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: .5rem; color: hsl(var(--p)); background: hsl(var(--p) / .13); border-radius: 10px; font-size: .95rem; }
.text_name, .v2_header .text_name { display: inline-flex; align-items: center; font-weight: 650; }
.def_wraper, .wrapper-content__body { width: 100%; }
.content > .container, .content > .container-fluid { padding-inline: 0; }
.inner-page { padding: 8px 0 24px; }
.divider-top, .divider-bottom { height: 1px; margin: 1rem 0; background: hsl(var(--border) / .22); }
.panel-border-top { border-top: 1px solid hsl(var(--border) / .25); }
.m-t-50 { margin-top: 50px; }
.blue { --tone: var(--info); } .purple { --tone: 268 80% 62%; } .green { --tone: var(--success); } .pink { --tone: 330 82% 60%; }
.teal { --tone: 175 70% 38%; } .indigo { --tone: 235 78% 62%; } .amber { --tone: var(--warning); }

/* ==========================================================================
   16. DASHBOARD (Soya markup)
   ========================================================================== */
.dash { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
.dash > *, .dash_cols > *, .dash_main > *, .dash_side > * { min-width: 0; }
.dash_main, .dash_side { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); align-content: start; }
.dash_hello { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 1.2rem; border-radius: var(--radius-lg); }
.dash_hello h2 { margin: 0 0 .15rem; font-size: 1.3rem; } .dash_hello p { margin: 0; color: hsl(var(--muted)); font-size: .88rem; }
.dash_balance { display: flex; align-items: center; gap: .9rem; }
.dash_balance .lbl { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--muted)); }
.dash_balance .val { display: block; font-size: 1.55rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.1; }
.dash_stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .dash_stats { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } }
@media (max-width: 767.98px) { .dash_stats > :last-child:nth-child(odd), .dash_actions > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.dash_stat { display: flex; align-items: center; gap: .75rem; padding: .9rem; border-radius: var(--radius); margin: 0; }
.dash_stat .ic { display: grid; place-items: center; flex: 0 0 40px; width: 40px; height: 40px; font-size: 1.05rem; color: hsl(var(--tone, var(--p))); background: hsl(var(--tone, var(--p)) / .14); border-radius: 12px; }
.dash_stat .meta { min-width: 0; }
.dash_stat .meta b { display: block; font-size: 1.12rem; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash_stat .meta span { display: block; font-size: .72rem; color: hsl(var(--muted)); font-weight: 600; }
.dash_actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .dash_actions { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); } }
.dash_action { display: flex; flex-direction: column; align-items: center; gap: .5rem; padding: 1rem .5rem; text-align: center; color: hsl(var(--text)); border-radius: var(--radius); margin: 0; transition: transform .18s var(--ease), border-color .18s; }
.dash_action:hover { transform: translateY(-2px); color: hsl(var(--text)); border-color: hsl(var(--p) / .5); }
.dash_action .ic { display: grid; place-items: center; width: 44px; height: 44px; font-size: 1.15rem; color: hsl(var(--tone, var(--p))); background: hsl(var(--tone, var(--p)) / .14); border-radius: 14px; }
.dash_action span { font-size: .8rem; font-weight: 650; }
.dash_cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); }
@media (min-width: 992px) { .dash_cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); } }
.dash_card { padding: 0; margin: 0; border-radius: var(--radius); }
.dash_card > h3 { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: .9rem 1.1rem; font-size: .98rem; border-bottom: 1px solid hsl(var(--border) / .22); }
.dash_card > h3 a { font-size: .8rem; font-weight: 600; }
.dash_card .body { padding: .4rem 1.1rem 1rem; }
.dash_list { display: grid; grid-template-columns: minmax(0, 1fr); margin: 0; padding: 0; list-style: none; }
.dash_list li { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed hsl(var(--border) / .25); }
.dash_list li:last-child { border-bottom: 0; }
.dash_list .ic { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; color: hsl(var(--p)); background: hsl(var(--p) / .12); border-radius: 10px; }
.dash_list .t { flex: 1 1 auto; min-width: 0; } .dash_list .t b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .dash_list .t small { color: hsl(var(--muted)); }
.dash_empty { padding: 1.6rem 0; text-align: center; color: hsl(var(--muted)); font-size: .9rem; }
/* recent order rows (old markup, kept) */
.recent-orders-list { display: grid; grid-template-columns: minmax(0, 1fr); }
.recent-order-row { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-bottom: 1px dashed hsl(var(--border) / .25); }
.recent-order-row:last-child { border-bottom: 0; }
.ro-icon { display: grid; place-items: center; width: 34px; height: 34px; color: hsl(var(--p)); background: hsl(var(--p) / .12); border-radius: 10px; flex: 0 0 34px; }
.ro-body { flex: 1 1 auto; min-width: 0; } .ro-meta { color: hsl(var(--muted)); font-size: .78rem; }
.ro-status { font-size: .72rem; font-weight: 700; padding: .2rem .55rem; border-radius: 99px; background: hsl(var(--fill) / .16); }
.statistic__item, .user_statistic_wraper > * { display: flex; align-items: center; gap: .75rem; padding: .9rem; border-radius: var(--radius); }
.dash-stat-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: hsl(var(--tone, var(--p))); background: hsl(var(--tone, var(--p)) / .14); }
.dash-stat-body { min-width: 0; }

/* ==========================================================================
   17. NEW ORDER + services  (markup kept; Soya styling)
   ========================================================================== */
.new_order_tabs, .tab_wrap { margin-bottom: 14px; }
.tab_btn_wrap { display: flex; gap: 6px; overflow-x: auto; padding: 4px; scrollbar-width: none; background: hsl(var(--fill) / .1); border-radius: 14px; }
.tab_btn_wrap::-webkit-scrollbar { display: none; }
.new_order_tabs .nav { flex-wrap: nowrap; overflow-x: auto; padding: 4px; margin-bottom: 14px; background: hsl(var(--fill) / .1); border-radius: 14px; scrollbar-width: none; }
.new_order_tabs .nav::-webkit-scrollbar { display: none; }
.new_order_tabs .nav-link { white-space: nowrap; }
.filter_btn_wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.nwo-cat-btn, .btn_filter, .cat_btn_filter {
  display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; font-size: .83rem; font-weight: 650; color: hsl(var(--text));
  background: hsl(var(--fill) / .1); border: 1px solid hsl(var(--border) / .3); border-radius: 12px; cursor: pointer; transition: all .15s var(--ease);
}
.nwo-cat-btn:hover, .btn_filter:hover { border-color: hsl(var(--p) / .55); }
.nwo-cat-btn.active, .btn_filter.active { color: hsl(var(--p-fg)); background: hsl(var(--p)); border-color: transparent; }
.filter_txt, .text_filter { font-size: .83rem; font-weight: 650; }
.newordersr { margin-bottom: 1rem; }
.descriptions_box, .service-description, #description_new { padding: .9rem 1rem; font-size: .88rem; color: hsl(var(--muted)); background: hsl(var(--fill) / .08); border: 1px solid hsl(var(--border) / .25); border-radius: var(--radius-sm); }
.child_step, .child_panel_step { display: flex; align-items: center; gap: .8rem; padding: .85rem; margin-bottom: .7rem; background: hsl(var(--fill) / .08); border: 1px solid hsl(var(--border) / .25); border-radius: var(--radius-sm); }
.child_item_icons { display: grid; place-items: center; width: 38px; height: 38px; color: hsl(var(--p)); background: hsl(var(--p) / .12); border-radius: 12px; }
.left_item, .item_left { display: flex; align-items: center; gap: .6rem; } .right_item, .item_right { margin-left: auto; text-align: right; }
.services-category, .catetitle { margin: 1rem 0 .5rem; font-weight: 700; font-size: .95rem; }
.lazy-service-row:hover { background: hsl(var(--p) / .06); }
.btn_detail, .view-details-btn, .btn_serv { cursor: pointer; }
.avarage_time_Services { font-size: .78rem; color: hsl(var(--muted)); }
.search_byId { margin-bottom: 1rem; }
.component_button_search { display: flex; }
.component_form_group { margin-bottom: 1rem; }
.hlight-box, .hlight-first, .hlight-second { padding: 1rem; }
.hlight-first { border-left: 3px solid hsl(var(--p)); } .hlight-second { border-left: 3px solid hsl(var(--info)); }
.orders-history, .orders-history__margin-table { margin-bottom: var(--gap); }
.orders-history__margin-search { margin-bottom: 12px; }
.component_status_tabs { margin-bottom: 14px; }
.order_link_wrap { max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order_id { font-weight: 700; }

/* custom select (new order page builds .custom-select-wrapper) */
.custom-select-wrapper { position: relative; width: 100%; }
.custom-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 44px; padding: .6rem .9rem; cursor: pointer; color: hsl(var(--text)); background: hsl(var(--card-solid) / .55); border: 1px solid hsl(var(--border) / .4); border-radius: var(--radius-sm); }
.custom-select-wrapper.open .custom-select-trigger { border-color: hsl(var(--p)); box-shadow: 0 0 0 4px hsl(var(--p) / .16); }
.custom-options-menu { position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 1000; display: none; max-height: 320px; overflow-y: auto; padding: .4rem; background: hsl(var(--card-solid) / .96); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); border: 1px solid hsl(var(--border) / .35); border-radius: var(--radius-sm); box-shadow: 0 18px 40px hsl(var(--shadow) / .25); }
.custom-select-wrapper.open .custom-options-menu { display: block; }
.custom-search-input { margin-bottom: .4rem; }
.custom-option { padding: .55rem .7rem; font-size: .88rem; border-radius: 8px; cursor: pointer; color: hsl(var(--text)); }
.custom-option:hover, .custom-option.selected { background: hsl(var(--p) / .13); }

/* select2 (loaded by panel) */
.select2-container { width: 100% !important; }
.select2-container--default .select2-selection--single, .select2-container--default .select2-selection--multiple { display: flex; align-items: center; min-height: 44px; background: hsl(var(--card-solid) / .55); border: 1px solid hsl(var(--border) / .4); border-radius: var(--radius-sm); }
.select2-container--default .select2-selection--single .select2-selection__rendered { padding-left: .9rem; line-height: 1.3; color: hsl(var(--text)); }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 42px; right: 8px; }
.select2-dropdown { background: hsl(var(--card-solid)); color: hsl(var(--text)); border: 1px solid hsl(var(--border) / .35); border-radius: var(--radius-sm); box-shadow: 0 18px 40px hsl(var(--shadow) / .25); overflow: hidden; z-index: 2000; }
.select2-search--dropdown { padding: .5rem; } .select2-search--dropdown .select2-search__field { background: hsl(var(--card-solid) / .6); color: hsl(var(--text)); border: 1px solid hsl(var(--border) / .4); border-radius: 8px; }
.select2-results__option { padding: .55rem .8rem; font-size: .88rem; }
.select2-container--default .select2-results__option--highlighted[aria-selected], .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable { color: hsl(var(--p-fg)); background: hsl(var(--p)); }
.select2-container--default .select2-results__option[aria-selected=true] { background: hsl(var(--p) / .14); }

/* datepickers shipped by CDN libs */
.datepicker, .bootstrap-datetimepicker-widget { color: hsl(var(--text)); background: hsl(var(--card-solid)) !important; border: 1px solid hsl(var(--border) / .35); border-radius: var(--radius-sm); box-shadow: 0 18px 40px hsl(var(--shadow) / .25); z-index: 2000 !important; }
.datepicker table tr td, .datepicker table tr th { padding: .4rem; border: 0; text-align: center; border-radius: 8px; }
.datepicker table tr td.active, .datepicker table tr td.active:hover { color: hsl(var(--p-fg)); background: hsl(var(--p)); }
.datepicker table tr td.day:hover { background: hsl(var(--fill) / .14); }

/* ==========================================================================
   18. Wallet / account / referral / tickets / faq / blog / updates
   ========================================================================== */
.payment-card { padding: 1rem; cursor: pointer; transition: border-color .15s, transform .15s var(--ease); }
.payment-card:hover { border-color: hsl(var(--p) / .5); transform: translateY(-1px); }
.sm_aff_item, .aff_item { display: flex; align-items: center; gap: .8rem; padding: 1rem; }
.sm_content { padding: 0; }
.ticket-message-block { display: grid; gap: 12px; }
.ticket-message { max-width: 86%; padding: .8rem 1rem; border-radius: 16px; background: hsl(var(--fill) / .12); border: 1px solid hsl(var(--border) / .25); }
.ticket-message-left, .msg_admin { justify-self: start; border-bottom-left-radius: 5px; }
.ticket-message-right, .msg_user { justify-self: end; border-bottom-right-radius: 5px; background: hsl(var(--p) / .14); border-color: hsl(var(--p) / .3); }
.ticket-message .message, .ticket-message .info { font-size: .9rem; } .ticket-message .info { color: hsl(var(--muted)); font-size: .74rem; margin-bottom: .3rem; }
.faq-block__card { margin-bottom: 10px; overflow: hidden; border-radius: var(--radius-sm); }
.faq-block__header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem 1.1rem; cursor: pointer; }
.faq-block__header-title { margin: 0; font-size: .95rem; font-weight: 650; }
.faq-block__header-icon, .faq-block__icon { color: hsl(var(--p)); transition: transform .2s var(--ease); }
.faq-block__header:not(.collapsed) .faq-block__header-icon, .faq-block__header:not(.collapsed) .faq-block__icon { transform: rotate(180deg); }
.faq-block__body { padding: 0 1.1rem 1rem; } .faq-block__body-description { color: hsl(var(--muted)); font-size: .9rem; }
.blog_content img, .blog_img { width: 100%; border-radius: var(--radius); margin-bottom: 1rem; }
.blog_content h1, .blog_content h2, .blog_content h3 { margin-top: 1.4rem; } .blog_content p, .blog_content li { line-height: 1.7; }
.update-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .85rem 1rem; border-bottom: 1px dashed hsl(var(--border) / .25); }
.embed-responsive { position: relative; display: block; width: 100%; overflow: hidden; border-radius: var(--radius); } .embed-responsive::before { content: ""; display: block; padding-top: 56.25%; }
.embed-responsive iframe, .embed-responsive video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-caption { margin-top: .6rem; color: hsl(var(--muted)); font-size: .85rem; }
.copy { cursor: pointer; }
.width-40 { width: 40px; }
.highlight { color: hsl(var(--p)); font-weight: 700; }
.text-break { word-break: break-word; }
.sign-up-center-alignment { display: flex; justify-content: center; }
.style-text-primary { color: hsl(var(--p)) !important; } .style-text-dark { color: hsl(var(--text)) !important; }
.style-bg-primary-alpha-20 { background: hsl(var(--p) / .2) !important; }
.g-recaptcha { max-width: 100%; overflow: hidden; margin-bottom: 1rem; }

/* ==========================================================================
   19. Number / eSIM / rent / airtime list items (markup built by page scripts)
   ========================================================================== */
.swiper { width: 100%; }
.swiper-slide { height: auto; }
.country-item, .server-item, .service-item, .network-item, .plan-item, .esim-plan {
  cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.country-item:hover, .server-item:hover, .service-item:hover, .network-item:hover, .plan-item:hover { border-color: hsl(var(--p) / .5); }
.country-item.active, .server-item.active, .service-item.active, .network-item.active, .plan-item.active { border-color: hsl(var(--p)); background: hsl(var(--p) / .1); }
.component_content_button { display: flex; gap: .5rem; flex-wrap: wrap; }

/* ==========================================================================
   20. SweetAlert + tippy theming
   ========================================================================== */
.swal2-popup { color: hsl(var(--text)) !important; background: hsl(var(--card-solid) / .95) !important; border: 1px solid hsl(var(--border) / .35); border-radius: var(--radius-lg) !important; -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.swal2-title, .swal2-html-container { color: hsl(var(--text)) !important; }
.swal2-styled.swal2-confirm { background: hsl(var(--p)) !important; color: hsl(var(--p-fg)) !important; border-radius: 12px !important; }
.swal-modal { background: hsl(var(--card-solid)) !important; color: hsl(var(--text)); border-radius: var(--radius-lg) !important; }
.swal-title, .swal-text { color: hsl(var(--text)) !important; }
.tippy-box { background: hsl(var(--text)); color: hsl(var(--base)); border-radius: 8px; }
.tippy-arrow { color: hsl(var(--text)); }

/* ==========================================================================
   21. AUTH + LANDING (logged-out)
   ========================================================================== */
.auth_wrap { display: grid; place-items: center; min-height: calc(100vh - 150px); padding: 18px 0; }
.auth_card { width: 100%; max-width: 440px; padding: 1.6rem; border-radius: var(--radius-lg); margin: 0; }
.auth_card h1 { margin: 0 0 .25rem; font-size: 1.5rem; } .auth_card .sub { margin-bottom: 1.2rem; color: hsl(var(--muted)); font-size: .9rem; }
.auth_card .alt { margin-top: 1rem; text-align: center; font-size: .88rem; color: hsl(var(--muted)); }
.hero { display: grid; gap: 28px; align-items: center; padding: 22px 0 8px; }
@media (min-width: 992px) { .hero { grid-template-columns: 1.1fr .9fr; padding: 40px 0 16px; } }
.hero h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); line-height: 1.1; letter-spacing: -.03em; margin-bottom: .8rem; }
.hero h1 em { font-style: normal; background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { max-width: 54ch; margin-bottom: 1.3rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sec { padding: 34px 0 6px; } .sec > h2 { margin-bottom: .3rem; font-size: 1.45rem; text-align: center; } .sec > p.sub { margin-bottom: 1.4rem; text-align: center; color: hsl(var(--muted)); }
.feat_grid { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .feat_grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feat { padding: 1.1rem; margin: 0; border-radius: var(--radius); text-align: left; }
.feat .ic { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: .7rem; color: hsl(var(--tone, var(--p))); background: hsl(var(--tone, var(--p)) / .14); border-radius: 13px; font-size: 1.1rem; }
.feat h3 { margin: 0 0 .25rem; font-size: .98rem; } .feat p { margin: 0; color: hsl(var(--muted)); font-size: .84rem; }
.steps { display: grid; gap: 12px; } @media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step { padding: 1.1rem; margin: 0; border-radius: var(--radius); } .step .n { display: grid; place-items: center; width: 32px; height: 32px; margin-bottom: .6rem; font-weight: 800; color: hsl(var(--p-fg)); background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); border-radius: 50%; }
.step h3 { margin: 0 0 .2rem; font-size: .98rem; } .step p { margin: 0; color: hsl(var(--muted)); font-size: .85rem; }
.stat_strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 1.4rem; max-width: 460px; }
.stat_strip div { padding: .8rem; text-align: center; border-radius: var(--radius-sm); } .stat_strip b { display: block; font-size: 1.15rem; } .stat_strip span { font-size: .72rem; color: hsl(var(--muted)); font-weight: 600; }

/* ==========================================================================
   22. API documentation page
   ========================================================================== */
.api_doc pre, .api-doc pre, pre.code, .code-block { padding: .9rem 1rem; font-size: .8rem; line-height: 1.55; color: hsl(var(--text)); background: hsl(var(--fill) / .1); border: 1px solid hsl(var(--border) / .28); border-radius: var(--radius-sm); overflow-x: auto; }
.api_doc table, .api-doc table { min-width: 0; }
.api_doc h2, .api-doc h2 { margin-top: 1.6rem; font-size: 1.15rem; }

/* misc responsive polish */
@media (max-width: 575.98px) {
  body { font-size: 14px; }
  .card-body, .wrapper-content__body { padding: .95rem; }
  .btn { padding: .6rem .95rem; }
  .modal-dialog { margin: .75rem auto; }
  .page_head h1, .page_head h2 { font-size: 1.2rem; }
  h1 { font-size: 1.6rem; } h2 { font-size: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; } }

/* ==========================================================================
   23. Small overlay sheet (currency picker etc.)
   ========================================================================== */
.soya_overlay { position: fixed; inset: 0; z-index: 1300; display: none; align-items: center; justify-content: center; padding: 16px; background: hsl(222 40% 4% / .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.soya_sheet { width: 100%; max-width: 380px; overflow: hidden; border-radius: var(--radius-lg); background: hsl(var(--card-solid) / .92); }
.soya_sheet_head { display: flex; align-items: center; justify-content: space-between; padding: .9rem 1.1rem; border-bottom: 1px solid hsl(var(--border) / .25); }
.soya_sheet_head h3 { margin: 0; font-size: 1rem; }
.soya_sheet_body { max-height: 320px; overflow: auto; padding: .6rem; }
.soya_sheet_body a, .soya_sheet_body li, .soya_sheet_body button { display: block; padding: .6rem .8rem; color: hsl(var(--text)); border-radius: 10px; cursor: pointer; list-style: none; }
.soya_sheet_body a:hover, .soya_sheet_body li:hover, .soya_sheet_body button:hover { background: hsl(var(--p) / .12); }
.soya_sheet_foot { display: flex; justify-content: flex-end; padding: .8rem 1.1rem; border-top: 1px solid hsl(var(--border) / .25); }

/* ==========================================================================
   24. Page loader line + PWA prompt states
   ========================================================================== */
.pwa-offcanvas { position: fixed; left: 50%; bottom: -100%; z-index: 1200; display: block; width: min(100%, 520px); margin: 0; opacity: 0; transform: translateX(-50%); transition: bottom .35s var(--ease), opacity .35s; border-radius: var(--radius-lg) var(--radius-lg) 0 0; padding: 1rem; }
.pwa-offcanvas.show { bottom: 0; opacity: 1; }
.pwa-backdrop { position: fixed; inset: 0; z-index: 1190; display: block; background: transparent; opacity: 0; pointer-events: none; transition: opacity .25s; }
.pwa-backdrop.show, .pwa-backdrop.fade.show { background: hsl(222 40% 4% / .45); opacity: 1; pointer-events: auto; }
.internet-connection-status { position: fixed; left: 0; right: 0; bottom: calc(var(--nav-h) + 26px); z-index: 99999; display: none; width: 100%; height: 32px; line-height: 32px; text-align: center; color: #fff; font-weight: 700; font-size: 12px; background: transparent; }
@media (min-width: 992px) { .internet-connection-status { bottom: 0; } }

/* status chips used by dashboard + order lists */
.ro-status.completed, .ro-status.complete, .ro-status.success, .ro-status.received, .ro-status.active { color: hsl(var(--success)); background: hsl(var(--success) / .14); }
.ro-status.pending, .ro-status.processing, .ro-status.waiting, .ro-status.inprogress, .ro-status.in_progress { color: hsl(var(--warning)); background: hsl(var(--warning) / .16); }
.ro-status.canceled, .ro-status.cancelled, .ro-status.failed, .ro-status.refunded, .ro-status.expired { color: hsl(var(--danger)); background: hsl(var(--danger) / .14); }
.ro-status.partial { color: hsl(var(--info)); background: hsl(var(--info) / .14); }
.recent-order-row h6 { margin: 0; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent-order-row p { margin: 0; font-size: .76rem; color: hsl(var(--muted)); }
.recent-order-row .ro-meta { text-align: right; flex: 0 0 auto; }
.recent-order-row .ro-meta h6 { font-size: .86rem; }
.level_pill { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem; font-size: .76rem; font-weight: 700; color: hsl(var(--warning)); background: hsl(var(--warning) / .14); border-radius: 99px; }
.dash_steps { counter-reset: s; display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.dash_steps li { counter-increment: s; display: flex; align-items: flex-start; gap: .7rem; font-size: .88rem; color: hsl(var(--muted)); }
.dash_steps li::before { content: counter(s); display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; font-size: .74rem; font-weight: 800; color: hsl(var(--p-fg)); background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); border-radius: 50%; }
.dash_steps b { color: hsl(var(--text)); }
.update-row p { margin: 0; font-size: .78rem; color: hsl(var(--muted)); } .update-row h6 { margin: 0; font-size: .88rem; flex-basis: 100%; }

/* ---- layout hardening: nothing inside a card may push the page wider ---- */
.card, .card-body, .card_v2, .well, .tab-content, .tab-pane, .row > *, .content, .content_area { min-width: 0; }
.nav-pills, .new_order_tabs .nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.nav-pills::-webkit-scrollbar { display: none; }
.nav-pills > .nav-item, .nav-pills .nav-link { flex-shrink: 0; }
.nav-pills .nav-link { white-space: nowrap; }
.nav-pills.flex-column { overflow-x: visible; }
.nav-pills.flex-column .nav-link { flex-shrink: 1; }
img, video, iframe, canvas { max-width: 100%; }
.content_area { overflow-x: clip; }

/* ---- landing polish ---- */
.hero > div:first-child h1 { font-size: clamp(1.9rem, 5.2vw, 3.1rem); }
.hero .auth_card h1 { font-size: 1.5rem; letter-spacing: -.01em; line-height: 1.25; background: none; }
.feat_grid { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
@media (max-width: 575.98px) { .feat_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feat_grid > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.stat_strip div { padding: .7rem .4rem; } .stat_strip span { display: block; line-height: 1.25; }
.navbar-nav .nav-link { white-space: nowrap; }
@media (min-width: 992px) and (max-width: 1199.98px) { .navbar-nav .nav-link { padding: .45rem .55rem; font-size: .82rem; } }

/* ---- currency picker (outside the header) ---- */
#currencies-list select { width: 100%; }
#currencies-list li, #currencies-list a, #currencies-list button { display: block; width: 100%; margin: 4px 0; padding: .65rem .8rem; text-align: left; list-style: none; text-decoration: none; background: hsl(var(--fill) / .08); border: 1px solid hsl(var(--border) / .25); border-radius: 10px; }
#currencies-list li:hover, #currencies-list a:hover, #currencies-list button:hover { background: hsl(var(--p) / .12); }
#currencyModal.soya_overlay { z-index: 2100; }
.soya_toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 40px); z-index: 3000; transform: translateX(-50%); padding: .5rem 1rem; font-size: .85rem; font-weight: 650; color: hsl(var(--p-fg)); background: hsl(var(--p)); border-radius: 99px; box-shadow: 0 10px 26px hsl(var(--p) / .35); transition: opacity .4s, transform .4s; }
.soya_toast.out { opacity: 0; transform: translate(-50%, 8px); }
.card:has(.modal) { -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ==========================================================================
   25. Preloader (full-screen glass splash)
   ========================================================================== */
#page-preloader { position: fixed; inset: 0; z-index: 99999; display: none; align-items: center; justify-content: center; overflow: hidden; opacity: 0; transition: opacity .4s var(--ease);
  background: radial-gradient(circle at 50% 0%, hsl(var(--p) / .35), hsl(var(--base)) 62%); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
html[data-theme="dark"] #page-preloader { background: radial-gradient(circle at 50% 0%, hsl(var(--p) / .28), hsl(var(--base)) 62%); }
#page-preloader.on { opacity: 1; }
.pl_glow { position: absolute; width: min(70vw, 520px); height: min(70vw, 520px); border-radius: 50%; background: hsl(var(--p) / .45); filter: blur(110px); animation: pl-glow 4s infinite; }
.pl_card { position: relative; width: 330px; max-width: 90%; padding: 2rem 1.6rem; text-align: center; border-radius: var(--radius-lg); margin: 0; }
.pl_logo { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto; border-radius: 50%; overflow: hidden; color: hsl(var(--p-fg)); font-size: 2.2rem;
  background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); box-shadow: 0 0 34px hsl(var(--p) / .45); animation: pl-pulse 2s infinite; }
.pl_logo img { width: 70%; height: 70%; object-fit: contain; }
.pl_spin { position: relative; width: 56px; height: 56px; margin: 1.3rem auto .9rem; }
.pl_spin span { position: absolute; inset: 0; border-radius: 50%; border: 4px solid hsl(var(--fill) / .2); }
.pl_spin span + span { border-color: transparent; border-top-color: hsl(var(--p)); animation: soya-spin .9s linear infinite; }
.pl_card h2 { margin: 0 0 .2rem; font-size: 1.25rem; letter-spacing: .02em; }
.pl_card p { margin: 0 0 1.2rem; font-size: .85rem; color: hsl(var(--muted)); }
.pl_bar { height: 7px; overflow: hidden; border-radius: 99px; background: hsl(var(--fill) / .18); }
#preloader-progress { width: 0; height: 100%; border-radius: 99px; background: linear-gradient(90deg, hsl(var(--p)), hsl(var(--p-2))); animation: pl-progress 3s linear infinite; }
#loadingText { margin-top: .9rem; font-size: .78rem; letter-spacing: .04em; color: hsl(var(--muted)); }
@keyframes pl-pulse { 50% { transform: scale(1.08); } }
@keyframes pl-glow { 0%, 100% { transform: scale(.8); opacity: .4; } 50% { transform: scale(1.15); opacity: .7; } }
@keyframes pl-progress { 0% { width: 0; } 35% { width: 35%; } 65% { width: 75%; } 100% { width: 100%; } }


/* ==========================================================================
   26. API documentation page
   ========================================================================== */
.api-docs-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@media (min-width: 992px) { .api-docs-layout { grid-template-columns: 250px minmax(0, 1fr); } }
.api-docs-sidebar {
  display: flex; gap: 6px; padding: 8px; overflow-x: auto; scrollbar-width: none; border-radius: var(--radius);
  background: hsl(var(--card) / var(--glass-alpha)); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5); backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid hsl(var(--border) / var(--glass-border-alpha)); position: sticky; top: calc(var(--topbar-h) + 8px); z-index: 5;
}
.api-docs-sidebar::-webkit-scrollbar { display: none; }
.api-docs-sidebar-group { display: flex; gap: 6px; flex: 0 0 auto; }
.api-docs-sidebar-heading { display: none; }
.api-docs-sidebar-link { display: inline-flex; align-items: center; gap: .45rem; flex: 0 0 auto; padding: .45rem .75rem; font-size: .8rem; font-weight: 600; white-space: nowrap; color: hsl(var(--muted)); background: hsl(var(--fill) / .08); border-radius: 10px; }
.api-docs-sidebar-link:hover, .api-docs-sidebar-link.active { color: hsl(var(--p)); background: hsl(var(--p) / .13); }
.api-docs-sidebar-link i { width: 1em; text-align: center; }
@media (min-width: 992px) {
  .api-docs-sidebar { display: block; max-height: calc(100vh - var(--topbar-h) - 32px); overflow-y: auto; padding: 12px; }
  .api-docs-sidebar-group { display: block; margin-bottom: 14px; }
  .api-docs-sidebar-heading { display: block; margin: 0 0 6px; padding: 0 .5rem; font-size: .68rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: hsl(var(--muted)); }
  .api-docs-sidebar-link { display: flex; width: 100%; background: transparent; padding: .45rem .6rem; white-space: normal; }
}
.api-docs-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; min-width: 0; }
.api-endpoint-section {
  scroll-margin-top: calc(var(--topbar-h) + 70px); padding: 1.1rem; min-width: 0; border-radius: var(--radius);
  background: hsl(var(--card) / var(--glass-alpha)); -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(1.5); backdrop-filter: blur(var(--glass-blur)) saturate(1.5);
  border: 1px solid hsl(var(--border) / var(--glass-border-alpha)); box-shadow: 0 10px 30px hsl(var(--shadow) / .08);
}
.api-endpoint-header { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.api-endpoint-header .icon { display: grid; place-items: center; width: 36px; height: 36px; color: hsl(var(--p)); background: hsl(var(--p) / .13); border-radius: 11px; }
.api-endpoint-header .name { flex: 1 1 auto; margin: 0; font-size: 1.05rem; }
.api-method-badge { padding: .22rem .65rem; font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: hsl(var(--p-fg)); background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); border-radius: 99px; }
.api-param-list { display: grid; margin-bottom: 1rem; border: 1px solid hsl(var(--border) / .25); border-radius: var(--radius-sm); overflow: hidden; }
.api-param-row { display: grid; grid-template-columns: minmax(110px, 190px) minmax(0, 1fr); gap: .8rem; padding: .65rem .9rem; border-bottom: 1px solid hsl(var(--border) / .2); }
.api-param-row:last-child { border-bottom: 0; }
.api-param-row:nth-child(odd) { background: hsl(var(--fill) / .05); }
.api-param-name { margin: 0; font-family: var(--mono); font-size: .82rem; font-weight: 700; color: hsl(var(--p)); word-break: break-word; }
.api-param-desc { font-size: .84rem; color: hsl(var(--muted)); word-break: break-word; }
@media (max-width: 575.98px) { .api-param-row { grid-template-columns: minmax(0, 1fr); gap: .15rem; } }
.api-response-label { margin: 0 0 .5rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: hsl(var(--muted)); }
.api-code-block { position: relative; margin-bottom: 1rem; border-radius: var(--radius-sm); background: hsl(222 30% 8% / .92); border: 1px solid hsl(var(--border) / .25); }
.api-code-block pre { margin: 0; padding: 1rem 1rem 1rem; max-height: 340px; overflow: auto; font-family: var(--mono); font-size: .78rem; line-height: 1.6; color: hsl(210 30% 92%); white-space: pre; }
.api-copy-btn { position: absolute; top: 8px; right: 8px; z-index: 1; padding: .25rem .65rem; font-size: .72rem; font-weight: 700; color: hsl(210 30% 92%); background: hsl(0 0% 100% / .12); border: 1px solid hsl(0 0% 100% / .18); border-radius: 8px; cursor: pointer; }
.api-copy-btn:hover { background: hsl(var(--p) / .5); }
.api-type-selector-wrap { margin-bottom: 1rem; } .api-type-selector-wrap label { display: block; margin-bottom: .4rem; font-size: .84rem; color: hsl(var(--muted)); }
.api-group-divider { height: 1px; margin: 8px 0; background: hsl(var(--border) / .25); }
.api-intro-note { padding: .8rem 1rem; font-size: .86rem; color: hsl(var(--muted)); background: hsl(var(--info) / .1); border-left: 3px solid hsl(var(--info)); border-radius: var(--radius-sm); }
#api .container, #defOrder .container-fluid { max-width: 1180px; }

/* ==========================================================================
   27. Blog list (excerpt cards)
   ========================================================================== */
.blog_grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px 0 30px; }
@media (min-width: 640px) { .blog_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .blog_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.blog_card { display: flex; flex-direction: column; margin: 0; overflow: hidden; padding: 0; border-radius: var(--radius); transition: transform .18s var(--ease), border-color .18s; }
.blog_card:hover { transform: translateY(-2px); border-color: hsl(var(--p) / .45); }
.blog_card .blog_thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(135deg, hsl(var(--p) / .25), hsl(var(--p-2) / .2)); }
.blog_card .blog_thumb img { width: 100%; height: 100%; object-fit: cover; }
.blog_card .blog_body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.1rem; }
.blog_card h4 { margin: 0 0 .5rem; font-size: 1.05rem; line-height: 1.3; }
.blog_card h4 a { color: hsl(var(--text)); } .blog_card h4 a:hover { color: hsl(var(--p)); }
.blog_card .blog_excerpt { flex: 1 1 auto; margin: 0 0 1rem; font-size: .88rem; color: hsl(var(--muted)); display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.blog_card .blog_more { align-self: flex-start; }
.blog_empty { padding: 3rem 1rem; text-align: center; color: hsl(var(--muted)); }

/* ==========================================================================
   28. Homepage — extra sections + mobile fit
   ========================================================================== */
html, body { max-width: 100%; }
body.noAuth { overflow-x: clip; }
.hero { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 992px) { .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); } }
.hero > *, .band > *, .svc_grid > *, .feat_grid > *, .steps > * { min-width: 0; }
.hero .auth_card { max-width: 100%; justify-self: stretch; }
@media (min-width: 992px) { .hero .auth_card { justify-self: end; max-width: 440px; } }
.social_login { margin-top: 1rem; max-width: 100%; overflow: hidden; text-align: center; }
.social_login iframe, .social_login > * { max-width: 100%; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; margin-bottom: .8rem; padding: .3rem .75rem; font-size: .76rem; font-weight: 700; letter-spacing: .03em; color: hsl(var(--p)); background: hsl(var(--p) / .13); border: 1px solid hsl(var(--p) / .25); border-radius: 99px; }
.sec { scroll-margin-top: 80px; }
.svc_grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 700px) { .svc_grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .svc_grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.svc { display: flex; flex-direction: column; margin: 0; padding: 1.2rem; border-radius: var(--radius); }
.svc .ic { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: .8rem; font-size: 1.2rem; color: hsl(var(--tone, var(--p))); background: hsl(var(--tone, var(--p)) / .14); border-radius: 14px; }
.svc h3 { margin: 0 0 .4rem; font-size: 1.05rem; } .svc p { margin: 0 0 .8rem; font-size: .88rem; color: hsl(var(--muted)); }
.svc ul { margin: auto 0 0; padding: 0; list-style: none; display: grid; gap: .35rem; }
.svc li { position: relative; padding-left: 1.3rem; font-size: .83rem; } .svc li::before { content: "\2713"; position: absolute; left: 0; font-weight: 800; color: hsl(var(--tone, var(--p))); }
.band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 1.4rem; margin: 0; border-radius: var(--radius-lg); background: linear-gradient(135deg, hsl(var(--p) / .16), hsl(var(--p-2) / .12)), hsl(var(--card) / var(--glass-alpha)); }
@media (min-width: 900px) { .band { grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); padding: 2rem; align-items: center; } }
.band h2 { margin: 0 0 .6rem; font-size: clamp(1.35rem, 3.6vw, 1.9rem); text-align: left; } .band p { color: hsl(var(--muted)); }
.ticks { display: grid; gap: .5rem; margin: 0 0 1.2rem; padding: 0; list-style: none; } .ticks li { display: flex; gap: .6rem; font-size: .9rem; } .ticks i { margin-top: .2rem; color: hsl(var(--success)); }
.band_steps { counter-reset: b; display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.band_steps li { counter-increment: b; position: relative; padding: .85rem .9rem .85rem 3.1rem; background: hsl(var(--card-solid) / .55); border: 1px solid hsl(var(--border) / .25); border-radius: var(--radius-sm); }
.band_steps li::before { content: counter(b); position: absolute; left: .8rem; top: .85rem; display: grid; place-items: center; width: 28px; height: 28px; font-size: .8rem; font-weight: 800; color: hsl(var(--p-fg)); background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); border-radius: 50%; }
.band_steps b { display: block; font-size: .92rem; } .band_steps span { font-size: .8rem; color: hsl(var(--muted)); }
.pay_chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 1.2rem; }
.pay_chips .lbl { font-size: .78rem; font-weight: 700; color: hsl(var(--muted)); }
.pay_chips .chip { padding: .3rem .8rem; font-size: .8rem; font-weight: 650; background: hsl(var(--fill) / .12); border: 1px solid hsl(var(--border) / .28); border-radius: 99px; }
.faq_list { display: grid; gap: 10px; max-width: 800px; margin: 0 auto; }
.faq_item { margin: 0; overflow: hidden; border-radius: var(--radius-sm); }
.faq_q { display: flex; align-items: center; justify-content: space-between; gap: 1rem; width: 100%; padding: .95rem 1.1rem; font: inherit; font-size: .94rem; font-weight: 650; text-align: left; color: hsl(var(--text)); background: transparent; border: 0; cursor: pointer; }
.faq_q i { color: hsl(var(--p)); transition: transform .2s var(--ease); flex: 0 0 auto; }
.faq_q:not(.collapsed) i { transform: rotate(180deg); }
.faq_a { padding: 0 1.1rem 1rem; font-size: .88rem; color: hsl(var(--muted)); }
.final_cta { padding: 2rem 1.2rem; margin: 0; text-align: center; border-radius: var(--radius-lg); }
.final_cta h2 { margin-bottom: .4rem; } .final_cta p { color: hsl(var(--muted)); } .final_cta .cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
@media (max-width: 575.98px) { .hero .cta .btn, .final_cta .cta .btn, .band .cta .btn { width: 100%; } .hero { padding-top: 12px; } }

/* ==========================================================================
   29. Homepage intro slider (#fullSplash)
   ========================================================================== */
html.splash_lock, html.splash_lock body { overflow: hidden; }
#fullSplash { position: fixed; inset: 0; z-index: 2500; display: none; align-items: center; justify-content: center; padding: 16px; opacity: 0; transition: opacity .3s var(--ease);
  background: radial-gradient(circle at 50% 0%, hsl(var(--p) / .32), hsl(var(--base) / .94) 62%); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
#fullSplash.open { opacity: 1; }
.splash_card { width: 100%; max-width: 520px; padding: 1.6rem 1.4rem 1.4rem; margin: 0; text-align: center; border-radius: var(--radius-lg); }
.splash-progress { display: flex; justify-content: center; gap: 6px; margin-bottom: 1.6rem; }
.splash-dot { width: 22px; height: 4px; border-radius: 3px; background: hsl(var(--fill) / .25); transition: width .25s var(--ease), background .25s; }
.splash-dot.done { background: hsl(var(--p) / .5); } .splash-dot.active { width: 40px; background: hsl(var(--p)); }
.splash_stage { display: grid; min-height: 210px; align-content: center; }
.splash-slide { display: none; animation: splash-in .35s var(--ease); }
.splash-slide.active { display: block; }
@keyframes splash-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
.splash-icon { display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 1.2rem; font-size: 2.1rem; color: hsl(var(--tone, var(--p))); background: hsl(var(--tone, var(--p)) / .14); border: 1px solid hsl(var(--tone, var(--p)) / .3); border-radius: 26px; box-shadow: 0 0 40px hsl(var(--tone, var(--p)) / .25); }
.splash-slide h2 { margin: 0 0 .6rem; font-size: 1.4rem; } .splash-slide p { margin: 0 auto; max-width: 42ch; font-size: .93rem; line-height: 1.65; color: hsl(var(--muted)); }
.splash-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 1.6rem; }
.splash-btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .6rem 1.3rem; font: inherit; font-size: .88rem; font-weight: 700; border-radius: 99px; cursor: pointer; transition: transform .15s var(--ease), filter .15s; }
.splash-btn:active { transform: scale(.97); }
.splash-btn-next { color: hsl(var(--p-fg)); border: 0; background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-2))); box-shadow: 0 8px 20px hsl(var(--p) / .3); }
.splash-btn-prev { color: hsl(var(--text)); background: hsl(var(--fill) / .14); border: 1px solid hsl(var(--border) / .3); }
.splash-btn-skip { color: hsl(var(--muted)); background: transparent; border: 1px solid hsl(var(--border) / .3); }
@media (max-width: 420px) { .splash-controls .splash-btn { flex: 1 1 calc(50% - 10px); } .splash-btn-skip { flex-basis: 100%; } }


/* ==========================================================================
   30. Profile menu — solid panel (a blurred panel inside a blurred header goes see-through)
   ========================================================================== */
.top_header .dropdown-menu, .settings_drop {
  z-index: 1100; min-width: 190px; max-width: calc(100vw - 20px); margin-top: 8px; padding: .4rem;
  background: hsl(var(--card-solid)); -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid hsl(var(--border) / .4); box-shadow: 0 18px 44px hsl(var(--shadow) / .28);
}
.settings_drop .user_menu__item { width: 100%; white-space: nowrap; }
.settings_drop .user_menu_icon { flex: 0 0 20px; }

/* ==========================================================================
   31. New Year decorations (garland · snow · toys · fireworks) — works on guest AND user header
   ========================================================================== */
.particle-snow{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1;pointer-events:none}.particle-snow canvas{position:fixed;top:0;left:0;width:100%;height:100%;pointer-events:none}.christmas-garland{text-align:center;white-space:nowrap;overflow:hidden;position:absolute;z-index:1;padding:0;pointer-events:none;width:100%;height:85px}.christmas-garland .christmas-garland__item{position:relative;width:28px;height:28px;border-radius:50%;display:inline-block;margin-left:20px}.christmas-garland .christmas-garland__item .shape{-webkit-animation-fill-mode:both;animation-fill-mode:both;-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite;-webkit-animation-name:flash-1;animation-name:flash-1;-webkit-animation-duration:2s;animation-duration:2s}.christmas-garland .christmas-garland__item .apple{width:22px;height:22px;border-radius:50%;margin-left:auto;margin-right:auto;margin-top:8px}.christmas-garland .christmas-garland__item .pear{width:12px;height:28px;border-radius:50%;margin-left:auto;margin-right:auto;margin-top:6px}.christmas-garland .christmas-garland__item:nth-child(2n+1) .shape{-webkit-animation-name:flash-2;animation-name:flash-2;-webkit-animation-duration:.4s;animation-duration:.4s}.christmas-garland .christmas-garland__item:nth-child(4n+2) .shape{-webkit-animation-name:flash-3;animation-name:flash-3;-webkit-animation-duration:1.1s;animation-duration:1.1s}.christmas-garland .christmas-garland__item:nth-child(odd) .shape{-webkit-animation-duration:1.8s;animation-duration:1.8s}.christmas-garland .christmas-garland__item:nth-child(3n+1) .shape{-webkit-animation-duration:1.4s;animation-duration:1.4s}.christmas-garland .christmas-garland__item:before{content:"";position:absolute;background:#222;width:10px;height:10px;border-radius:3px;top:-1px;left:9px}.christmas-garland .christmas-garland__item:after{content:"";top:-9px;left:14px;position:absolute;width:52px;height:18px;border-bottom:solid #222 2px;border-radius:50%}.christmas-garland .christmas-garland__item:last-child:after{content:none}.christmas-garland .christmas-garland__item:first-child{margin-left:-40px}
.christmas-garland { position: fixed; top: 0; left: 0; z-index: 1040; max-width: 100vw; }
.christmas-garland .christmas-garland__item:before { background: hsl(var(--text) / .7); }
.christmas-garland .christmas-garland__item:after { border-bottom-color: hsl(var(--text) / .7); }
.particle-snow, .particle-snow canvas { z-index: 1040; }
/* any canvas/img layer the decoration script adds must never push the page or catch taps */
canvas.ny-layer, .ny-toy, .ny-firework { pointer-events: none; }
@media (max-width: 575.98px) {
  .christmas-garland { height: 70px; }
  .christmas-garland .christmas-garland__item { width: 24px; height: 24px; margin-left: 16px; }
}

/* ==========================================================================
   32. Homepage FAQ (native <details>: nothing to close itself)
   ========================================================================== */
details.faq_item > summary { list-style: none; }
details.faq_item > summary::-webkit-details-marker { display: none; }
details.faq_item .faq_q { user-select: none; }
details.faq_item[open] .faq_q i { transform: rotate(180deg); }
details.faq_item[open] { border-color: hsl(var(--p) / .45); }
details.faq_item .faq_a { animation: faq-open .22s var(--ease); }
@keyframes faq-open { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* ==========================================================================
   33. Profile menu as a fixed layer on <body>  +  New Year touch layers  +  /faq page
   ========================================================================== */
.dropdown-menu.settings_drop.soya_pop {
  position: fixed; margin: 0; z-index: 2200; width: max-content; min-width: 190px; max-width: calc(100vw - 20px);
  background: hsl(var(--card-solid)); color: hsl(var(--text)); -webkit-backdrop-filter: none; backdrop-filter: none;
  border: 1px solid hsl(var(--border) / .45); border-radius: var(--radius-sm); box-shadow: 0 20px 50px hsl(var(--shadow) / .32);
}
.dropdown-menu.settings_drop.soya_pop:not(.show) { display: none; }
.dropdown-menu.settings_drop.soya_pop.show { display: block; animation: pop-in .14s var(--ease); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }

.ny-toys { position: fixed; inset: 0; z-index: 1039; overflow: hidden; pointer-events: none; }
.ny-toys img { position: absolute; top: 0; left: 0; max-width: none; height: auto; will-change: transform; user-select: none; -webkit-user-drag: none; filter: drop-shadow(0 4px 6px hsl(var(--shadow) / .3)); }
canvas.ny-fireworks { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; max-width: none; z-index: 1039; pointer-events: none; }

.faq_page { max-width: 900px; margin-inline: auto; }
.faq_page .faq_a { padding-top: .2rem; line-height: 1.7; }
.faq_page .faq_a p:last-child { margin-bottom: 0; }


/* --- Global File: ai-chat.css --- */
/*!
 * AI Chat widget - stylesheet  (v1.1)
 * ---------------------------------------------------------------
 * COLORS
 *   1. Brand colors come from YOUR system variables (block 1).
 *   2. The chat has its OWN light / dark theme (blocks 2 + 3). It never
 *      follows the phone/OS mode by itself, so text can't end up white on
 *      white. The JS sets  data-aic-theme="light|dark"  on .aic-root
 *      (follows the site's theme, user can switch with the sun/moon button).
 *   3. Block 4 ("color guard") stops the site's global styles from
 *      recoloring text inside the chat.
 * All colors are HSL variables. Nothing else in this file has a color value.
 * ---------------------------------------------------------------
 */

/* ============ 1. SYSTEM COLORS (brand) ============
 * Replace the two names with your own variables if they differ.
 * The value after the comma is only a fallback. */
.aic-root {
  --aic-primary: var(--base, 247 96% 68%);
  --aic-secondary: var(--p, 182 70% 45%);
  --aic-on-primary: 0 0% 100%;
  --aic-danger: 0 78% 56%;
  --aic-ok: 150 60% 38%;
  --aic-fab-size: 46px;   /* icon height; set from Admin -> Settings */
}

/* ============ 2. THEME: LIGHT (default) ============ */
.aic-root,
.aic-root[data-aic-theme="light"] {
  --aic-bg: 0 0% 100%;
  --aic-surface: 222 25% 96%;
  --aic-text: 222 20% 14%;
  --aic-muted: 222 10% 40%;
  --aic-border: 222 15% 86%;
  --aic-shadow: 222 40% 10%;
  color-scheme: light;
}

/* ============ 3. THEME: DARK ============ */
.aic-root[data-aic-theme="dark"] {
  --aic-bg: 222 20% 9%;
  --aic-surface: 222 18% 15%;
  --aic-text: 0 0% 94%;
  --aic-muted: 222 10% 70%;
  --aic-border: 222 14% 25%;
  --aic-shadow: 0 0% 0%;
  color-scheme: dark;
}

/* ============ BASE ============ */
.aic-root, .aic-root * { box-sizing: border-box; }
.aic-root {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: hsl(var(--aic-text));
}
.aic-root button { font: inherit; }
.aic-lock { overflow: hidden !important; }
.aic-hidden { display: none !important; }

/* ============ FLOATING ICON (movable, optional text) ============ */
.aic-fab {
  position: fixed;
  left: 0; top: 0;
  height: var(--aic-fab-size); min-width: var(--aic-fab-size);
  padding: 0 calc(var(--aic-fab-size) * .36) 0 calc(var(--aic-fab-size) * .28);
  gap: calc(var(--aic-fab-size) * .2);
  border: 0; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: grab;
  touch-action: none;
  user-select: none; -webkit-user-select: none;
  background-image: linear-gradient(135deg, hsl(var(--aic-primary)), hsl(var(--aic-secondary)));
  box-shadow: 0 6px 18px hsl(var(--aic-shadow) / .26), 0 0 0 3px hsl(var(--aic-primary) / .18);
  transition: transform .15s ease, box-shadow .15s ease, opacity .2s ease;
  z-index: 2147482990;
}
.aic-fab--icon { width: var(--aic-fab-size); padding: 0; }
.aic-fab.aic-dragging { cursor: grabbing; transition: none; transform: scale(1.06); }
.aic-fab:hover { transform: scale(1.04); }
.aic-fab:focus-visible { outline: 3px solid hsl(var(--aic-primary) / .55); outline-offset: 3px; }
.aic-fab__icon { display: grid; place-items: center; pointer-events: none; }
.aic-fab__icon svg { width: calc(var(--aic-fab-size) * .5); height: calc(var(--aic-fab-size) * .5); }
.aic-fab__label { font-weight: 700; font-size: clamp(12px, calc(var(--aic-fab-size) * .29), 15px); white-space: nowrap; pointer-events: none; }
.aic-fab--icon .aic-fab__label { display: none; }
.aic-fab__dot {
  position: absolute; top: 1px; right: 3px;
  width: 11px; height: 11px; border-radius: 50%;
  background-color: hsl(var(--aic-danger));
  border: 2px solid hsl(var(--aic-bg));
  display: none;
}
.aic-fab.aic-has-news .aic-fab__dot { display: block; }
.aic-root.aic-open .aic-fab { opacity: 0; pointer-events: none; }

/* ============ FULL-SCREEN PANEL ============ */
.aic-panel {
  position: fixed; inset: 0;
  z-index: 2147483000;
  display: flex; flex-direction: column;
  height: 100vh; height: 100dvh;
  background-color: hsl(var(--aic-bg));
  opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.985);
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .22s;
}
.aic-root.aic-open .aic-panel {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity .22s ease, transform .22s ease;
}

.aic-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  background-image: linear-gradient(135deg, hsl(var(--aic-primary)), hsl(var(--aic-secondary)));
}
.aic-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex: none;
  background-color: hsl(var(--aic-on-primary) / .2);
}
.aic-avatar svg { width: 22px; height: 22px; }
.aic-title { font-weight: 700; font-size: 16px; line-height: 1.2; }
.aic-sub { font-size: 12px; opacity: .9; }
.aic-grow { flex: 1; min-width: 0; }
.aic-actions { display: flex; gap: 6px; }
.aic-iconbtn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 38px; min-width: 38px; padding: 0 10px;
  justify-content: center;
  border: 0; border-radius: 10px; cursor: pointer;
  background-color: hsl(var(--aic-on-primary) / .16);
  transition: background-color .15s ease;
}
.aic-iconbtn:hover { background-color: hsl(var(--aic-on-primary) / .28); }
.aic-iconbtn svg { width: 18px; height: 18px; }
.aic-iconbtn span { font-size: 13px; font-weight: 600; }

/* ============ MESSAGES ============ */
.aic-messages {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 14px 8px;
  background-color: hsl(var(--aic-surface));
  -webkit-overflow-scrolling: touch;
}
.aic-inner { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.aic-row { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.aic-row--user { align-items: flex-end; }
.aic-row--bot { align-items: flex-start; }

.aic-bubble {
  max-width: min(92%, 640px);
  padding: 10px 14px;
  border-radius: 18px;
  word-wrap: break-word; overflow-wrap: anywhere;
}
.aic-row--user .aic-bubble {
  background-image: linear-gradient(135deg, hsl(var(--aic-primary)), hsl(var(--aic-secondary)));
  border-bottom-right-radius: 6px;
  white-space: pre-wrap;
}
.aic-row--bot .aic-bubble {
  background-color: hsl(var(--aic-bg));
  border: 1px solid hsl(var(--aic-border));
  border-bottom-left-radius: 6px;
}
.aic-bubble p { margin: 0 0 6px; }
.aic-bubble p:last-child { margin-bottom: 0; }
.aic-bubble ul, .aic-bubble ol { margin: 4px 0 6px; padding-left: 20px; }
.aic-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em; padding: 1px 6px; border-radius: 6px; cursor: copy;
  background-color: hsl(var(--aic-primary) / .14);
}
.aic-tablewrap { overflow-x: auto; margin: 6px 0; max-width: 100%; -webkit-overflow-scrolling: touch; }
.aic-table { border-collapse: collapse; font-size: 13px; min-width: 100%; }
.aic-table th, .aic-table td { padding: 6px 10px; border: 1px solid hsl(var(--aic-border)); text-align: left; white-space: nowrap; }
.aic-table th { background-color: hsl(var(--aic-surface)); font-weight: 700; }
.aic-pre {
  margin: 6px 0; padding: 10px 12px; border-radius: 10px; overflow-x: auto;
  background-color: hsl(var(--aic-surface)); border: 1px solid hsl(var(--aic-border));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
}

.aic-typing { display: inline-flex; gap: 5px; padding: 14px 16px; }
.aic-typing i {
  width: 7px; height: 7px; border-radius: 50%;
  background-color: hsl(var(--aic-muted));
  animation: aic-bounce 1.2s infinite ease-in-out;
}
.aic-typing i:nth-child(2) { animation-delay: .15s; }
.aic-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes aic-bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .5; } 40% { transform: translateY(-5px); opacity: 1; } }

/* ============ READY-MADE MESSAGES ============ */
.aic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.aic-chip {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  background-color: hsl(var(--aic-bg));
  border: 1px solid hsl(var(--aic-primary) / .5);
  font-weight: 600; font-size: 14px;
  transition: background-color .15s ease, transform .1s ease;
}
.aic-chip:hover { background-color: hsl(var(--aic-primary) / .14); }
.aic-chip:active { transform: scale(.97); }

/* small strip above the input, scrolls left/right, visible while chatting */
.aic-chipbar {
  display: flex; gap: 8px; flex-wrap: nowrap;
  overflow-x: auto; overflow-y: hidden;
  padding: 8px 14px 2px;
  background-color: hsl(var(--aic-bg));
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.aic-chipbar::-webkit-scrollbar { display: none; }
.aic-chip--sm { flex: none; padding: 5px 12px; font-size: 13px; white-space: nowrap; }

/* ============ CARDS ============ */
.aic-cards { display: flex; flex-direction: column; gap: 10px; width: min(100%, 460px); }
.aic-card {
  padding: 14px; border-radius: 16px;
  background-color: hsl(var(--aic-bg));
  border: 1px solid hsl(var(--aic-border));
  box-shadow: 0 4px 16px hsl(var(--aic-shadow) / .08);
}
.aic-card__title { font-weight: 700; margin-bottom: 8px; }
.aic-kv { display: flex; justify-content: space-between; gap: 14px; padding: 5px 0; border-bottom: 1px dashed hsl(var(--aic-border)); font-size: 14px; }
.aic-kv:last-of-type { border-bottom: 0; }
.aic-kv span:last-child { text-align: right; font-weight: 600; word-break: break-word; }
.aic-total {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; padding-top: 10px;
  border-top: 1px solid hsl(var(--aic-border)); font-weight: 700; font-size: 16px;
}
.aic-btnrow { display: flex; gap: 10px; margin-top: 12px; }
.aic-btn {
  flex: 1; padding: 11px 14px; border-radius: 12px; cursor: pointer; font-weight: 700;
  border: 1px solid hsl(var(--aic-border)); background-color: transparent;
  transition: opacity .15s ease, transform .1s ease;
}
.aic-btn:active { transform: scale(.98); }
.aic-btn[disabled] { opacity: .55; cursor: not-allowed; }
.aic-btn--primary {
  border-color: transparent;
  background-image: linear-gradient(135deg, hsl(var(--aic-primary)), hsl(var(--aic-secondary)));
}
.aic-btn--link { display: block; text-align: center; text-decoration: none; margin-top: 12px; }
.aic-state { margin-top: 10px; font-size: 14px; font-weight: 600; }

.aic-bigcode {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 34px; font-weight: 800; letter-spacing: .12em; text-align: center;
  padding: 10px 0; cursor: copy; word-break: break-all;
}
.aic-muted { font-size: 13px; }
.aic-timer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.aic-timer b { font-size: 24px; font-variant-numeric: tabular-nums; }
.aic-qr { display: block; margin: 8px auto; width: 190px; max-width: 100%; border-radius: 12px; border: 1px solid hsl(var(--aic-border)); padding: 6px; background-color: hsl(var(--aic-on-primary)); } /* QR codes need a light backing */
.aic-secret {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; margin-top: 6px;
  border-radius: 10px; background-color: hsl(var(--aic-surface)); border: 1px solid hsl(var(--aic-border));
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px;
}
.aic-secret span { flex: 1; word-break: break-all; }
.aic-secret button { border: 0; background-color: transparent; cursor: pointer; font-weight: 700; }

/* ============ COMPOSER ============ */
.aic-composer {
  padding: 10px 14px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background-color: hsl(var(--aic-bg));
  border-top: 1px solid hsl(var(--aic-border));
}
.aic-composer__inner { max-width: 820px; margin: 0 auto; display: flex; gap: 10px; align-items: flex-end; }
.aic-input {
  flex: 1; resize: none; max-height: 140px; min-height: 46px;
  padding: 11px 14px; border-radius: 16px;
  border: 1px solid hsl(var(--aic-border));
  background-color: hsl(var(--aic-surface));
  font: inherit; font-size: 16px; /* 16px stops iOS zooming into the field */
  outline: none;
}
.aic-input:focus { border-color: hsl(var(--aic-primary)); box-shadow: 0 0 0 3px hsl(var(--aic-primary) / .2); }
.aic-input::placeholder { color: hsl(var(--aic-muted)); opacity: 1; }
.aic-send {
  width: 46px; height: 46px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  display: grid; place-items: center;
  background-image: linear-gradient(135deg, hsl(var(--aic-primary)), hsl(var(--aic-secondary)));
}
.aic-send[disabled] { opacity: .5; cursor: not-allowed; }
.aic-send svg { width: 20px; height: 20px; }

/* ============ 4. COLOR GUARD ============
 * Sites often style p, li, a, span, button, textarea globally (especially in
 * their own dark mode). These rules keep the chat readable in either theme:
 * text always inherits from the chat's own container, never from the site. */
.aic-root .aic-panel,
.aic-root .aic-panel :where(p, li, ul, ol, div, span, strong, em, b, i, label, small, th, td, h1, h2, h3, h4, h5, h6) {
  color: inherit !important;
}
.aic-root .aic-panel { color: hsl(var(--aic-text)) !important; }

/* on-brand surfaces use the "on primary" text color */
.aic-root .aic-header,
.aic-root .aic-header .aic-iconbtn,
.aic-root .aic-row--user .aic-bubble,
.aic-root .aic-btn--primary,
.aic-root .aic-btn--primary:hover,
.aic-root .aic-send,
.aic-root .aic-fab {
  color: hsl(var(--aic-on-primary)) !important;
}
.aic-root .aic-header { background-color: hsl(var(--aic-primary)); }

/* normal text surfaces */
.aic-root .aic-row--bot .aic-bubble,
.aic-root .aic-card,
.aic-root .aic-secret,
.aic-root .aic-secret span,
.aic-root .aic-pre,
.aic-root .aic-code,
.aic-root .aic-input,
.aic-root .aic-btn,
.aic-root .aic-kv span:last-child,
.aic-root .aic-total,
.aic-root .aic-card__title {
  color: hsl(var(--aic-text)) !important;
}
.aic-root .aic-btn--primary { color: hsl(var(--aic-on-primary)) !important; }
.aic-root .aic-input { -webkit-text-fill-color: hsl(var(--aic-text)); caret-color: hsl(var(--aic-text)); }

/* muted text */
.aic-root .aic-muted,
.aic-root .aic-kv span:first-child { color: hsl(var(--aic-muted)) !important; }

/* accent text */
.aic-root .aic-chip,
.aic-root .aic-bubble a,
.aic-root .aic-bigcode,
.aic-root .aic-timer b,
.aic-root .aic-secret button { color: hsl(var(--aic-primary)) !important; }
.aic-root .aic-bubble a { text-decoration: underline; }

/* states */
.aic-root .aic-state--ok { color: hsl(var(--aic-ok)) !important; }
.aic-root .aic-state--bad,
.aic-root .aic-bubble--error { color: hsl(var(--aic-danger)) !important; }
.aic-root .aic-state--muted { color: hsl(var(--aic-muted)) !important; }
.aic-root .aic-bubble--error { border-color: hsl(var(--aic-danger) / .5); }

/* ============ SMALL SCREENS ============ */
@media (max-width: 520px) {
  .aic-iconbtn span { display: none; }
  .aic-bubble { max-width: 96%; }
  .aic-bigcode { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .aic-root * { animation: none !important; transition: none !important; }
}

