/* =========================================================================
   LikerAdda theme - custom CSS
   Load AFTER bootstrap.css (stock Bootstrap v3.3.7, unmodified).
   Poppins (400/500/600/700) is loaded by a <link> in layout.twig.
   ========================================================================= */

/* Bootstrap overrides (were inline edits in bootstrap.css) */
.border-solid { border: 1px solid var(--c-border); }
.border-rounded { background: var(--c-surface-2); }

/* =========================================================================
   THEME - design system (shared by every page)
   1. Tokens  2. Base  3. Forms  4. Buttons  5. Cards  6. Alerts
   7. Dropdowns  8. Navbar / app shell (sidebar on desktop)
   9. History lists  10. Modals  11. Auth pages  12. Shared form bits / section cards
   13. Rich text + table of contents  14. Blog post cards / Latest posts
   15. Tickets / chat (tickets + viewticket)  16. Mobile tab bar (phones, logged-in)
   17. PWA install prompt (banner + iOS guide)  18. Auth hero (signup / reset / new password / 2FA)
   ========================================================================= */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
    /* Surfaces */
    --c-bg: #f4f6f8;
    --c-surface: #ffffff;
    --c-surface-2: #f8fafb;
    --c-surface-3: #eef2f5;
    --c-border: #e3e8ed;
    --c-border-strong: #d3dae1;

    /* Text */
    --c-text: #141a22;
    --c-text-muted: #5a6573;
    --c-text-subtle: #667080; /* >= 4.5:1 on white and --c-bg (WCAG AA for small text) */

    /* Accent (mint) */
    --c-accent: #16d49b;
    --c-accent-hover: #10bf8a;
    --c-accent-text: #07875f;
    --c-accent-contrast: #04150f;
    --c-accent-soft: rgba(22, 212, 155, .12);
    --c-accent-tint: rgba(22, 212, 155, .06);
    --c-accent-line: rgba(22, 212, 155, .45);

    /* Status */
    --c-danger: #e5484d;
    --c-danger-text: #b42329;
    --c-danger-soft: rgba(229, 72, 77, .08);
    --c-danger-line: rgba(229, 72, 77, .30);
    --c-warning: #e39b0b;
    --c-warning-text: #8a5a00;
    --c-warning-soft: rgba(227, 155, 11, .09);
    --c-warning-line: rgba(227, 155, 11, .32);
    --c-info: #2b8ae6;
    --c-info-text: #1b5fa3;
    --c-info-soft: rgba(43, 138, 230, .08);
    --c-info-line: rgba(43, 138, 230, .30);

    /* Brand: WhatsApp, Telegram + dark "ink" surface */
    --c-wa: #25d366;
    --c-tg: #229ed9;
    --c-ink: #0f1720;

    /* Type */
    --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --font-mono: "JetBrains Mono", Menlo, Consolas, monospace;
    --fs-xs: 12px;
    --fs-sm: 14px;
    --fs-base: 15px;
    --fs-lg: 17px;
    --fs-xl: 20px;
    --fs-2xl: 26px;

    /* Spacing scale */
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 20px;
    --sp-6: 24px;
    --sp-8: 32px;
    --sp-10: 40px;

    /* Shape & depth */
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-pill: 999px;
    --shadow-pop: 0 12px 32px rgba(20, 26, 34, .12);
    --shadow-card: 0 1px 2px rgba(20, 26, 34, .04), 0 6px 20px rgba(20, 26, 34, .04);
    --ring: 0 0 0 3px var(--c-accent-soft);

    /* Components / shell */
    --ctl-h: 52px;
    --sidebar-w: 264px;
    --topbar-h: 64px;
    --drawer-w: min(300px, 86vw);
}

/* 2. Base ------------------------------------------------------------------ */
html {
    color-scheme: light;
}
body {
    background: var(--c-bg);
    color: var(--c-text);
    font-family: var(--font-sans);
    font-size: var(--fs-base);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--font-sans);
    color: var(--c-text);
    font-weight: 600;
}
a {
    color: var(--c-accent-text);
}
a:hover,
a:focus {
    color: var(--c-text);
    text-decoration: none;
}
hr {
    border-top-color: var(--c-border);
}
::selection {
    background: var(--c-accent-soft);
    color: var(--c-text);
}
.text-muted {
    color: var(--c-text-muted);
}
.badge {
    background: var(--c-accent-soft);
    color: var(--c-accent-text);
    font-weight: 600;
    border-radius: var(--radius-pill);
}

/* 3. Forms ----------------------------------------------------------------- */
.form-group {
    margin-bottom: 22px;
}
label,
.control-label {
    color: var(--c-text);
    font-size: var(--fs-sm);
    font-weight: 500;
    margin-bottom: var(--sp-2);
}
.form-control {
    height: var(--ctl-h);
    padding: 12px var(--sp-4);
    background-color: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    color: var(--c-text);
    font-size: var(--fs-base);
    box-shadow: none;
    -webkit-transition: border-color .15s ease, box-shadow .15s ease;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::-webkit-input-placeholder { color: var(--c-text-subtle); }
.form-control::-moz-placeholder { color: var(--c-text-subtle); opacity: 1; }
.form-control::placeholder { color: var(--c-text-subtle); }
.form-control:focus {
    border-color: var(--c-accent-line);
    box-shadow: var(--ring);
    outline: 0;
}
.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
    background-color: var(--c-surface-2);
    color: var(--c-text-muted);
    opacity: 1;
}
textarea.form-control {
    height: auto;
    min-height: 120px;
    resize: vertical;
}
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 44px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5' fill='none' stroke='%235a6573' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}
select.form-control[multiple] {
    background-image: none;
    padding-right: var(--sp-4);
}
.rtl-form select.form-control {
    padding-right: var(--sp-4);
    padding-left: 44px;
    background-position: left 16px center;
}
select.form-control option {
    background: var(--c-surface-2);
    color: var(--c-text);
}
.help-block {
    margin-top: var(--sp-2);
    color: var(--c-text-subtle);
    font-size: 13px;
}
.input-group-addon {
    background: var(--c-surface-3);
    border-color: var(--c-border);
    color: var(--c-text-muted);
    border-radius: var(--radius);
}
.has-error .form-control,
.has-error .form-control:focus {
    border-color: var(--c-danger-line);
    box-shadow: none;
}
.has-error .help-block,
.has-error .control-label {
    color: var(--c-danger);
}
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--c-accent);
}

/* 4. Buttons --------------------------------------------------------------- */
.btn {
    padding: 10px 18px;
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    font-weight: 600;
    -webkit-transition: background-color .15s ease, border-color .15s ease, color .15s ease;
    transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:focus,
.btn:active:focus,
.btn.active:focus {
    outline: 0;
    box-shadow: var(--ring);
}
.btn-lg {
    padding: 15px var(--sp-6);
    font-size: var(--fs-base);
    border-radius: var(--radius);
}
.btn-sm {
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
}
.btn-primary,
.btn-primary:focus,
.btn-primary.focus {
    background-color: var(--c-accent);
    border-color: var(--c-accent);
    color: var(--c-accent-contrast);
}
.btn-primary:hover,
.btn-primary:active,
.btn-primary.active,
.btn-primary:active:hover,
.btn-primary:active:focus,
.btn-primary.active:hover,
.btn-primary.active:focus,
.open > .dropdown-toggle.btn-primary,
.open > .dropdown-toggle.btn-primary:hover,
.open > .dropdown-toggle.btn-primary:focus {
    background-color: var(--c-accent-hover);
    border-color: var(--c-accent-hover);
    color: var(--c-accent-contrast);
}
.btn-primary.disabled,
.btn-primary[disabled],
.btn-primary.disabled:hover,
.btn-primary[disabled]:hover {
    background-color: var(--c-accent);
    border-color: var(--c-accent);
    opacity: .5;
}
.btn-default,
.btn-default:focus,
.btn-default.focus {
    background-color: var(--c-surface-2);
    border-color: var(--c-border-strong);
    color: var(--c-text);
}
.btn-default:hover,
.btn-default:active,
.btn-default.active,
.btn-default:active:hover,
.btn-default:active:focus,
.open > .dropdown-toggle.btn-default,
.open > .dropdown-toggle.btn-default:hover,
.open > .dropdown-toggle.btn-default:focus {
    background-color: var(--c-surface-3);
    border-color: var(--c-border-strong);
    color: var(--c-text);
}

/* 5. Cards ----------------------------------------------------------------- */
.well {
    margin-bottom: var(--sp-6);
    padding: var(--sp-5);
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
}
@media (min-width: 768px) {
    .well {
        padding: var(--sp-8);
    }
}

/* 6. Alerts ---------------------------------------------------------------- */
.alert {
    padding: 14px 18px;
    border: 1px solid;
    border-left-width: 3px;
    border-radius: var(--radius);
    font-size: var(--fs-sm);
    line-height: 1.7;
}
.alert h4 {
    margin: 0 0 6px;
    color: inherit;
    font-size: var(--fs-base);
    font-weight: 600;
}
.alert-success {
    background: var(--c-accent-soft);
    border-color: var(--c-accent-line);
    border-left-color: var(--c-accent);
    color: var(--c-accent-text);
}
.alert-danger {
    background: var(--c-danger-soft);
    border-color: var(--c-danger-line);
    border-left-color: var(--c-danger);
    color: var(--c-danger-text);
}
.alert-warning {
    background: var(--c-warning-soft);
    border-color: var(--c-warning-line);
    border-left-color: var(--c-warning);
    color: var(--c-warning-text);
}
.alert-info {
    background: var(--c-info-soft);
    border-color: var(--c-info-line);
    border-left-color: var(--c-info);
    color: var(--c-info-text);
}
.rtl-alert {
    border-left-width: 1px;
    border-right-width: 3px;
}
.alert-success.rtl-alert { border-right-color: var(--c-accent); }
.alert-danger.rtl-alert { border-right-color: var(--c-danger); }
.close {
    color: var(--c-text);
    text-shadow: none;
    opacity: .5;
}
.close:hover,
.close:focus {
    color: var(--c-text);
    opacity: .9;
}

/* 7. Dropdowns ------------------------------------------------------------- */
.dropdown-menu {
    padding: 6px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-pop);
    font-size: var(--fs-sm);
}
.dropdown-menu > li > a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--c-text-muted);
    white-space: normal;
}
.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
    background: var(--c-surface-3);
    color: var(--c-text);
}
.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
    background: var(--c-accent-soft);
    color: var(--c-accent-text);
}
.dropdown-menu .divider {
    background: var(--c-border);
}

/* 8. Navbar / app shell ---------------------------------------------------- */

/* Guest navbar + shared navbar colours */
.navbar-default {
    background: var(--c-surface);
    border-color: var(--c-border);
}
.navbar-static-top {
    margin-bottom: var(--sp-6);
}
.navbar-default .navbar-brand,
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus {
    color: var(--c-accent-text);
    font-weight: 700;
    letter-spacing: .02em;
}
.navbar-brand img {
    max-height: 36px;
    width: auto;
}
.navbar-default .navbar-nav > li > a {
    color: var(--c-text-muted);
    font-weight: 500;
}
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    background: transparent;
    color: var(--c-text);
}
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    background: var(--c-accent-soft);
    color: var(--c-accent-text);
}
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
    background: var(--c-surface-3);
    color: var(--c-text);
}
.navbar-default .navbar-nav .open .dropdown-menu > li > a {
    color: var(--c-text-muted);
}
.navbar-default .navbar-toggle {
    border-color: var(--c-border-strong);
    border-radius: var(--radius-sm);
}
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
    background: var(--c-surface-3);
}
.navbar-default .navbar-toggle .icon-bar {
    background: var(--c-text);
}
.navbar-default .navbar-collapse {
    border-color: var(--c-border);
}
.navbar-icon {
    width: 20px;
    text-align: center;
}

