/*!
 * Kreator / Helpblogger CMS — Master Stylesheet
 * -----------------------------------------------------------------
 * One shared stylesheet for every surface: frontend, auth, user
 * dashboard, developer console and error pages.
 *
 * Design intent
 * -----------------------------------------------------------------
 * - No gradients, anywhere. Depth comes from hairline borders,
 *   flat tonal surfaces and restrained shadow, not glow/blur.
 * - Every colour on this page is one of the CSS variables set in
 *   <head> from the admin backend (color_primary, color_secondary,
 *   color_dark, color_body_bg, color_text, color_nav_bg/text,
 *   color_footer_bg/text) or a value *derived* from them with
 *   color-mix(). Nothing brand-related is hardcoded here — change
 *   a colour in Settings and the whole site follows.
 * - Rectangular, editorial detailing instead of the default
 *   "AI SaaS" look: no pill buttons/badges, no translateY hover
 *   lift + coloured glow combo, no uniform blanket border-radius.
 *   Small radii on controls, larger radii only on real containers.
 * - A real type rhythm (consistent scale + baseline spacing)
 *   instead of ad-hoc rem values sprinkled per page.
 *
 * This file expects :root to already define, per layout:
 *   --primary --secondary --dark --body-bg --text
 *   --nav-bg --nav-text --footer-bg --footer-text
 *   --font-heading --font-body
 * -----------------------------------------------------------------
 */

/* ============================================================
   1. DERIVED TOKENS — computed from the admin colours above.
      Everything downstream reads these, never a raw hex.
   ============================================================ */
:root {
    /* structural neutrals (not brand colours — paper & ink) */
    --paper:        #ffffff;
    --ink:          #14151a;

    /* surfaces, derived from --dark / --text so a dark-mode-ish
       admin palette still produces sane, readable tones */
    --surface:        var(--paper);
    --surface-sunken:  color-mix(in srgb, var(--text) 3.5%, var(--paper));
    --surface-raised:  var(--paper);
    --line:            color-mix(in srgb, var(--text) 12%, var(--paper));
    --line-strong:     color-mix(in srgb, var(--text) 22%, var(--paper));
    --muted:           color-mix(in srgb, var(--text) 52%, var(--paper));
    --faint:           color-mix(in srgb, var(--text) 34%, var(--paper));

    /* on dark chrome (navbar / footer / sidebar) */
    --on-dark:         color-mix(in srgb, var(--nav-text) 92%, transparent);
    --on-dark-muted:   color-mix(in srgb, var(--nav-text) 46%, transparent);
    --on-dark-faint:   color-mix(in srgb, var(--nav-text) 26%, transparent);
    --on-dark-line:    color-mix(in srgb, var(--nav-text) 12%, transparent);
    --on-dark-hover:   color-mix(in srgb, var(--nav-text) 8%, transparent);

    /* primary tints, used sparingly (never as a background fill
       for large areas — accents only) */
    --primary-ink:     var(--primary);
    --primary-wash:    color-mix(in srgb, var(--primary) 7%, var(--paper));
    --primary-line:    color-mix(in srgb, var(--primary) 30%, var(--paper));
    --primary-strong:  color-mix(in srgb, var(--primary) 82%, black);

    /* status colours — conventional, not brand */
    --ok:      #1e7e46;
    --ok-bg:   #eef7f1;
    --ok-line: #cfe8d8;
    --warn:      #92600a;
    --warn-bg:   #fbf3e3;
    --warn-line: #f0dfb8;
    --bad:     #a32a2a;
    --bad-bg:  #fbeded;
    --bad-line:#f0cbcb;
    --info:      #205e8a;
    --info-bg:   #eaf3f9;
    --info-line: #c9dfec;

    /* geometry — deliberately mixed, not one blanket radius */
    --r-control:  6px;   /* buttons, inputs, tags, badges   */
    --r-card:     10px;  /* cards, panels                   */
    --r-frame:    3px;   /* thumbnails, tight chrome         */
    --r-pane:     0px;   /* full-bleed editorial blocks       */

    --ease: cubic-bezier(.2,.65,.3,1);
    --fast: .16s var(--ease);
    --med:  .24s var(--ease);

    /* baseline rhythm */
    --gap-xs: .4rem;
    --gap-sm: .75rem;
    --gap-md: 1.25rem;
    --gap-lg: 2.25rem;
    --gap-xl: 4rem;
}

/* ============================================================
   2. RESET + BASE TYPOGRAPHY
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--body-bg);
    color: var(--text);
    line-height: 1.65;
    font-size: .975rem;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-ink); text-decoration: none; transition: color var(--fast); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.015em;
    margin: 0 0 .6em;
    color: var(--text);
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2.1vw, 3rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 1.2rem + 1.4vw, 2.25rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }
h5 { font-size: 1rem; }
h6 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; }
p  { margin: 0 0 1.1em; color: inherit; }
small, .fs-small { font-size: .82rem; }

/* thin, solid scrollbar — a deliberate signature touch */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--text) 22%, transparent); border: 2px solid var(--body-bg); border-radius: 20px; }
::-webkit-scrollbar-thumb:hover { background: color-mix(in srgb, var(--text) 38%, transparent); }

/* selection */
::selection { background: var(--primary); color: #fff; }

/* ============================================================
   3. EYEBROW / SECTION LABEL
   Rectangular, bordered, uppercase — replaces the generic
   rounded-pill "section-tag" look.
   ============================================================ */
.eyebrow {
    display: inline-flex; align-items: center; gap: .55rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .14em;
    text-transform: uppercase; color: var(--primary-ink);
    margin-bottom: .85rem;
}
.eyebrow::before {
    content: ''; width: 22px; height: 2px; background: var(--primary);
    flex-shrink: 0;
}
.eyebrow.center { justify-content: center; }

.section-head { margin-bottom: var(--gap-lg); }
.section-head p { color: var(--muted); font-size: 1.02rem; max-width: 640px; margin-bottom: 0; }

.rule { height: 1px; background: var(--line); border: none; margin: var(--gap-lg) 0; }
.rule-strong { height: 1px; background: var(--line-strong); border: none; }

/* ============================================================
   4. BUTTONS
   Rectangular-ish (6px), border-forward, ink-shift on hover —
   no translateY lift, no coloured glow shadow.
   ============================================================ */
.btn { border-radius: var(--r-control); font-weight: 600; font-size: .875rem; letter-spacing: -.005em; padding: .58rem 1.2rem; transition: background var(--fast), border-color var(--fast), color var(--fast); }

.btn-primary, .btn.btn-primary {
    background: var(--primary); border: 1px solid var(--primary); color: #fff;
}
.btn-primary:hover, .btn.btn-primary:hover {
    background: color-mix(in srgb, var(--primary) 86%, black);
    border-color: color-mix(in srgb, var(--primary) 86%, black);
    color: #fff;
}
.btn-primary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.btn-outline-primary, .btn.btn-outline-primary {
    background: transparent; border: 1px solid var(--primary-line); color: var(--primary-ink);
}
.btn-outline-primary:hover, .btn.btn-outline-primary:hover { background: var(--primary-wash); border-color: var(--primary); color: var(--primary-ink); }

.btn-outline-secondary, .btn.btn-outline-secondary {
    background: transparent; border: 1px solid var(--line-strong); color: var(--text);
}
.btn-outline-secondary:hover { background: var(--surface-sunken); border-color: var(--line-strong); }

.btn-light, .btn.btn-light { background: var(--surface-sunken); border: 1px solid var(--line); color: var(--text); }
.btn-light:hover { background: color-mix(in srgb, var(--text) 7%, var(--paper)); }

.btn-sm { padding: .38rem .85rem; font-size: .8rem; }
.btn-lg { padding: .78rem 1.6rem; font-size: .95rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* On dark chrome (navbar / drawer / sidebar) */
.btn-ghost-dark {
    padding: .4rem 1rem; border-radius: var(--r-control); font-weight: 600; font-size: .82rem;
    background: transparent; color: var(--on-dark-muted); border: 1px solid var(--on-dark-line);
    transition: all var(--fast); white-space: nowrap; display: inline-flex; align-items: center;
}
.btn-ghost-dark:hover { color: var(--on-dark); border-color: var(--on-dark-faint); background: var(--on-dark-hover); }
.btn-solid-dark {
    padding: .4rem 1.1rem; border-radius: var(--r-control); font-weight: 600; font-size: .82rem;
    background: var(--primary); color: #fff; border: 1px solid var(--primary);
    transition: background var(--fast); white-space: nowrap; display: inline-flex; align-items: center;
}
.btn-solid-dark:hover { background: color-mix(in srgb, var(--primary) 86%, black); color: #fff; }

/* ============================================================
   5. FORMS
   ============================================================ */
.form-label { font-weight: 600; font-size: .8rem; color: var(--text); margin-bottom: .35rem; letter-spacing: -.005em; }
.form-control, .form-select {
    border-radius: var(--r-control); border: 1px solid var(--line-strong);
    padding: .6rem .85rem; font-size: .9rem; color: var(--text); background: var(--surface);
    box-shadow: none; transition: border-color var(--fast);
}
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); outline: none; }
.form-control::placeholder { color: var(--faint); }
.form-text { color: var(--muted); font-size: .8rem; }
.input-group-text { background: var(--surface-sunken); border: 1px solid var(--line-strong); color: var(--muted); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash); }

/* ============================================================
   6. TAGS / BADGES / STATUS
   Rectangular, not pills. Border always present.
   ============================================================ */
.tag {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .26rem .65rem; border-radius: var(--r-frame);
    font-size: .74rem; font-weight: 600; color: var(--muted);
    background: var(--surface-sunken); border: 1px solid var(--line);
    text-decoration: none; transition: all var(--fast);
}
.tag:hover { color: var(--text); border-color: var(--line-strong); }