/* ---- Guest navbar (.site-nav): sticky, frosted, pill links + CTA buttons ---- */
.site-nav {
    --site-nav-h: 60px;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    min-height: var(--site-nav-h);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
    -webkit-transition: box-shadow .2s ease, background-color .2s ease;
    transition: box-shadow .2s ease, background-color .2s ease;
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-nav {
        background: rgba(255, 255, 255, .82);
        -webkit-backdrop-filter: saturate(180%) blur(14px);
        backdrop-filter: saturate(180%) blur(14px);
    }
}
.site-nav.is-scrolled {
    box-shadow: 0 8px 24px rgba(20, 26, 34, .08);
}
.site-nav .navbar-brand {
    display: flex;
    align-items: center;
    height: var(--site-nav-h);
    padding-top: 0;
    padding-bottom: 0;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -.01em;
}
.site-nav .navbar-toggle {
    margin-top: calc((var(--site-nav-h) - 38px) / 2);
    margin-bottom: 0;
    padding: 12px 11px;
    border-radius: var(--radius-pill);
}
.site-nav .navbar-toggle .icon-bar {
    border-radius: 2px;
}
.site-nav .navbar-nav > li > a {
    border-radius: var(--radius-pill);
    font-size: var(--fs-sm);
    font-weight: 500;
    line-height: 22px;
    -webkit-transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.site-nav .navbar-nav > li > a:hover,
.site-nav .navbar-nav > li > a:focus {
    background: var(--c-surface-3);
    color: var(--c-text);
}
.site-nav .navbar-nav > li > a .navbar-icon {
    width: 16px;
    margin-right: 6px;
    color: var(--c-accent-text);
    font-size: 13px;
}
.rtl-navbar.site-nav .navbar-nav > li > a .navbar-icon {
    margin-right: 0;
    margin-left: 6px;
}
.site-nav .site-nav__cta[data-nav="signup"] > a .navbar-icon,
.site-nav .site-nav__cta[data-nav="register"] > a .navbar-icon {
    color: inherit;
}
/* Sign in: outlined pill. Sign up: filled mint pill */
.site-nav .site-nav__cta > a,
.site-nav .site-nav__cta.active > a {
    border: 1px solid var(--c-border-strong);
    background: var(--c-surface);
    color: var(--c-text);
    font-weight: 600;
}
.site-nav .site-nav__cta > a:hover,
.site-nav .site-nav__cta > a:focus {
    border-color: var(--c-accent-line);
    background: var(--c-accent-tint);
    color: var(--c-accent-text);
}
.site-nav .site-nav__cta[data-nav="signup"] > a,
.site-nav .site-nav__cta[data-nav="register"] > a {
    border-color: var(--c-accent);
    background: var(--c-accent);
    color: var(--c-accent-contrast);
    box-shadow: 0 6px 16px rgba(22, 212, 155, .30);
}
.site-nav .site-nav__cta[data-nav="signup"] > a:hover,
.site-nav .site-nav__cta[data-nav="signup"] > a:focus,
.site-nav .site-nav__cta[data-nav="register"] > a:hover,
.site-nav .site-nav__cta[data-nav="register"] > a:focus {
    border-color: var(--c-accent-hover);
    background: var(--c-accent-hover);
    color: var(--c-accent-contrast);
}

/* Mobile menu (< 768px, or when script.js collapses an overflowing menu) */
.site-nav .navbar-collapse {
    border-top: 1px solid var(--c-border);
    box-shadow: none;
}
.site-nav .navbar-collapse.in,
.site-nav .navbar-collapse.collapsing,
.site-nav .navbar-collapsed {
    padding-bottom: var(--sp-4);
}
@media (max-width: 767px) {
    .site-nav .navbar-nav {
        margin: var(--sp-2) 0 0;
    }
    .site-nav .navbar-nav > li > a {
        margin: 2px 0;
        padding: 11px var(--sp-4);
    }
    .site-nav .site-nav__cta > a {
        margin-top: var(--sp-2);
        text-align: center;
    }
}
.site-nav.navbar-collapsed-before .navbar-nav > li > a {
    margin: 2px 0;
    padding: 11px var(--sp-4);
}
.site-nav.navbar-collapsed-before .site-nav__cta > a {
    margin-top: var(--sp-2);
    text-align: center;
}

/* Desktop: vertically centred pills on one line */
@media (min-width: 768px) {
    .site-nav {
        --site-nav-h: 68px;
    }
    .site-nav .navbar-collapse {
        border-top: 0;
    }
    .site-nav:not(.navbar-collapsed-before) .navbar-nav > li > a {
        margin: 14px 2px;
        padding: 9px 14px;
    }
    .site-nav:not(.navbar-collapsed-before) .site-nav__cta > a {
        padding: 8px 20px;
    }
    .site-nav:not(.navbar-collapsed-before) .site-nav__cta > a {
        -webkit-margin-start: 6px;
        margin-inline-start: 6px;
    }
}
@media (min-width: 992px) {
    .site-nav:not(.navbar-collapsed-before) .navbar-nav > li > a {
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ---- Logged-in shell (.app-nav) -------------------------------------------
   < 992px : sticky top bar + drawer sliding in from the left
   >= 992px: fixed left sidebar + top bar
   -------------------------------------------------------------------------- */
.app-nav {
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 1030;
    margin-bottom: var(--sp-5);
}
.app-nav > .container-fluid {
    padding: 0 var(--sp-4);
}
.app-nav .navbar-header {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    float: none;
    height: 60px;
    margin: 0 !important;
}
.app-nav .navbar-header::before,
.app-nav .navbar-header::after {
    display: none;
}
.app-nav .navbar-toggle {
    order: -1;
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    margin: 0;
    padding: 0 10px;
    float: none;
}
.app-nav .navbar-toggle .icon-bar {
    width: 20px;
}

/* Drawer toggle: liquid-glass button, same material as the mobile tab bar */
.app-nav .navbar-toggle,
.navbar-default.app-nav .navbar-toggle {
    position: relative;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6)),
        rgba(244, 246, 248, .5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        inset 0 -1px 1px rgba(20, 26, 34, .04),
        0 0 0 .5px rgba(20, 26, 34, .10),
        0 2px 5px rgba(20, 26, 34, .06),
        0 8px 18px rgba(20, 26, 34, .10);
    -webkit-backdrop-filter: blur(18px) saturate(180%);
    backdrop-filter: blur(18px) saturate(180%);
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
    transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), box-shadow .25s ease;
}
/* Specular rim */
.app-nav .navbar-toggle::before {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .25) 35%, rgba(255, 255, 255, 0) 60%, rgba(255, 255, 255, .7));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}
.navbar-default.app-nav .navbar-toggle:hover,
.navbar-default.app-nav .navbar-toggle:focus {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(255, 255, 255, .6)),
        var(--c-accent-soft);
    outline: none;
}
.app-nav .navbar-toggle:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .95),
        0 0 0 2px var(--c-accent-line),
        0 8px 18px rgba(20, 26, 34, .10);
}
.app-nav .navbar-toggle:active {
    transform: scale(.9);
    transition-duration: .12s;
}
.app-nav .navbar-toggle .icon-bar,
.navbar-default.app-nav .navbar-toggle .icon-bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0;
    border-radius: 2px;
    background: var(--c-text);
    transition: transform .35s cubic-bezier(.3, 1.35, .5, 1), opacity .2s ease, width .25s ease;
}
.app-nav .navbar-toggle .icon-bar + .icon-bar {
    margin-top: 0;
}
.app-nav .navbar-toggle .icon-bar:nth-of-type(3) {
    width: 12px;
    transform: translateX(-3px);
}
/* Drawer open: bars morph into an X */
body.nav-open .app-nav .navbar-toggle .icon-bar:nth-of-type(2) {
    transform: translateY(6px) rotate(45deg);
}
body.nav-open .app-nav .navbar-toggle .icon-bar:nth-of-type(3) {
    opacity: 0;
    transform: scaleX(0);
}
body.nav-open .app-nav .navbar-toggle .icon-bar:nth-of-type(4) {
    transform: translateY(-6px) rotate(-45deg);
}
@media (prefers-reduced-motion: reduce) {
    .app-nav .navbar-toggle,
    .app-nav .navbar-toggle .icon-bar {
        transition: none;
    }
}
.app-nav .navbar-brand {
    display: flex;
    align-items: center;
    float: none;
    max-width: 45vw;
    height: auto;
    margin: 0 !important;
    padding: 0;
    overflow: hidden;
    font-size: var(--fs-lg);
    line-height: 1.2;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.app-nav .navbar-brand img {
    max-height: 32px;
    margin: 0;
}

/* Drawer header: brand + close button */
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--sp-3);
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 2;
    flex-shrink: 0;
    height: 64px;
    margin: 0 calc(-1 * var(--sp-3)) var(--sp-3);
    padding: 0 var(--sp-4) 0 var(--sp-6);
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-border);
}
.drawer-head__brand,
.drawer-head__brand:hover,
.drawer-head__brand:focus {
    min-width: 0;
    overflow: hidden;
    color: var(--c-accent-text);
    font-size: var(--fs-lg);
    font-weight: 700;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.drawer-head__brand img {
    max-height: 32px;
    width: auto;
}
.drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    padding: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    color: var(--c-text-muted);
    font-size: 16px;
}
.drawer-close:hover,
.drawer-close:focus {
    background: var(--c-surface-3);
    color: var(--c-text);
    outline: 0;
}
.app-backdrop {
    display: none;
}

/* Menu list (drawer and sidebar) */
.app-nav .navbar-nav {
    float: none !important;
    margin: 0 !important;
    padding: 0 !important;
}
.app-nav .navbar-nav > li {
    float: none !important;
}
.app-nav .navbar-nav > li + li {
    margin-top: 2px;
}
.app-nav .navbar-nav > li > a {
    position: relative;
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    min-width: 0;
    padding: 9px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--fs-sm);
    line-height: 1.35;
}
.app-nav .navbar-nav > li > a:hover,
.app-nav .navbar-nav > li > a:focus {
    background: var(--c-surface-2);
}
.app-nav .navbar-nav > .active > a::before {
    content: "";
    position: absolute;
    top: 7px;
    bottom: 7px;
    left: calc(-1 * var(--sp-3));
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--c-accent);
}
.app-nav .navbar-icon {
    flex: 0 0 20px;
    margin: 0;
    color: var(--c-text-subtle);
    font-size: 15px;
    transition: color .15s ease;
}
.app-nav .navbar-nav > li > a:hover .navbar-icon,
.app-nav .navbar-nav > li > a:focus .navbar-icon {
    color: var(--c-text);
}
.app-nav .navbar-nav > .active > a .navbar-icon {
    color: var(--c-accent-text);
}
.app-nav .nav-text {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Section headings (collapsible) */
.app-nav .navbar-nav > .nav-section {
    margin-top: var(--sp-3);
    padding-top: var(--sp-3);
    border-top: 1px solid var(--c-border);
}
.app-nav .navbar-nav > .nav-section:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}
.nav-section__btn {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 12px;
    background: none;
    border: 0;
    border-radius: var(--radius-sm);
    color: var(--c-text-muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: .16em;
    text-align: left;
    text-transform: uppercase;
}
.nav-section__btn::before {
    content: "";
    flex: 0 0 3px;
    height: 14px;
    border-radius: 2px;
    background: var(--c-accent);
}
.nav-section__btn .fas {
    margin-left: auto;
    color: var(--c-text-subtle);
    font-size: 10px;
    transition: transform .2s ease;
}
.nav-section__btn:hover,
.nav-section__btn:focus {
    color: var(--c-text);
    outline: 0;
}
.nav-section.is-collapsed .nav-section__btn .fas {
    transform: rotate(-90deg);
}
.app-nav .navbar-nav > li.is-group-hidden {
    display: none;
}

/* Account + logout row */
.app-nav .navbar-right-block {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--sp-2);
    margin-top: auto !important;
    padding-top: var(--sp-3) !important;
    border-top: 1px solid var(--c-border);
}
.app-nav .navbar-right-block > li {
    flex: 1 1 100%;
    min-width: 0;
}
.app-nav .navbar-right-block > li + li {
    margin-top: 0;
}
.app-nav .navbar-right-block > li[data-nav="account"] {
    flex: 1 1 0;
}
.app-nav .navbar-right-block > li[data-nav="account"] > a {
    padding: 8px 10px;
}
.app-nav .navbar-right-block > li[data-nav="logout"] {
    flex: 0 0 44px;
}
.app-nav .navbar-right-block > li[data-nav="logout"] > a {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid var(--c-border);
}
.app-nav .navbar-right-block > li[data-nav="logout"] > a:hover {
    background: var(--c-danger-soft);
    border-color: var(--c-danger-line);
}
.app-nav .navbar-right-block > li[data-nav="logout"] > a:hover .navbar-icon {
    color: var(--c-danger);
}
.app-nav .navbar-right-block > li[data-nav="logout"] .nav-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}
.app-nav .nav-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--c-accent), #0fb4c4);
    color: #fff;
    font-weight: 700;
    font-size: var(--fs-sm);
    box-shadow: 0 4px 12px rgba(22, 212, 155, .3);
}
.app-nav .nav-user,
.app-nav .nav-sub {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.app-nav .nav-user {
    color: var(--c-text);
    font-weight: 600;
    font-size: var(--fs-sm);
    line-height: 1.3;
}
.app-nav .nav-sub {
    color: var(--c-text-subtle);
    font-size: var(--fs-xs);
    font-weight: 500;
    line-height: 1.3;
}
.app-nav .nav-sub::after {
    content: "\203A";
    margin-left: 4px;
}

/* Balance pill: pinned to the top-right corner at every width */
.app-nav .dropdown-currencies {
    position: fixed;
    top: 10px;
    right: var(--sp-4);
    margin: 0 !important;
    z-index: 3;
}
.app-nav .navbar-nav > .dropdown-currencies > a,
.app-nav .navbar-nav > .dropdown-currencies > a:hover,
.app-nav .navbar-nav > .dropdown-currencies > a:focus,
.app-nav .navbar-nav > .dropdown-currencies.open > a {
    height: 40px;
    padding: 0 12px;
    background: var(--c-accent-soft);
    border: 1px solid var(--c-accent-line);
    border-radius: var(--radius);
    color: var(--c-accent-text);
    cursor: pointer;
}
.app-nav .navbar-nav > .dropdown-currencies > a::before {
    display: none;
}
.app-nav .dropdown-currencies .fa-wallet {
    color: var(--c-accent-text);
}
.app-nav .dropdown-currencies .badge {
    padding: 0;
    background: none;
    color: var(--c-text);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}
.app-nav .dropdown-currencies .dropdown-menu,
.app-nav .navbar-nav .open.dropdown-currencies .dropdown-menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    left: auto;
    float: none;
    min-width: 180px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 6px;
    background: var(--c-surface);
    border: 1px solid var(--c-border-strong);
    box-shadow: var(--shadow-pop);
}
.app-nav .navbar-nav .open.dropdown-currencies .dropdown-menu > li > a {
    padding: 8px 12px;
}

/* Page title bar (desktop only) */
.app-topbar {
    display: none;
}

/* Drawer: below 992px */
@media (max-width: 991px) {
    /* Top bar: keep the brand clear of the balance pill */
    .app-nav .navbar-header {
        padding-right: 150px;
    }
    .is-rtl .app-nav .navbar-header {
        padding-right: 0;
        padding-left: 150px;
    }
    .app-nav .navbar-brand {
        flex: 1 1 auto;
        min-width: 0;
        max-width: none;
        font-size: 17px;
    }
    .app-nav .navbar-nav > .dropdown-currencies > a,
    .app-nav .navbar-nav > .dropdown-currencies > a:hover,
    .app-nav .navbar-nav > .dropdown-currencies > a:focus,
    .app-nav .navbar-nav > .dropdown-currencies.open > a {
        gap: 6px;
        height: 38px;
        padding: 0 10px;
    }
    .app-nav .dropdown-currencies {
        top: 11px;
        max-width: 140px;
        transition: opacity .2s ease, visibility .2s ease;
    }
    .app-nav .dropdown-currencies .badge {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        font-size: 12px;
    }
    /* The pill lives inside the drawer markup; hide it while the drawer is open
       so it never sits on top of the drawer or its close button */
    body.nav-open .app-nav .dropdown-currencies {
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
    }

    .app-nav #navbar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: calc(-1 * var(--drawer-w) - 24px);
        z-index: 2;
        display: flex !important;
        flex-direction: column;
        width: var(--drawer-w);
        height: auto !important;
        max-height: none;
        margin: 0 !important;
        padding: 0 var(--sp-3) var(--sp-4);
        overflow-y: auto !important;
        background: var(--c-surface);
        border: 0;
        border-right: 1px solid var(--c-border);
        box-shadow: var(--shadow-pop);
        transition: left .28s ease;
    }
    body.nav-open .app-nav #navbar {
        left: 0;
    }
    .app-backdrop {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        background: rgba(20, 26, 34, .45);
        -webkit-backdrop-filter: blur(2px);
        backdrop-filter: blur(2px);
        opacity: 0;
        visibility: hidden;
        transition: opacity .28s ease, visibility .28s ease;
    }
    body.nav-open .app-backdrop {
        opacity: 1;
        visibility: visible;
    }
    body.nav-open {
        overflow: hidden;
    }

    /* RTL: drawer from the right */
    .is-rtl .app-nav #navbar {
        left: auto;
        right: calc(-1 * var(--drawer-w) - 24px);
        border-right: 0;
        border-left: 1px solid var(--c-border);
        transition: right .28s ease;
    }
    body.is-rtl.nav-open .app-nav #navbar {
        right: 0;
    }
    .is-rtl .app-nav .dropdown-currencies {
        right: auto;
        left: var(--sp-4);
    }
    .is-rtl .app-nav .dropdown-currencies .dropdown-menu {
        right: auto;
        left: 0;
    }
}

/* Sidebar: 992px and up */
@media (min-width: 992px) {
    body.has-sidebar {
        padding-left: var(--sidebar-w);
        padding-top: calc(var(--topbar-h) + var(--sp-6));
    }
    .app-topbar {
        display: flex;
        align-items: center;
        position: fixed;
        top: 0;
        left: var(--sidebar-w);
        right: 0;
        height: var(--topbar-h);
        padding: 0 var(--sp-8);
        background: rgba(255, 255, 255, .85);
        -webkit-backdrop-filter: blur(10px);
        backdrop-filter: blur(10px);
        border-bottom: 1px solid var(--c-border);
        z-index: 1020;
    }
    .app-topbar__title {
        max-width: calc(100% - 280px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--c-text);
        font-size: var(--fs-lg);
        font-weight: 700;
    }
    .has-sidebar .container {
        width: auto;
        max-width: 1440px;
        padding-left: var(--sp-8);
        padding-right: var(--sp-8);
    }

    .app-nav {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        width: var(--sidebar-w);
        margin: 0;
        border-width: 0 1px 0 0;
        border-radius: 0;
    }
    .app-nav > .container-fluid {
        display: flex;
        flex-direction: column;
        height: 100%;
        padding: 0;
    }
    .app-nav .navbar-header {
        flex-shrink: 0;
        height: var(--topbar-h);
        padding: 0 var(--sp-6);
        border-bottom: 1px solid var(--c-border);
    }
    .app-nav .navbar-toggle,
    .drawer-head {
        display: none !important;
    }
    .app-nav .navbar-brand {
        max-width: 100%;
        font-size: var(--fs-xl);
    }
    .app-nav #navbar {
        display: flex !important;
        flex-direction: column;
        flex: 1 1 auto;
        height: auto !important;
        min-height: 0;
        margin: 0;
        padding: var(--sp-4) var(--sp-3);
        overflow-y: auto !important;
        border: 0;
    }
    .app-nav .dropdown-currencies {
        top: 12px;
        right: var(--sp-8);
    }

    /* RTL: mirror the shell */
    body.has-sidebar.is-rtl {
        padding-left: 0;
        padding-right: var(--sidebar-w);
    }
    .is-rtl .app-topbar {
        left: 0;
        right: var(--sidebar-w);
    }
    .is-rtl .app-nav {
        left: auto;
        right: 0;
        border-width: 0 0 0 1px;
    }
    .is-rtl .app-nav .dropdown-currencies {
        right: auto;
        left: var(--sp-8);
    }
    .is-rtl .app-nav .dropdown-currencies .dropdown-menu {
        right: auto;
        left: 0;
    }
}

/* RTL active-item bar (all widths) */
.is-rtl .app-nav .navbar-nav > .active > a::before {
    left: auto;
    right: calc(-1 * var(--sp-3));
    border-radius: 3px 0 0 3px;
}


/* 9. History lists (orders / subscriptions / refill / drip-feed) ----------- */
/* Shared by orders, subscriptions, refill and drip-feed pages (ord-* classes) */
.ord-page { padding-bottom: var(--sp-8); }

/* Toolbar: status tabs + search */
.ord-toolbar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-bottom: var(--sp-5);
}
@media (min-width: 992px) {
  .ord-toolbar { flex-direction: row; align-items: center; gap: var(--sp-4); margin-bottom: var(--sp-6); }
}

/* Status tabs: one scrollable segmented bar */
.ord-tabs.nav {
  display: flex;
  flex: 1 1 auto;
  gap: 4px;
  min-width: 0;
  margin: 0;
  padding: 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  scrollbar-width: none;
}
.ord-tabs.nav::-webkit-scrollbar { display: none; }
.ord-tabs.nav::before,
.ord-tabs.nav::after { display: none; }
.ord-tabs.nav-pills > li { float: none; flex: 0 0 auto; margin: 0; }
.ord-tabs.nav-pills > li > a {
  display: flex;
  align-items: center;
  height: 38px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .15s ease, color .15s ease;
}
.ord-tabs.nav-pills > li > a:hover,
.ord-tabs.nav-pills > li > a:focus { background: var(--c-surface-3); color: var(--c-text); outline: 0; }
.ord-tabs.nav-pills > li > a:focus-visible { box-shadow: var(--ring); }
.ord-tabs.nav-pills > li.active > a,
.ord-tabs.nav-pills > li.active > a:hover,
.ord-tabs.nav-pills > li.active > a:focus {
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-weight: 600;
}

/* Search: leading icon + button inside the field */
.ord-search { flex: 0 0 auto; margin: 0; }
@media (min-width: 992px) {
  .ord-search { width: 300px; }
}
.ord-search .input-group {
  position: relative;
  display: block;
  width: 100%;
}
.ord-search__icon {
  position: absolute;
  top: 50%;
  left: 18px;
  z-index: 3;
  color: var(--c-text-subtle);
  font-size: 15px;
  transform: translateY(-50%);
  pointer-events: none;
}
.ord-search .input-group .form-control,
.ord-search .input-group .form-control:first-child {
  float: none;
  width: 100%;
  padding-left: 48px;
  padding-right: 58px;
  background-color: var(--c-surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.ord-search .input-group .form-control:focus { box-shadow: var(--ring); }
.ord-search .input-group-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  bottom: 6px;
  z-index: 3;
  display: block;
  width: auto;
  font-size: inherit;
}
.ord-search .input-group-btn > .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 100%;
  margin: 0;
  padding: 0;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.rtl-content .ord-search__icon { left: auto; right: 18px; }
.rtl-content .ord-search .input-group .form-control,
.rtl-content .ord-search .input-group .form-control:first-child { padding-left: 58px; padding-right: 48px; }
.rtl-content .ord-search .input-group-btn { right: auto; left: 6px; }

/* Orders card */
.ord-card {
  position: relative;
  padding: 0 !important;
  overflow: clip;
}

/* Card head: select all + copy IDs (sticks under the top bar while scrolling) */
.ord-bar {
  position: -webkit-sticky;
  position: sticky;
  top: 60px;
  z-index: 5;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-3);
  padding: 12px var(--sp-4);
  background: var(--c-surface);
  border-bottom: 1px solid var(--c-border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.ord-bar::before {
  content: "";
  position: absolute;
  top: 0;
  left: var(--sp-6);
  right: var(--sp-6);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: .7;
}
@media (min-width: 992px) {
  .ord-bar { top: var(--topbar-h); padding: 14px var(--sp-5); }
}
.ord-selectall {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  user-select: none;
}
.ord-copy.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  background: var(--c-accent-tint);
  border: 1px solid var(--c-accent-line);
  border-radius: var(--radius-sm);
  color: var(--c-accent-text);
  font-size: 13px;
  line-height: 1;
}
.ord-copy.btn:hover,
.ord-copy.btn:focus { background: var(--c-accent-soft); border-color: var(--c-accent-line); color: var(--c-accent-text); }
.ord-copy.btn[disabled],
.ord-copy.btn[disabled]:hover {
  background: var(--c-surface-2);
  border-color: var(--c-border);
  color: var(--c-text-subtle);
  opacity: 1;
  cursor: not-allowed;
}
.ord-copy__count {
  min-width: 22px;
  padding: 3px 6px;
  background: var(--c-accent-soft);
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
}
.ord-copy.btn[disabled] .ord-copy__count { background: var(--c-surface-3); }
.ord-copy.is-copied,
.ord-copy.is-copied:hover { background: var(--c-accent-soft); }

/* Copy menu: IDs / links / summary */
.ord-copy-wrap { position: relative; }
.ord-copy__caret {
  margin-left: -2px;
  font-size: 10px;
  opacity: .7;
  transition: transform .15s ease;
}
.rtl-content .ord-copy__caret { margin-left: 0; margin-right: -2px; }
.ord-copy.is-open .ord-copy__caret { transform: rotate(180deg); }
.ord-copy.is-open { background: var(--c-accent-soft); }
.ord-card.is-menu-open { overflow: visible; }
.ord-copy-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 20;
  min-width: 250px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  animation: ord-menu-in .14s ease-out;
}
.ord-copy-menu[hidden] { display: none; }
.rtl-content .ord-copy-menu { left: auto; right: 0; }
@keyframes ord-menu-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}
.ord-copy-menu button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 9px 10px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--c-text);
  text-align: left;
  cursor: pointer;
}
.rtl-content .ord-copy-menu button { text-align: right; }
.ord-copy-menu button:hover,
.ord-copy-menu button:focus { background: var(--c-accent-tint); outline: 0; }
.ord-copy-menu button:focus-visible { box-shadow: var(--ring); }
.ord-copy-menu button > i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 32px;
  height: 32px;
  background: var(--c-accent-soft);
  border-radius: var(--radius-sm);
  color: var(--c-accent-text);
  font-size: 13px;
}
.ord-copy-menu button > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.ord-copy-menu strong { font-size: var(--fs-sm); font-weight: 600; }
.ord-copy-menu small {
  color: var(--c-text-subtle);
  font-size: var(--fs-xs);
}
/* Phones: anchor the menu to the (sticky) bar so it spans its width */
@media (max-width: 575px) {
  .ord-copy-wrap { position: static; }
  .ord-copy-menu,
  .rtl-content .ord-copy-menu { top: calc(100% - 4px); left: var(--sp-4); right: var(--sp-4); min-width: 0; }
}
.ord-bar__info {
  margin-left: auto;
  color: var(--c-text-subtle);
  font-size: var(--fs-xs);
  white-space: nowrap;
}
.rtl-content .ord-bar__info { margin-left: 0; margin-right: auto; }

/* Checkboxes (select all + rows) */
.ord-cb {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  position: relative;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  background: var(--c-surface);
  border: 1.5px solid var(--c-border-strong);
  border-radius: 5px;
  vertical-align: middle;
  cursor: pointer;
  transition: background-color .15s ease, border-color .15s ease;
}
.ord-cb:hover { border-color: var(--c-accent-line); }
.ord-cb:focus { outline: 0; }
.ord-cb:focus-visible { box-shadow: var(--ring); }
.ord-cb:checked,
.ord-cb:indeterminate { background: var(--c-accent); border-color: var(--c-accent); }
.ord-cb:checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 5px;
  width: 5px;
  height: 10px;
  border: solid var(--c-accent-contrast);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.ord-cb:indeterminate::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 3px;
  width: 9px;
  height: 2px;
  border-radius: 1px;
  background: var(--c-accent-contrast);
}
.ord-check label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: -7px;
  cursor: pointer;
}

/* Table */
.table.ord-table { margin: 0; }
.table.ord-table > thead > tr > th {
  padding: 14px 12px;
  background: var(--c-surface-2);
  border-bottom: 1px solid var(--c-border);
  color: var(--c-text-subtle);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  white-space: nowrap;
  vertical-align: middle;
}
.table.ord-table > tbody > tr > td {
  padding: 14px 12px;
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  vertical-align: middle;
}
.table.ord-table > thead > tr > th:first-child,
.table.ord-table > tbody > tr > td:first-child { padding-left: var(--sp-5); }
.table.ord-table > thead > tr > th:last-child,
.table.ord-table > tbody > tr > td:last-child { padding-right: var(--sp-5); }
.table.ord-table > tbody > tr:first-child > td { border-top: 0; }
.table.ord-table > tbody > tr:hover > td { background: var(--c-surface-2); }
.table.ord-table > tbody > tr.is-selected > td { background: var(--c-accent-tint); }