.status {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .22rem .6rem; border-radius: var(--r-frame);
    font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
    white-space: nowrap; border: 1px solid transparent;
}
.status::before { content: ''; width: 5px; height: 5px; flex-shrink: 0; background: currentColor; }
.status-pending, .status-in_progress, .status-review, .status-completed, .status-cancelled,
.status-active, .status-inactive, .status-failed, .status-paid { border-width: 1px; border-style: solid; }
.status-pending      { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.status-in_progress  { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }
.status-review       { background: var(--primary-wash); color: var(--primary-ink); border-color: var(--primary-line); }
.status-completed, .status-active, .status-paid { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.status-suspended { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.status-cancelled, .status-inactive, .status-failed { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.status-process_first_payment, .status-process_second_payment { background: var(--primary-wash); color: var(--primary-ink); border-color: var(--primary-line); }

/* mobile sidebar overlay */
.sb-overlay { display: none; position: fixed; inset: 0; background: rgba(10,10,12,.5); z-index: 199; }
.sb-overlay.show { display: block; }

/* ============================================================
   7. CARDS / PANELS
   Hairline border first, shadow only as a faint anchor —
   no hover-lift-and-glow.
   ============================================================ */
.card {
    border: 1px solid var(--line); border-radius: var(--r-card);
    background: var(--surface); box-shadow: 0 1px 2px rgba(20,21,26,.03);
    transition: border-color var(--fast);
}
.card:hover { border-color: var(--line-strong); }
.card-header { background: var(--surface); border-bottom: 1px solid var(--line); padding: .9rem 1.2rem; border-radius: var(--r-card) var(--r-card) 0 0 !important; }
.card-header h5, .card-header h6 { font-size: .875rem; font-weight: 700; margin: 0; }
.card-body { padding: 1.2rem; }
.card-footer { background: var(--surface-sunken); border-top: 1px solid var(--line); padding: .85rem 1.2rem; border-radius: 0 0 var(--r-card) var(--r-card); }

/* interactive/feature card — the only place a subtle motion is earned */
.panel-hover { transition: border-color var(--fast), background var(--fast); }
.panel-hover:hover { border-color: var(--primary-line); background: var(--primary-wash); }

/* ============================================================
   8. ALERTS / FLASH
   ============================================================ */
.alert { border-radius: var(--r-control); border: 1px solid transparent; font-size: .85rem; font-weight: 500; }
.alert-success { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.alert-danger  { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.alert-warning { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.alert-info    { background: var(--info-bg); color: var(--info); border-color: var(--info-line); }

/* ============================================================
   9. TABLES
   ============================================================ */
.table { color: var(--text); font-size: .875rem; }
.table > :not(caption) > * > * { border-bottom-color: var(--line); padding: .75rem .9rem; }
.table thead th { font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; border-bottom-width: 1px; background: var(--surface-sunken); }
.table-hover tbody tr:hover { background: var(--surface-sunken); }

/* ============================================================
   10. PAGINATION
   ============================================================ */
.page-link { border-radius: var(--r-frame) !important; font-weight: 600; color: var(--text); border-color: var(--line); }
.page-link:hover { background: var(--surface-sunken); border-color: var(--line-strong); color: var(--text); }
.page-item.active .page-link { background: var(--primary); border-color: var(--primary); }

/* ============================================================
   11. EMPTY STATES
   ============================================================ */
.empty-state { text-align: center; padding: var(--gap-xl) var(--gap-md); color: var(--muted); }
.empty-state i, .empty-state .icon { font-size: 2.2rem; color: var(--faint); margin-bottom: 1rem; display: block; }
.empty-state h5 { color: var(--text); margin-bottom: .4rem; }

/* ============================================================
   12. SITE NAVIGATION (frontend)
   Uppercase, letter-spaced, underline-on-active — not pill hover.
   ============================================================ */
#read-progress { position: fixed; top: 0; left: 0; height: 2px; width: 0; background: var(--primary); z-index: 9999; transition: width .1s linear; pointer-events: none; }

.site-nav { background: var(--nav-bg); position: sticky; top: 0; z-index: 1040; border-bottom: 1px solid var(--on-dark-line); }
.nav-wrap { display: flex; align-items: center; height: 66px; padding: 0 1.5rem; gap: 1.5rem; max-width: 1320px; margin: 0 auto; width: 100%; }
.nav-brand { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; text-decoration: none; }
.nav-brand img { height: 30px; width: auto; }
.nav-brand-text { font-family: var(--font-heading); font-weight: 800; font-size: 1.05rem; color: var(--on-dark); letter-spacing: -.01em; white-space: nowrap; }

.nav-center { display: flex; align-items: center; gap: 0; margin: 0 auto; padding: 0; list-style: none; height: 100%; }
.nav-center li { height: 100%; }
.nav-center li a {
    display: flex; align-items: center; height: 100%; padding: 0 1rem;
    color: var(--on-dark-muted); font-size: .78rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .06em;
    border-bottom: 2px solid transparent;
    transition: color var(--fast), border-color var(--fast); white-space: nowrap;
}
.nav-center li a:hover { color: var(--on-dark); }
.nav-center li a.active { color: var(--on-dark); border-bottom-color: var(--primary); }

.nav-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }

.nav-burger {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 38px; height: 38px; padding: 8px; flex-shrink: 0;
    background: transparent; border: 1px solid var(--on-dark-line);
    border-radius: var(--r-control); cursor: pointer; margin-left: auto;
}
.nav-burger span { display: block; height: 1.5px; background: var(--on-dark-muted); }
.nav-burger.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.is-open span:nth-child(2) { opacity: 0; }
.nav-burger.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 991px) { .nav-center, .nav-right { display: none; } .nav-burger { display: flex; } }

/* ============================================================
   13. MOBILE DRAWER
   ============================================================ */
.drawer-mask { display: none; position: fixed; inset: 0; background: rgba(10,10,12,.55); z-index: 1050; }
.drawer-mask.show { display: block; }
.side-drawer {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(300px, 86vw);
    background: var(--nav-bg); z-index: 1051; transform: translateX(-100%);
    transition: transform var(--med); display: flex; flex-direction: column;
    border-right: 1px solid var(--on-dark-line); overflow-y: auto;
}
.side-drawer.show { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.2rem; border-bottom: 1px solid var(--on-dark-line); flex-shrink: 0; }
.drawer-close { width: 32px; height: 32px; border-radius: var(--r-control); border: 1px solid var(--on-dark-line); background: transparent; color: var(--on-dark-muted); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.drawer-close:hover { color: var(--on-dark); border-color: var(--on-dark-faint); }
.drawer-nav { list-style: none; margin: 0; padding: .6rem 0; flex: 1; }
.drawer-nav li a {
    display: flex; align-items: center; gap: .75rem; padding: .7rem 1.2rem;
    color: var(--on-dark-muted); font-size: .85rem; font-weight: 600;
    text-transform: uppercase; letter-spacing: .04em;
    border-left: 2px solid transparent; transition: all var(--fast);
}
.drawer-nav li a:hover, .drawer-nav li a.active { color: var(--on-dark); border-left-color: var(--primary); background: var(--on-dark-hover); }
.drawer-nav li a i { font-size: .9rem; width: 18px; text-align: center; flex-shrink: 0; }
.drawer-actions { padding: 1rem 1.2rem; border-top: 1px solid var(--on-dark-line); display: flex; flex-direction: column; gap: .5rem; flex-shrink: 0; }
@media (min-width: 992px) { .drawer-mask, .side-drawer { display: none !important; } }

/* ============================================================
   14. FOOTER
   ============================================================ */
.site-footer { background: var(--footer-bg); color: var(--footer-text); padding: 4.5rem 0 2rem; border-top: 3px solid var(--primary); }
.footer-brand { font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800; color: var(--footer-text); margin-bottom: 1rem; letter-spacing: -.01em; }
.footer-about { color: color-mix(in srgb, var(--footer-text) 42%, transparent); font-size: .85rem; line-height: 1.85; }
.footer-col-title { color: color-mix(in srgb, var(--footer-text) 55%, transparent); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer .footer-link { color: color-mix(in srgb, var(--footer-text) 46%, transparent); font-size: .85rem; display: block; margin-bottom: .55rem; transition: color var(--fast); text-decoration: none; }
.site-footer .footer-link:hover { color: var(--footer-text); }
.footer-divider { height: 1px; background: color-mix(in srgb, var(--footer-text) 12%, transparent); margin: 3rem 0 1.75rem; }
.footer-bottom { font-size: .78rem; color: color-mix(in srgb, var(--footer-text) 32%, transparent); }
.footer-bottom a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.footer-bottom a:hover { color: var(--footer-text); }

.social-icons a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: var(--r-frame);
    background: transparent; color: color-mix(in srgb, var(--footer-text) 42%, transparent);
    font-size: .85rem; margin-right: .4rem; border: 1px solid color-mix(in srgb, var(--footer-text) 16%, transparent);
    text-decoration: none; transition: all var(--fast);
}
.social-icons a:hover { border-color: var(--primary); color: var(--footer-text); background: color-mix(in srgb, var(--primary) 22%, transparent); }

/* ============================================================
   15. AUTH LAYOUT
   Solid dark panel, thin ruled grid (not radial gradient),
   an accent rule instead of glow.
   ============================================================ */
html.auth-html, body.auth-body { height: 100%; margin: 0; }
.auth-body { font-family: var(--font-body); background: var(--surface-sunken); color: var(--ink); display: flex; min-height: 100vh; overflow-x: hidden; }

.auth-panel { display: none; width: 42%; flex-shrink: 0; position: relative; background: var(--dark); overflow: hidden; flex-direction: column; justify-content: flex-end; padding: 3.5rem; border-right: 3px solid var(--primary); }
@media (min-width: 992px) { .auth-panel { display: flex; } }
.auth-panel-grid {
    position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(color-mix(in srgb, white 5%, transparent) 1px, transparent 1px),
                      linear-gradient(90deg, color-mix(in srgb, white 5%, transparent) 1px, transparent 1px);
    background-size: 44px 44px;
}
.auth-panel-content { position: relative; z-index: 2; }
.auth-panel-logo { margin-bottom: 3.5rem; }
.auth-panel-logo img { height: 28px; }
.auth-panel-logo span { font-family: var(--font-heading); font-size: 1.05rem; font-weight: 800; color: #fff; }
.auth-panel h2 { font-size: clamp(1.6rem,2.5vw,2.1rem); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: .9rem; letter-spacing: -.02em; }
.auth-panel p { color: rgba(255,255,255,.4); font-size: .88rem; line-height: 1.75; margin-bottom: 2.25rem; }
.auth-panel-dots { display: flex; gap: .4rem; align-items: center; }
.auth-panel-dots span { width: 5px; height: 5px; background: rgba(255,255,255,.18); }
.auth-panel-dots span.a { background: var(--primary); width: 18px; }

.auth-panel-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.09); border-radius: var(--r-frame); padding: 1rem 1.2rem; display: flex; align-items: center; gap: .9rem; margin-bottom: 1.1rem; }
.auth-panel-card-icon { width: 36px; height: 36px; border-radius: var(--r-frame); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); display: flex; align-items: center; justify-content: center; color: var(--primary); font-size: 1.05rem; flex-shrink: 0; }
.auth-panel-card-title { font-size: .84rem; font-weight: 700; color: rgba(255,255,255,.85); line-height: 1.2; }
.auth-panel-card-sub { font-size: .72rem; color: rgba(255,255,255,.34); margin-top: 1px; }

.auth-right { flex: 1; display: flex; align-items: center; justify-content: center; padding: 2.5rem 1.5rem; background: var(--surface-sunken); overflow-y: auto; }
.auth-card { background: var(--surface); border-radius: var(--r-card); padding: 2.5rem; width: 100%; max-width: 420px; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(20,21,26,.04); }
.auth-logo-sm { text-align: center; margin-bottom: 2rem; }
.auth-logo-sm img { height: 32px; margin: 0 auto; }
.auth-logo-sm span { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 800; color: var(--ink); }
@media (min-width: 992px) { .auth-logo-sm { display: none; } }
.auth-title { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin-bottom: .3rem; }
.auth-sub { color: var(--muted); font-size: .875rem; margin-bottom: 1.85rem; line-height: 1.55; }

.toggle-pw { background: var(--surface-sunken); border: 1px solid var(--line-strong); border-left: none; padding: .6rem .85rem; color: var(--muted); cursor: pointer; display: flex; align-items: center; font-size: .9rem; transition: color var(--fast); }
.toggle-pw:hover { color: var(--primary-ink); }
.forgot-link { font-size: .78rem; color: var(--muted); font-weight: 600; }
.forgot-link:hover { color: var(--primary-ink); }
.btn-auth { width: 100%; padding: .8rem; border-radius: var(--r-control); font-weight: 700; background: var(--primary); border: 1px solid var(--primary); color: #fff; font-size: .9rem; margin-top: .5rem; transition: background var(--fast); cursor: pointer; letter-spacing: -.005em; }
.btn-auth:hover { background: color-mix(in srgb, var(--primary) 86%, black); }
.auth-footer-link { text-align: center; margin-top: 1.6rem; font-size: .84rem; color: var(--muted); }
.auth-footer-link a { color: var(--primary-ink); font-weight: 700; }
.strength-bar { height: 3px; background: var(--line-strong); margin-top: .45rem; overflow: hidden; }
.strength-fill { height: 100%; transition: width var(--med), background var(--med); width: 0; }

/* ============================================================
   16. USER / ACCOUNT DASHBOARD
   ============================================================ */
.user-body { font-family: var(--font-body); background: var(--surface-sunken); color: var(--ink); font-size: .875rem; line-height: 1.6; overflow-x: hidden; }
.user-body a { text-decoration: none; color: inherit; }

.user-sidebar {
    --sb-w: 226px;
    position: fixed; left: 0; top: 0; bottom: 0; width: var(--sb-w);
    background: var(--dark); display: flex; flex-direction: column; z-index: 200;
    border-right: 1px solid var(--on-dark-line); transition: transform var(--med); overflow-y: auto;
}
.sb-brand { padding: 1.2rem 1.3rem; border-bottom: 1px solid var(--on-dark-line); display: flex; align-items: center; gap: .7rem; flex-shrink: 0; }
.sb-brand img { height: 26px; }
.sb-brand-name { font-family: var(--font-heading); font-weight: 800; font-size: .875rem; color: var(--on-dark); }
.sb-brand-tag { font-size: .62rem; color: var(--on-dark-faint); display: block; margin-top: 1px; text-transform: uppercase; letter-spacing: .08em; }

.sb-nav { list-style: none; margin: 0; padding: .6rem .8rem; flex: 1; }
.sb-nav li a {
    display: flex; align-items: center; gap: .7rem; padding: .58rem .8rem;
    border-radius: var(--r-control); color: var(--nav-text); font-weight: 500; font-size: .82rem;
    transition: all var(--fast); margin-bottom: 1px; border-left: 2px solid transparent;
}
.sb-nav li a:hover { background: var(--on-dark-hover); color: var(--on-dark); }
.sb-nav li a.active { background: var(--on-dark-hover); color: var(--on-dark); font-weight: 700; border-left-color: var(--primary); }
.sb-nav li a i { font-size: .88rem; width: 17px; text-align: center; flex-shrink: 0; }
.sb-badge { margin-left: auto; background: var(--bad); color: #fff; font-size: .6rem; font-weight: 800; padding: .16rem .42rem; border-radius: var(--r-frame); }
.sb-badge-warn { background: var(--warn); color: #fff; }
.sb-divider { height: 1px; background: var(--on-dark-line); margin: .5rem .8rem; }

.sb-group { margin-bottom: 1px; list-style: none; }
.sb-group-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; background: none; border: none; cursor: pointer; padding: .8rem .9rem .4rem; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--on-dark-faint); }
.sb-group-toggle:hover { color: var(--on-dark-muted); }
.sb-group-chevron { font-size: .65rem !important; width: auto !important; transition: transform var(--fast); }
.sb-group-toggle.open .sb-group-chevron { transform: rotate(180deg); }
.sb-group-list { list-style: none; padding: 0; margin: 0; max-height: 0; overflow: hidden; transition: max-height var(--med); }
.sb-group-list.open { max-height: 800px; }

.sb-footer { padding: .9rem 1rem; border-top: 1px solid var(--on-dark-line); flex-shrink: 0; }
.sb-user { display: flex; align-items: center; gap: .7rem; min-width: 0; }
.sb-av { width: 30px; height: 30px; border-radius: var(--r-frame); background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: .76rem; flex-shrink: 0; overflow: hidden; }
.sb-av img { width: 100%; height: 100%; object-fit: cover; }
.sb-uname { font-size: .79rem; font-weight: 700; color: var(--on-dark-muted); line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-email { font-size: .64rem; color: var(--on-dark-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.sb-logout { margin-left: auto; width: 26px; height: 26px; border-radius: var(--r-frame); background: transparent; border: 1px solid var(--on-dark-line); color: var(--on-dark-faint); display: flex; align-items: center; justify-content: center; cursor: pointer; font-size: .82rem; transition: var(--fast); flex-shrink: 0; }
.sb-logout:hover { border-color: var(--bad); color: var(--bad); }

.user-header {
    --sb-w: 226px; --hdr-h: 58px;
    position: fixed; left: var(--sb-w); right: 0; top: 0; height: var(--hdr-h);
    background: var(--surface); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; padding: 0 1.6rem; gap: .9rem; z-index: 100; transition: left var(--med);
}
.user-header .pg-title { font-size: .9rem; font-weight: 700; color: var(--ink); letter-spacing: -.01em; }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.hdr-btn { width: 32px; height: 32px; border-radius: var(--r-control); background: var(--surface); display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: .88rem; transition: var(--fast); border: 1px solid var(--line-strong); text-decoration: none; }
.hdr-btn:hover { border-color: var(--primary); color: var(--primary-ink); }
.hdr-menu-btn { display: none; }

.user-main { --sb-w: 226px; --hdr-h: 58px; margin-left: var(--sb-w); margin-top: var(--hdr-h); padding: 1.85rem; min-height: calc(100vh - var(--hdr-h)); transition: margin-left var(--med); }

@media (max-width: 991px) {
    .user-sidebar { transform: translateX(-100%); }
    .user-sidebar.open { transform: translateX(0); }
    .user-header, .user-main { left: 0; margin-left: 0; }
    .hdr-menu-btn { display: flex; }
}

/* stat / metric tile — rectangular, bordered, no shadow-heavy card */
.stat-tile { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: 1.2rem 1.3rem; }
.stat-tile .stat-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); margin-bottom: .5rem; }
.stat-tile .stat-value { font-family: var(--font-heading); font-size: 1.7rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.stat-tile .stat-delta { font-size: .76rem; font-weight: 600; margin-top: .5rem; }
.stat-tile .stat-delta.up { color: var(--ok); }
.stat-tile .stat-delta.down { color: var(--bad); }

/* ============================================================
   17. FRONTEND MARKETING BLOCKS
   ============================================================ */
.hero { padding: var(--gap-xl) 0; border-bottom: 1px solid var(--line); }
.hero-dark { background: var(--dark); border-bottom: 3px solid var(--primary); color: rgba(255,255,255,.9); }
.hero-dark h1 { color: #fff; }
.hero-dark p { color: rgba(255,255,255,.5); }

.feature-tile { padding: var(--gap-md); border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); height: 100%; }
.feature-tile .feature-icon { width: 44px; height: 44px; border-radius: var(--r-frame); background: var(--primary-wash); border: 1px solid var(--primary-line); display: flex; align-items: center; justify-content: center; color: var(--primary-ink); font-size: 1.2rem; margin-bottom: 1rem; }

.price-card { border: 1px solid var(--line); border-radius: var(--r-card); background: var(--surface); padding: var(--gap-lg) var(--gap-md); height: 100%; }
.price-card.is-featured { border-color: var(--primary); border-width: 2px; position: relative; }
.price-card .price-value { font-family: var(--font-heading); font-size: 2.4rem; font-weight: 800; letter-spacing: -.03em; }
.price-card ul { list-style: none; margin: 0; padding: 0; }
.price-card ul li { display: flex; align-items: flex-start; gap: .6rem; padding: .5rem 0; border-top: 1px solid var(--line); font-size: .88rem; }
.price-card ul li:first-child { border-top: none; }

.blog-card { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.blog-card img { aspect-ratio: 16/10; object-fit: cover; }
.blog-card .blog-card-body { padding: 1.2rem; }
.blog-meta { font-size: .74rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }

/* reveal-on-scroll, used sparingly */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============================================================
   18. ERROR PAGES
   ============================================================ */
.error-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--surface-sunken); padding: 2rem; }
.error-code { font-family: var(--font-heading); font-size: clamp(4rem, 10vw, 7rem); font-weight: 800; color: var(--line-strong); letter-spacing: -.03em; line-height: 1; }
.error-card { text-align: center; max-width: 460px; }
.error-card h1 { font-size: 1.4rem; margin-top: 1rem; }
.error-card p { color: var(--muted); }

/* ============================================================
   19. UTILITIES
   ============================================================ */
.fw-600 { font-weight: 600; }
.text-muted-2 { color: var(--muted) !important; }
.text-faint { color: var(--faint) !important; }
.bg-surface-sunken { background: var(--surface-sunken) !important; }
.border-hairline { border: 1px solid var(--line) !important; }

/* ============================================================
   20. HOME — HERO
   Flat, bordered, one solid accent colour. No gradients,
   no rotating decorative rings, no glow shadows.
   ============================================================ */
.hero-split { padding: 5.5rem 0 4rem; border-bottom: 1px solid var(--line); }
.hero-split .eyebrow { margin-bottom: 1.4rem; }
.hero-split h1 { font-size: clamp(2.1rem, 1.5rem + 2.4vw, 3.3rem); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; margin-bottom: 1.3rem; }
.hero-split h1 .accent { color: var(--primary); }
.hero-split .lead { font-size: 1.05rem; color: var(--muted); line-height: 1.8; max-width: 480px; margin-bottom: 2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-proof { display: flex; align-items: center; gap: .9rem; margin-top: 2rem; font-size: .82rem; color: var(--muted); }
.hero-avatars { display: flex; }
.hero-avatars span { width: 27px; height: 27px; border-radius: var(--r-frame); border: 2px solid var(--body-bg); margin-left: -8px; display: flex; align-items: center; justify-content: center; font-size: .6rem; font-weight: 800; color: #fff; background: var(--primary); flex-shrink: 0; }
.hero-avatars span:first-child { margin-left: 0; }
.hero-proof strong { color: var(--text); }

.perf-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.6rem; border-top: 3px solid var(--primary); }
.perf-card-label { font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); margin-bottom: 1rem; }
.perf-metric { display: flex; align-items: center; gap: 1rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--r-frame); margin-bottom: .6rem; }
.perf-metric:last-of-type { margin-bottom: 0; }
.perf-metric-icon { width: 38px; height: 38px; border-radius: var(--r-frame); flex-shrink: 0; background: var(--primary-wash); border: 1px solid var(--primary-line); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--primary-ink); }
.perf-metric-val { font-family: var(--font-heading); font-size: 1.35rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.perf-metric-label { font-size: .7rem; color: var(--muted); margin-top: 2px; }
.perf-sparkline { display: flex; align-items: flex-end; gap: 3px; height: 42px; margin-top: 1.1rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.perf-sparkline span { flex: 1; background: var(--primary-line); }
.perf-sparkline span.hi { background: var(--primary); }
.perf-live { display: flex; align-items: center; gap: .55rem; margin-top: 1rem; font-size: .78rem; font-weight: 600; color: var(--text); }
.perf-live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); flex-shrink: 0; }

/* ============================================================
   21. HOME — STATS STRIP
   ============================================================ */
.stats-bar { border-bottom: 1px solid var(--line); padding: 2.75rem 0; }
.stat-block { text-align: center; padding: .5rem 1rem; position: relative; }
.stat-block + .stat-block::before { content: ''; position: absolute; left: 0; top: 20%; bottom: 20%; width: 1px; background: var(--line); }
.stat-block .n { font-family: var(--font-heading); font-size: clamp(1.75rem,3.5vw,2.35rem); font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.stat-block .l { font-size: .7rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; margin-top: .4rem; }
@media (max-width: 767px) { .stat-block + .stat-block::before { display: none; } .stat-block { border-top: 1px solid var(--line); } }

/* ============================================================
   22. HOME — SERVICE TILES
   ============================================================ */
.svc-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); padding: 1.75rem; height: 100%; display: flex; flex-direction: column; position: relative; transition: border-color var(--fast), background var(--fast); }
.svc-tile:hover { border-color: var(--primary-line); background: var(--primary-wash); }
.svc-tile .svc-icon { width: 46px; height: 46px; border-radius: var(--r-frame); background: var(--primary-wash); border: 1px solid var(--primary-line); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary-ink); margin-bottom: 1.2rem; }
.svc-tile h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: .5rem; letter-spacing: -.01em; }
.svc-tile p { font-size: .87rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 1.2rem; }
.svc-tile .svc-price { font-size: .875rem; font-weight: 700; color: var(--primary-ink); }
.svc-tile .svc-price small { font-weight: 400; color: var(--faint); font-size: .74rem; }
.svc-arrow { position: absolute; top: 1.5rem; right: 1.5rem; width: 28px; height: 28px; border-radius: var(--r-frame); background: var(--surface-sunken); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: .76rem; transition: all var(--fast); }
.svc-tile:hover .svc-arrow { background: var(--primary); border-color: var(--primary); color: #fff; }

/* ============================================================
   23. HOME — CTA BAND
   Solid dark, not gradient. Accent rule top, that's it.
   ============================================================ */
.cta-band { padding: 5rem 0; background: var(--dark); border-top: 3px solid var(--primary); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.025em; }
.cta-band p { color: rgba(255,255,255,.55); font-size: .95rem; line-height: 1.75; }
.btn-cta-white { padding: .78rem 1.7rem; background: #fff; color: var(--ink); border-radius: var(--r-control); font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; transition: background var(--fast); }
.btn-cta-white:hover { background: rgba(255,255,255,.86); color: var(--ink); }
.btn-cta-outline { padding: .78rem 1.7rem; background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); border-radius: var(--r-control); font-weight: 700; display: inline-flex; align-items: center; gap: .5rem; transition: all var(--fast); }
.btn-cta-outline:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.55); color: #fff; }

/* ============================================================
   24. BLOG / POST CARD (home feed + blog index share this)
   ============================================================ */
.post-card { background: var(--surface); border-radius: var(--r-card); overflow: hidden; border: 1px solid var(--line); transition: border-color var(--fast); height: 100%; display: flex; flex-direction: column; }
.post-card:hover { border-color: var(--line-strong); }
.post-card-thumb { height: 190px; overflow: hidden; position: relative; background: var(--surface-sunken); flex-shrink: 0; }
.post-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card-thumb-ph { height: 100%; display: flex; align-items: center; justify-content: center; color: var(--faint); font-size: 2rem; }
.post-card-body { padding: 1.3rem; display: flex; flex-direction: column; flex: 1; }
.post-cat { display: inline-block; padding: .2rem .6rem; background: var(--primary-wash); color: var(--primary-ink); border: 1px solid var(--primary-line); border-radius: var(--r-frame); font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .7rem; text-decoration: none; align-self: flex-start; }
.post-card-body h5 { font-size: .96rem; font-weight: 700; line-height: 1.42; margin-bottom: .6rem; letter-spacing: -.01em; }
.post-card-body h5 a { color: var(--ink); }
.post-card-body h5 a:hover { color: var(--primary-ink); }
.post-excerpt { font-size: .84rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: .9rem; }
.post-meta { font-size: .74rem; color: var(--faint); display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.post-meta i { margin-right: .3rem; }

/* ============================================================
   25. SERVICES LISTING
   ============================================================ */
.page-hero { background: var(--surface); padding: 3.5rem 0 2.75rem; border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(1.9rem,3.5vw,2.6rem); }
.page-hero .lead-muted { color: var(--muted); max-width: 560px; margin-top: .3rem; }

.filter-tab { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem 1rem; border-radius: var(--r-control); font-size: .8rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); transition: all var(--fast); }
.filter-tab:hover { border-color: var(--primary); color: var(--primary-ink); }
.filter-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.svc-card-full { background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden; transition: border-color var(--fast); height: 100%; display: flex; flex-direction: column; }
.svc-card-full:hover { border-color: var(--line-strong); }
.svc-card-img { height: 195px; overflow: hidden; position: relative; background: var(--surface-sunken); }
.svc-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.svc-card-icon-fallback { height: 100%; background: var(--surface-sunken); display: flex; align-items: center; justify-content: center; font-size: 3rem; color: var(--line-strong); }
.featured-ribbon { position: absolute; top: 1rem; left: 1rem; background: var(--primary); color: #fff; padding: .25rem .65rem; border-radius: var(--r-frame); font-size: .68rem; font-weight: 700; display: flex; align-items: center; gap: .3rem; }
.svc-card-body { padding: 1.5rem; flex: 1; display: flex; flex-direction: column; }
.svc-card-cat { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-ink); margin-bottom: .5rem; }
.svc-card-body h4 { font-size: 1.02rem; font-weight: 700; margin-bottom: .6rem; line-height: 1.3; }
.svc-card-body p { font-size: .875rem; color: var(--muted); line-height: 1.7; flex: 1; margin-bottom: 1.2rem; }
.svc-card-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--line); }
.svc-card-footer .svc-price { font-weight: 700; font-size: .92rem; color: var(--ink); }
.svc-card-footer .svc-price small { font-size: .74rem; color: var(--faint); font-weight: 400; }
.delivery-tag { font-size: .74rem; color: var(--faint); display: flex; align-items: center; gap: .3rem; }
.btn-view-service { display: inline-flex; align-items: center; gap: .4rem; padding: .48rem .95rem; background: var(--primary); color: #fff; border-radius: var(--r-control); font-size: .8rem; font-weight: 600; transition: background var(--fast); }
.btn-view-service:hover { background: color-mix(in srgb, var(--primary) 86%, black); color: #fff; }

/* ============================================================
   26. SERVICE DETAIL
   ============================================================ */
.svc-hero-icon { width: 60px; height: 60px; border-radius: var(--r-frame); background: var(--primary-wash); border: 1px solid var(--primary-line); display: flex; align-items: center; justify-content: center; font-size: 1.65rem; color: var(--primary-ink); margin-bottom: 1.5rem; }
.svc-cat-tag { display: inline-flex; align-items: center; gap: .4rem; padding: .28rem .75rem; background: var(--primary-wash); color: var(--primary-ink); border: 1px solid var(--primary-line); border-radius: var(--r-frame); font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 1rem; }

.price-sidebar { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--primary); border-radius: var(--r-card); padding: 1.9rem; position: sticky; top: 90px; }
.price-sidebar .price-type-label { font-size: .78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.price-sidebar .price-display { font-size: 2.1rem; font-weight: 800; color: var(--ink); font-family: var(--font-heading); letter-spacing: -.02em; }
.delivery-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .85rem; background: var(--surface-sunken); border: 1px solid var(--line); border-radius: var(--r-frame); font-size: .82rem; font-weight: 600; }
.btn-book { display: block; width: 100%; padding: .95rem; background: var(--primary); color: #fff; border-radius: var(--r-control); font-weight: 700; font-size: .95rem; text-align: center; transition: background var(--fast); border: none; margin-top: 1.5rem; }
.btn-book:hover { background: color-mix(in srgb, var(--primary) 86%, black); color: #fff; }

.content-body { font-size: .975rem; line-height: 1.85; color: var(--text); }
.content-body h2 { font-size: 1.45rem; font-weight: 700; margin: 2rem 0 1rem; }
.content-body h3 { font-size: 1.15rem; font-weight: 700; margin: 1.5rem 0 .75rem; }
.content-body ul { padding-left: 1.4rem; margin-bottom: 1.2rem; }
.content-body li { margin-bottom: .4rem; }
.content-body img { border-radius: var(--r-frame); max-width: 100%; height: auto; margin: 1.5rem 0; }
.content-body video { border-radius: var(--r-frame); max-width: 100%; width: 100%; margin: 1.5rem 0; background: #000; }
.content-body audio { width: 100%; margin: 1.5rem 0; }

.requirements-box { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--primary); border-radius: var(--r-card); padding: 1.6rem; }

.related-tile { background: var(--surface); border-radius: var(--r-card); padding: 1.35rem; border: 1px solid var(--line); transition: border-color var(--fast); display: block; color: inherit; }
.related-tile:hover { border-color: var(--primary-line); color: inherit; }
.related-tile-icon { width: 38px; height: 38px; border-radius: var(--r-frame); background: var(--primary-wash); border: 1px solid var(--primary-line); display: flex; align-items: center; justify-content: center; color: var(--primary-ink); margin-bottom: .75rem; }

/* ============================================================
   27. GENERIC CMS PAGE BODY
   ============================================================ */
.page-body { font-size: 1rem; line-height: 1.9; color: var(--text); max-width: 780px; }
.page-body h2 { font-size: 1.55rem; font-weight: 700; margin: 2.5rem 0 1rem; }
.page-body h3 { font-size: 1.2rem; font-weight: 700; margin: 2rem 0 .75rem; }
.page-body p { margin-bottom: 1.4rem; }
.page-body ul, .page-body ol { padding-left: 1.7rem; margin-bottom: 1.4rem; }
.page-body li { margin-bottom: .5rem; }
.page-body blockquote { border-left: 3px solid var(--primary); padding: 1rem 1.5rem; background: var(--surface-sunken); margin: 2rem 0; font-style: italic; color: var(--muted); }
.page-body a { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 2px; }
.page-body img { border-radius: var(--r-frame); max-width: 100%; }
.page-body table { width: 100%; margin-bottom: 1.4rem; border-collapse: collapse; }
.page-body table th, .page-body table td { padding: .75rem 1rem; border: 1px solid var(--line); }
.page-body table th { background: var(--surface-sunken); font-weight: 600; }

/* ============================================================
   28. DIGITAL PRODUCTS LISTING
   ============================================================ */
.dp-list-hero { background: var(--surface); border-bottom: 1px solid var(--line); padding: 3.25rem 0 2.25rem; }
.dp-list-hero h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; margin-bottom: .5rem; }
.dp-list-hero p { color: var(--muted); font-size: 1rem; max-width: 560px; }
.dp-breadcrumb { font-size: .8rem; color: var(--faint); margin-bottom: 1rem; display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; }
.dp-breadcrumb a { color: var(--muted); }
.dp-breadcrumb a:hover { color: var(--primary-ink); }

.dp-filter-bar { background: var(--surface); border-bottom: 1px solid var(--line); padding: .9rem 0; position: sticky; top: 66px; z-index: 100; }
.dp-filter-inner { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }

.dp-cat-pill { display: inline-flex; align-items: center; gap: .3rem; padding: .34rem .8rem; border-radius: var(--r-control); font-size: .78rem; font-weight: 600; border: 1px solid var(--line-strong); color: var(--muted); background: var(--surface); cursor: pointer; transition: all var(--fast); text-decoration: none; white-space: nowrap; }
.dp-cat-pill:hover { border-color: var(--primary); color: var(--primary-ink); }
.dp-cat-pill.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.dp-product-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; transition: border-color var(--fast); display: flex; flex-direction: column; height: 100%; }
.dp-product-card:hover { border-color: var(--line-strong); }
.dp-card-image { position: relative; overflow: hidden; background: var(--surface-sunken); height: 190px; }
.dp-card-image img { width: 100%; height: 190px; object-fit: cover; display: block; }
.dp-card-placeholder { width: 100%; height: 190px; display: flex; align-items: center; justify-content: center; font-size: 2.6rem; background: var(--surface-sunken); color: var(--line-strong); }
.dp-card-badge { position: absolute; top: .6rem; left: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.dp-card-badge span { font-size: .66rem; font-weight: 700; padding: .2rem .55rem; border-radius: var(--r-frame); }
.dp-badge-free { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.dp-badge-featured { background: var(--primary); color: #fff; }
.dp-badge-type { background: rgba(10,10,12,.72); color: #fff; }

.dp-card-body { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; }
.dp-card-cat { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--primary-ink); margin-bottom: .4rem; }
.dp-card-title { font-size: .95rem; font-weight: 700; line-height: 1.35; color: var(--ink); margin-bottom: .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dp-card-desc { font-size: .8rem; color: var(--muted); line-height: 1.55; margin-bottom: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.dp-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: .75rem; border-top: 1px solid var(--line); }
.dp-card-price { font-size: 1rem; font-weight: 800; color: var(--ink); }
.dp-card-price .compare { font-size: .76rem; color: var(--faint); text-decoration: line-through; font-weight: 400; margin-left: .3rem; }
.dp-card-price.free { color: var(--ok); }
.dp-card-rating { display: flex; align-items: center; gap: .3rem; font-size: .78rem; color: var(--muted); }
.dp-card-rating .stars { color: var(--warn); }

/* ============================================================
   29. DIGITAL PRODUCT DETAIL
   ============================================================ */
/* ═══════════════════════════════════════════
   DIGITAL PRODUCT SINGLE — FULL PAGE STYLES
═══════════════════════════════════════════ */

/* Hero */
.dp-hero {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    padding: 3.5rem 0 0;
}


.dp-badge-row {
    display: flex;
    align-items: center;
    gap: .5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}
.dp-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .7rem;
    background: var(--primary-wash);
    color: var(--primary);
    border-radius: var(--r-frame);
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
}
.dp-free-tag {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    padding: .25rem .75rem;
    background: var(--ok-bg);
    color: var(--ok);
    border-radius: var(--r-frame);
    font-size: .72rem;
    font-weight: 700;
}

.dp-title {
    font-size: clamp(1.75rem, 3.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: .75rem;
    letter-spacing: -.02em;
    color: var(--ink);
}
.dp-short-desc {
    font-size: 1.05rem;
    color: var(--text);
    line-height: 1.75;
    max-width: 700px;
    margin-bottom: 1.5rem;
}
.dp-meta-row {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    font-size: .85rem;
    color: var(--muted);
}
.dp-meta-item {
    display: flex;
    align-items: center;
    gap: .35rem;
}
.dp-meta-item i { color: var(--primary); }

/* Rating stars in hero */
.dp-stars-hero { display: flex; align-items: center; gap: .35rem; }
.dp-stars-hero .stars { color: var(--warn); letter-spacing: 1px; font-size: 1rem; }
.dp-stars-hero .rating-val { font-weight: 700; color: var(--ink); }
.dp-stars-hero .rating-cnt { color: var(--faint); font-size: .82rem; }

/* Cover image wrapper */
.dp-cover-wrap {
    border-radius: var(--r-card);
    overflow: hidden;
    border: 1px solid var(--line);
    max-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface-sunken);
}
.dp-cover-wrap img { width: 100%; height: 420px; object-fit: cover; }

/* ── TABS ──────────────────────────────────────── */
.dp-tabs-section {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 62px;
    z-index: 100;
}
.dp-tabs {
    display: flex;
    gap: 0;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 1.5rem;
}
.dp-tab-btn {
    background: none;
    border: none;
    padding: 1rem 1.5rem;
    font-size: .88rem;
    font-weight: 600;
    color: var(--muted);
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all .2s;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: .4rem;
}
.dp-tab-btn:hover { color: var(--primary); }
.dp-tab-btn.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}
.dp-tab-badge {
    background: var(--primary);
    color: #fff;
    font-size: .6rem;
    font-weight: 800;
    padding: .1rem .35rem;
    border-radius: var(--r-frame);
}

/* ── CONTENT AREA ──────────────────────────────── */
.dp-content-section { padding: 3rem 0; }
.dp-tab-panel { display: none; }
.dp-tab-panel.active { display: block; }

/* Details / Description */
.dp-rich-content {
    font-size: .975rem;
    line-height: 1.85;
    color: var(--text);
}
.dp-rich-content h2 { font-size: 1.5rem; font-weight: 700; margin: 2.25rem 0 1rem; color: var(--ink); }
.dp-rich-content h3 { font-size: 1.2rem; font-weight: 700; margin: 1.75rem 0 .75rem; color: var(--ink); }
.dp-rich-content ul, .dp-rich-content ol { padding-left: 1.4rem; margin-bottom: 1.25rem; }
.dp-rich-content li { margin-bottom: .45rem; }
.dp-rich-content p { margin-bottom: 1.15rem; }
.dp-rich-content img { border-radius: var(--r-control); max-width: 100%; margin: 1.5rem 0; }
.dp-rich-content video { border-radius: var(--r-control); max-width: 100%; width: 100%; margin: 1.5rem 0; background: #000; }
.dp-rich-content audio { width: 100%; margin: 1.5rem 0; }
.dp-rich-content a { color: var(--primary); }
.dp-rich-content blockquote {
    border-left: 4px solid var(--primary);
    padding: .75rem 1.25rem;
    background: var(--primary-wash);
    border-radius: 0 8px 8px 0;
    margin: 1.5rem 0;
    font-style: italic;
}

/* Features grid */
.dp-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.dp-feature-card {
    background: var(--primary-wash);
    border: 1px solid var(--primary-line);
    border-radius: var(--r-card);
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: .9rem;
}
.dp-feature-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--r-control);
    background: var(--primary-wash);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: .95rem;
    flex-shrink: 0;
}
.dp-feature-card h4 { font-size: .9rem; font-weight: 700; margin-bottom: .2rem; }
.dp-feature-card p { font-size: .82rem; color: var(--muted); margin: 0; }

/* ── RATINGS TAB ──────────────────────────────── */
.dp-rating-overview {
    display: flex;
    gap: 2.5rem;
    align-items: center;
    flex-wrap: wrap;
    padding: 2rem;
    background: var(--primary-wash);
    border-radius: var(--r-card);
    border: 1px solid var(--primary-line);
    margin-bottom: 2rem;
}
.dp-rating-big {
    text-align: center;
    flex-shrink: 0;
}
.dp-rating-big .num {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1;
    color: var(--ink);
    font-family: var(--font-heading);
}
.dp-rating-big .stars-row { color: var(--warn); font-size: 1.2rem; letter-spacing: 2px; margin: .25rem 0; }
.dp-rating-big .cnt { font-size: .8rem; color: var(--faint); }

.dp-rating-bars { flex: 1; min-width: 200px; }
.dp-rating-bar-row {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .4rem;
    font-size: .82rem;
}
.dp-rating-bar-row .label { width: 55px; color: var(--muted); white-space: nowrap; }
.dp-rating-bar-track {
    flex: 1;
    height: 8px;
    background: var(--line-strong);
    border-radius: var(--r-frame);
    overflow: hidden;
}
.dp-rating-bar-fill {
    height: 100%;
    background: var(--warn);
    border-radius: var(--r-frame);
    transition: width .6s ease;
}
.dp-rating-bar-row .count { width: 24px; color: var(--faint); text-align: right; }

/* Individual review cards */
.dp-review-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    padding: 1.5rem;
    margin-bottom: 1rem;
    transition: border-color .16s;
}
.dp-review-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: .75rem;
}
.dp-reviewer-info { display: flex; align-items: center; gap: .75rem; }
.dp-reviewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-wash);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}
.dp-reviewer-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.dp-reviewer-name { font-weight: 700; font-size: .9rem; }
.dp-reviewer-date { font-size: .75rem; color: var(--faint); }
.dp-review-stars { color: var(--warn); letter-spacing: 1px; font-size: .95rem; }
.dp-review-title { font-weight: 700; font-size: .95rem; margin-bottom: .35rem; }
.dp-review-body { font-size: .875rem; color: var(--text); line-height: 1.7; }
.dp-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    font-size: .7rem;
    font-weight: 700;
    color: var(--ok);
    background: var(--ok-bg);
    padding: .15rem .5rem;
    border-radius: var(--r-frame);
    margin-top: .4rem;
}