/* Cells */
.ord-table .ord-check { width: 1%; }
.ord-table .ord-id { color: var(--c-text-subtle); font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.ord-table .ord-date { font-size: 13px; line-height: 1.45; white-space: nowrap; }
.ord-date__time { display: block; color: var(--c-text-subtle); font-size: 12px; }
.ord-table .ord-service {
  min-width: 240px;
  color: var(--c-text);
  font-weight: 500;
  line-height: 1.5;
  word-break: break-word;
}
.ord-table .ord-charge { color: var(--c-text); font-family: var(--font-mono); font-weight: 700; white-space: nowrap; }
.ord-table .ord-num { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.ord-table .ord-status { white-space: nowrap; }
.ord-table .ord-act { text-align: right; white-space: nowrap; }
.rtl-table .ord-act { text-align: left; }

/* Link: short column, long links get an ellipsis, full link on hover */
.ord-link__inner { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ord-link__icon { display: none; flex: 0 0 auto; color: var(--c-text-subtle); font-size: 11px; }
.ord-link__url {
  display: block;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 170px;
  overflow: hidden;
  color: var(--c-text-muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
a.ord-link__url { color: var(--c-accent-text); }
a.ord-link__url:hover,
a.ord-link__url:focus { color: var(--c-text); text-decoration: underline; }
@media (min-width: 1400px) {
  .ord-link__url { max-width: 220px; }
}
.ord-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  color: var(--c-text-subtle);
  font-size: 13px;
  transition: color .15s ease, background-color .15s ease;
}
.ord-details:hover,
.ord-details:focus { background: var(--c-accent-tint); color: var(--c-accent-text); }

/* Status badge */
.ord-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  background: var(--c-surface-3);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-pill);
  color: var(--c-text-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}
.ord-badge::before {
  content: "";
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.ord-badge.is-completed { background: var(--c-accent-soft); border-color: var(--c-accent-line); color: var(--c-accent-text); }
.ord-badge.is-progress { background: var(--c-info-soft); border-color: var(--c-info-line); color: var(--c-info-text); }
.ord-badge.is-partial { background: var(--c-warning-soft); border-color: var(--c-warning-line); color: var(--c-warning-text); }
.ord-badge.is-canceled { background: var(--c-danger-soft); border-color: var(--c-danger-line); color: var(--c-danger-text); }
.ord-reason { margin-left: 6px; color: var(--c-text-subtle); font-size: 13px; cursor: help; }
.rtl-content .ord-reason { margin-left: 0; margin-right: 6px; }

/* Refill / cancel */
.ord-act .order-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--c-text-subtle);
  font-size: 12px;
}
.ord-act .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  line-height: 1;
}
.ord-act .btn-primary:hover,
.ord-act .btn-primary:focus { color: var(--c-accent-contrast); }
.ord-act .btn-default { background: var(--c-surface); }
.ord-act .btn-default:hover { background: var(--c-danger-soft); border-color: var(--c-danger-line); color: var(--c-danger-text); }

/* Empty state */
.ord-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-10) var(--sp-5);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}
.ord-empty .fas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-1);
  border-radius: var(--radius);
  background: var(--c-surface-3);
  color: var(--c-text-subtle);
  font-size: 18px;
}
.ord-empty strong { color: var(--c-text); font-size: var(--fs-base); }

/* Pagination */
.ord-pagination.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0;
}
.ord-pagination.pagination > li > a {
  float: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  margin: 0;
  padding: 0 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm) !important;
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}
.ord-pagination.pagination > li > a:hover,
.ord-pagination.pagination > li > a:focus { background: var(--c-surface-3); border-color: var(--c-border-strong); color: var(--c-text); }
.ord-pagination.pagination > .active > a,
.ord-pagination.pagination > .active > a:hover,
.ord-pagination.pagination > .active > a:focus {
  background: var(--c-accent-soft);
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
}

/* Desktop: table scrolls sideways if the sidebar leaves it short on room */
@media (min-width: 1200px) {
  .ord-scroll { overflow-x: auto; }
}

/* Below 1200px: every order becomes a card */
@media (max-width: 1199px) {
  .table.ord-table,
  .table.ord-table > tbody { display: block; width: 100%; }
  .table.ord-table > thead { display: none; }
  .table.ord-table > tbody > tr.ord-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px var(--sp-2);
    padding: 14px var(--sp-4) var(--sp-4);
    border-top: 1px solid var(--c-border);
    transition: background-color .15s ease, box-shadow .15s ease;
  }
  .table.ord-table > tbody > tr.ord-row:first-child { border-top: 0; }
  .table.ord-table > tbody > tr.ord-row > td {
    display: block;
    padding: 0;
    border: 0;
    background: none;
  }
  .table.ord-table > tbody > tr.ord-row:hover > td,
  .table.ord-table > tbody > tr.ord-row.is-selected > td { background: none; }
  .table.ord-table > tbody > tr.ord-row.is-selected {
    background: var(--c-accent-tint);
    box-shadow: inset 3px 0 0 var(--c-accent);
  }
  .rtl-content .table.ord-table > tbody > tr.ord-row.is-selected { box-shadow: inset -3px 0 0 var(--c-accent); }

  /* Top line: checkbox, #ID, date … status */
  .ord-row > .ord-check { order: 1; flex: 0 0 auto; }
  .table.ord-table > tbody > tr.ord-row > td.ord-id {
    order: 2;
    flex: 0 0 auto;
    padding: 2px 7px;
    background: var(--c-surface-3);
    border-radius: 6px;
    color: var(--c-text-muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.6;
  }
  .ord-row > .ord-id::before { content: "#"; }
  .ord-row > .ord-date {
    order: 3;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--c-text-subtle);
    font-size: 12px;
    text-overflow: ellipsis;
  }
  .ord-row .ord-date__time { display: inline; margin-left: 4px; }
  .ord-row > .ord-status { order: 4; flex: 0 0 auto; margin-left: auto; }
  .rtl-content .ord-row > .ord-status { margin-left: 0; margin-right: auto; }

  /* Service name gets the full width, link sits under it */
  .ord-row > .ord-service { order: 5; flex: 1 1 100%; min-width: 0; font-size: var(--fs-sm); font-weight: 600; }
  .ord-row > .ord-link { order: 6; flex: 1 1 100%; min-width: 0; margin-top: -4px; }
  .ord-row .ord-link__icon { display: inline-block; }
  .ord-row .ord-link__url { max-width: none; }

  /* Numbers: 2 per row on phones, 4 per row from 600px */
  .table.ord-table > tbody > tr.ord-row > td.ord-meta {
    order: 7;
    flex: 1 1 calc(50% - var(--sp-2));
    min-width: 0;
    padding: 6px 10px;
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .ord-row.is-selected > .ord-meta { background: var(--c-surface); }
  .ord-meta::before {
    content: attr(data-label);
    display: block;
    overflow: hidden;
    color: var(--c-text-subtle);
    font-family: var(--font-sans);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .08em;
    text-overflow: ellipsis;
    text-transform: uppercase;
  }

  /* Refill / cancel share the full width */
  .ord-row > .ord-act { order: 8; flex: 1 1 100%; text-align: left; }
  .ord-row > .ord-act.is-empty { display: none !important; }
  .ord-row > .ord-act .order-actions { display: flex; flex-wrap: wrap; width: 100%; gap: var(--sp-2); }
  .ord-row > .ord-act .btn { flex: 1 1 0; height: 38px; font-size: 13px; }
}
@media (min-width: 600px) and (max-width: 1199px) {
  .table.ord-table > tbody > tr.ord-row > td.ord-meta { flex: 1 1 0; }
}

/* Extra cells used by subscriptions / refill / drip-feed */
.ord-frac__total { color: var(--c-text-subtle); }
.ord-frac a { font-weight: 700; }
.ord-ref a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.ord-ref a .fas { font-size: 10px; }
@media (max-width: 1199px) {
  /* Order-reference chip joins the top line of the card */
  .table.ord-table > tbody > tr.ord-row > td.ord-ref { order: 3; flex: 0 0 auto; }
  .ord-row > .ord-ref a {
    padding: 2px 8px;
    background: var(--c-accent-tint);
    border: 1px solid var(--c-accent-line);
    border-radius: 6px;
    font-size: 11px;
    line-height: 1.6;
  }
  .ord-row > .ord-ref a::before { content: attr(data-label); font-family: var(--font-sans); font-weight: 500; }
  /* Many number boxes: 4 per row from 600px instead of all in one row */
  .ord-table.ord-table--dense > tbody > tr.ord-row > td.ord-meta { flex: 1 1 calc(50% - var(--sp-2)); }
}
@media (min-width: 600px) and (max-width: 1199px) {
  .table.ord-table.ord-table--dense > tbody > tr.ord-row > td.ord-meta { flex: 1 1 calc(25% - var(--sp-2)); }
}
.ord-table .ord-when { font-size: 13px; line-height: 1.45; white-space: nowrap; }
.ord-table--dense .ord-service { min-width: 200px; }
/* 10. Modals --------------------------------------------------------------- */
.modal-backdrop { background: #0d1219; }
.modal-backdrop.in { opacity: .45; }
.modal-content {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-pop);
  overflow: hidden;
}
.modal-header {
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--c-border);
}
.modal-header .close { margin-top: 0; font-size: 24px; line-height: 1; }
.modal-title { font-size: var(--fs-lg); font-weight: 600; }
.modal-body { padding: var(--sp-6); }
.modal-body .form-group:last-of-type { margin-bottom: 0; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-6);
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
}
.modal-footer::before,
.modal-footer::after { display: none; }
.modal-footer .btn + .btn { margin-left: 0; }
.modal-body span.form-control {
  display: flex;
  align-items: center;
  overflow: hidden;
  color: var(--c-text-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rtl-form .modal-header .close { float: left; }
@media (max-width: 575px) {
  .modal-dialog { margin: var(--sp-4); }
  .modal-footer .btn { flex: 1 1 0; }
}

/* 11. Auth pages (signup / reset password / confirm email) ----------------- */
.auth { padding: var(--sp-4) 0 var(--sp-10); }
.auth__card {
  position: relative;
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 !important;
  overflow: hidden;
}
.auth__card::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: var(--sp-6);
  right: var(--sp-6);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: .7;
}
.auth__card--wide { max-width: 960px; }
.auth__main { flex: 1 1 auto; min-width: 0; padding: var(--sp-8) var(--sp-5); }
@media (min-width: 576px) {
  .auth__main { padding: var(--sp-10); }
}
.auth__main > form { margin: 0; }
.auth__head { margin-bottom: var(--sp-6); }
.auth__head--center { text-align: center; }
.auth__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: var(--sp-4);
  border-radius: var(--radius);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: 19px;
}
.auth__title {
  margin: 0 0 6px !important;
  font-size: var(--fs-2xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.auth__sub { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); }
.auth__card .alert { margin-bottom: var(--sp-5); }
.auth__submit { margin-top: var(--sp-2); }
.auth__submit .fas { margin-left: var(--sp-2); transition: transform .2s ease; }
.auth__submit:hover .fas { transform: translateX(3px); }
.rtl-form .auth__submit .fas { margin-left: 0; margin-right: var(--sp-2); transform: scaleX(-1); }
.auth__captcha { margin-bottom: 22px; overflow: hidden; }
.auth__captcha > * { max-width: 100%; }
.auth__divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-5) 0;
  color: var(--c-text-subtle);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.auth__divider::before,
.auth__divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--c-border); }
.auth__google { display: flex; justify-content: center; min-height: 44px; }
.auth__foot {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--c-border);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  text-align: center;
}
.auth__foot a { font-weight: 600; }

/* Side panel (wide card, desktop only) */
.auth__aside { display: none; }
@media (min-width: 992px) {
  .auth__aside {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 0 0 42%;
    padding: var(--sp-10);
    background:
      radial-gradient(120% 70% at 0% 0%, rgba(22, 212, 155, .16), transparent 60%),
      var(--c-surface-2);
    border-right: 1px solid var(--c-border);
  }
  .rtl-content .auth__aside { border-right: 0; border-left: 1px solid var(--c-border); }
}
.auth__aside-title { margin: 0 0 var(--sp-2) !important; font-size: var(--fs-xl); font-weight: 700; line-height: 1.3; }
.auth__aside-text { margin: 0 0 var(--sp-8); color: var(--c-text-muted); font-size: var(--fs-sm); }
.auth__perks { margin: 0; padding: 0; list-style: none; }
.auth__perks li { display: flex; align-items: flex-start; gap: var(--sp-3); }
.auth__perks li + li { margin-top: var(--sp-5); }
.auth__perks .fas {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  color: var(--c-accent-text);
  font-size: 14px;
}
.auth__perks strong { display: block; color: var(--c-text); font-size: var(--fs-sm); font-weight: 600; }
.auth__perks span { display: block; color: var(--c-text-muted); font-size: 13px; line-height: 1.5; }

/* Terms checkbox */
.auth-check { margin-bottom: 22px; }
.auth-check label {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin: 0;
  padding: 0;
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  font-weight: 400;
  line-height: 1.5;
  cursor: pointer;
}
.auth-check label > span { flex: 1 1 auto; min-width: 0; }
.auth-check .ord-cb { position: relative; margin: 2px 0 0; }
.rtl-form .auth-check label { padding: 0; }
.rtl-form .auth-check input[type="checkbox"] { right: auto; }

/* 12. Shared form bits: icon fields, password toggle, copy fields, section cards */
.ico-field { position: relative; }
.ico-field__icon {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: var(--ctl-h);
  color: var(--c-text-subtle);
  font-size: 14px;
  pointer-events: none;
  transition: color .15s ease;
}
.ico-field .form-control { padding-left: 46px; }
.ico-field:focus-within .ico-field__icon { color: var(--c-accent-text); }
.rtl-form .ico-field__icon,
.rtl-content .ico-field__icon { left: auto; right: 0; }
.rtl-form .ico-field .form-control,
.rtl-content .ico-field .form-control { padding-left: var(--sp-4); padding-right: 46px; }

/* Show / hide password (toggle is added by script.js to .pw-field) */
.pw-field { position: relative; }
.pw-field .form-control { padding-right: 52px; }
.pw-toggle {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: calc(var(--ctl-h) - 12px);
  border-radius: var(--radius-sm);
  color: var(--c-text-subtle);
  font-size: 14px;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: color .15s ease, background-color .15s ease;
}
.pw-toggle:hover { background: var(--c-surface-3); color: var(--c-text); }
.pw-toggle:focus { outline: 0; }
.pw-toggle:focus-visible { box-shadow: var(--ring); }
.rtl-form .pw-field .form-control { padding-right: var(--sp-4); padding-left: 52px; }
.rtl-form .ico-field.pw-field .form-control { padding-right: 46px; padding-left: 52px; }
.rtl-form .pw-toggle { right: auto; left: 6px; }

/* Read-only value + copy button (script.js: [data-copy]) */
.cp-field {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  min-width: 0;
  padding: 5px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.cp-field__value,
.cp-field .form-control,
.cp-field .form-control[readonly] {
  flex: 1 1 auto;
  min-width: 0;
  height: 40px;
  padding: 0 10px;
  overflow: hidden;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 40px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cp-field .form-control:focus { box-shadow: none; }
.cp-field:focus-within { border-color: var(--c-accent-line); box-shadow: var(--ring); }
.cp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.cp-btn .far,
.cp-btn .fas { color: var(--c-accent-text); }
.cp-btn:hover,
.cp-btn.is-copied {
  background: var(--c-accent-tint);
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
}
.cp-btn:focus { outline: 0; }
.cp-btn:focus-visible { box-shadow: var(--ring); }
.cp-btn--icon { width: 40px; padding: 0; }

/* Section card: head (icon + title + text) over a body */
.sec-card { position: relative; padding: 0 !important; }
.sec-head {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 1px solid var(--c-border);
}
.sec-head__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: 15px;
}
.sec-head__text { flex: 1 1 auto; min-width: 0; }
.sec-head__title { margin: 0 !important; font-size: var(--fs-base); font-weight: 600; line-height: 1.4; }
.sec-head__sub { display: block; margin-top: 2px; color: var(--c-text-muted); font-size: 13px; line-height: 1.45; }
.sec-head__aside { flex: 0 0 auto; }
.sec-head__count {
  flex: 0 0 auto;
  padding: 3px 10px;
  background: var(--c-surface-3);
  border-radius: var(--radius-pill);
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}
.sec-body { padding: var(--sp-5); }
.sec-body > form { margin: 0; }
.sec-body .form-group:last-child { margin-bottom: 0; }
@media (min-width: 768px) {
  .sec-head { padding: var(--sp-5) var(--sp-6); }
  .sec-body { padding: var(--sp-6); }
}
.sec-card--accent::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: -1px;
  left: var(--sp-6);
  right: var(--sp-6);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: .7;
}

/* 13. Rich text (terms / pages / blog posts: admin HTML) -------------------- */
.prose { color: var(--c-text-muted); font-size: var(--fs-base); line-height: 1.75; overflow-wrap: break-word; }
.prose > :first-child { margin-top: 0 !important; }
.prose > :last-child { margin-bottom: 0 !important; }
.prose h1, .prose h2, .prose h3, .prose h4, .prose h5, .prose h6 {
  margin: 1.8em 0 .6em !important;
  color: var(--c-text);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  scroll-margin-top: calc(var(--topbar-h) + var(--sp-4));
}
.prose h1 { font-size: 24px; }
.prose h2 { font-size: 20px; }
.prose h3 { font-size: 17px; }
.prose h4, .prose h5, .prose h6 { font-size: var(--fs-base); }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--c-accent-text); font-weight: 500; text-decoration: underline; text-decoration-color: var(--c-accent-line); text-underline-offset: 3px; }
.prose a:hover { color: var(--c-text); text-decoration-color: currentColor; }
.prose strong, .prose b { color: var(--c-text); font-weight: 600; }
.prose ul, .prose ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.prose li { margin: .35em 0; padding-left: .2em; }
.prose li::marker { color: var(--c-accent-text); }
.prose img { max-width: 100%; height: auto; border-radius: var(--radius); }
.prose blockquote {
  margin: 1.4em 0;
  padding: 12px 18px;
  background: var(--c-accent-tint);
  border: 0;
  border-left: 3px solid var(--c-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--c-text);
  font-size: var(--fs-base);
}
.prose hr { margin: 2em 0; border: 0; border-top: 1px solid var(--c-border); }
.prose code {
  padding: 2px 6px;
  background: var(--c-surface-3);
  border-radius: 6px;
  color: var(--c-text);
  font-family: var(--font-mono);
  font-size: .88em;
}
.prose pre {
  margin: 0 0 1.2em;
  padding: var(--sp-4);
  overflow: auto;
  background: #0f1720;
  border: 0;
  border-radius: var(--radius);
  color: #d6e2ee;
  font-size: 13px;
}
.prose pre code { padding: 0; background: none; color: inherit; }
.prose table { width: 100%; margin: 0 0 1.2em; border-collapse: collapse; font-size: var(--fs-sm); }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.prose th { background: var(--c-surface-2); color: var(--c-text); font-weight: 600; }
.prose iframe, .prose video { max-width: 100%; border: 0; border-radius: var(--radius); }
.rtl-content .prose ul, .rtl-content .prose ol,
.prose.rtl-content ul, .prose.rtl-content ol { padding-left: 0; padding-right: 1.4em; }
.rtl-content .prose th, .rtl-content .prose td { text-align: right; }

/* Long document: card + table of contents (script.js builds it from [data-toc] headings) */
.doc { padding-bottom: var(--sp-8); }
.doc__card { position: relative; padding: var(--sp-6) var(--sp-5); }
/* No contents list (fewer than 3 headings): text column fills the row */
.doc [data-toc-col][hidden] { display: none; }
.doc [data-toc-col][hidden] + .doc__main { width: 100%; right: auto; left: auto; }
@media (min-width: 1200px) {
  .doc [data-toc-col][hidden] + .doc__main .doc__card { max-width: 900px; margin-left: auto; margin-right: auto; }
}
@media (min-width: 768px) {
  .doc__card { padding: var(--sp-10); }
}
.doc-toc { margin-bottom: var(--sp-5); padding: 6px !important; }
.doc-toc[hidden] { display: none; }
.doc-toc__head {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 10px 12px;
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.doc-toc__head::-webkit-details-marker { display: none; }
.doc-toc__head .fa-list-ul { color: var(--c-accent-text); }
.doc-toc__caret { margin-left: auto; color: var(--c-text-subtle); font-size: 11px; transition: transform .2s ease; }
.doc-toc[open] .doc-toc__caret { transform: rotate(180deg); }
.doc-toc__list { margin: 0; padding: 0 0 4px; list-style: none; }
.doc-toc__list a {
  display: block;
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.45;
  transition: background-color .15s ease, color .15s ease;
}
.doc-toc__list a.is-sub { padding-left: 26px; font-size: 12.5px; }
.doc-toc__list a:hover { background: var(--c-surface-3); color: var(--c-text); }
.doc-toc__list a.is-active { background: var(--c-accent-soft); color: var(--c-accent-text); font-weight: 600; }
.rtl-content .doc-toc__caret { margin-left: 0; margin-right: auto; }
.rtl-content .doc-toc__list a.is-sub { padding-left: 12px; padding-right: 26px; }
@media (min-width: 1200px) {
  .doc-toc {
    position: -webkit-sticky;
    position: sticky;
    top: calc(var(--topbar-h) + var(--sp-5));
    max-height: calc(100vh - var(--topbar-h) - var(--sp-10));
    overflow-y: auto;
  }
  .doc-toc__head { cursor: default; pointer-events: none; }
  .doc-toc__caret { display: none; }
}

/* 14. Blog post cards (blog list + "Latest posts" section) ----------------- */
.post-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--c-accent-line); box-shadow: var(--shadow-pop); transform: translateY(-2px); }
.post-card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 0% 0%, rgba(22, 212, 155, .28), transparent 60%),
    radial-gradient(90% 90% at 100% 100%, rgba(43, 138, 230, .14), transparent 60%),
    var(--c-surface-3);
}
.post-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card__media img { transform: scale(1.03); }
.post-card__ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--c-accent-text);
  font-size: 28px;
  opacity: .55;
}
.post-card__body { display: flex; flex-direction: column; flex: 1 1 auto; gap: 6px; padding: var(--sp-4); }
@media (min-width: 768px) {
  .post-card__body { padding: 18px var(--sp-5) var(--sp-5); }
}
.post-card__title {
  display: -webkit-box;
  margin: 0 !important;
  overflow: hidden;
  font-size: var(--fs-base);
  font-weight: 600;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.post-card__title a { color: var(--c-accent-text); }
.post-card__title a:hover { color: var(--c-text); }
/* Excerpt: the post HTML is flattened to small plain text and cut after 3 lines,
   so headings / lists at the start of a post don't blow up the card */
.post-card__excerpt {
  display: -webkit-box;
  overflow: hidden;
  color: var(--c-text-muted);
  font-size: 13px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.post-card__excerpt * {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: none !important;
  color: inherit !important;
  font: inherit !important;
  letter-spacing: normal !important;
  text-transform: none !important;
}
.post-card__excerpt :is(h1, h2, h3, h4, h5, h6, p, li, div, blockquote, tr)::after { content: " "; }
.post-card__excerpt :is(h1, h2, h3, h4, h5, h6, strong, b) { color: var(--c-text) !important; font-weight: 600 !important; }
.post-card__excerpt :is(img, iframe, video, table, figure, br, hr, script, style) { display: none !important; }
.post-card__more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: var(--sp-2);
  color: var(--c-accent-text);
  font-size: 13px;
  font-weight: 600;
}
.post-card__more .fas { font-size: 11px; transition: transform .2s ease; }
.post-card:hover .post-card__more .fas { transform: translateX(3px); }
.rtl-content .post-card__more .fas { transform: scaleX(-1); }
.rtl-content .post-card:hover .post-card__more .fas { transform: scaleX(-1) translateX(3px); }

/* Card grid: 1 / 2 / 3 / 4 columns */
.post-grid { display: grid; grid-template-columns: 1fr; gap: var(--sp-4); }
@media (min-width: 576px) {
  .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1200px) {
  .post-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); }
}

/* "Latest posts" section - drop-in on any page:
   <section class="rp" data-rp data-rp-src="{{ page_url('blog') }}" data-rp-limit="3" hidden> ... </section>
   script.js loads the newest posts from the blog page (optional data-rp-exclude="post url") */
.rp { margin: var(--sp-8) 0 var(--sp-6); }
.rp .post-grid { gap: var(--sp-4); }
.rp[hidden] { display: none; }
.rp__head { display: flex; align-items: flex-end; gap: var(--sp-4); margin-bottom: var(--sp-5); }
.rp__head-text { flex: 1 1 auto; min-width: 0; }
.rp__eyebrow {
  display: block;
  margin-bottom: 4px;
  color: var(--c-accent-text);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.rp__title { margin: 0 !important; font-size: var(--fs-lg); font-weight: 700; letter-spacing: -.01em; }
.rp__all {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--sp-2);
  height: 38px;
  padding: 0 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.rp__all .fas { color: var(--c-accent-text); font-size: 11px; }
.rp__all:hover,
.rp__all:focus { background: var(--c-accent-tint); border-color: var(--c-accent-line); color: var(--c-accent-text); }
.rtl-content .rp__all .fas { transform: scaleX(-1); }
/* Compact variant (narrow columns, e.g. beside a sign-in form): stacked rows */
.rp--compact .post-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
.rp--compact .post-card { flex-direction: row; border-radius: var(--radius); }
.rp--compact .post-card__media { flex: 0 0 34%; aspect-ratio: auto; min-height: 96px; }
.rp--compact .post-card__body { padding: var(--sp-3) var(--sp-4); gap: 4px; }
.rp--compact .post-card__title { font-size: 13.5px; }
.rp--compact .post-card__excerpt { font-size: 12.5px; -webkit-line-clamp: 2; }
.rp--compact .post-card__more { display: none; }
/* Loading placeholders */
.post-card.is-skeleton { pointer-events: none; }
.post-card.is-skeleton .post-card__media,
.post-card.is-skeleton .sk-line {
  background: linear-gradient(90deg, var(--c-surface-3) 0%, var(--c-surface-2) 50%, var(--c-surface-3) 100%);
  background-size: 200% 100%;
  animation: sk-shine 1.2s ease-in-out infinite;
}
.sk-line { display: block; height: 12px; border-radius: 6px; }
.sk-line--title { width: 80%; height: 16px; margin-bottom: 4px; }
.sk-line--short { width: 55%; }
@keyframes sk-shine { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .post-card, .post-card__media img, .post-card.is-skeleton .post-card__media, .post-card.is-skeleton .sk-line { transition: none; animation: none; }
  .post-card:hover { transform: none; }
}

/* 9. Platform chips (services + new order) ---------------------------------
   One-line, left-to-right scrolling bar on mobile; wraps on desktop. */
.svc-platforms {
  margin-bottom: var(--sp-5);
}
.svc-platforms__label {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  color: var(--c-text-muted);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.svc-platforms__label .fas { color: var(--c-accent-text); font-size: 13px; }
.svc-platforms__list {
  display: flex;
  gap: 6px;
  margin: 0 calc(-1 * var(--sp-4));
  padding: 2px var(--sp-4) var(--sp-2);
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
}
.svc-platforms__list::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .svc-platforms {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-5);
    margin-bottom: var(--sp-6);
  }
  .svc-platforms__label { flex: 0 0 auto; height: 38px; margin: 0; }
  .svc-platforms__list {
    flex: 1 1 auto;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    overflow: visible;
  }
}
.svc-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 38px;
  padding: 0 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  scroll-snap-align: start;
  transition: border-color .15s ease, background-color .15s ease, color .15s ease;
}
.svc-chip i { color: var(--c-text-subtle); font-size: 14px; transition: color .15s ease; }
.svc-chip__count {
  color: var(--c-text-subtle);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
}
.svc-chip:hover { border-color: var(--c-accent-line); }
.svc-chip:hover i { color: var(--c-accent-text); }
.svc-chip:focus { outline: 0; }
.svc-chip:focus-visible { box-shadow: var(--ring); }
.svc-chip.is-active,
.svc-chip.is-active:hover {
  background: var(--c-accent-soft);
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
}
.svc-chip.is-active i,
.svc-chip.is-active .svc-chip__count { color: var(--c-accent-text); }

/* 15. Tickets / chat (tickets + viewticket) ---------------------------------- */
/* Live "online" dot with a soft ping */
.tk-dot {
  position: relative;
  display: inline-block;
  flex: 0 0 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-accent);
  vertical-align: middle;
}
.tk-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: inherit;
  animation: tk-ping 1.8s cubic-bezier(0, 0, .2, 1) infinite;
}
@keyframes tk-ping { 75%, 100% { transform: scale(2.6); opacity: 0; } }