/* Write a review */
.dp-review-form-wrap {
    background: var(--primary-wash);
    border: 1px solid var(--primary-line);
    border-radius: var(--r-card);
    padding: 2rem;
    margin-top: 2.5rem;
}
.dp-review-form-wrap h4 { font-weight: 800; margin-bottom: 1.25rem; }

.dp-review-locked {
    display: flex;
    align-items: center;
    gap: .6rem;
    background: var(--surface-sunken);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-control);
    padding: 1rem 1.25rem;
    font-size: .85rem;
    color: var(--text);
    margin-top: 1.5rem;
}
.dp-review-locked i { color: var(--faint); font-size: 1.1rem; flex-shrink: 0; }

.dp-star-picker { display: flex; gap: .35rem; margin-bottom: 1rem; }
.dp-star-picker input { display: none; }
.dp-star-picker label {
    font-size: 1.8rem;
    color: var(--line-strong);
    cursor: pointer;
    transition: color .15s;
}
.dp-star-picker input:checked ~ label,
.dp-star-picker label:hover,
.dp-star-picker label:hover ~ label { color: var(--warn); }
/* Reverse trick for RTL star selection */
.dp-star-picker { flex-direction: row-reverse; }
.dp-star-picker input:checked ~ label,
.dp-star-picker label:hover,
.dp-star-picker label:hover ~ label { color: var(--warn); }