/* Avatars */
.tk-avatar {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-accent), #0fb4c4);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 4px 12px rgba(22, 212, 155, .28);
}
.tk-avatar--sm { flex-basis: 32px; width: 32px; height: 32px; font-size: 12px; }
.tk-avatar--lg { flex-basis: 46px; width: 46px; height: 46px; font-size: 17px; }
.tk-avatar--ink { background: linear-gradient(135deg, #2a3647, var(--c-ink)); box-shadow: 0 4px 12px rgba(15, 23, 32, .22); }
.tk-avatar--info { background: linear-gradient(135deg, #5aa9f0, var(--c-info)); box-shadow: 0 4px 12px rgba(43, 138, 230, .25); }
.tk-avatar__status {
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--c-surface);
  border-radius: 50%;
  background: var(--c-accent);
}
.tk-avatar--sm .tk-avatar__status { width: 10px; height: 10px; }

/* Chat bubbles */
.tk-bubble {
  position: relative;
  max-width: 100%;
  padding: 11px 16px;
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 18px 18px 18px 6px;
  color: var(--c-text);
  font-size: var(--fs-sm);
  line-height: 1.65;
  box-shadow: 0 1px 2px rgba(20, 26, 34, .05);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.tk-bubble--me {
  background: #e2f8f0;
  border-color: rgba(22, 212, 155, .30);
  border-radius: 18px 18px 6px 18px;
}
.tk-bubble__text > :first-child { margin-top: 0; }
.tk-bubble__text > :last-child { margin-bottom: 0; }
.tk-bubble__text p { margin: 0 0 .6em; }
.tk-bubble__text p,
.tk-bubble__text li,
.tk-bubble__text blockquote { white-space: pre-wrap; }
.tk-bubble__text blockquote {
  margin: 0 0 .6em;
  padding: 4px 10px;
  border-left: 3px solid var(--c-accent);
  border-radius: 0 6px 6px 0;
  background: rgba(20, 26, 34, .04);
  color: var(--c-text-muted);
  font-size: 13px;
}
.tk-bubble__text a { color: var(--c-accent-text); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.tk-bubble__text img { max-width: 100%; height: auto; border-radius: var(--radius-sm); }
.tk-bubble__text hr { margin: .8em 0; border-top: 1px solid var(--c-border); }
.tk-bubble__text ul,
.tk-bubble__text ol { margin: 0 0 .6em; padding-left: 1.3em; }

/* Attachments inside a bubble */
.tk-files { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.tk-file,
.tk-file:focus {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 320px;
  padding: 7px 10px 7px 7px;
  background: rgba(255, 255, 255, .75);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  color: var(--c-text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .15s ease, background-color .15s ease;
}
.tk-file:hover { background: var(--c-surface); border-color: var(--c-accent-line); color: var(--c-text); }
.tk-file__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: 13px;
}
.tk-file__name { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-file__go { flex: 0 0 auto; color: var(--c-text-subtle); font-size: 11px; }
.tk-file:hover .tk-file__go { color: var(--c-accent-text); }

/* Composer: textarea + toolbar (attach + send) in one box */
.tk-composer {
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-lg);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.tk-composer:focus-within { border-color: var(--c-accent-line); box-shadow: var(--ring); }
.tk-composer textarea.form-control,
.tk-composer textarea.form-control:focus {
  display: block;
  width: 100%;
  min-height: 140px;
  padding: 16px 18px;
  background: transparent;
  border: 0;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: none;
  font-size: var(--fs-base);
  line-height: 1.6;
}
.tk-composer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: var(--c-surface-2);
  border-top: 1px solid var(--c-border);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  transition: background-color .3s ease, box-shadow .3s ease;
}
.tk-composer__attach { flex: 1 1 auto; min-width: 0; }
.tk-composer__hint { color: var(--c-text-subtle); font-size: 12px; white-space: nowrap; }
.tk-composer__hint kbd {
  padding: 1px 6px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: 5px;
  box-shadow: 0 1px 0 var(--c-border-strong);
  color: var(--c-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}
.tk-send.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  margin-left: auto;
  padding: 0 20px;
  box-shadow: 0 6px 16px rgba(22, 212, 155, .28);
}
.tk-send .fas { font-size: 13px; transition: transform .2s ease; }
.tk-send:hover .fas { transform: translate(2px, -2px); }
.rtl-form .tk-send.btn,
.rtl-content .tk-send.btn { margin-left: 0; margin-right: auto; }
.rtl-form .tk-send .fas,
.rtl-content .tk-send .fas { transform: scaleX(-1); }

/* Attach button (markup is injected by the panel uploader) */
.tk-composer .tickets-uploader { margin: 0; }
.tk-composer .tickets-uploader .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 14px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius-sm);
  color: var(--c-text);
  font-size: 13px;
  font-weight: 600;
}
.tk-composer .tickets-uploader .btn:hover,
.tk-composer .tickets-uploader .btn:focus {
  background: var(--c-accent-tint);
  border-color: var(--c-accent-line);
  color: var(--c-accent-text);
}
.tk-composer .tickets-uploader .fa,
.tk-composer .tickets-uploader .fas { color: var(--c-accent-text); }
.tk-composer .tickets-uploader a:not(.btn) { color: var(--c-text-muted); font-size: 13px; }
.tk-composer .tickets-uploader .help-block,
.tk-composer .tickets-uploader .text-danger { margin: 6px 0 0; font-size: 12px; }
.tk-composer__bar.is-flash { background: var(--c-warning-soft); box-shadow: inset 0 0 0 1px var(--c-warning-line); }

/* Help panel: tone, response times, payment rule, WhatsApp */
.tk-help { position: relative; padding: 0 !important; overflow: hidden; }
.tk-help::before {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  left: var(--sp-6);
  right: var(--sp-6);
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--c-accent), transparent);
  opacity: .7;
}
.tk-help__sec { padding: var(--sp-5); }
.tk-help__sec + .tk-help__sec { border-top: 1px solid var(--c-border); }
@media (min-width: 768px) {
  .tk-help__sec { padding: var(--sp-6); }
}
.tk-help__intro {
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(22, 212, 155, .12), transparent 55%),
    var(--c-surface);
}
.tk-help__eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--sp-3);
  color: var(--c-text-muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.tk-help__eyebrow .fas { color: var(--c-accent-text); font-size: 12px; }
.tk-help__title { margin: 0 0 var(--sp-2) !important; font-size: var(--fs-lg); font-weight: 700; line-height: 1.35; letter-spacing: -.01em; }
.tk-help__lead { margin: 0; color: var(--c-text-muted); font-size: var(--fs-sm); line-height: 1.7; }
.tk-help__lead strong { color: var(--c-text); font-weight: 600; }

/* Response times */
.tk-sla { display: grid; gap: 10px; }
.tk-sla__row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.tk-sla__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: 15px;
}
.tk-sla__row.is-human .tk-sla__icon { background: var(--c-info-soft); color: var(--c-info-text); }
.tk-sla__who { flex: 1 1 auto; min-width: 0; }
.tk-sla__who strong { display: block; color: var(--c-text); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.tk-sla__who span { display: block; color: var(--c-text-subtle); font-size: 12px; line-height: 1.4; }
.tk-sla__time {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  height: 28px;
  padding: 0 11px;
  background: var(--c-accent-soft);
  border: 1px solid var(--c-accent-line);
  border-radius: var(--radius-pill);
  color: var(--c-accent-text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.tk-sla__row.is-human .tk-sla__time { background: var(--c-info-soft); border-color: var(--c-info-line); color: var(--c-info-text); }

/* Payment rule */
.tk-note {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--c-warning-soft);
  border: 1px solid var(--c-warning-line);
  border-radius: var(--radius);
  color: var(--c-warning-text);
  font-size: 13px;
  line-height: 1.6;
}
.tk-note__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--c-surface);
  border: 1px solid var(--c-warning-line);
  color: var(--c-warning);
  font-size: 14px;
}
.tk-note strong { display: block; margin-bottom: 2px; color: var(--c-text); font-size: var(--fs-sm); font-weight: 600; }
.tk-note__tag {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  background: var(--c-warning);
  border-radius: var(--radius-pill);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  vertical-align: 1px;
}

/* WhatsApp buttons */
.tk-wa { display: grid; gap: 10px; }
.tk-wa-btn,
.tk-wa-btn:focus {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 16px 12px 12px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: var(--radius);
  color: var(--c-text);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease;
}
.tk-wa-btn:hover {
  border-color: var(--c-wa);
  box-shadow: 0 10px 24px rgba(37, 211, 102, .16);
  color: var(--c-text);
  transform: translateY(-1px);
}
.tk-wa-btn:focus-visible { outline: 0; box-shadow: var(--ring); }
.tk-wa-btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--c-wa);
  color: #fff;
  box-shadow: 0 6px 14px rgba(37, 211, 102, .35);
}
.tk-wa-btn__icon svg { width: 22px; height: 22px; fill: currentColor; }
.tk-wa-btn__text { flex: 1 1 auto; min-width: 0; }
.tk-wa-btn__text strong { display: block; font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; }
.tk-wa-btn__text small { display: flex; align-items: center; gap: 6px; margin-top: 2px; color: var(--c-text-muted); font-size: 12px; line-height: 1.4; }
.tk-wa-btn__go { flex: 0 0 auto; color: var(--c-text-subtle); font-size: 12px; transition: transform .2s ease, color .2s ease; }
.tk-wa-btn:hover .tk-wa-btn__go { color: var(--c-wa); transform: translateX(3px); }
/* AI variant: dark "ink" card */
.tk-wa-btn.is-ai,
.tk-wa-btn.is-ai:focus {
  background: radial-gradient(120% 140% at 100% 0%, rgba(37, 211, 102, .22), transparent 55%), var(--c-ink);
  border-color: var(--c-ink);
  color: #fff;
}
.tk-wa-btn.is-ai:hover { border-color: var(--c-ink); box-shadow: 0 12px 28px rgba(15, 23, 32, .28); color: #fff; }
.tk-wa-btn.is-ai small { color: rgba(255, 255, 255, .66); }
.tk-wa-btn.is-ai .tk-wa-btn__go { color: rgba(255, 255, 255, .5); }
.tk-wa-btn.is-ai .tk-dot { background: var(--c-wa); }
/* Telegram variant: light card with a soft Telegram-blue tint */
.tk-wa-btn.is-tg,
.tk-wa-btn.is-tg:focus {
  background: radial-gradient(120% 140% at 100% 0%, rgba(34, 158, 217, .14), transparent 60%), var(--c-surface);
  border-color: rgba(34, 158, 217, .38);
}
.tk-wa-btn.is-tg:hover { border-color: var(--c-tg); box-shadow: 0 10px 24px rgba(34, 158, 217, .18); }
.tk-wa-btn.is-tg .tk-wa-btn__icon { background: var(--c-tg); box-shadow: 0 6px 14px rgba(34, 158, 217, .38); }
.tk-wa-btn.is-tg .tk-dot { background: var(--c-tg); }
.tk-wa-btn.is-tg:hover .tk-wa-btn__go { color: var(--c-tg); }
.rtl-content .tk-wa-btn__go { transform: scaleX(-1); }
.rtl-content .tk-wa-btn:hover .tk-wa-btn__go { transform: scaleX(-1) translateX(3px); }

@media (prefers-reduced-motion: reduce) {
  .tk-dot::after { animation: none; }
  .tk-wa-btn, .tk-wa-btn:hover { transition: none; transform: none; }
}

/* Laptop widths (14"-15", incl. 125-150% display scaling): compact tables so the
   full table fits beside the sidebar without sideways scrolling */
.ord-page { overflow-x: clip; }
.ord-card, .ord-scroll { max-width: 100%; min-width: 0; }
@media (min-width: 992px) and (max-width: 1599px) {
  .has-sidebar .container.ord-page { padding-left: var(--sp-5); padding-right: var(--sp-5); }
}
@media (min-width: 1200px) and (max-width: 1599px) {
  .ord-toolbar { gap: var(--sp-3); }
  .ord-search { width: 260px; }
  .ord-tabs.nav-pills > li > a { padding: 0 12px; }
  .ord-bar { padding: 12px var(--sp-4); }

  .table.ord-table > thead > tr > th {
    padding: 11px 7px;
    font-size: 10px;
    letter-spacing: .06em;
    line-height: 1.3;
    white-space: normal;
  }
  .table.ord-table > tbody > tr > td { padding: 11px 7px; font-size: 13px; }
  .table.ord-table > thead > tr > th:first-child,
  .table.ord-table > tbody > tr > td:first-child { padding-left: 14px; }
  .table.ord-table > thead > tr > th:last-child,
  .table.ord-table > tbody > tr > td:last-child { padding-right: 14px; }

  .ord-table .ord-id,
  .ord-table .ord-num,
  .ord-table .ord-charge { font-size: 12px; }
  .ord-table .ord-date,
  .ord-table .ord-when { font-size: 12px; }
  .ord-date__time { font-size: 11px; }
  .ord-link__url { max-width: 120px; font-size: 12px; }
  .ord-table .ord-service { min-width: 160px; font-size: 13px; }
  .ord-table--dense .ord-link__url { max-width: 105px; }
  .ord-table--dense .ord-service { min-width: 135px; }
  .ord-badge { gap: 5px; height: 24px; padding: 0 8px; font-size: 11px; }
  .ord-badge::before { flex-basis: 5px; width: 5px; height: 5px; }

  /* Action column: as narrow as its buttons, buttons stacked */
  .ord-table .ord-act { width: 1%; }
  .ord-act .order-actions { flex-direction: column; align-items: stretch; gap: 4px; }
  .ord-act .btn { height: 26px; padding: 0 9px; font-size: 11px; }
}

/* 16. Mobile tab bar ------------------------------------------------------- */
/* iOS "liquid glass" style: a floating frosted capsule with a specular rim and
   a glass lens that slides to the active tab. Phones only (< 768px), logged-in
   pages only (markup lives in the has-sidebar branch of layout.twig). */
.app-tabbar {
    display: none;
}
@media (max-width: 767px) {
    body.has-sidebar {
        --tabbar-h: 66px;
        /* Sits low, close to the screen edge; still clears the iPhone home indicator */
        --tabbar-gap: max(6px, calc(env(safe-area-inset-bottom) - 10px));
        --tabbar-space: calc(var(--tabbar-h) + var(--tabbar-gap) + 14px);
        padding-bottom: var(--tabbar-space);
    }

    .app-tabbar {
        display: block;
        position: fixed;
        left: 10px;
        right: 10px;
        bottom: var(--tabbar-gap);
        z-index: 1025; /* below the drawer (1030) and bottom sheets/modals (1040+) */
        pointer-events: none;
        transition: transform .4s cubic-bezier(.2, .9, .3, 1.1), opacity .25s ease;
    }
    body.kb-open .app-tabbar {
        opacity: 0;
        transform: translateY(calc(100% + 28px));
    }

    /* The glass capsule */
    .app-tabbar__glass {
        position: relative;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        max-width: 460px;
        height: var(--tabbar-h);
        margin: 0 auto;
        padding: 6px;
        border-radius: var(--radius-pill);
        background: rgba(255, 255, 255, .95);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .95),
            inset 0 -1px 1px rgba(20, 26, 34, .04),
            0 0 0 .5px rgba(20, 26, 34, .10),
            0 2px 6px rgba(20, 26, 34, .06),
            0 14px 34px rgba(20, 26, 34, .16);
        pointer-events: auto;
        isolation: isolate;
    }
    @supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
        .app-tabbar__glass {
            background:
                linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .52)),
                rgba(244, 246, 248, .28);
            -webkit-backdrop-filter: blur(22px) saturate(190%);
            backdrop-filter: blur(22px) saturate(190%);
        }
    }
    /* Specular rim: bright top-left edge fading around the capsule */
    .app-tabbar__glass::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 2;
        padding: 1px;
        border-radius: inherit;
        background: linear-gradient(160deg, rgba(255, 255, 255, 1), rgba(255, 255, 255, .25) 30%, rgba(255, 255, 255, 0) 55%, rgba(255, 255, 255, .7));
        -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
        -webkit-mask-composite: xor;
        mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
        pointer-events: none;
    }
    /* Soft sheen across the top half */
    .app-tabbar__glass::after {
        content: "";
        position: absolute;
        top: 1px;
        left: 14px;
        right: 14px;
        height: 45%;
        z-index: -1;
        border-radius: 999px 999px 40% 40% / 999px 999px 100% 100%;
        background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
        pointer-events: none;
    }

    /* Sliding lens behind the active tab */
    .app-tabbar__lens {
        position: absolute;
        top: 6px;
        bottom: 6px;
        left: 6px;
        z-index: 0;
        width: calc((100% - 12px) / 5);
        border-radius: var(--radius-pill);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .7), rgba(255, 255, 255, .15)),
            var(--c-accent-soft);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .9),
            inset 0 0 0 1px rgba(22, 212, 155, .22),
            0 4px 12px rgba(22, 212, 155, .14);
        opacity: 0;
        transform: translateX(calc(var(--tab-i, 0) * 100%)) scale(.9);
        transition:
            transform .5s cubic-bezier(.3, 1.35, .5, 1),
            opacity .25s ease;
    }
    .app-tabbar__glass.has-active .app-tabbar__lens {
        opacity: 1;
        transform: translateX(calc(var(--tab-i, 0) * 100%));
    }
    .app-tabbar__glass.no-anim .app-tabbar__lens {
        transition: none;
    }

    /* Tabs */
    .app-tabbar__tab,
    .app-tabbar__tab:visited {
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        min-width: 0;
        padding: 0 2px;
        border-radius: var(--radius-pill);
        color: var(--c-text-muted);
        text-decoration: none;
        -webkit-tap-highlight-color: transparent;
        -webkit-touch-callout: none;
        -webkit-user-select: none;
        user-select: none;
        transition: color .25s ease;
    }
    .app-tabbar__tab:hover,
    .app-tabbar__tab:focus {
        color: var(--c-text);
        text-decoration: none;
        outline: none;
    }
    .app-tabbar__tab:focus-visible {
        box-shadow: inset 0 0 0 2px var(--c-accent-line);
    }
    .app-tabbar__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 24px;
        font-size: 18px;
        line-height: 1;
        transition: transform .45s cubic-bezier(.3, 1.6, .5, 1);
    }
    .app-tabbar__label {
        max-width: 100%;
        overflow: hidden;
        font-size: 10.5px;
        font-weight: 600;
        line-height: 1.1;
        letter-spacing: .01em;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .app-tabbar__tab:active .app-tabbar__icon {
        transform: scale(.84);
        transition-duration: .12s;
    }
    .app-tabbar__tab.is-active,
    .app-tabbar__tab.is-active:hover,
    .app-tabbar__tab.is-active:focus {
        color: var(--c-accent-text);
    }
    .app-tabbar__tab.is-active .app-tabbar__icon {
        transform: translateY(-1px) scale(1.08);
    }

    /* New Order: a small mint glass capsule, always stands out */
    .app-tabbar__tab--primary .app-tabbar__icon {
        width: 38px;
        height: 26px;
        border-radius: var(--radius-pill);
        background:
            linear-gradient(180deg, rgba(255, 255, 255, .38), rgba(255, 255, 255, 0) 60%),
            var(--c-accent);
        color: var(--c-accent-contrast);
        font-size: 14px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .6),
            inset 0 -1px 0 rgba(4, 21, 15, .08),
            0 4px 12px rgba(22, 212, 155, .38);
    }
    .app-tabbar__tab--primary.is-active .app-tabbar__icon {
        transform: translateY(-1px) scale(1.06);
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, .6),
            inset 0 -1px 0 rgba(4, 21, 15, .08),
            0 6px 16px rgba(22, 212, 155, .5);
    }

    /* RTL: tabs run right-to-left, lens slides from the right */
    .is-rtl .app-tabbar__glass {
        direction: rtl;
    }
    .is-rtl .app-tabbar__lens {
        left: auto;
        right: 6px;
        transform: translateX(calc(var(--tab-i, 0) * -100%)) scale(.9);
    }
    .is-rtl .app-tabbar__glass.has-active .app-tabbar__lens {
        transform: translateX(calc(var(--tab-i, 0) * -100%));
    }

    /* Very small phones: tighter labels */
    @media (max-width: 359px) {
        .app-tabbar { left: 8px; right: 8px; }
        .app-tabbar__label { font-size: 9.5px; letter-spacing: 0; }
        .app-tabbar__tab--primary .app-tabbar__icon { width: 34px; }
    }
}
@media (max-width: 767px) and (prefers-reduced-motion: reduce) {
    .app-tabbar,
    .app-tabbar__lens,
    .app-tabbar__icon {
        transition: none;
    }
}