/* ── PRICE SIDEBAR CARD ────────────────────────── */
.dp-price-card {
    background: var(--surface);
    border: 1px solid var(--line); border-top: 3px solid var(--primary);
    border-radius: var(--r-card);
    padding: 2rem 1.75rem;
    position: sticky;
    top: 80px;
}
.dp-price-main {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    margin-bottom: .35rem;
}
.dp-price-amount {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
    font-family: var(--font-heading);
    line-height: 1;
}
.dp-price-compare {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--faint);
    text-decoration: line-through;
}
.dp-price-save {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    font-size: .75rem;
    font-weight: 700;
    color: var(--ok);
    background: var(--ok-bg);
    padding: .2rem .6rem;
    border-radius: var(--r-frame);
    margin-bottom: 1.25rem;
}
.dp-buy-btn {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: #fff;
    border-radius: var(--r-control);
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: all .25s;
    margin-bottom: .75rem;
    text-decoration: none;
}
.dp-buy-btn:hover {
    background: color-mix(in srgb, var(--primary) 86%, black);
    color: #fff;
}
.dp-buy-btn.free { background: var(--ok); }
.dp-buy-btn.free:hover { background: color-mix(in srgb, var(--ok) 86%, black); }

.dp-file-info {
    border-top: 1px solid var(--line);
    margin-top: 1.25rem;
    padding-top: 1.25rem;
}
.dp-file-row {
    display: flex;
    justify-content: space-between;
    font-size: .82rem;
    margin-bottom: .5rem;
    color: var(--text);
}
.dp-file-row span:first-child { color: var(--faint); }

.dp-bonus-info {
    margin-top: 1.25rem;
    padding: .9rem 1rem;
    border-radius: var(--r-control);
    background: var(--warn-bg);
    border: 1px solid var(--warn-line);
}
.dp-bonus-row {
    display: flex;
    align-items: center;
    gap: .55rem;
    font-size: .8rem;
    color: var(--text);
}
.dp-bonus-row + .dp-bonus-row { margin-top: .5rem; }
.dp-bonus-row i { color: var(--warn); font-size: .95rem; flex-shrink: 0; }
.dp-bonus-row strong { color: var(--ink); }

.dp-guarantee {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .78rem;
    color: var(--muted);
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}
.dp-guarantee i { color: var(--ok); font-size: 1rem; }

/* Related products */
.dp-related-card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    overflow: hidden;
    transition: all .25s;
    display: block;
    color: inherit;
    height: 100%;
}
.dp-related-card:hover {
    border-color: var(--primary-line);
    color: inherit;
}
.dp-related-card img { width: 100%; height: 160px; object-fit: cover; }
.dp-related-placeholder {
    width: 100%; height: 160px;
    background: var(--surface-sunken);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; color: var(--line-strong);
}
.dp-related-body { padding: 1rem; }
.dp-related-price { font-weight: 700; color: var(--primary); font-size: .9rem; }

/* ── SUBSCRIPTION PLAN PICKER ──────────────────────── */
.dp-plan-section { margin-bottom: 1.25rem; }
.dp-plan-label {
    font-size: .78rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted); margin-bottom: .6rem;
}
.dp-plan-options { display: flex; flex-direction: column; gap: .5rem; }
.dp-plan-option input[type="radio"] { display: none; }
.dp-plan-option label {
    display: flex; align-items: center; justify-content: space-between;
    padding: .75rem 1rem;
    border: 2px solid var(--line-strong);
    border-radius: var(--r-control);
    cursor: pointer;
    transition: all .18s;
    background: var(--surface-sunken);
    gap: .75rem;
}
.dp-plan-option input:checked + label {
    border-color: var(--primary);
    background: var(--primary-wash);
}
.dp-plan-option label:hover { border-color: var(--primary); }
.dp-plan-name { font-weight: 700; font-size: .88rem; color: var(--ink); }
.dp-plan-cycle {
    font-size: .68rem; font-weight: 700;
    background: var(--primary-wash);
    color: var(--primary); padding: .15rem .5rem; border-radius: var(--r-frame);
    margin-left: .35rem;
}
.dp-plan-price { font-size: 1rem; font-weight: 800; color: var(--primary); white-space: nowrap; }
.dp-plan-price span { font-size: .72rem; font-weight: 500; color: var(--muted); }
.dp-plan-trial {
    display: inline-block; font-size: .68rem; font-weight: 700;
    color: var(--ok); background: var(--ok-bg); padding: .1rem .45rem;
    border-radius: var(--r-frame); margin-left: .35rem;
}
.dp-sub-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .25rem .75rem; background: var(--primary-wash);
    color: var(--primary); border-radius: var(--r-frame); font-size: .72rem; font-weight: 700;
    margin-bottom: .75rem;
}
.dp-sub-note {
    font-size: .75rem; color: var(--muted);
    display: flex; align-items: center; gap: .35rem;
    margin-top: .6rem;
}

/* ============================================================
   30. DIGITAL PRODUCT CHECKOUT
   ============================================================ */
.dp-checkout-wrap { min-height: 70vh; padding: 4rem 0; background: var(--surface-sunken); }
.dp-checkout-card { background: var(--surface); border-radius: var(--r-card); border: 1px solid var(--line); overflow: hidden; }
.dp-checkout-header { padding: 2rem 2rem 1.5rem; border-bottom: 1px solid var(--line); }
.dp-checkout-product { display: flex; align-items: center; gap: 1rem; }
.dp-checkout-thumb { width: 70px; height: 70px; border-radius: var(--r-control); object-fit: cover; border: 1px solid var(--line); flex-shrink: 0; }
.dp-checkout-thumb-placeholder { width: 70px; height: 70px; border-radius: var(--r-control); background: var(--primary-wash); border: 1px solid var(--primary-line); display: flex; align-items: center; justify-content: center; color: var(--primary-ink); font-size: 1.5rem; flex-shrink: 0; }
.dp-checkout-product-name { font-size: 1.02rem; font-weight: 700; color: var(--ink); margin-bottom: .2rem; }
.dp-checkout-product-cat { font-size: .78rem; color: var(--faint); }
.dp-checkout-price-tag { margin-left: auto; text-align: right; flex-shrink: 0; }
.dp-checkout-price-tag .amount { font-size: 1.45rem; font-weight: 800; color: var(--ink); font-family: var(--font-heading); line-height: 1; }
.dp-checkout-price-tag .currency { font-size: .8rem; color: var(--faint); margin-top: .15rem; }
.dp-checkout-body { padding: 2rem; }
.dp-checkout-label { font-weight: 700; font-size: .78rem; color: var(--text); margin-bottom: .4rem; display: block; text-transform: uppercase; letter-spacing: .04em; }
.dp-gateway-options { display: flex; gap: .7rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.dp-gateway-opt { flex: 1; min-width: 130px; }
.dp-gateway-opt input[type="radio"] { display: none; }
.dp-gateway-opt label { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--r-control); cursor: pointer; font-weight: 600; font-size: .86rem; color: var(--muted); transition: all var(--fast); background: var(--surface); }
.dp-gateway-opt input:checked + label { border-color: var(--primary); color: var(--primary-ink); background: var(--primary-wash); }
.dp-gateway-opt label:hover { border-color: var(--primary); color: var(--primary-ink); }
.dp-submit-btn { display: block; width: 100%; padding: .95rem; background: var(--primary); color: #fff; border-radius: var(--r-control); font-weight: 700; font-size: .95rem; text-align: center; border: none; cursor: pointer; transition: background var(--fast); margin-top: 1.5rem; }
.dp-submit-btn:hover { background: color-mix(in srgb, var(--primary) 86%, black); }
.dp-checkout-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .75rem; color: var(--faint); margin-top: 1rem; }
.dp-checkout-secure i { color: var(--ok); }
.dp-plan-summary { display: flex; align-items: center; justify-content: space-between; background: var(--primary-wash); border: 1px solid var(--primary-line); border-radius: var(--r-control); padding: .75rem 1rem; margin-bottom: 1rem; font-size: .85rem; }
.dp-plan-summary strong { color: var(--primary-ink); }
.dp-sub-info { display: flex; align-items: flex-start; gap: .5rem; background: var(--ok-bg); border: 1px solid var(--ok-line); border-radius: var(--r-frame); padding: .65rem .85rem; font-size: .78rem; color: var(--ok); margin-top: .75rem; }

/* ============================================================
   30b. OAUTH AUTHORIZE
   ============================================================ */