/* 17. PWA install prompt --------------------------------------------------- */
/* Bottom banner (Android install / iOS guide trigger) + iOS Add to Home Screen
   guide. Markup in layout.twig, logic at the end of script.js.
   z-index: banner 1028 = above the mobile tab bar (1025), below the drawer (1030)
   and modals (1040+). */
.pwa-banner[hidden],
.pwa-guide[hidden] {
    display: none !important;
}

/* ---- Banner ---- */
.pwa-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(12px + env(safe-area-inset-bottom));
    z-index: 1028;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    width: calc(100% - 24px);
    max-width: 560px;
    margin: 0 auto;
    padding: 12px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-pop);
    opacity: 0;
    transform: translateY(calc(100% + 24px));
    transition: transform .38s cubic-bezier(.2, .9, .3, 1.05), opacity .25s ease;
}
.pwa-banner.is-visible {
    opacity: 1;
    transform: none;
}
body.has-pwa-banner {
    padding-bottom: calc(var(--pwa-banner-h, 120px) + 24px + env(safe-area-inset-bottom));
}
.pwa-banner__icon {
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--c-surface-2);
    box-shadow: 0 0 0 1px var(--c-border);
    object-fit: cover;
}
.pwa-banner__text {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    line-height: 1.35;
}
.pwa-banner__text strong {
    color: var(--c-text);
    font-size: var(--fs-sm);
    font-weight: 700;
}
.pwa-banner__text span {
    color: var(--c-text-muted);
    font-size: 12.5px;
}
.pwa-banner__actions {
    display: flex;
    flex: 1 1 100%;
    gap: var(--sp-2);
}
.pwa-banner__btn.btn {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: var(--sp-2);
    min-height: 44px;
    height: 44px;
    padding: 0 var(--sp-4);
    font-size: var(--fs-sm);
    font-weight: 600;
}
.pwa-banner__btn-icon {
    flex: 0 0 auto;
}
@media (min-width: 520px) {
    .pwa-banner {
        flex-wrap: nowrap;
        padding: 12px 12px 12px 14px;
    }
    .pwa-banner__actions,
    .pwa-banner__btn.btn {
        flex: 0 0 auto;
    }
}

/* Phones, logged-in: stack above the floating tab bar (section 16) */
@media (max-width: 767px) {
    body.has-sidebar .pwa-banner {
        bottom: calc(var(--tabbar-gap) + var(--tabbar-h) + 10px);
    }
    body.has-sidebar.has-pwa-banner {
        padding-bottom: calc(var(--tabbar-space) + var(--pwa-banner-h, 120px) + 10px);
    }
    /* Keyboard up: tuck away together with the tab bar */
    body.kb-open .pwa-banner {
        opacity: 0;
        transform: translateY(calc(100% + 24px));
        pointer-events: none;
    }
}

/* Desktop with sidebar: centre within the content area */
@media (min-width: 992px) {
    body.has-sidebar .pwa-banner {
        left: var(--sidebar-w);
        width: calc(100% - var(--sidebar-w) - 48px);
    }
    body.has-sidebar.is-rtl .pwa-banner {
        left: 0;
        right: var(--sidebar-w);
    }
}

/* ---- iOS guide (bottom sheet on phones, centred card from 576px) ---- */
body.pwa-guide-open {
    overflow: hidden;
}
.pwa-guide {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1060;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.pwa-guide__backdrop {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(20, 26, 34, .45);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
    opacity: 0;
    transition: opacity .25s ease;
}
.pwa-guide.is-open .pwa-guide__backdrop {
    opacity: 1;
}
.pwa-guide__dialog {
    position: relative;
    width: 100%;
    max-height: calc(100% - 24px);
    overflow-y: auto;
    padding: 28px var(--sp-5) calc(var(--sp-5) + env(safe-area-inset-bottom));
    background: var(--c-surface);
    border-radius: 22px 22px 0 0;
    box-shadow: var(--shadow-pop);
    outline: none;
    transform: translateY(100%);
    transition: transform .32s cubic-bezier(.2, .9, .3, 1);
    -webkit-overflow-scrolling: touch;
}
.pwa-guide.is-open .pwa-guide__dialog {
    transform: none;
}
/* Grab handle */
.pwa-guide__dialog::before {
    content: "";
    position: absolute;
    top: 8px;
    left: 50%;
    width: 36px;
    height: 5px;
    margin-left: -18px;
    border-radius: var(--radius-pill);
    background: var(--c-border-strong);
}
@media (min-width: 576px) {
    .pwa-guide {
        align-items: center;
        padding: var(--sp-6);
    }
    .pwa-guide__dialog {
        max-width: 420px;
        padding: var(--sp-8) 28px 28px;
        border-radius: var(--radius-lg);
        opacity: 0;
        transform: translateY(12px) scale(.97);
        transition: transform .25s ease, opacity .2s ease;
    }
    .pwa-guide.is-open .pwa-guide__dialog {
        opacity: 1;
        transform: none;
    }
    .pwa-guide__dialog::before {
        display: none;
    }
}
.pwa-guide__close {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--c-text-subtle);
    transition: background-color .15s ease, color .15s ease;
}
.pwa-guide__close:hover,
.pwa-guide__close:focus {
    background: var(--c-surface-3);
    color: var(--c-text);
    outline: none;
}
.pwa-guide__close:focus-visible {
    box-shadow: var(--ring);
}
.pwa-guide__head {
    margin-bottom: var(--sp-5);
    text-align: center;
}
.pwa-guide__app {
    display: inline-block;
    width: 56px;
    height: 56px;
    margin-bottom: var(--sp-3);
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--c-border), 0 6px 16px rgba(20, 26, 34, .12);
    object-fit: cover;
}
.pwa-guide__title {
    margin: 0 0 var(--sp-1);
    color: var(--c-text);
    font-size: var(--fs-xl);
    font-weight: 700;
    line-height: 1.3;
}
.pwa-guide__sub {
    margin: 0;
    color: var(--c-text-muted);
    font-size: var(--fs-sm);
}
.pwa-guide__steps {
    display: flex;
    flex-direction: column;
    gap: var(--sp-2);
    margin: 0;
    padding: 0;
    list-style: none;
}
.pwa-guide__step {
    display: flex;
    align-items: center;
    gap: var(--sp-3);
    padding: var(--sp-3);
    background: var(--c-surface-2);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
}
.pwa-guide__num {
    display: inline-flex;
    flex: 0 0 28px;
    align-items: center;
    justify-content: center;
    height: 28px;
    border-radius: 50%;
    background: var(--c-accent-soft);
    color: var(--c-accent-text);
    font-size: 13px;
    font-weight: 700;
}
.pwa-guide__txt {
    flex: 1 1 auto;
    min-width: 0;
    color: var(--c-text);
    font-size: var(--fs-sm);
    line-height: 1.45;
}
.pwa-guide__txt strong {
    font-weight: 600;
}
.pwa-guide__glyph {
    display: inline-flex;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    height: 40px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    color: var(--c-text);
}
.pwa-guide__glyph.is-blue {
    color: var(--c-info);
}
.pwa-guide__glyph--text {
    flex-basis: 48px;
    font-size: 15px;
    font-weight: 600;
}
.pwa-guide__note {
    display: flex;
    align-items: flex-start;
    gap: var(--sp-2);
    margin: var(--sp-4) 0;
    padding: 10px var(--sp-3);
    background: var(--c-info-soft);
    border: 1px solid var(--c-info-line);
    border-radius: var(--radius-sm);
    color: var(--c-info-text);
    font-size: 13px;
    line-height: 1.45;
}
.pwa-guide__note svg {
    flex: 0 0 auto;
    margin-top: 1px;
}
.pwa-guide__done.btn {
    min-height: 48px;
    height: 48px;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .pwa-banner,
    .pwa-guide__backdrop,
    .pwa-guide__dialog {
        transition: none;
    }
}

/* ---- Connection notice (offline / back online), created by script.js ---- */
.net-note {
    position: fixed;
    top: calc(12px + env(safe-area-inset-top));
    left: 50%;
    z-index: 1045;
    display: flex;
    align-items: center;
    gap: var(--sp-2);
    max-width: calc(100% - 24px);
    padding: 10px 16px;
    background: var(--c-ink);
    border-radius: var(--radius-pill);
    box-shadow: var(--shadow-pop);
    color: #fff;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -16px);
    transition: transform .3s cubic-bezier(.2, .9, .3, 1.05), opacity .2s ease, visibility .3s ease;
    pointer-events: none;
}
.net-note.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.net-note__dot {
    flex: 0 0 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c-danger);
    box-shadow: 0 0 0 3px rgba(229, 72, 77, .25);
}
.net-note.is-online .net-note__dot {
    background: var(--c-accent);
    box-shadow: 0 0 0 3px var(--c-accent-soft);
}
@media (prefers-reduced-motion: reduce) {
    .net-note {
        transition: none;
    }
}