.oauth-card { max-width: 420px; margin: 0 auto; }
.oauth-app-logo { width: 56px; height: 56px; border-radius: var(--r-control); object-fit: cover; border: 1px solid var(--line-strong); }
.oauth-app-icon { width: 56px; height: 56px; border-radius: var(--r-control); background: var(--primary); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: #fff; font-weight: 700; }
.scope-row { display: flex; align-items: flex-start; gap: .75rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.scope-row:last-child { border-bottom: none; }
.scope-icon { width: 32px; height: 32px; border-radius: var(--r-frame); background: var(--primary-wash); display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--primary-ink); font-size: .85rem; margin-top: 1px; }
.scope-label { font-weight: 600; font-size: .85rem; color: var(--ink); }
.scope-desc { font-size: .78rem; color: var(--muted); margin: 1px 0 0; }
.badge-approval { font-size: .68rem; background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); border-radius: var(--r-frame); padding: 1px 6px; font-weight: 600; }
.warning-banner { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: var(--r-control); padding: .75rem 1rem; margin-bottom: 1.2rem; display: flex; gap: .6rem; align-items: flex-start; }
.warning-banner i { color: var(--warn); font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.warning-banner p { margin: 0; font-size: .8rem; color: var(--warn); line-height: 1.5; }
.oauth-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-control); padding: .75rem 1rem; }
.btn-allow { background: var(--primary); color: #fff; border: none; border-radius: var(--r-control); padding: .6rem 1.4rem; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background var(--fast); }
.btn-allow:hover { background: color-mix(in srgb, var(--primary) 86%, black); }
.btn-deny { background: var(--surface-sunken); color: var(--text); border: 1px solid var(--line-strong); border-radius: var(--r-control); padding: .6rem 1.4rem; font-weight: 600; font-size: .88rem; cursor: pointer; transition: background var(--fast); }
.btn-deny:hover { background: color-mix(in srgb, var(--text) 8%, var(--surface-sunken)); }
.connect-arrow { font-size: 1.2rem; color: var(--faint); margin: 0 .5rem; }
.site-icon { width: 40px; height: 40px; border-radius: var(--r-frame); background: var(--primary); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 800; font-size: 1rem; }
.restricted-row { display: flex; align-items: center; gap: .5rem; padding: .4rem 0; font-size: .8rem; color: var(--faint); }
.restricted-row i { color: var(--line-strong); }

/* ============================================================
   31. BLOG ARTICLE (single post)
   ============================================================ */
/* Enhanced Styles - Premium Design */
.post-hero {
    background: var(--surface);
    padding: 5rem 0 3rem;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}

.post-hero { border-top: 3px solid var(--primary); }

.post-hero .container {
    position: relative;
    z-index: 1;
}

.cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 1rem;
    background: color-mix(in srgb,var(--primary) 8%,transparent);
    color: var(--primary);
    border-radius: var(--r-frame);
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 1px solid color-mix(in srgb,var(--primary) 14%,transparent);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.cat-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.post-hero h1 {
    font-size: clamp(2rem, 4.5vw, 3.2rem);
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.2rem;
    letter-spacing: -0.025em;
    color: var(--ink);
}

.post-lead {
    font-size: 1.1rem;
    color: var(--muted);
    line-height: 1.8;
    max-width: 680px;
    margin-bottom: 0;
    font-weight: 400;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.8rem;
    align-items: center;
    font-size: 0.82rem;
    color: var(--faint);
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.article-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    transition: color 0.2s;
}

.article-meta span:hover {
    color: var(--primary);
}

.article-meta i {
    font-size: 0.9rem;
    opacity: 0.7;
}

.post-img-wrap {
    width: 100%;
    max-height: 550px;
    overflow: hidden;
    position: relative;
}

.post-img-wrap img {
    width: 100%;
    max-height: 550px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-img-wrap:hover img {
    transform: scale(1.02);
}

.post-body {
    padding: 3.5rem 0 5rem;
    background: var(--surface-sunken);
}

.post-content {
    font-size: 1.05rem;
    line-height: 2;
    color: var(--ink);
    max-width: 720px;
}

.post-content p:empty { display: none; }
.post-content p + p:empty { display: none; }
.post-content br + br { display: none; }

.post-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 3rem 0 1.2rem;
    letter-spacing: -0.025em;
    color: var(--ink);
    position: relative;
    padding-bottom: 0.5rem;
}

.post-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: var(--primary);
    border-radius: 3px;
}

.post-content h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 2.5rem 0 1rem;
    color: var(--ink);
}

.post-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 1.8rem 0 0.8rem;
    color: var(--ink);
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text);
}

.post-content ul, .post-content ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content li {
    margin-bottom: 0.6rem;
    position: relative;
}

.post-content ul li::marker {
    color: var(--primary);
}

.post-content blockquote {
    border-left: 4px solid var(--primary);
    padding: 1.2rem 1.8rem;
    background: color-mix(in srgb,var(--primary) 4%,var(--primary-wash));
    border-radius: 0 16px 16px 0;
    margin: 2.5rem 0;
    font-style: italic;
    color: var(--text);
    position: relative;
}

.post-content blockquote::before {
    content: '"';
    font-size: 3rem;
    color: color-mix(in srgb,var(--primary) 20%,transparent);
    position: absolute;
    top: -0.5rem;
    left: 0.8rem;
    font-family: Georgia, serif;
}

.post-content img {
    border-radius: var(--r-card);
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border: 1px solid var(--line);
}

.post-content video {
    border-radius: var(--r-card);
    max-width: 100%;
    width: 100%;
    margin: 2rem 0;
    background: #000;
    border: 1px solid var(--line);
}

.post-content audio {
    width: 100%;
    margin: 2rem 0;
    border-radius: var(--r-control);
}

.post-content a {
    color: var(--primary);
    text-decoration: none;
    border-bottom: 2px solid color-mix(in srgb,var(--primary) 20%,transparent);
    transition: all 0.2s;
    font-weight: 500;
}

.post-content a:hover {
    border-bottom-color: var(--primary);
    color: color-mix(in srgb,var(--primary) 80%,#000);
}

.post-content code {
    background: var(--surface-sunken);
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.88em;
    color: var(--ink);
    font-weight: 500;
}

/* ========================================
   ADVANCED ql-code-block-container STYLES
   ======================================== */

.ql-code-block-container {
    background: #0d1117;
    border-radius: var(--r-card);
    overflow: hidden;
    margin: 2.5rem 0;
    border: 1px solid rgba(255,255,255,0.08);
    position: relative;
}

/* Code Block Header */
.ql-code-block-container .ql-code-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1.5rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.04);
    user-select: none;
}

.ql-code-block-container .ql-code-header .ql-code-language {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.35);
}

.ql-code-block-container .ql-code-header .ql-code-language .ql-language-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

/* Language color dots */
.ql-language-dot.javascript { background: #f7df1e; }
.ql-language-dot.python { background: #3776ab; }
.ql-language-dot.php { background: #777bb4; }
.ql-language-dot.html { background: #e34f26; }
.ql-language-dot.css { background: #1572b6; }
.ql-language-dot.java { background: #b07219; }
.ql-language-dot.ruby { background: #cc342d; }
.ql-language-dot.go { background: #00add8; }
.ql-language-dot.rust { background: #dea584; }
.ql-language-dot.swift { background: #fa7343; }
.ql-language-dot.typescript { background: #3178c6; }
.ql-language-dot.vue { background: #4fc08d; }
.ql-language-dot.react { background: #61dafb; }
.ql-language-dot.default { background: #6e7681; }

.ql-code-block-container .ql-code-header .ql-code-actions {
    display: flex;
    gap: 0.4rem;
}

.ql-code-block-container .ql-code-header .ql-code-actions button {
    background: transparent;
    border: none;
    color: rgba(255,255,255,0.25);
    padding: 0.3rem 0.7rem;
    border-radius: 6px;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 500;
}

.ql-code-block-container .ql-code-header .ql-code-actions button:hover {
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
}

.ql-code-block-container .ql-code-header .ql-code-actions button.ql-copy-btn {
    color: rgba(255,255,255,0.3);
}

.ql-code-block-container .ql-code-header .ql-code-actions button.ql-copy-btn:hover {
    color: #58a6ff;
}

.ql-code-block-container .ql-code-header .ql-code-actions button.ql-copy-btn.copied {
    color: #3fb950;
}

.ql-code-block-container .ql-code-header .ql-code-actions button.ql-copy-btn.copied .ql-copy-text {
    display: none;
}

.ql-code-block-container .ql-code-header .ql-code-actions button.ql-copy-btn .ql-copy-success {
    display: none;
}

.ql-code-block-container .ql-code-header .ql-code-actions button.ql-copy-btn.copied .ql-copy-success {
    display: inline;
}

/* Code Block Body - with line numbers */
.ql-code-block-container .ql-code-body {
    display: flex;
    position: relative;
    overflow-x: auto;
}

.ql-code-block-container .ql-code-body .ql-line-numbers {
    min-width: 3.5rem;
    padding: 1.5rem 0.8rem 1.5rem 1.2rem;
    text-align: right;
    color: rgba(255,255,255,0.15);
    font-size: 0.8rem;
    line-height: 1.8;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
    user-select: none;
    border-right: 1px solid rgba(255,255,255,0.04);
    background: rgba(255,255,255,0.01);
    flex-shrink: 0;
}

.ql-code-block-container .ql-code-body .ql-line-numbers span {
    display: block;
    transition: color 0.2s;
}

.ql-code-block-container .ql-code-body .ql-line-numbers span.active {
    color: rgba(255,255,255,0.4);
}

.ql-code-block-container .ql-code-body pre {
    flex: 1;
    background: transparent;
    color: #e6edf3;
    padding: 1.5rem 1.8rem;
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.8;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', 'SF Mono', monospace;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

.ql-code-block-container .ql-code-body pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
    font-weight: 400;
    font-family: inherit;
}

/* Syntax Highlighting - GitHub Dark Theme */
.ql-code-block-container .ql-code-body pre code .hljs-comment,
.ql-code-block-container .ql-code-body pre code .hljs-quote {
    color: #8b949e;
    font-style: italic;
}

.ql-code-block-container .ql-code-body pre code .hljs-keyword,
.ql-code-block-container .ql-code-body pre code .hljs-selector-tag,
.ql-code-block-container .ql-code-body pre code .hljs-subst {
    color: #ff7b72;
}

.ql-code-block-container .ql-code-body pre code .hljs-number,
.ql-code-block-container .ql-code-body pre code .hljs-literal,
.ql-code-block-container .ql-code-body pre code .hljs-variable,
.ql-code-block-container .ql-code-body pre code .hljs-template-variable,
.ql-code-block-container .ql-code-body pre code .hljs-tag .hljs-attr {
    color: #79c0ff;
}

.ql-code-block-container .ql-code-body pre code .hljs-string,
.ql-code-block-container .ql-code-body pre code .hljs-doctag {
    color: #a5d6ff;
}

.ql-code-block-container .ql-code-body pre code .hljs-title,
.ql-code-block-container .ql-code-body pre code .hljs-section,
.ql-code-block-container .ql-code-body pre code .hljs-selector-id {
    color: #d2a8ff;
}

.ql-code-block-container .ql-code-body pre code .hljs-subst {
    color: #e6edf3;
}

.ql-code-block-container .ql-code-body pre code .hljs-type,
.ql-code-block-container .ql-code-body pre code .hljs-class .hljs-title {
    color: #d2a8ff;
}

.ql-code-block-container .ql-code-body pre code .hljs-tag {
    color: #7ee787;
}

.ql-code-block-container .ql-code-body pre code .hljs-name,
.ql-code-block-container .ql-code-body pre code .hljs-attribute {
    color: #ffa657;
}

.ql-code-block-container .ql-code-body pre code .hljs-regexp,
.ql-code-block-container .ql-code-body pre code .hljs-link {
    color: #ff7b72;
}

.ql-code-block-container .ql-code-body pre code .hljs-symbol,
.ql-code-block-container .ql-code-body pre code .hljs-bullet {
    color: #d2a8ff;
}

.ql-code-block-container .ql-code-body pre code .hljs-built_in,
.ql-code-block-container .ql-code-body pre code .hljs-builtin-name {
    color: #ffa657;
}

.ql-code-block-container .ql-code-body pre code .hljs-meta {
    color: #8b949e;
}

.ql-code-block-container .ql-code-body pre code .hljs-deletion {
    background: #fdaeb7;
    color: #8b949e;
}

.ql-code-block-container .ql-code-body pre code .hljs-addition {
    background: #3fb950;
    color: #8b949e;
}

.ql-code-block-container .ql-code-body pre code .hljs-emphasis {
    font-style: italic;
}

.ql-code-block-container .ql-code-body pre code .hljs-strong {
    font-weight: bold;
}

/* Line Highlighting */
.ql-code-block-container .ql-code-body pre .hljs-line-highlight {
    background: rgba(255,255,255,0.04);
    border-left: 3px solid #58a6ff;
    display: block;
    margin: 0 -1.8rem;
    padding: 0 1.8rem;
}

/* Scrollbar Styling for Code Blocks */
.ql-code-block-container .ql-code-body::-webkit-scrollbar {
    height: 6px;
    width: 6px;
}

.ql-code-block-container .ql-code-body::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.02);
    border-radius: 3px;
}

.ql-code-block-container .ql-code-body::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.ql-code-block-container .ql-code-body::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* Backward compatibility for regular pre tags */
.post-content pre {
    background: #0d1117;
    color: #e6edf3;
    padding: 1.8rem;
    border-radius: var(--r-card);
    overflow-x: auto;
    margin: 2.5rem 0;
    font-size: 0.875rem;
    line-height: 1.8;
    border: 1px solid rgba(255,255,255,0.05);
    position: relative;
    font-family: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;
}

.post-content pre code {
    background: none;
    padding: 0;
    color: inherit;
    font-size: inherit;
}

.post-content table {
    width: 100%;
    margin-bottom: 2rem;
    border-collapse: collapse;
    font-size: 0.9rem;
    border-radius: var(--r-control);
    overflow: hidden;
    border: 1px solid var(--line);
}

.post-content table th {
    background: color-mix(in srgb,var(--primary) 6%,var(--surface-sunken));
    font-weight: 700;
    padding: 0.8rem 1.2rem;
    text-align: left;
    border: 1px solid var(--line-strong);
}

.post-content table td {
    padding: 0.8rem 1.2rem;
    border: 1px solid var(--line-strong);
}

.post-content hr {
    border: none;
    height: 1px;
    background: var(--line);
    margin: 3rem 0;
}

/* Enhanced Share Buttons */
.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.2rem;
    border-radius: var(--r-control);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.share-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.1);
    transform: translateX(-100%);
    transition: transform 0.3s;
}

.share-btn:hover::before {
    transform: translateX(0);
}

.share-btn:hover {
    filter: brightness(0.92);
}

/* Enhanced Tags */
.post-tag {
    display: inline-block;
    padding: 0.3rem 0.9rem;
    background: var(--surface-sunken);
    border: 1px solid var(--line-strong);
    border-radius: var(--r-frame);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
    margin: 0.2rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.post-tag:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Sidebar Enhancements */
.sidebar-sticky {
    position: sticky;
    top: 84px;
}

/* Enhanced Related Posts */
.related-post {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--surface-sunken);
    text-decoration: none;
    transition: all 0.3s;
}

.related-post:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-post:hover {
    transform: translateX(5px);
}

.related-post-img {
    width: 65px;
    height: 65px;
    border-radius: var(--r-control);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--surface-sunken);
    transition: transform 0.3s;
}

.related-post:hover .related-post-img {
    transform: scale(1.05);
}

.related-post-info h6 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.4;
    margin: 0 0 0.3rem;
    transition: color 0.2s;
}

.related-post:hover .related-post-info h6 {
    color: var(--primary);
}

.related-post-info span {
    font-size: 0.75rem;
    color: var(--faint);
}

/* Enhanced Comments */
.comment-item {
    display: flex;
    gap: 1rem;
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--surface-sunken);
    transition: background 0.2s;
}

.comment-item:last-child {
    border-bottom: none;
}

.comment-item:hover {
    background: rgba(0,0,0,0.01);
    border-radius: 8px;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

.comment-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    flex-shrink: 0;
}

/* Sidebar card (page-scoped — does not touch the global .card component) */
.side-card {
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    background: var(--surface);
}

.side-card .p-3 { padding: 1.5rem !important; }

/* Service Box (sidebar CTA) */
.service-box {
    background: var(--dark);
    border-top: 3px solid var(--primary);
    border-radius: var(--r-card);
    padding: 2rem;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.service-box .btn-service {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--surface);
    color: var(--primary);
    padding: 0.6rem 1.3rem;
    border-radius: var(--r-control);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
}

.service-box .btn-service:hover {
    background: color-mix(in srgb, white 90%, var(--primary));
}

/* Responsive */
@media (max-width: 767px) {
    .post-body .row {
        flex-direction: column;
    }
    .sidebar-sticky {
        position: static;
        margin-top: 2.5rem;
    }
    .post-hero {
        padding: 3rem 0 2rem;
    }
    .post-hero h1 {
        font-size: clamp(1.5rem, 5vw, 2rem);
    }
    .post-content {
        font-size: 0.95rem;
        line-height: 1.8;
    }
    .post-content h2 {
        font-size: 1.4rem;
    }
    .post-img-wrap {
        max-height: 300px;
    }
    .post-img-wrap img {
        max-height: 300px;
    }
    .article-meta {
        gap: 0.6rem 1.2rem;
        font-size: 0.75rem;
    }
    
    /* Mobile code block adjustments */
    .ql-code-block-container .ql-code-body pre {
        padding: 1rem 1.2rem;
        font-size: 0.8rem;
        line-height: 1.7;
    }
    .ql-code-block-container .ql-code-body .ql-line-numbers {
        min-width: 2.8rem;
        padding: 1rem 0.5rem 1rem 0.8rem;
        font-size: 0.7rem;
    }
    .ql-code-block-container .ql-code-header {
        padding: 0.6rem 1rem;
    }
    .ql-code-block-container .ql-code-header .ql-code-language {
        font-size: 0.6rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-hero .container {
    animation: fadeInUp 0.6s ease-out;
}

.post-content > * {
    animation: fadeInUp 0.6s ease-out both;
}

.post-content > *:nth-child(1) { animation-delay: 0.1s; }
.post-content > *:nth-child(2) { animation-delay: 0.2s; }
.post-content > *:nth-child(3) { animation-delay: 0.3s; }
.post-content > *:nth-child(4) { animation-delay: 0.4s; }

/* Copy animation */
@keyframes ql-copy-flash {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

.ql-code-block-container .ql-code-body pre.ql-copy-flash {
    animation: ql-copy-flash 0.3s ease;
}

/* ============================================================
   32. USER DASHBOARD — overview page
   ============================================================ */
.dash-welcome { margin-bottom: 1.75rem; }
.dash-welcome h4 { font-size: 1.15rem; font-weight: 800; margin: 0; letter-spacing: -.02em; color: var(--ink); }
.dash-welcome p { color: var(--muted); margin: .3rem 0 0; font-size: .875rem; }

.stat-card { padding: 1.2rem 1.3rem; border-radius: var(--r-card); background: var(--surface); border: 1px solid var(--line); }
.stat-icon { width: 38px; height: 38px; border-radius: var(--r-frame); display: flex; align-items: center; justify-content: center; font-size: .95rem; flex-shrink: 0; }
.stat-icon.tone-primary { background: var(--primary-wash); color: var(--primary-ink); }
.stat-icon.tone-warn { background: var(--warn-bg); color: var(--warn); }
.stat-icon.tone-info { background: var(--info-bg); color: var(--info); }
.stat-icon.tone-ok { background: var(--ok-bg); color: var(--ok); }
.stat-num { font-size: 1.55rem; font-weight: 800; line-height: 1; color: var(--ink); letter-spacing: -.03em; font-family: var(--font-heading); }
.stat-lbl { font-size: .72rem; color: var(--muted); font-weight: 500; margin-top: 2px; }

.promo-card { border-radius: var(--r-card); padding: 1.5rem; background: var(--dark); color: #fff; border-top: 3px solid var(--primary); margin-bottom: 1.5rem; }
.promo-card h5 { color: #fff; font-weight: 700; margin-bottom: .3rem; font-size: .95rem; }
.promo-card p { color: rgba(255,255,255,.55); font-size: .84rem; margin: 0; }
.promo-card .btn-promo { background: #fff; color: var(--ink); font-weight: 700; font-size: .82rem; border-radius: var(--r-control); padding: .5rem 1.1rem; border: none; white-space: nowrap; transition: background var(--fast); }
.promo-card .btn-promo:hover { background: rgba(255,255,255,.86); color: var(--ink); }

.order-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1.1rem; transition: background var(--fast); }
.order-row:hover { background: var(--surface-sunken); }
.order-row + .order-row { border-top: 1px solid var(--line); }
.order-service-icon { width: 34px; height: 34px; border-radius: var(--r-frame); background: var(--primary-wash); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: .85rem; color: var(--primary-ink); }
.order-service-name { font-weight: 600; font-size: .84rem; color: var(--ink); line-height: 1.2; }
.order-ref { font-size: .72rem; color: var(--muted); font-family: monospace; }

/* ============================================================
   33. USER — ORDER LIST / ORDER CARD
   ============================================================ */
.order-card { background: var(--surface); border-radius: var(--r-card); padding: 1.2rem 1.4rem; border: 1px solid var(--line); transition: border-color var(--fast); margin-bottom: .75rem; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.order-card:hover { border-color: var(--line-strong); }
.order-card-icon { width: 42px; height: 42px; border-radius: var(--r-frame); background: var(--primary-wash); display: flex; align-items: center; justify-content: center; font-size: 1.05rem; color: var(--primary-ink); flex-shrink: 0; }
.order-card-title { font-weight: 700; font-size: .875rem; color: var(--ink); line-height: 1.2; }
.order-card-meta { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: .3rem; font-size: .75rem; color: var(--muted); }
.order-card-meta span { display: flex; align-items: center; gap: .25rem; }

/* ============================================================
   34. USER — DOWNLOADS
   ============================================================ */
.dl-page-header { margin-bottom: 1.75rem; }
.dl-page-header h4 { font-size: 1.15rem; font-weight: 800; margin: 0; letter-spacing: -.02em; color: var(--ink); }
.dl-page-header p  { color: var(--muted); margin: .3rem 0 0; font-size: .875rem; }

.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }

.dl-row { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; transition: background var(--fast); }
.dl-row:hover { background: var(--surface-sunken); }
.dl-row + .dl-row { border-top: 1px solid var(--line); }

.dl-thumb { width: 52px; height: 52px; border-radius: var(--r-control); object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); margin-top: 2px; }
.dl-thumb-placeholder { width: 52px; height: 52px; border-radius: var(--r-control); background: var(--primary-wash); border: 1px solid var(--primary-line); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary-ink); flex-shrink: 0; margin-top: 2px; }

.dl-title { font-weight: 700; font-size: .88rem; color: var(--ink); line-height: 1.3; }
.dl-meta  { font-size: .73rem; color: var(--muted); margin-top: 2px; font-family: monospace; }

.dl-license-note { margin-top: .4rem; font-size: .72rem; }
.dl-license-note.suspended { color: var(--warn); }
.dl-license-note.revoked   { color: var(--bad); }

.dl-count-badge { font-size: .72rem; color: var(--muted); white-space: nowrap; text-align: right; }

.btn-dl { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .95rem; background: var(--primary); color: #fff; border-radius: var(--r-control); font-size: .82rem; font-weight: 700; text-decoration: none; border: none; white-space: nowrap; transition: background var(--fast); flex-shrink: 0; cursor: pointer; }
.btn-dl:hover { background: color-mix(in srgb, var(--primary) 86%, black); color: #fff; }
.btn-dl:after { display: none; }

.dl-dropdown-menu { min-width: 210px; padding: .35rem; border-radius: var(--r-control); border: 1px solid var(--line); }
.dl-dropdown-item { display: flex; align-items: center; gap: .55rem; padding: .55rem .65rem; border-radius: var(--r-frame); font-size: .82rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.dl-dropdown-item:hover { background: var(--surface-sunken); color: var(--ink); }
.dl-dropdown-item i { color: var(--primary-ink); font-size: 1rem; flex-shrink: 0; }
.dl-dropdown-item .dl-item-sub { display: block; font-size: .68rem; font-weight: 500; color: var(--muted); margin-top: 1px; }

/* ============================================================
   35. USER — PROFILE
   ============================================================ */
.profile-section-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--primary-ink); margin-bottom: 1.1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--primary-line); }
.danger-zone { border: 1px solid var(--bad-line); border-radius: var(--r-card); padding: 1.25rem; background: var(--bad-bg); }

/* ============================================================
   36. USER — LICENSES LIST
   ============================================================ */
.lic-page-header { margin-bottom: 1.75rem; }
.lic-page-header h4 { font-size: 1.15rem; font-weight: 800; margin: 0; letter-spacing: -.02em; color: var(--ink); }
.lic-page-header p  { color: var(--muted); margin: .3rem 0 0; font-size: .875rem; }

.lic-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; }
.lic-row { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 1.25rem; transition: background var(--fast); text-decoration: none; color: inherit; }
.lic-row:hover { background: var(--surface-sunken); color: inherit; }
.lic-row + .lic-row { border-top: 1px solid var(--line); }

.lic-thumb { width: 52px; height: 52px; border-radius: var(--r-control); object-fit: cover; flex-shrink: 0; border: 1px solid var(--line); margin-top: 2px; }
.lic-thumb-ph { width: 52px; height: 52px; border-radius: var(--r-control); background: var(--primary-wash); border: 1px solid var(--primary-line); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--primary-ink); flex-shrink: 0; margin-top: 2px; }

.lic-title { font-weight: 700; font-size: .88rem; color: var(--ink); line-height: 1.3; }
.lic-meta  { font-size: .73rem; color: var(--muted); margin-top: 2px; }
.lic-key   { margin-top: .4rem; font-family: monospace; font-size: .73rem; background: var(--primary-wash); color: var(--primary-ink); border: 1px solid var(--primary-line); border-radius: var(--r-frame); padding: 2px 7px; display: inline-block; letter-spacing: .03em; }

.lic-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .22rem .6rem; border-radius: var(--r-frame); font-size: .7rem; font-weight: 700; white-space: nowrap; border: 1px solid transparent; }
.lic-badge.active    { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.lic-badge.suspended { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.lic-badge.revoked   { background: var(--bad-bg); color: var(--bad); border-color: var(--bad-line); }
.lic-badge.sub       { background: var(--primary-wash); color: var(--primary-ink); border-color: var(--primary-line); }

.lic-domains { font-size: .72rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; white-space: nowrap; }
.lic-arrow { color: var(--faint); font-size: .9rem; flex-shrink: 0; align-self: center; }

/* ============================================================
   37. USER — LICENSE DETAIL
   ============================================================ */
<style>
/* ── Back link ─────────────────────────────────────────────── */
.lic-back { font-size: .82rem; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: .35rem; margin-bottom: 1.2rem; }
.lic-back:hover { color: var(--primary); }

/* ── Section card ──────────────────────────────────────────── */
.lic-section {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-card);
    margin-bottom: 1.25rem;
    overflow: hidden;
}
.lic-section-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: .9rem 1.25rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-sunken);
}
.lic-section-header h6 {
    font-size: .85rem; font-weight: 800; margin: 0;
    display: flex; align-items: center; gap: .45rem; color: var(--ink);
}

/* ── Key display ───────────────────────────────────────────── */
.lic-key-box {
    padding: 1rem 1.25rem;
    display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.lic-key-mono {
    font-family: monospace; font-size: .9rem; font-weight: 600;
    background: color-mix(in srgb, var(--primary) 6%, transparent);
    color: var(--primary); border-radius: var(--r-control);
    padding: .55rem 1rem; flex: 1; min-width: 0; word-break: break-all;
    border: 1px dashed color-mix(in srgb, var(--primary) 30%, transparent);
}
.btn-copy {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .45rem .9rem;
    background: var(--primary); color: #fff; border: none;
    border-radius: var(--r-control); font-size: .8rem; font-weight: 700;
    cursor: pointer; transition: opacity .15s;
    flex-shrink: 0;
}
.btn-copy:hover { background: color-mix(in srgb, var(--primary) 86%, black); }

/* ── Status badges ─────────────────────────────────────────── */
.lic-badge {
    display: inline-flex; align-items: center; gap: .3rem;
    padding: .22rem .65rem; border-radius: var(--r-frame);
    font-size: .7rem; font-weight: 700;
}
.lic-badge.active    { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.lic-badge.suspended { background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line); }
.lic-badge.revoked   { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); }
.lic-badge.trialing  { background: var(--info-bg); color: var(--info); border: 1px solid var(--info-line); }
.lic-badge.past_due  { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line); }
.lic-badge.cancelled { background: var(--surface-sunken); color: var(--muted); border: 1px solid var(--line); }

/* ── Meta grid ─────────────────────────────────────────────── */
.lic-meta-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0; padding: 0;
}
.lic-meta-item {
    padding: .8rem 1.25rem; border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.lic-meta-item:nth-child(even) { border-right: none; }
@media (min-width: 768px) { .lic-meta-item:nth-child(odd) { border-right: 1px solid var(--line); } }
.lic-meta-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.lic-meta-value { font-size: .82rem; font-weight: 600; color: var(--ink); margin-top: 2px; }

/* ── Domain rows ───────────────────────────────────────────── */
.lic-domain-row {
    display: flex; align-items: center; gap: .75rem;
    padding: .75rem 1.25rem;
}
.lic-domain-row + .lic-domain-row { border-top: 1px solid var(--line); }
.lic-domain-name {
    font-size: .82rem; font-weight: 600; color: var(--ink); flex: 1;
    display: flex; align-items: center; gap: .4rem;
}
.lic-domain-sub { font-size: .68rem; color: var(--muted); display: block; font-weight: 400; margin-top: 1px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dot.on  { background: var(--ok); }
.dot.off { background: var(--line-strong); }

.btn-deactivate {
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .35rem .8rem; border-radius: var(--r-control);
    border: 1px solid var(--line); background: transparent;
    font-size: .75rem; font-weight: 600; color: var(--bad);
    cursor: pointer; transition: background .15s;
    flex-shrink: 0;
}
.btn-deactivate:hover { background: var(--bad-bg); border-color: var(--bad-line); }

/* ── Version table ─────────────────────────────────────────── */
.lic-ver-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.lic-ver-table thead th {
    padding: .6rem 1.25rem; text-align: left;
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.lic-ver-table tbody td {
    padding: .7rem 1.25rem; border-bottom: 1px solid var(--line);
    color: var(--ink); vertical-align: top;
}
.lic-ver-table tbody tr:last-child td { border-bottom: none; }
.ver-latest {
    display: inline-flex; align-items: center; gap: .3rem;
    background: var(--ok-bg); color: var(--ok);
    border-radius: var(--r-frame); padding: .12rem .55rem;
    font-size: .68rem; font-weight: 700;
}
.ver-notes { font-size: .75rem; color: var(--muted); margin-top: 2px; }

/* ── Subscription panel ────────────────────────────────────── */
.sub-panel { padding: 1rem 1.25rem; }
.sub-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(160px,1fr));
    gap: .75rem; margin-bottom: 1rem;
}
.sub-stat { background: color-mix(in srgb, var(--primary) 5%, transparent); border-radius: var(--r-control); padding: .75rem 1rem; }
.sub-stat-label { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.sub-stat-value { font-size: .9rem; font-weight: 700; color: var(--ink); margin-top: 2px; }

.inv-table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.inv-table thead th {
    padding: .5rem 1rem; text-align: left;
    font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .04em; color: var(--muted);
    border-bottom: 1px solid var(--line);
}
.inv-table tbody td {
    padding: .65rem 1rem; border-bottom: 1px solid var(--line); color: var(--ink);
}
.inv-table tbody tr:last-child td { border-bottom: none; }
.inv-status { display: inline-flex; align-items: center; gap: .3rem; padding: .15rem .5rem; border-radius: var(--r-frame); font-size: .68rem; font-weight: 700; }
.inv-status.paid   { background: var(--ok-bg); color: var(--ok); }
.inv-status.failed { background: var(--bad-bg); color: var(--bad); }
.inv-status.pending { background: var(--warn-bg); color: var(--warn); }

.btn-danger-soft {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .45rem 1rem; border-radius: var(--r-control);
    background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad-line);
    font-size: .8rem; font-weight: 700; cursor: pointer; transition: background .15s;
}
.btn-danger-soft:hover { background: color-mix(in srgb, var(--bad) 20%, var(--bad-bg)); }

/* ── Empty states ──────────────────────────────────────────── */
.lic-empty-sm { text-align: center; padding: 2rem 1rem; color: var(--muted); font-size: .82rem; }
.lic-empty-sm i { font-size: 1.5rem; opacity: .3; display: block; margin-bottom: .5rem; }

/* ── Deactivation log ──────────────────────────────────────── */
.dact-row {
    display: flex; align-items: center; gap: .75rem;
    padding: .65rem 1.25rem; font-size: .8rem;
}
.dact-row + .dact-row { border-top: 1px solid var(--line); }
.dact-domain { font-weight: 600; color: var(--ink); flex: 1; }
.dact-meta   { color: var(--muted); font-size: .72rem; }
</style>

/* ============================================================
   38. USER — AI API DOCS
   ============================================================ */
<style>
.doc-wrap { max-width: 880px; }
.doc-toc  { position: sticky; top: 1.5rem; }
.doc-card {
    background: var(--surface);
    border: 1.5px solid var(--line);
    border-radius: var(--r-card);
    padding: 2rem 2.25rem;
    margin-bottom: 2rem;
}
.doc-card h2 {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 1.5px solid var(--line);
    display: flex;
    align-items: center;
    gap: .5rem;
}
.doc-card h3 {
    font-size: .92rem;
    font-weight: 700;
    margin: 1.5rem 0 .5rem;
    color: var(--ink);
}
.doc-card p, .doc-card li {
    font-size: .875rem;
    color: var(--text);
    line-height: 1.7;
}
.doc-card ul { padding-left: 1.4rem; }
.doc-card code {
    font-family: 'DM Mono', monospace;
    font-size: .82rem;
    background: var(--surface-sunken);
    padding: .12rem .4rem;
    border-radius: var(--r-frame);
    color: var(--primary-ink);
}
.doc-card pre {
    background: #0d1117;
    color: #c9d1d9;
    border-radius: var(--r-control);
    padding: 1.15rem 1.4rem;
    overflow-x: auto;
    font-size: .82rem;
    line-height: 1.65;
    margin: .75rem 0 1rem;
}
.doc-card pre code { background: none; color: inherit; padding: 0; font-size: inherit; }
.doc-card .note {
    background: var(--info-bg); border: 1.5px solid var(--info-line); border-radius: var(--r-control);
    padding: .75rem 1rem; font-size: .82rem; color: var(--info); margin: .75rem 0;
}
.doc-card .warn {
    background: var(--warn-bg); border: 1.5px solid var(--warn-line); border-radius: var(--r-control);
    padding: .75rem 1rem; font-size: .82rem; color: var(--warn); margin: .75rem 0;
}
.doc-card .danger {
    background: var(--bad-bg); border: 1.5px solid var(--bad-line); border-radius: var(--r-control);
    padding: .75rem 1rem; font-size: .82rem; color: var(--bad); margin: .75rem 0;
}

/* ── Tabbed code snippet widget ──────────────────────────────────────── */
.code-tabs {
    border: 1.5px solid var(--line);
    border-radius: var(--r-control);
    overflow: hidden;
    margin: .75rem 0 1.25rem;
    background: #0d1117;
}
.code-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--surface-sunken);
    border-bottom: 1.5px solid var(--line);
    padding: 0 .5rem;
}
.code-tabs-list { display: flex; gap: .15rem; }
.code-tab-btn {
    appearance: none; border: none; background: none; cursor: pointer;
    padding: .65rem .9rem; font-size: .82rem; font-weight: 700;
    color: var(--primary); border-bottom: 2.5px solid transparent;
    transition: color .12s, border-color .12s;
}
.code-tab-btn:hover { color: var(--primary); }
.code-tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.code-tabs-actions { display: flex; align-items: center; gap: .25rem; }
.code-copy-btn {
    appearance: none; border: none; background: none; cursor: pointer;
    color: var(--muted); padding: .4rem .55rem; border-radius: var(--r-frame); font-size: .85rem;
    display: flex; align-items: center; gap: .3rem;
}
.code-copy-btn:hover { color: var(--ink); background: var(--surface-sunken); }
.code-copy-btn.copied { color: var(--ok); }
.code-tab-panel { display: none; }
.code-tab-panel.active { display: block; }
.code-tab-panel pre {
    margin: 0; border-radius: 0; background: #0d1117;
}
.step-num {
    display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 50%;
    background: var(--primary); color: #fff; align-items: center;
    justify-content: center; font-size: .75rem; font-weight: 800; flex-shrink: 0;
}
.step-row { display: flex; gap: .75rem; margin-bottom: .85rem; }
.step-row > div { flex: 1; }
.toc-link {
    display: block; font-size: .8rem; color: var(--text);
    padding: .2rem 0; text-decoration: none; border-left: 2px solid transparent;
    padding-left: .65rem; transition: border-color .15s, color .15s;
}
.toc-link:hover { color: var(--primary); border-left-color: var(--primary); }
.method-badge {
    display: inline-block; font-size: .72rem; font-weight: 700; padding: .18rem .55rem;
    border-radius: var(--r-frame); letter-spacing: .04em; margin-right: .35rem;
}
.method-post { background: var(--ok-bg); color: var(--ok); }
.method-get  { background: var(--info-bg); color: var(--info); }
.model-chip { font-size: .76rem; background: var(--surface-sunken); padding: .25rem .55rem; border-radius: var(--r-frame); color: var(--primary-ink); display: inline-block; margin: .2rem .3rem .2rem 0; }

/* ============================================================
   39. DEVELOPER — OAUTH DOCS
   ============================================================ */
.doc-nav { position: sticky; top: 80px; }
.doc-nav a { display: block; padding: .3rem .75rem; font-size: .82rem; color: var(--muted); border-left: 2px solid transparent; text-decoration: none; transition: .12s; }
.doc-nav a:hover { color: var(--primary-ink); }
.doc-nav a.active { border-left-color: var(--primary); color: var(--primary-ink); font-weight: 600; }
.doc-section { margin-bottom: 3rem; }
.doc-section h2 { font-size: 1.15rem; font-weight: 800; border-bottom: 2px solid var(--line); padding-bottom: .5rem; margin-bottom: 1.25rem; }
.doc-section h3 { font-size: .95rem; font-weight: 700; margin: 1.5rem 0 .5rem; }
.doc-section pre { background: #0d1117; color: #c9d1d9; border-radius: var(--r-control); padding: 1.1rem; overflow-x: auto; font-size: .8rem; line-height: 1.7; }
.doc-section code.inline { background: var(--surface-sunken); color: var(--primary-ink); padding: .1em .35em; border-radius: var(--r-frame); font-size: .82em; }
.scope-table th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); }
.callout { border-left: 3px solid var(--primary); background: var(--primary-wash); border-radius: 0 var(--r-control) var(--r-control) 0; padding: .75rem 1rem; margin: 1rem 0; font-size: .85rem; }
.callout.warn { border-left-color: var(--warn); background: var(--warn-bg); }
.callout.danger { border-left-color: var(--bad); background: var(--bad-bg); }