/* 18. Auth hero (signup / reset password / set new password / 2FA) ---------
   Same look as the sign-in hero: copy left, animated form card right.
   Phones: title -> form card -> copy card (numbers, text, perks).
   Markup: .ah > .ah-hero > .container > .ah__grid > .ah__intro + .ah__form + .ah__more */
.ah { position: relative; overflow: hidden; }
.ah-accent { color: var(--c-accent-text); }
.ah-hero { position: relative; padding: var(--sp-4) 0 var(--sp-10); }
.ah-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 0%, rgba(22, 212, 155, .14), transparent 70%),
    linear-gradient(var(--c-border) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, var(--c-border) 1px, transparent 1px) 0 0 / 56px 56px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 0%, #000 30%, transparent 80%);
  mask-image: radial-gradient(70% 70% at 50% 0%, #000 30%, transparent 80%);
  opacity: .8;
}
.ah .container { position: relative; z-index: 1; }
.ah__grid { display: flex; flex-direction: column; gap: var(--sp-5); }
@media (min-width: 992px) {
  .ah__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 500px;
    grid-template-areas: "intro form" "more form";
    grid-template-rows: auto 1fr;
    column-gap: 56px;
    align-items: start;
  }
  .ah__intro { grid-area: intro; }
  .ah__form { grid-area: form; }
  .ah__more { grid-area: more; }
  .ah--narrow .ah__grid { grid-template-columns: minmax(0, 1fr) 440px; }
}

/* Intro: eyebrow + H1 */
.ah__intro { text-align: center; }
.ah-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-3);
  padding: 5px 12px;
  border: 1px solid var(--c-accent-line);
  border-radius: var(--radius-pill);
  background: var(--c-accent-tint);
  color: var(--c-accent-text);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ah__title {
  margin: 0 !important;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.02em;
}

/* Copy card under the form (phones), plain column (desktop) */
.ah__more {
  display: flex;
  flex-direction: column;
  padding: var(--sp-5) var(--sp-4);
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.ah__lead {
  margin: 0 0 var(--sp-5);
  color: var(--c-text-muted);
  font-size: var(--fs-sm);
  line-height: 1.7;
}
.ah__lead strong { color: var(--c-accent-text); font-weight: 600; }
.ah-perks__title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-2) !important;
  color: var(--c-text);
  font-size: var(--fs-sm);
  font-weight: 700;
}
.ah-perks__title::before {
  content: "";
  flex: 0 0 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--c-accent);
}
.ah-perks { margin: 0; padding: 0; list-style: none; }
.ah-perks > li { display: flex; align-items: flex-start; gap: var(--sp-3); min-width: 0; padding: var(--sp-3) 0; }
.ah-perks > li + li { border-top: 1px dashed var(--c-border); }
.ah-perks__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--c-accent-soft);
  color: var(--c-accent-text);
  font-size: 14px;
  line-height: 1;
}
.ah-perks__icon .fas,
.ah-perks__icon .far { display: block; line-height: 1; }
.ah-perks > li > div { flex: 1 1 auto; min-width: 0; }
.ah-perks h3 { margin: 0 0 2px !important; color: var(--c-text); font-size: var(--fs-sm); font-weight: 600; line-height: 1.4; }
.ah-perks p { margin: 0; color: var(--c-text-muted); font-size: 13px; line-height: 1.55; }
.ah-perks a { font-weight: 600; }

/* Numbers: first thing in the copy card on phones, last on desktop */
.ah-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  order: -1;
  gap: 1px;
  margin: 0 0 var(--sp-5);
  padding: 0;
  overflow: hidden;
  list-style: none;
  background: var(--c-border);
  border: 1px solid var(--c-border);
  border-radius: var(--radius);
}
.ah-stats li { min-width: 0; padding: 10px 4px; background: var(--c-surface-2); text-align: center; }
.ah-stats b { display: block; color: var(--c-text); font-size: var(--fs-base); font-weight: 700; line-height: 1.3; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ah-stats span {
  display: block;
  overflow: hidden;
  color: var(--c-text-subtle);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .04em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

@media (min-width: 576px) {
  .ah__more { padding: var(--sp-6); }
  .ah-perks { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--sp-6); }
  .ah-perks > li + li { border-top: 0; }
  .ah-perks > li:nth-child(n+3) { border-top: 1px dashed var(--c-border); }
  .ah-stats li { padding: 12px 8px; background: var(--c-surface); }
  .ah-stats b { font-size: var(--fs-lg); }
  .ah-stats span { font-size: 11px; letter-spacing: .06em; }
}

/* Form card */
.ah__form { position: relative; }
.ah__form::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 8%;
  left: 50%;
  width: 78%;
  height: 84%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(22, 212, 155, .30), rgba(43, 138, 230, .10) 60%, transparent);
  filter: blur(36px);
  transform: translateX(-50%);
  animation: ah-glow 9s ease-in-out infinite alternate;
  pointer-events: none;
}
@keyframes ah-glow {
  from { transform: translateX(-56%) scale(.95); opacity: .75; }
  to { transform: translateX(-44%) scale(1.05); opacity: 1; }
}
.ah .auth__card {
  --ctl-h: 44px;
  z-index: 1;
  max-width: 500px;
  margin-bottom: 0;
  border-color: rgba(22, 212, 155, .22);
  box-shadow: 0 1px 2px rgba(20, 26, 34, .04), 0 24px 48px -12px rgba(20, 26, 34, .16);
  animation: ah-rise .6s cubic-bezier(.2, .8, .2, 1) both;
}
.ah--narrow .auth__card { max-width: 440px; }
@keyframes ah-rise {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to { opacity: 1; transform: none; }
}
.ah .auth__card::before {
  left: 0;
  right: 0;
  height: 3px;
  border-radius: 0;
  background: linear-gradient(90deg, transparent 0%, var(--c-accent) 30%, #7ce8c6 50%, var(--c-accent) 70%, transparent 100%) 0 0 / 200% 100%;
  opacity: 1;
  animation: ah-sweep 4s linear infinite;
}
@keyframes ah-sweep {
  from { background-position: 100% 0; }
  to { background-position: -100% 0; }
}
.ah .auth__main { padding: var(--sp-5) var(--sp-4); }
@media (min-width: 576px) {
  .ah .auth__main { padding: var(--sp-6) 28px var(--sp-5); }
}

/* Card head: icon left, title + subtitle right */
.ah-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.ah-head .auth__icon {
  position: relative;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  margin: 0;
  background: linear-gradient(135deg, var(--c-accent), #0fb884);
  color: var(--c-accent-contrast);
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(22, 212, 155, .35);
}
.ah-head .auth__icon::after {
  content: "";
  position: absolute;
  inset: -4px;
  border: 2px solid var(--c-accent-line);
  border-radius: 15px;
  animation: ah-ping 2.4s ease-out infinite;
}
@keyframes ah-ping {
  0% { opacity: .9; transform: scale(.92); }
  70%, 100% { opacity: 0; transform: scale(1.18); }
}
.ah-head__text { flex: 1 1 auto; min-width: 0; }
.ah-head .auth__title { margin-bottom: 0 !important; font-size: var(--fs-lg); line-height: 1.25; }
.ah-head .auth__sub { font-size: 12.5px; line-height: 1.45; }

/* Fields: compact; .ah-fields = 2 per row from 576px (.ah-span = full row) */
.ah-fields { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--sp-3); }
@media (min-width: 576px) {
  .ah-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ah-fields > .ah-span,
  .ah-fields > .ah-full { grid-column: 1 / -1; }
}
.ah .form-group { margin-bottom: var(--sp-3); }
.ah .form-group[hidden] { display: none !important; }
.ah .control-label {
  display: block;
  margin-bottom: 4px;
  overflow: hidden;
  font-size: 12.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ah .ico-field__icon { width: 38px; font-size: 13px; transition: color .2s ease, transform .2s ease; }
.ah .ico-field .form-control {
  padding-left: 38px;
  padding-right: 12px;
  font-size: var(--fs-sm);
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s ease;
}
.ah .ico-field.pw-field .form-control { padding-right: 44px; }
.ah .pw-toggle { top: 5px; right: 5px; width: 34px; height: calc(var(--ctl-h) - 10px); font-size: 13px; }
.ah .rtl-form .ico-field .form-control { padding-left: 12px; padding-right: 38px; }
.ah .rtl-form .ico-field.pw-field .form-control { padding-left: 44px; padding-right: 38px; }
.ah .rtl-form .pw-toggle { right: auto; left: 5px; }
.ah .form-control::placeholder { color: var(--c-text-subtle); font-size: 13px; }
.ah .ico-field .form-control:hover { border-color: var(--c-border-strong); }
.ah .ico-field .form-control:focus {
  background-color: var(--c-surface);
  transform: translateY(-1px);
  box-shadow: var(--ring), 0 8px 18px -8px rgba(22, 212, 155, .45);
}
.ah .ico-field:focus-within .ico-field__icon { transform: scale(1.12); }
.ah .auth-check { margin-bottom: var(--sp-3); }
.ah .auth-check label { font-size: 12.5px; }

/* Submit: gradient, lift, sheen on hover */
.ah .auth__submit {
  position: relative;
  overflow: hidden;
  height: 48px;
  margin-top: 4px;
  padding-top: 0;
  padding-bottom: 0;
  border: 0;
  background: linear-gradient(135deg, var(--c-accent), #10c48e);
  box-shadow: 0 10px 22px -8px rgba(22, 212, 155, .65);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.ah .auth__submit::after {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: skewX(-20deg);
  transition: left .6s ease;
}
.ah .auth__submit:hover,
.ah .auth__submit:focus {
  transform: translateY(-2px);
  filter: saturate(1.1);
  box-shadow: 0 14px 28px -10px rgba(22, 212, 155, .75);
}
.ah .auth__submit:hover::after { left: 120%; }
.ah .auth__submit:active { transform: translateY(0); }
.ah .auth__captcha { margin-bottom: var(--sp-3); }
.ah .auth__divider { margin: var(--sp-3) 0; font-size: 11px; }
.ah .auth__google { min-height: 40px; }
.ah .auth__foot {
  margin-top: var(--sp-3);
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  background: var(--c-surface-2);
  font-size: 13px;
}
.ah .auth__foot a + a { margin-left: var(--sp-3); }

/* Staggered entrance */
.ah .ah-head,
.ah .auth__main form > * { animation: ah-fade-up .5s cubic-bezier(.2, .8, .2, 1) both; }
.ah .ah-head { animation-delay: .1s; }
.ah .auth__main form > :nth-child(1) { animation-delay: .16s; }
.ah .auth__main form > :nth-child(2) { animation-delay: .22s; }
.ah .auth__main form > :nth-child(3) { animation-delay: .28s; }
.ah .auth__main form > :nth-child(4) { animation-delay: .34s; }
.ah .auth__main form > :nth-child(n+5) { animation-delay: .4s; }
@keyframes ah-fade-up {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* Password strength (script.js adds it after inputs marked data-pw-meter) */
.pw-meter { display: flex; align-items: center; gap: var(--sp-2); margin-top: 6px; }
.pw-meter[hidden] { display: none; }
.pw-meter__bars { display: flex; flex: 1 1 auto; gap: 3px; }
.pw-meter__bars span { flex: 1 1 0; height: 3px; border-radius: 2px; background: var(--c-surface-3); transition: background-color .2s ease; }
.pw-meter__label { flex: 0 0 auto; color: var(--c-text-subtle); font-size: 11px; font-weight: 600; }
.pw-meter[data-level="1"] .pw-meter__bars span:nth-child(-n+1) { background: var(--c-danger); }
.pw-meter[data-level="2"] .pw-meter__bars span:nth-child(-n+2) { background: var(--c-warning); }
.pw-meter[data-level="3"] .pw-meter__bars span:nth-child(-n+3) { background: var(--c-accent); }
.pw-meter[data-level="4"] .pw-meter__bars span { background: var(--c-accent-hover); }
.pw-meter[data-level="1"] .pw-meter__label { color: var(--c-danger-text); }
.pw-meter[data-level="2"] .pw-meter__label { color: var(--c-warning-text); }
.pw-meter[data-level="3"] .pw-meter__label,
.pw-meter[data-level="4"] .pw-meter__label { color: var(--c-accent-text); }

@media (min-width: 768px) {
  .ah-hero { padding: var(--sp-8) 0 64px; }
  .ah__title { font-size: 30px; }
  .ah__more { width: 100%; max-width: 640px; margin: 0 auto; }
}
@media (min-width: 992px) {
  .ah-hero { padding: 48px 0 80px; }
  .ah__intro { text-align: left; }
  .rtl-content .ah__intro { text-align: right; }
  .ah-eyebrow { margin-bottom: var(--sp-4); }
  .ah__title { font-size: 38px; line-height: 1.15; }
  /* Desktop: copy sits straight on the page, numbers last */
  .ah__more { max-width: none; margin: 0; padding: var(--sp-5) 0 0; background: none; border: 0; border-radius: 0; box-shadow: none; }
  .ah__lead { margin-bottom: var(--sp-6); font-size: var(--fs-base); line-height: 1.75; }
  .ah-perks__title { margin-bottom: var(--sp-3) !important; font-size: var(--fs-base); }
  .ah-perks__title::before { display: none; }
  .ah-perks { gap: var(--sp-5) var(--sp-6); margin-bottom: var(--sp-6); }
  .ah-perks > li { padding: 0; }
  .ah-perks > li + li,
  .ah-perks > li:nth-child(n+3) { border-top: 0; }
  .ah-perks__icon {
    flex-basis: 38px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--c-accent-line);
    background: var(--c-surface);
    box-shadow: var(--shadow-card);
    font-size: 15px;
  }
  .ah-stats { order: 0; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ah__form::before,
  .ah .auth__card,
  .ah .auth__card::before,
  .ah-head .auth__icon::after,
  .ah .ah-head,
  .ah .auth__main form > * { animation: none; }
  .ah .auth__submit::after { display: none; }
}
