/* ===========================================================================
   RedSwitches client area — design system

   Light, high-contrast, dense. Hairline borders instead of shadows; black as
   the primary action colour; IBM Plex Mono with tabular figures for every
   number. Brand red (#fd0e38) stays reserved for destructive actions and
   genuine emphasis, matching redswitches.com's own restraint.

   Parent: twenty-one (Bootstrap 4.5.3 / jQuery 1.12.4 / FontAwesome 5.10.1).
   Loaded after the parent's all.min.css and theme.min.css, so it wins.

   1  TOKENS          6  BUTTONS        11  FORMS
   2  FONTS           7  CARDS          12  ALERTS + BADGES
   3  BASE            8  DASHBOARD      13  PAGE SIDEBAR
   4  SHELL           9  TABLES         14  CART
   5  NAV            10  TYPOGRAPHY     15  RESPONSIVE
   =========================================================================== */


/* === 1. TOKENS — ported verbatim from redswitches.com's :root ============= */

:root {
    --black:#000; --white:#fff;
    --gray-950:#0a0a0a; --gray-900:#111;  --gray-850:#1a1a1a; --gray-800:#222;
    --gray-700:#333;    --gray-600:#555;  --gray-500:#777;    --gray-400:#999;
    --gray-300:#b3b3b3; --gray-200:#d4d4d4; --gray-150:#e2e2e2; --gray-100:#ebebeb;
    --gray-75:#f2f2f2;  --gray-50:#f7f7f7; --gray-25:#fafafa;

    --bg-deep:var(--white);      --bg-primary:var(--gray-50);
    --bg-secondary:var(--gray-25); --bg-card:var(--white);
    --bg-card-hover:var(--gray-50); --bg-surface:var(--gray-75);
    --bg-terminal:var(--gray-950);

    --text-primary:var(--gray-900); --text-secondary:var(--gray-700);
    --text-muted:var(--gray-600);   --text-heading:var(--black);

    /* The live site resolves every accent to black. Brand red is held back
       for hints and destructive actions. Do not "fix" this to red. */
    --accent:var(--black); --accent-dim:var(--gray-700);

    --border:#00000012; --border-hover:#0000001f;
    --border-active:#0003; --border-strong:#0000004d;

    --brand-red:#fd0e38; --brand-orange:#ff933b; --brand-blue:#383bf8;
    --brand-navy:#0f0d3e;

    --hint-pink:#fd0e381a;  --hint-pink-text:var(--brand-red);
    --hint-green:#00c67a1a; --hint-green-text:#00c67a;
    --hint-amber:#ff933b1a; --hint-amber-text:#a85f13;

    --shadow-sm:0 1px 3px #0000000f, 0 1px 2px #0000000a;
    --shadow-md:0 4px 16px #0000000f, 0 1px 4px #0000000a;
    --shadow-lg:0 12px 40px #00000014, 0 4px 12px #0000000a;

    --font:"DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --mono:"IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

    --t-section:clamp(24px, 3vw, 32px); --t-subsection:20px; --t-card:15px;
    --t-label:12.5px; --t-tag:11px; --t-body-lg:14px; --t-body:13px;
    --t-micro:10px; --t-price-card:26px; --t-stat:26px; --t-nav:13.5px;
    --t-btn:13px;

    --r-sm:8px; --r-md:12px; --r-lg:16px; --r-xl:20px;
    --max-w:1360px; --ease:cubic-bezier(.25,.46,.45,.94);

    --rail-w:248px; --topbar-h:56px;
}


/* === 2. FONTS — self-hosted, latin subset ================================= */

@font-face{font-family:"DM Sans";src:url("../fonts/dm-sans-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"DM Sans";src:url("../fonts/dm-sans-500.woff2") format("woff2");font-weight:500;font-display:swap}
@font-face{font-family:"DM Sans";src:url("../fonts/dm-sans-700.woff2") format("woff2");font-weight:700;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("../fonts/ibm-plex-mono-400.woff2") format("woff2");font-weight:400;font-display:swap}
@font-face{font-family:"IBM Plex Mono";src:url("../fonts/ibm-plex-mono-500.woff2") format("woff2");font-weight:500;font-display:swap}


/* === 3. BASE ============================================================== */

body.rs-body {
    font-family: var(--font);
    font-size: var(--t-body-lg);
    line-height: 1.55;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

.rs-body a { color: var(--accent); text-decoration: none; transition: color .15s var(--ease); }
.rs-body a:hover { color: var(--accent-dim); text-decoration: none; }

/* Every number reads as data. */
.rs-body .stat, .rs-body .amount, .rs-body code, .rs-body kbd,
.rs-mono, td .price, .rs-num {
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
}

::selection { background: var(--gray-900); color: var(--white); }

.rs-body :focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}


/* === 4. SHELL ============================================================= */

.rs-shell { display: flex; min-height: 100vh; align-items: stretch; }

.rs-rail {
    width: var(--rail-w);
    flex: 0 0 var(--rail-w);
    background: var(--bg-deep);
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 40;
}

.rs-rail-brand {
    height: var(--topbar-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    border-bottom: 1px solid var(--border);
    flex: 0 0 auto;
}
.rs-rail-brand .logo-img { max-height: 26px; width: auto; }
.rs-wordmark {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -.02em;
    color: var(--text-heading);
}
.rs-rail-close { display: none; background: none; border: 0; color: var(--text-muted); padding: .375rem; }

.rs-rail-nav { flex: 1 1 auto; overflow-y: auto; padding: .625rem .5rem; }
.rs-rail-foot { flex: 0 0 auto; padding: .625rem .5rem; border-top: 1px solid var(--border); }

.rs-rail-locale {
    width: 100%;
    display: flex; align-items: center; gap: .5rem;
    background: none; border: 0;
    padding: .5rem .625rem;
    border-radius: var(--r-sm);
    font-size: var(--t-label);
    color: var(--text-muted);
    text-align: left;
}
.rs-rail-locale:hover { background: var(--bg-surface); color: var(--text-primary); }

.rs-rail-scrim {
    position: fixed; inset: 0;
    background: #0006;
    z-index: 39;
}

.rs-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.rs-topbar {
    height: var(--topbar-h);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: 0 1.25rem;
    background: #ffffffd9;
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 30;
}

.rs-rail-toggle { display: none; background: none; border: 0; color: var(--text-primary); padding: .375rem .5rem; }

/* Breadcrumb dropped everywhere: the left rail handles navigation and each
   page carries its own H1, so it was redundant. Kept in the DOM (still in
   header.tpl) but hidden — flip to `flex` here to bring it back. */
.rs-crumb { display: none; }
.rs-crumb .breadcrumb {
    background: none; margin: 0; padding: 0;
    font-size: var(--t-label); white-space: nowrap;
}
.rs-crumb .breadcrumb-item, .rs-crumb .breadcrumb a { color: var(--text-muted); }
.rs-crumb .breadcrumb-item.active { color: var(--text-primary); font-weight: 500; }

.rs-search { flex: 1 1 auto; max-width: 380px; margin-left: auto; position: relative; }
.rs-search i {
    position: absolute; left: .625rem; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 12px; pointer-events: none;
}
.rs-search .form-control {
    height: 34px; padding: 0 .75rem 0 2.25rem !important;
    font-size: var(--t-body);
    background: var(--bg-surface);
    border: 1px solid transparent;
    border-radius: var(--r-sm);
}
.rs-search .form-control:focus { background: var(--bg-card); border-color: var(--border-active); box-shadow: none; }

.rs-topbar-actions { display: flex; align-items: center; gap: .25rem; flex: 0 0 auto; }

.rs-icon-btn {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px;
    border: 0; background: none;
    border-radius: var(--r-sm);
    color: var(--text-secondary);
    transition: background-color .15s var(--ease), color .15s var(--ease);
}
.rs-icon-btn:hover { background: var(--bg-surface); color: var(--text-primary); }
.rs-icon-btn .badge {
    position: absolute; top: 1px; right: 1px;
    min-width: 15px; height: 15px; padding: 0 3px;
    font-family: var(--mono); font-size: 9px; line-height: 15px;
    background: var(--accent); color: var(--white);
    border-radius: 999px;
}
.rs-admin-return { color: var(--brand-red); }

.rs-account {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .25rem .625rem .25rem .25rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    margin-left: .25rem;
    max-width: 200px;
}
.rs-account:hover { background: var(--bg-surface); border-color: var(--border-hover); }
.rs-avatar {
    width: 24px; height: 24px; flex: 0 0 24px;
    border-radius: 50%;
    background: var(--accent); color: var(--white);
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 500; text-transform: uppercase;
}
.rs-account-name {
    font-size: var(--t-label); color: var(--text-primary);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* standard_cart's all.min.css lays the cart out with floats. twenty-one's
   footer carried a <div class="clearfix"> that I dropped when rewriting it,
   which let those floats escape and pushed the footer to the top-right on
   cart pages. Contain them here rather than reintroducing a markup hack. */
#main-body { flex: 1 1 auto; background: var(--bg-primary); padding: 1.5rem 1.25rem 2.5rem; }
/* Stock theme.min.css ships `section#main-body { padding: 20px 0 }`, whose
   specificity (1-0-1) beats a bare `#main-body`, so our horizontal padding
   never applied — on phones the client-area content sat flush to the edges.
   Win it back with a higher-specificity selector, but exclude cart pages,
   whose gutters live on .rs-co (adding here would double them). */
.rs-body:not(.rs-in-cart):not(.rs-auth) #main-body { padding-left: 1.25rem; padding-right: 1.25rem; }
#main-body::after { content: ""; display: table; clear: both; }
.rs-main > #footer { clear: both; }
.rs-content { max-width: var(--max-w); margin: 0 auto; width: 100%; }
/* Page sidebars go on the RIGHT. The rail already occupies the left edge, and
   two stacked left columns read as a mistake. Source order puts the aside
   first, so reorder visually rather than moving it in the template. */
.rs-content--aside { display: grid; grid-template-columns: minmax(0,1fr) 268px; gap: 1.5rem; align-items: start; }
.rs-content--aside .rs-page-aside { order: 2; }
.rs-content--aside .primary-content { order: 1; }
.primary-content { min-width: 0; }

/* theme.min.css paints #footer dark grey (measured rgb(64,64,64)); the id
   selector beats a bare class, so match its specificity to win. */
.rs-body #footer.rs-footer {
    border-top: 1px solid var(--border);
    background: var(--bg-deep);
    padding: 1rem 1.25rem;
    margin: 0;
    color: var(--text-muted);
}
.rs-footer-inner {
    max-width: var(--max-w); margin: 0 auto;
    display: flex; align-items: center; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap;
}
/* theme.min.css styles footer links for a dark background, which left them
   near-invisible once the footer went white. Force readable colours. */
.rs-body #footer.rs-footer .copyright { font-size: var(--t-label); color: var(--text-muted); }
.rs-footer-links { gap: .25rem; margin: 0; }
.rs-body #footer.rs-footer .nav-link,
.rs-body #footer.rs-footer a {
    font-size: var(--t-label); color: var(--text-muted); padding: .25rem .5rem;
}
.rs-body #footer.rs-footer .nav-link:hover,
.rs-body #footer.rs-footer a:hover { color: var(--text-primary); }


/* === 5. NAV =============================================================== */

/* twenty-one's navbar.tpl emits <li class="d-block no-collapse"><a class="pr-4">
   — there is no .nav-link class on rail items, so target the anchor directly.
   Verified against the rendered DOM; do not "correct" this to .nav-link. */
.rs-rail-nav .navbar-nav { flex-direction: column; width: 100% !important; }
.rs-rail-nav li { width: 100%; }

.rs-rail-nav li > a {
    display: flex; align-items: center; gap: .625rem;
    padding: .5rem .625rem !important;
    border-radius: var(--r-sm);
    font-size: var(--t-nav);
    font-weight: 500;
    color: var(--text-secondary);
    transition: background-color .15s var(--ease), color .15s var(--ease);
    /* keep long labels (e.g. an email) inside the rail rather than spilling */
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.rs-rail-nav li > a i { flex: 0 0 auto; }
.rs-rail-nav li > a:hover { background: var(--bg-surface); color: var(--text-primary); }
.rs-rail-nav li.active > a { background: var(--gray-100); color: var(--text-heading); }
.rs-rail-nav li > a i { width: 16px; text-align: center; font-size: 13px; color: var(--text-muted); }
.rs-rail-nav li.active > a i { color: var(--text-heading); }

/* Bootstrap's caret on dropdown parents, pushed to the right edge. */
.rs-rail-nav li > a.dropdown-toggle::after { margin-left: auto; opacity: .5; }

/* --- Rail icons -----------------------------------------------------------
   The primary navbar ships no <i> elements, so icons come from CSS keyed on
   the stable ids WHMCS generates (Primary_Navbar-<Name>). Measured on this
   install the icon font is "Font Awesome 6 Pro"; the stack falls back through
   Free and FA5 so this survives a different FontAwesome build.
   If a menu item is renamed in the admin area its id changes and the icon
   silently disappears — the nav still works, it just loses the glyph. */

.rs-rail-nav > .navbar-nav > li > a::before {
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free",
                 "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900;
    font-style: normal;
    width: 16px;
    flex: 0 0 16px;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    transition: color .15s var(--ease);
}
.rs-rail-nav > .navbar-nav > li:hover > a::before,
.rs-rail-nav > .navbar-nav > li.active > a::before { color: var(--text-heading); }

#Primary_Navbar-Home         > a::before { content: "\f015"; } /* house      */
#Primary_Navbar-Services     > a::before { content: "\f233"; } /* server     */
#Primary_Navbar-Billing      > a::before { content: "\f09d"; } /* credit card*/
#Primary_Navbar-Support      > a::before { content: "\f1cd"; } /* life ring  */
#Primary_Navbar-Open_Ticket  > a::before { content: "\f4ad"; } /* comment    */
#Primary_Navbar-Affiliates   > a::before { content: "\f0c0"; } /* users      */
#Primary_Navbar-Domains      > a::before { content: "\f0ac"; } /* globe      */
#Primary_Navbar-Store        > a::before { content: "\f07a"; } /* cart       */

/* Any top-level item we have not mapped still gets an aligned placeholder,
   so the labels stay on a single left edge. */
.rs-rail-nav > .navbar-nav > li > a::before { content: "\f111"; font-size: 5px; }
#Primary_Navbar-Home > a::before, #Primary_Navbar-Services > a::before,
#Primary_Navbar-Billing > a::before, #Primary_Navbar-Support > a::before,
#Primary_Navbar-Open_Ticket > a::before, #Primary_Navbar-Affiliates > a::before,
#Primary_Navbar-Domains > a::before, #Primary_Navbar-Store > a::before { font-size: 13px; }

/* Bootstrap dropdowns inside a vertical rail: render inline, not floating. */
.rs-rail-nav .dropdown-menu {
    position: static !important;
    float: none; border: 0; box-shadow: none;
    background: none; padding: 0 0 0 1.5rem; margin: 0;
    transform: none !important;
}
.rs-rail-nav .dropdown-menu .dropdown-item {
    padding: .375rem .625rem; border-radius: var(--r-sm);
    font-size: var(--t-body); color: var(--text-muted);
}
.rs-rail-nav .dropdown-menu .dropdown-item:hover { background: var(--bg-surface); color: var(--text-primary); }

.rs-secondary-nav { flex-direction: row; align-items: center; margin: 0; padding: 0; }
.rs-secondary-nav .nav-link { font-size: var(--t-label); color: var(--text-secondary); padding: .375rem .625rem; }
.rs-secondary-nav .dropdown-menu {
    border: 1px solid var(--border); border-radius: var(--r-md);
    box-shadow: var(--shadow-lg); padding: .375rem; font-size: var(--t-body);
}
.rs-secondary-nav .dropdown-item { border-radius: var(--r-sm); padding: .5rem .625rem; }


/* === 6. BUTTONS ==========================================================
   Black is the primary action. WHMCS uses .btn-success for the main purchase
   CTA (Order Now), so it must be treated as primary too — leaving it as
   Bootstrap green was the single most off-brand element on the page. */

.rs-body .btn {
    font-family: var(--font);
    font-size: var(--t-btn); font-weight: 500;
    border-radius: var(--r-sm);
    padding: .5rem 1rem;
    border: 1px solid transparent;
    box-shadow: none;
    transition: background-color .15s var(--ease), border-color .15s var(--ease), color .15s var(--ease);
}
.rs-body .btn:focus { box-shadow: none; }

.rs-body .btn-primary, .rs-body .btn-success,
.rs-body .btn-checkout, .rs-body .modal-submit {
    background: var(--accent); border-color: var(--accent); color: var(--white);
}
.rs-body .btn-primary:hover, .rs-body .btn-success:hover,
.rs-body .btn-checkout:hover, .rs-body .modal-submit:hover,
.rs-body .btn-primary:not(:disabled):active, .rs-body .btn-success:not(:disabled):active {
    background: var(--gray-700); border-color: var(--gray-700); color: var(--white);
}

.rs-body .btn-default, .rs-body .btn-secondary, .rs-body .btn-light {
    background: var(--bg-card); border-color: var(--border-active); color: var(--text-primary);
}
.rs-body .btn-default:hover, .rs-body .btn-secondary:hover, .rs-body .btn-light:hover {
    background: var(--bg-surface); border-color: var(--border-strong); color: var(--text-primary);
}

/* Red earns its place here. */
.rs-body .btn-danger { background: var(--brand-red); border-color: var(--brand-red); color: var(--white); }
.rs-body .btn-danger:hover { background: #d80b2f; border-color: #d80b2f; }

.rs-body .btn-link { color: var(--accent); padding-left: 0; padding-right: 0; }
.rs-body .btn-lg { padding: .75rem 1.5rem; font-size: var(--t-body-lg); }
.rs-body .btn-sm { padding: .3125rem .625rem; font-size: var(--t-tag); }


/* === 7. CARDS ============================================================= */

.rs-body .card, .rs-body .panel, .rs-body .well {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    box-shadow: none;
    transition: border-color .15s var(--ease);
}
.rs-body .card:hover { border-color: var(--border-hover); }

.rs-body .card-header, .rs-body .panel-heading {
    background: none;
    border-bottom: 1px solid var(--border);
    padding: .875rem 1.125rem;
    font-size: var(--t-label); font-weight: 500;
    color: var(--text-muted);
    letter-spacing: .01em;
}
.rs-body .card-body, .rs-body .panel-body { padding: 1.125rem; }
.rs-body .card-footer { background: var(--bg-secondary); border-top: 1px solid var(--border); padding: .75rem 1.125rem; }


/* === 8. DASHBOARD =========================================================
   Twenty-One's .tile carries a coloured .highlight bar per tile. Removing it
   is what shifts the dashboard from "WHMCS default" to a product surface. */

.rs-body .tiles { margin: 0 0 1.25rem; }
.rs-body .tiles .row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: .75rem; margin: 0; }
.rs-body .tiles [class*="col-"] { max-width: none; flex: none; padding: 0; }

.rs-body .tile {
    display: block; position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: 1rem 1.125rem;
    min-height: 0;
    box-shadow: none;
    transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.rs-body .tile:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.rs-body .tile .highlight { display: none; }
.rs-body .tile > i {
    position: absolute; top: 1rem; right: 1.125rem;
    font-size: 14px; color: var(--gray-300);
}
.rs-body .tile .stat {
    font-family: var(--mono); font-variant-numeric: tabular-nums;
    font-size: var(--t-stat); font-weight: 500; line-height: 1.15;
    color: var(--text-heading); margin-bottom: .125rem;
}
.rs-body .tile .title {
    font-size: var(--t-label); font-weight: 400; color: var(--text-muted);
}

.rs-body h2.h4, .rs-body .card-title { font-size: var(--t-card); font-weight: 600; color: var(--text-heading); }

/* --- Rebuilt dashboard (clientareahome.tpl) -------------------------------- */

.rs-page-head {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 1rem; flex-wrap: wrap; margin-bottom: 1.25rem;
}
.rs-page-head h1 { margin: 0 0 .125rem; font-size: var(--t-section); }
.rs-page-sub { margin: 0; font-size: var(--t-body-lg); color: var(--text-muted); }

.rs-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem;
    margin-bottom: 1.25rem;
}
.rs-stat {
    position: relative;
    display: flex; flex-direction: column; gap: .125rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    padding: .875rem 1rem 1rem;
    transition: border-color .15s var(--ease), background-color .15s var(--ease);
}
.rs-stat:hover { border-color: var(--border-hover); background: var(--bg-card-hover); }
.rs-stat-label { font-size: var(--t-label); color: var(--text-muted); }
.rs-stat-value {
    font-family: var(--mono); font-variant-numeric: tabular-nums;
    font-size: var(--t-stat); font-weight: 500; line-height: 1.1;
    color: var(--text-heading);
}
.rs-stat > i { position: absolute; top: .875rem; right: 1rem; font-size: 13px; color: var(--gray-300); }
.rs-stat:hover > i { color: var(--text-muted); }
/* Unpaid invoices is the one stat where a non-zero value is a problem. */
.rs-stat--attention .rs-stat-value { color: var(--brand-red); }
.rs-stat--attention > i { color: var(--brand-red); opacity: .5; }

.rs-panels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1rem;
    align-items: start;
}
.rs-panel--wide { grid-column: 1 / -1; }
/* Measured 57.5px tall because a 234px title and a 100px button could not
   share a line. Keep them on one row: the title truncates, the button never
   wraps its own label. */
.rs-panel .card-header {
    display: flex; align-items: center; justify-content: space-between;
    gap: .75rem; flex-wrap: nowrap; min-height: 46px; padding: .625rem 1.125rem;
}
/* Wrap rather than truncate: "Recent Support Tic…" is worse than two lines.
   The button keeps its own label on one line regardless. */
.rs-panel .card-header .card-title {
    font-size: var(--t-card); color: var(--text-heading);
    min-width: 0; flex: 1 1 auto;
    white-space: normal; line-height: 1.3;
}
.rs-panel .card-header .btn {
    flex: 0 0 auto; white-space: nowrap;
    padding: .25rem .625rem; font-size: var(--t-tag);
}
.rs-panel .card-header i { color: var(--text-muted); font-size: 13px; }
.rs-panel .card-body { font-size: var(--t-body-lg); color: var(--text-secondary); }
.rs-panel .list-group { border-radius: 0; }
.rs-panel .list-group-item {
    border: 0; border-top: 1px solid var(--border);
    padding: .625rem 1.125rem; font-size: var(--t-body-lg);
    background: none; color: var(--text-secondary);
}
.rs-panel .list-group-item:hover { background: var(--bg-surface); color: var(--text-primary); }
.rs-panel .card-footer { font-size: var(--t-label); }
.rs-panel .card-footer:empty { display: none; }


/* === 9. TABLES ============================================================ */

.rs-body .table { color: var(--text-primary); font-size: var(--t-body-lg); margin-bottom: 0; }
.rs-body .table thead th {
    font-size: var(--t-label); font-weight: 500; color: var(--text-muted);
    text-transform: none; letter-spacing: 0;
    border-bottom: 1px solid var(--border); border-top: 0;
    padding: .625rem .875rem; background: none;
}
.rs-body .table td, .rs-body .table th { border-top: 1px solid var(--border); padding: .75rem .875rem; vertical-align: middle; }
.rs-body .table tbody tr { transition: background-color .12s var(--ease); }
.rs-body .table tbody tr:hover { background: var(--bg-secondary); }
.rs-body .table-striped tbody tr:nth-of-type(odd) { background: none; }

.rs-body .dataTables_wrapper { font-size: var(--t-body); }
.rs-body .dataTables_filter input, .rs-body .dataTables_length select {
    border: 1px solid var(--border-active); border-radius: var(--r-sm); padding: .25rem .5rem;
}


/* === 10. TYPOGRAPHY ======================================================= */

.rs-body h1, .rs-body .h1, .rs-body h2, .rs-body .h2,
.rs-body h3, .rs-body .h3, .rs-body h4, .rs-body .h4 {
    font-family: var(--font); color: var(--text-heading);
    font-weight: 700; letter-spacing: -.018em; margin-top: 0;
}
.rs-body h1, .rs-body .h1 { font-size: var(--t-section); margin-bottom: 1rem; }
.rs-body h2, .rs-body .h2 { font-size: var(--t-subsection); margin-bottom: .75rem; }
.rs-body h3, .rs-body .h3 { font-size: var(--t-card); margin-bottom: .5rem; }
.rs-body .text-muted { color: var(--text-muted) !important; }
.rs-body hr { border-top: 1px solid var(--border); }


/* === 11. FORMS ============================================================ */

.rs-body .form-control, .rs-body .custom-select {
    font-family: var(--font); font-size: var(--t-body-lg);
    color: var(--text-primary); background: var(--bg-card);
    border: 1px solid var(--border-active); border-radius: var(--r-sm);
    padding: .5rem .75rem; height: auto; box-shadow: none;
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.rs-body .form-control:focus, .rs-body .custom-select:focus {
    border-color: var(--accent); box-shadow: 0 0 0 3px #00000010; outline: none;
}
.rs-body .form-control::placeholder { color: var(--text-muted); }
.rs-body label, .rs-body .control-label {
    font-size: var(--t-label); font-weight: 500; color: var(--text-secondary); margin-bottom: .3125rem;
}
.rs-body .input-group-text { background: var(--bg-surface); border-color: var(--border-active); font-size: var(--t-label); color: var(--text-muted); }


/* === 12. ALERTS + BADGES ================================================== */

.rs-body .alert {
    border-radius: var(--r-md); border: 1px solid transparent;
    font-size: var(--t-body-lg); padding: .75rem 1rem;
}
.rs-body .alert-success { background: var(--hint-green); color: var(--hint-green-text); border-color: #00c67a33; }
.rs-body .alert-danger  { background: var(--hint-pink);  color: var(--hint-pink-text);  border-color: #fd0e3833; }
.rs-body .alert-warning { background: var(--hint-amber); color: var(--hint-amber-text); border-color: #ff933b33; }
.rs-body .alert-info    { background: var(--bg-surface); color: var(--text-secondary);  border-color: var(--border); }

.rs-body .badge, .rs-body .label {
    font-family: var(--font); font-size: var(--t-tag); font-weight: 500;
    padding: .25rem .5rem; border-radius: 999px; letter-spacing: 0;
}
.rs-body .badge-success, .rs-body .label-success { background: var(--hint-green); color: var(--hint-green-text); }
.rs-body .badge-danger,  .rs-body .label-danger  { background: var(--hint-pink);  color: var(--hint-pink-text); }
.rs-body .badge-warning, .rs-body .label-warning { background: var(--hint-amber); color: var(--hint-amber-text); }
.rs-body .badge-info,    .rs-body .label-info    { background: var(--gray-100);   color: var(--text-secondary); }


/* === 13. PAGE SIDEBAR ===================================================== */

.rs-page-aside .sidebar { margin-bottom: 1rem; }
.rs-page-aside .card, .rs-page-aside .panel { border-radius: var(--r-md); }
.rs-page-aside .list-group { border-radius: var(--r-md); overflow: hidden; }
.rs-page-aside .list-group-item {
    border: 0; border-bottom: 1px solid var(--border);
    padding: .625rem .875rem; font-size: var(--t-body-lg); color: var(--text-secondary);
    background: none;
}
.rs-page-aside .list-group-item:last-child { border-bottom: 0; }
.rs-page-aside .list-group-item:hover { background: var(--bg-surface); color: var(--text-primary); }
.rs-page-aside .list-group-item.active { background: var(--gray-100); color: var(--text-heading); font-weight: 500; }


/* === 14. CART ============================================================= */

.rs-in-cart #main-body { padding-top: 1.25rem; }
#order-standard_cart .product-name, #order-standard_cart h1 { letter-spacing: -.018em; }
#order-standard_cart .price, .cart-total, .rs-total {
    font-family: var(--mono); font-variant-numeric: tabular-nums;
}
#order-standard_cart .btn-checkout { padding: .75rem 1.5rem; font-size: var(--t-body-lg); }


/* === 15. RESPONSIVE ======================================================= */

@media (max-width: 991.98px) {
    .rs-rail {
        position: fixed; top: 0; left: 0; bottom: 0;
        transform: translateX(-100%);
        transition: transform .22s var(--ease);
        box-shadow: var(--shadow-lg);
    }
    .rs-rail.is-open { transform: none; }
    .rs-rail-close, .rs-rail-toggle { display: inline-flex; }
    .rs-content--aside { grid-template-columns: minmax(0,1fr); }
    .rs-search { max-width: none; }
    .rs-account-name { display: none; }
}

@media (max-width: 575.98px) {
    .rs-body:not(.rs-in-cart):not(.rs-auth) #main-body { padding: 1rem 1.25rem 2rem; }
    .rs-topbar { padding: 0 .875rem; gap: .5rem; }
    .rs-search { display: none; }
    .rs-body .tiles .row { grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }
    /* Declutter the phone topbar: the breadcrumb repeats the page's own H1,
       and the greeting dropdown already holds Switch Account + (for admins)
       the return-to-admin control — so drop all three here. That frees space
       for larger, more tappable cart/notification icons. */
    .rs-switch-account, .rs-admin-return,
    .rs-topbar-actions a[href*="accounts"] { display: none; }
    .rs-topbar-actions { gap: .25rem; min-width: 0; }
    /* larger tappable cart/notification icons — see the block after the base
       .rs-icon-btn rules (must sit later in source to win the tie) */
    .rs-secondary-nav { min-width: 0; }
    .rs-secondary-nav .dropdown-toggle {
        max-width: 118px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
        display: inline-block;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rs-body *, .rs-rail { transition: none !important; }
}

/* --- brand logo ------------------------------------------------------------ */
.rs-logo { height: 24px; width: auto; display: block; }

/* === topbar icon size + guest auth buttons ================================ */
.rs-icon-btn { width: 40px; height: 40px; }
.rs-icon-btn i { font-size: 19px; }
.rs-icon-btn .badge { min-width: 18px; height: 18px; font-size: 11px; line-height: 18px; top: 1px; right: 0; }
/* Phones: bigger, more tappable cart/notification icons + badges. Placed
   AFTER the base rules so it wins the same-specificity tie at <=575.98px. */
@media (max-width: 575.98px) {
    .rs-icon-btn { width: 44px; height: 44px; }
    .rs-icon-btn i { font-size: 22px; }
    .rs-icon-btn .badge { min-width: 19px; height: 19px; font-size: 12px; line-height: 19px; }
}
.rs-btn-sm { padding: .4375rem .875rem !important; font-size: var(--t-label) !important; border-radius: var(--r-sm); }
.rs-topbar .rs-btn--primary { background: var(--accent); border: 1px solid var(--accent); color: var(--white) !important; }
.rs-topbar .rs-btn--ghost { background: var(--bg-card); border: 1px solid var(--border-active); color: var(--text-primary) !important; }
.rs-topbar .rs-btn--ghost:hover { background: var(--bg-surface); }

/* === account credit wallet (topbar pill + rail block) ==================== */
/* Topbar: compact pill, amount in mono. Green wallet glyph = money. */
.rs-wallet {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .3125rem .625rem; margin-right: .125rem;
    border: 1px solid var(--border-strong); border-radius: 100px;
    color: var(--text-primary); text-decoration: none; font-size: var(--t-label);
    transition: background .15s var(--ease), border-color .15s var(--ease);
}
.rs-wallet:hover { background: var(--bg-surface); border-color: var(--text-primary); }
.rs-wallet i { color: var(--hint-green-text); font-size: .8125rem; }
.rs-wallet-amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; }

/* Rail: labelled block in the sidebar foot */
.rs-rail-wallet {
    display: flex; align-items: center; gap: .625rem;
    padding: .5rem .625rem; margin-bottom: .5rem;
    border-radius: var(--r-sm); text-decoration: none; color: var(--text-primary);
    transition: background .15s var(--ease);
}
.rs-rail-wallet:hover { background: var(--bg-surface); }
.rs-rail-wallet-icon {
    flex: 0 0 auto; width: 2rem; height: 2rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--hint-green); color: var(--hint-green-text);
}
.rs-rail-wallet-body { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.rs-rail-wallet-label { font-size: var(--t-tag); color: var(--text-muted); text-transform: uppercase; letter-spacing: .03em; }
.rs-rail-wallet-amt { font-family: var(--mono); font-variant-numeric: tabular-nums; font-weight: 600; font-size: var(--t-card); color: var(--text-heading); }

/* Phones: the topbar is tight (avatar/greeting already trimmed) — drop the
   topbar pill and let the rail-drawer wallet carry it on mobile. */
@media (max-width: 575.98px) { .rs-wallet { display: none; } }

/* === account dropdown polish ============================================== */
.rs-secondary-nav .dropdown-menu { min-width: 200px; margin-top: .5rem; }
.rs-secondary-nav .dropdown-menu a,
.rs-secondary-nav .dropdown-item { display: block; padding: .5rem .75rem; border-radius: var(--r-sm); font-size: var(--t-body-lg); color: var(--text-primary); }
.rs-secondary-nav .dropdown-menu a:hover { background: var(--bg-surface); }
.rs-secondary-nav .dropdown-divider { border-color: var(--border); margin: .375rem 0; }

/* === footer =============================================================== */
.rs-footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1.5rem; padding: .5rem 0 1.25rem; }
.rs-footer-col { display: flex; flex-direction: column; gap: .375rem; }
.rs-footer-head { font-size: var(--t-tag); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .25rem; }
.rs-body #footer.rs-footer .rs-footer-col a { padding: 0; font-size: var(--t-body-lg); color: var(--text-secondary); }
.rs-body #footer.rs-footer .rs-footer-col a:hover { color: var(--text-heading); }
.rs-footer-base { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: .875rem; }
.rs-footer-locale { width: auto; }
.rs-footer-inner { display: block; }

/* === topbar without search; polished auth pair ============================ */
.rs-topbar-actions { margin-left: auto; gap: .5rem; }
.rs-auth { display: inline-flex; align-items: center; gap: .5rem; margin-left: .25rem; }
.rs-auth .rs-btn {
    display: inline-flex; align-items: center; gap: .375rem;
    height: 36px; padding: 0 1rem !important;
    font-size: var(--t-btn) !important; font-weight: 500;
    border-radius: 999px; text-decoration: none;
}
.rs-auth .rs-btn--ghost { border: 1px solid var(--border-active); }
.rs-auth .rs-btn--primary:hover { background: var(--gray-700); }

/* === rail icons: glyph props travel WITH the id, at any depth =============
   WHMCS moves overflow nav items under "More". There the items keep their
   ids — so the content codes still applied — but the font-family rule was
   scoped to top-level items only, and \f4ad rendered as tofu in DM Sans. */
#Primary_Navbar-Home > a::before, #Primary_Navbar-Services > a::before,
#Primary_Navbar-Billing > a::before, #Primary_Navbar-Support > a::before,
#Primary_Navbar-Open_Ticket > a::before, #Primary_Navbar-Affiliates > a::before,
#Primary_Navbar-Domains > a::before, #Primary_Navbar-Store > a::before {
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free",
                 "Font Awesome 5 Pro", "Font Awesome 5 Free";
    font-weight: 900; font-style: normal;
    display: inline-block; width: 16px; text-align: center;
    font-size: 13px; margin-right: .375rem; color: var(--text-muted);
}

/* --- support channels card ------------------------------------------------- */
.rs-support-card .list-group-item { display: flex; align-items: baseline; gap: .25rem; }
.rs-support-card .list-group-item i { width: 18px; text-align: center; color: var(--text-muted); }
.rs-support-hint { margin-left: auto; font-size: var(--t-tag); color: var(--text-muted); }

/* WHMCS tickets are not used (support = Zoho/chat/email): hide every menu
   item named Tickets — rail, sidebars, shortcuts. */
[menuitemname="Tickets"] { display: none !important; }

/* === SaaS auth pages ====================================================== */
body.rs-auth .rs-rail, body.rs-auth .rs-topbar { display: none; }
body.rs-auth #main-body { padding: 0; }
body.rs-auth .rs-content { max-width: none; }

.rs-auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.rs-auth-brand {
    background: var(--bg-terminal); color: #fff;
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 2.5rem 3rem; gap: 2rem;
}
.rs-auth-logo { font-weight: 700; font-size: 17px; letter-spacing: -.02em; }
/* Navy wordmark reads as invisible on the dark panel — white it out. */
.rs-auth-logo img { height: 28px; width: auto; display: block; filter: brightness(0) invert(1); }
.rs-auth-eyebrow { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: #ffffff8c; margin: 0 0 .75rem; }
.rs-auth-brand h1 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.02em; line-height: 1.15; margin: 0 0 2rem; color: #fff; }
.rs-auth-stats { display: grid; grid-template-columns: 1fr 1fr; }
.rs-auth-stats > div { border: 1px solid #ffffff14; margin: 0 -1px -1px 0; padding: .75rem .875rem; }
.rs-auth-stats span { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: #ffffff8c; margin-bottom: .25rem; }
.rs-auth-stats b { font-family: var(--mono); font-size: 13px; font-weight: 500; color: #fff; }
.rs-auth-foot { font-size: 12.5px; color: #ffffff8c; margin: 0; }

.rs-auth-main { display: grid; place-items: center; padding: 3rem 1.5rem; background: var(--bg-primary); }
.rs-auth-card { width: min(400px, 100%); }
.rs-auth-card h2 { font-size: 24px; letter-spacing: -.02em; margin: 0 0 .25rem; }
.rs-auth-sub { color: var(--text-muted); margin: 0 0 1.5rem; }

.rs-auth-google a, .rs-auth-google button {
    display: flex !important; align-items: center; justify-content: center; gap: .5rem;
    width: 100%; padding: .75rem 1rem !important; margin: 0 0 .5rem !important;
    border: 1px solid var(--border-active) !important; border-radius: var(--r-sm) !important;
    background: var(--bg-card) !important; color: var(--text-primary) !important;
    font-family: var(--font); font-size: var(--t-body-lg); font-weight: 500;
}
.rs-auth-google a:hover, .rs-auth-google button:hover { background: var(--bg-surface) !important; }

.rs-auth-div { display: flex; align-items: center; gap: .75rem; margin: 1.125rem 0; color: var(--text-muted); font-size: var(--t-tag); }
.rs-auth-div::before, .rs-auth-div::after { content: ""; flex: 1; border-top: 1px solid var(--border); }

.rs-auth-card .rs-field { margin-bottom: .875rem; }
/* asterisk / (Optional) sit right next to the field name; only the login's
   Forgot-Password link is pushed to the far right */
.rs-auth-card .rs-field label { display: flex; align-items: baseline; gap: .25rem; font-size: var(--t-label); font-weight: 500; color: var(--text-secondary); margin-bottom: .3125rem; }
.rs-auth-forgot { margin-left: auto; font-weight: 400; color: var(--text-muted) !important; }
.rs-auth-remember { display: flex; align-items: center; gap: .5rem; font-size: var(--t-body); color: var(--text-secondary); margin: .25rem 0 1rem; }
.rs-auth-submit { width: 100%; padding: .75rem 1rem; font-size: var(--t-body-lg); }
.rs-auth-alt { margin: 1.25rem 0 0; font-size: var(--t-body); color: var(--text-muted); text-align: center; }
body.rs-auth .primary-content > .card, body.rs-auth form.using-password-strength { max-width: 560px; margin-left: auto; margin-right: auto; }

@media (max-width: 900px) {
    .rs-auth-wrap { grid-template-columns: 1fr; }
    .rs-auth-brand { display: none; }
}

/* === auth: register width, field rows, strength meter ==================== */
.rs-auth-card--wide { width: min(560px, 100%); }
.rs-auth-card .rs-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
@media (max-width: 560px) { .rs-auth-card .rs-field-row { grid-template-columns: 1fr; } }
/* Live password strength + match + guidance chips — identical to the
   checkout signup (ported from rs-cart.css so the standalone register page,
   which loads custom.css not rs-cart.css, renders the same UI). */
.rs-pwmeter { display: flex; align-items: center; gap: .5rem; margin-top: .375rem; }
.rs-pwbar { flex: 1 1 auto; height: 4px; border-radius: 2px; background: var(--gray-150); overflow: hidden; }
.rs-pwfill { display: block; height: 100%; width: 0; border-radius: 2px; background: var(--brand-red); transition: width .3s var(--ease), background-color .3s var(--ease); }
.rs-pwmeter[data-lvl="mid"] .rs-pwfill { background: var(--brand-orange); }
.rs-pwmeter[data-lvl="strong"] .rs-pwfill { background: #00875a; }
.rs-pwtext { flex: 0 0 auto; font-size: var(--t-tag); font-weight: 600; min-width: 58px; text-align: right; }
.rs-pwmeter[data-lvl="weak"] .rs-pwtext { color: var(--brand-red); }
.rs-pwmeter[data-lvl="mid"] .rs-pwtext { color: var(--hint-amber-text); }
.rs-pwmeter[data-lvl="strong"] .rs-pwtext { color: #00875a; }
.rs-pwmatch { display: inline-flex; align-items: center; gap: .375rem; margin-top: .375rem; font-size: var(--t-tag); font-weight: 600; }
.rs-pwmatch[data-state="ok"] { color: #00875a; }
.rs-pwmatch[data-state="no"] { color: var(--brand-red); }
.rs-pwhints { display: flex; flex-wrap: wrap; gap: .375rem; margin-top: .5rem; }
.rs-pwhints span { font-size: var(--t-micro); font-weight: 600; letter-spacing: .02em; padding: .1875rem .5rem; border-radius: 999px; background: var(--bg-surface); color: var(--text-muted); transition: background-color .2s var(--ease), color .2s var(--ease); }
.rs-pwhints span.is-ok { background: var(--hint-green); color: #00875a; }
.rs-pwhints span.is-ok::before { content: "✓ "; }
@keyframes rsPopIn { 0% { transform: scale(.7); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.rs-popin { animation: rsPopIn .18s var(--ease); }
@media (prefers-reduced-motion: reduce) { .rs-pwfill { transition: none; } .rs-popin { animation: none; } }

/* === auth entrance motion ================================================= */
@keyframes rsUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.rs-auth-brand .rs-auth-logo    { animation: rsUp .5s var(--ease) both; }
.rs-auth-brand .rs-auth-eyebrow { animation: rsUp .5s var(--ease) .08s both; }
.rs-auth-brand h1               { animation: rsUp .55s var(--ease) .16s both; }
.rs-auth-stats > div            { animation: rsUp .45s var(--ease) both; }
.rs-auth-stats > div:nth-child(1){animation-delay:.26s} .rs-auth-stats > div:nth-child(2){animation-delay:.31s}
.rs-auth-stats > div:nth-child(3){animation-delay:.36s} .rs-auth-stats > div:nth-child(4){animation-delay:.41s}
.rs-auth-stats > div:nth-child(5){animation-delay:.46s} .rs-auth-stats > div:nth-child(6){animation-delay:.51s}
.rs-auth-stats > div:nth-child(7){animation-delay:.56s} .rs-auth-stats > div:nth-child(8){animation-delay:.61s}
.rs-auth-brand .rs-auth-foot    { animation: rsUp .5s var(--ease) .7s both; }
.rs-auth-card                   { animation: rsUp .55s var(--ease) .2s both; }
@media (prefers-reduced-motion: reduce) {
    .rs-auth-brand *, .rs-auth-card, .rs-auth-stats > div { animation: none !important; }
}

/* Auth pages: WHMCS attaches a page sidebar ("Already Registered?") to
   login/register. Our layout reserved a 268px right column for it — the dead
   gutter beside the split-screen. The card links both ways already; drop the
   panel and collapse to a single full-width column. */
body.rs-auth .rs-page-aside { display: none; }
body.rs-auth .rs-content--aside { display: block; }

/* Google's Sign-In script injects a cross-origin stylesheet
   (accounts.google.com/gsi/style) that hits <body> itself with
   display:inline-flex + a 4px left margin — the body shrink-wraps and the
   whole page drifts, leaving a dead gutter on the right of the auth pages.
   Pin the body back down; !important because their sheet loads after ours. */
body.rs-body { display: block !important; margin: 0 !important; width: auto !important; }

/* The linked-accounts include emits its own "Sign Up" sub-heading above the
   Google button on register; our card already has a title. */
body.rs-auth .sub-heading { display: none; }

/* The dedicated-server module renders its product-details tabs with
   Bootstrap 3 classes (tab-pane fade in active). Bootstrap 4 renamed .in to
   .show, so under this theme .fade stays at opacity:0 and the whole Overview
   tab renders invisible — an "empty" product details page whose content is
   all present in the DOM. BS4 itself never emits .in, so this shim only ever
   touches BS3 module markup. */
.rs-body .fade.in { opacity: 1; }

/* === 16. PRODUCT DETAILS — legacy module reskin ===========================
   The Germany dedicated-server module emits Bootstrap-3 markup (panels,
   glyphicons, centered everything) into Twenty-One's product-details frame.
   The module itself is off-limits, so the theme reskins its HTML. Selectors
   stay scoped to .product-details / .module-client-area; the colour language
   follows the system: neutral actions, red only where destructive. */

/* -- header card (left) -- */
.rs-body .product-details .product-status {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    overflow: hidden;
}
.rs-body .product-details .product-icon { padding: 1.5rem 1rem 1rem; }
.rs-body .product-details .product-icon h3 {
    font-size: var(--t-card); font-weight: 500; color: var(--text-muted);
    margin: .75rem 0 0;
}
.rs-body .product-details .product-icon h4 {
    font-size: var(--t-subsection); font-weight: 700; letter-spacing: -.015em;
    color: var(--text-heading); margin: .25rem 0 0;
}
.rs-body .product-details .product-status-text {
    font-size: var(--t-label); font-weight: 700; letter-spacing: .06em;
    text-transform: uppercase; text-align: center; padding: .5rem;
    background: var(--bg-surface); color: var(--text-muted);
}
.rs-body .product-details .product-status-active .product-status-text {
    background: var(--hint-green); color: #00875a;
}
/* destructive stays red, but as a quiet outline until hovered */
.rs-body .product-details #request-cancel-btn .btn-danger {
    margin-top: .75rem;
    background: transparent; border: 1px solid var(--brand-red);
    color: var(--brand-red);
}
.rs-body .product-details #request-cancel-btn .btn-danger:hover {
    background: var(--brand-red); color: var(--white);
}

/* -- header key/value list (right) -- */
.rs-body .product-details .col-md-6.text-center { text-align: left !important; }
.rs-body .product-details .col-md-6 > .row {
    display: flex; flex-wrap: nowrap; align-items: baseline; gap: .75rem;
    padding: .4375rem 0; margin: 0;
    border-bottom: 1px solid var(--border);
}
.rs-body .product-details .col-md-6 > .row:last-child { border-bottom: 0; }
.rs-body .product-details .col-md-6 > .row > [class*="col-sm-5"] {
    flex: 0 0 40%; max-width: 40%;
    font-size: var(--t-label); color: var(--text-muted); padding: 0;
}
.rs-body .product-details .col-md-6 > .row > [class*="col-sm-7"] {
    flex: 1 1 0; min-width: 0; max-width: none;
    font-size: var(--t-body-lg); font-weight: 500; color: var(--text-primary);
    padding: 0;
}

/* BS3 .col-xs-12 was renamed .col-12 in BS4, so the div wrapping the tab
   strip gets no grid styling: the row's negative margins drag it left and it
   shrinks to content width. Give it the .col-12 recipe. */
.rs-body .main-content .col-xs-12 {
    flex: 0 0 100%; max-width: 100%; width: 100%;
    padding-left: 15px; padding-right: 15px;
}

/* -- the "Manage" tab strip between header and module output -- */
.rs-body .main-content .nav-tabs-overflow {
    border-bottom: 1px solid var(--border);
    margin: 1.25rem 0 0;
}
.rs-body .main-content .nav-tabs-overflow .nav-link,
.rs-body .main-content .nav-tabs-overflow > li > a {
    border: 0; border-bottom: 2px solid transparent; border-radius: 0;
    font-size: var(--t-nav); font-weight: 500; color: var(--text-muted);
    padding: .5rem .875rem; background: none;
}
.rs-body .main-content .nav-tabs-overflow .nav-link.active,
.rs-body .main-content .nav-tabs-overflow > li.active > a,
.rs-body .main-content .nav-tabs-overflow > li > a.active {
    color: var(--text-heading); font-weight: 700;
    border-bottom-color: var(--accent);
}

/* -- module output -- */
/* !important matches Bootstrap 4's own .text-center utility */
.rs-body .module-client-area,
.rs-body .module-client-area .text-center,
.rs-body #manage.text-center { text-align: left !important; }

/* BS3 glyphicon font isn't loaded in this theme; the spans render as blank
   gaps inside buttons. */
.rs-body .module-client-area .glyphicon { display: none; }

/* BS3 .hide was dropped in BS4 — legacy markup (e.g. the tab-overflow
   dropdown stub) expects it to actually hide. */
.rs-body .hide { display: none !important; }

.rs-body .module-client-area h4 {
    font-size: var(--t-card); font-weight: 700; letter-spacing: -.01em;
    color: var(--text-heading);
    margin: 1.75rem 0 .75rem;
}
.rs-body .module-client-area h4:first-child { margin-top: .5rem; }

/* BS3 .panel has zero styling under Bootstrap 4 — map it to our card */
.rs-body .module-client-area .panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--r-md);
    margin: 0 0 1rem;
    overflow: hidden;
}
.rs-body .module-client-area .panel > h4 { margin: .875rem 1rem .25rem; }
.rs-body .module-client-area .table {
    margin: 0; font-size: var(--t-body-lg);
}
.rs-body .module-client-area .table th {
    font-size: var(--t-tag); font-weight: 600; letter-spacing: .06em;
    text-transform: uppercase; color: var(--text-muted);
    border-top: 0; border-bottom: 1px solid var(--border-strong);
    padding: .5625rem .875rem;
}
.rs-body .module-client-area .table td {
    border-top: 1px solid var(--border);
    padding: .5625rem .875rem; vertical-align: middle;
}
.rs-body .module-client-area .table-bordered,
.rs-body .module-client-area .table-bordered th,
.rs-body .module-client-area .table-bordered td { border-left: 0; border-right: 0; }
.rs-body .module-client-area .table-striped tbody tr:nth-of-type(odd) { background: transparent; }
.rs-body .module-client-area .table-hover tbody tr:hover { background: var(--bg-secondary); }

/* Actions read neutral; only genuinely destructive ones keep red.
   (OS Reinstall / Power Off are btn-danger in the markup and inherit the
   theme's red treatment untouched.) */
.rs-body .module-client-area .btn-info,
.rs-body .module-client-area .btn-warning {
    background: var(--bg-card); border: 1px solid var(--border-strong);
    color: var(--text-primary);
}
.rs-body .module-client-area .btn-info:hover,
.rs-body .module-client-area .btn-warning:hover {
    background: var(--bg-surface); border-color: var(--border-strong);
    color: var(--text-primary);
}
/* the btn-xs "ON"/"OFF" next to Power Status is a status pill, not a button */
.rs-body .module-client-area .btn-xs {
    pointer-events: none; border-radius: 999px;
    font-size: var(--t-tag); font-weight: 700; letter-spacing: .04em;
    padding: .1875rem .625rem;
}
.rs-body .module-client-area .btn-success.btn-xs {
    background: var(--hint-green); border-color: transparent; color: #00875a;
}
.rs-body .module-client-area .btn-danger.btn-xs {
    background: var(--hint-pink); border-color: transparent; color: var(--brand-red);
}

/* === 17. AFFILIATES ======================================================= */

.rs-aff-stats {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem; margin: 0 0 1rem;
}
.rs-aff-stat {
    position: relative;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 1.125rem 1.25rem;
    display: flex; flex-direction: column; gap: .25rem;
}
.rs-aff-stat-label { font-size: var(--t-label); color: var(--text-muted); }
.rs-aff-stat-value { font-size: var(--t-stat); font-weight: 600; letter-spacing: -.02em; color: var(--text-heading); }
.rs-aff-stat > i {
    position: absolute; top: 1.125rem; right: 1.25rem;
    font-size: 18px; color: var(--gray-300);
}

.rs-aff-link { padding: 1.125rem 1.25rem; margin: 0 0 1rem; }
.rs-aff-link label { display: block; font-size: var(--t-label); font-weight: 600; color: var(--text-secondary); margin: 0 0 .5rem; }
.rs-aff-link-row { display: flex; gap: .5rem; }
.rs-aff-link-row input {
    flex: 1 1 auto; min-width: 0; height: 40px; padding: 0 .875rem;
    font-family: var(--mono); font-size: var(--t-body); color: var(--text-primary);
    background: var(--bg-surface); border: 1px solid var(--border-active);
    border-radius: var(--r-sm);
}
.rs-aff-link-row .rs-btn { flex: 0 0 auto; white-space: nowrap; }
#rsAffCopy.is-copied { border-color: var(--hint-green-text); color: var(--hint-green-text); }

.rs-aff-earnings {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: .75rem; margin: 0 0 1.25rem;
}
.rs-aff-earn {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--r-md); padding: 1rem 1.125rem;
    display: flex; flex-direction: column; gap: .3125rem;
}
.rs-aff-earn-label { font-size: var(--t-label); color: var(--text-muted); }
.rs-aff-earn-value { font-size: var(--t-subsection); font-weight: 600; color: var(--text-heading); font-variant-numeric: tabular-nums; }

.rs-aff-withdraw { text-align: center; margin: 0 0 1.5rem; }
.rs-aff-note { font-size: var(--t-label); color: var(--text-muted); margin: .625rem 0 0; }
.rs-btn.is-disabled, .rs-btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }

.rs-aff-h2 { font-size: var(--t-subsection); font-weight: 600; letter-spacing: -.015em; margin: 1.75rem 0 .875rem; }
.rs-aff-banners { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; }
.rs-aff-banners textarea, .rs-aff-banners input { font-family: var(--mono); font-size: var(--t-body); }

/* === 18. FOCUSED CHECKOUT ================================================
   Guests on cart pages (body.rs-focus): no rail, minimal topbar (logo +
   secure mark), one-line footer. Every nav link at checkout is an exit —
   the marketing site is where exploration belongs. Logged-in clients keep
   the full shell. */

body.rs-focus .rs-rail,
body.rs-focus .rs-rail-scrim,
body.rs-focus .rs-rail-toggle,
body.rs-focus .rs-crumb,
body.rs-focus .rs-topbar-actions .rs-icon-btn { display: none; }

.rs-focus-brand { display: inline-flex; align-items: center; }
.rs-focus-brand img { height: 24px; width: auto; display: block; }

.rs-focus-secure {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: var(--t-label); color: var(--text-muted); white-space: nowrap;
}
.rs-focus-secure i { font-size: 11px; }

/* topbar becomes logo left, secure right */
body.rs-focus .rs-topbar { justify-content: space-between; }

/* slim footer */
.rs-footer-focus {
    display: flex; flex-direction: column; align-items: center; gap: .375rem;
    padding: 1rem 0; text-align: center;
}
.rs-footer-focus-links {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .375rem 1.25rem; align-items: center;
}
.rs-footer-focus-links a { font-size: var(--t-label); color: var(--text-muted); }
.rs-footer-focus-links a:hover { color: var(--text-primary); }
.rs-footer-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--gray-300); }
.rs-footer-focus .copyright { font-size: var(--t-tag); color: var(--text-muted); }

/* Auth pages are a self-contained split-screen — no footer below them. */
body.rs-auth #footer.rs-footer { display: none; }

/* === 19. ADDRESS AUTOCOMPLETE (theme-wide: checkout + register) ========== */
.rs-field:has(#inputAddress1) { position: relative; }
.rs-addr-sug {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    margin-top: 4px; padding: .25rem;
    background: var(--bg-card); border: 1px solid var(--border-strong);
    border-radius: var(--r-md); box-shadow: var(--shadow-md);
    display: flex; flex-direction: column;
}
.rs-addr-sug-item {
    display: block; width: 100%; text-align: left;
    background: none; border: 0; cursor: pointer;
    padding: .5rem .625rem; border-radius: var(--r-sm);
    font-size: var(--t-body); color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rs-addr-sug-item:hover, .rs-addr-sug-item.is-active { background: var(--bg-surface); }
.rs-addr-sug-credit {
    padding: .25rem .625rem .125rem; font-size: var(--t-micro);
    color: var(--text-muted); text-align: right;
}
@keyframes rsFieldFill {
    from { background: var(--gray-100); border-color: var(--border-strong); }
    to   { background: var(--bg-card); }
}
.rs-filled { animation: rsFieldFill .7s var(--ease); }
@media (prefers-reduced-motion: reduce) { .rs-filled { animation: none !important; } }

/* === 20. AUTH AMBIENT MOTION =============================================
   The entrance cascade (section above) plays once; these keep the pages
   quietly alive afterwards. All disabled under prefers-reduced-motion. */

/* terminal cursor blinking at the end of the mono eyebrow */
.rs-auth-eyebrow::after {
    content: "▍";
    margin-left: .25em;
    color: #ffffffb8;
    animation: rsBlink 1.1s steps(1) infinite;
    animation-delay: 1s;   /* appears after the entrance settles */
}
@keyframes rsBlink { 50% { opacity: 0; } }

/* live status dot before the data-center footline */
.rs-auth-foot::before {
    content: "";
    display: inline-block; width: 7px; height: 7px; border-radius: 50%;
    margin-right: .5em; vertical-align: 1px;
    background: var(--hint-green-text);
    animation: rsPulse 2.4s var(--ease) infinite;
}
@keyframes rsPulse {
    0%   { box-shadow: 0 0 0 0 #00c67a59; }
    70%  { box-shadow: 0 0 0 7px #00c67a00; }
    100% { box-shadow: 0 0 0 0 #00c67a00; }
}

/* inputs: focus ring eases in instead of snapping */
.rs-auth-card input.form-control, .rs-auth-card input {
    transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.rs-auth-card input:focus {
    border-color: var(--border-strong);
    box-shadow: 0 0 0 3px #00000012;
    outline: none;
}

/* buttons: lift on hover, press on click */
.rs-auth-card .btn, .rs-auth-card button[type=submit] {
    transition: transform .12s var(--ease), background-color .15s var(--ease);
}
.rs-auth-card .btn:hover, .rs-auth-card button[type=submit]:hover { transform: translateY(-1px); }
.rs-auth-card .btn:active, .rs-auth-card button[type=submit]:active { transform: translateY(1px); }

/* failed login/register: the error presents itself with one firm shake */
.rs-auth-card .alert-danger { animation: rsShake .4s var(--ease) 1; }
@keyframes rsShake {
    20% { transform: translateX(-5px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(2px); }
}

@media (prefers-reduced-motion: reduce) {
    .rs-auth-eyebrow::after, .rs-auth-foot::before,
    .rs-auth-card .alert-danger { animation: none !important; }
    .rs-auth-card .btn, .rs-auth-card button[type=submit] { transform: none !important; }
}

/* === 21. FLOW BUTTON =====================================================
   Invitational CTA (ported from a React/Tailwind snippet to plain CSS —
   the effect is pure transitions): arrow flows in from the left, the label
   slides, a black circle floods the background, the pill relaxes into a
   rounded rectangle. For "go shopping" moments only — transactional buttons
   (Complete Order) stay the solid primary style. */

.rs-flow-btn {
    position: relative; display: inline-flex; align-items: center; gap: .25rem;
    overflow: hidden; cursor: pointer;
    border-radius: 100px; border: 1.5px solid var(--border-strong);
    background: transparent; padding: .75rem 2rem;
    font-size: var(--t-btn); font-weight: 600; color: var(--text-primary);
    transition: border-color .6s cubic-bezier(.23,1,.32,1),
                color .6s cubic-bezier(.23,1,.32,1),
                border-radius .6s cubic-bezier(.23,1,.32,1),
                transform .15s var(--ease);
}
.rs-flow-btn:hover { border-color: transparent; color: var(--white); border-radius: 12px; }
.rs-flow-btn:active { transform: scale(.95); }

.rs-flow-label {
    position: relative; z-index: 1;
    transform: translateX(-12px);
    transition: transform .8s ease-out;
}
.rs-flow-btn:hover .rs-flow-label { transform: translateX(12px); color: var(--white); }

.rs-flow-arr {
    position: absolute; z-index: 9; font-size: 13px; color: var(--text-primary);
    transition: all .8s cubic-bezier(.34,1.56,.64,1);
}
.rs-flow-arr--in { left: -25%; }
.rs-flow-btn:hover .rs-flow-arr--in { left: 16px; color: var(--white); }
.rs-flow-arr--out { right: 16px; }
.rs-flow-btn:hover .rs-flow-arr--out { right: -25%; color: var(--white); }

.rs-flow-circle {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 16px; height: 16px; border-radius: 50%;
    background: var(--accent); opacity: 0;
    transition: width .8s cubic-bezier(.19,1,.22,1),
                height .8s cubic-bezier(.19,1,.22,1),
                opacity .8s cubic-bezier(.19,1,.22,1);
}
.rs-flow-btn:hover .rs-flow-circle { width: 280px; height: 280px; opacity: 1; }

@media (prefers-reduced-motion: reduce) {
    .rs-flow-btn, .rs-flow-label, .rs-flow-arr, .rs-flow-circle { transition: none !important; }
    .rs-flow-btn:hover { background: var(--accent); }
    .rs-flow-btn:hover .rs-flow-circle { opacity: 0; }
}

/* === 22. DOT GRID TEXTURE ================================================
   Engineering-substrate texture, two placements only: the dark auth panel
   and empty states. Pure CSS: a dot grid with a same-colour radial layer
   over it, so the dots surface near the focal area and dissolve toward the
   edges instead of tiling flatly. Never inside cards, forms or near numbers. */

.rs-auth-brand {
    background-color: var(--bg-terminal);
    background-image:
        radial-gradient(ellipse 85% 75% at 30% 28%, transparent 0%, var(--bg-terminal) 78%),
        radial-gradient(#ffffff24 1px, transparent 1.5px);
    background-size: 100% 100%, 24px 24px;
}

/* === 23. DASHBOARD MOTION ================================================
   The quietest tier: a one-shot entrance cascade and interaction feedback.
   Deliberately NO ambient motion here — this is a daily-use surface.
   fill-mode backwards (not both): once the entrance ends the elements
   return to normal styling, so the hover transform still works. */

@keyframes rsDashIn { from { opacity: 0; transform: translateY(10px); } }

.rs-stats .rs-stat { animation: rsDashIn .35s var(--ease) backwards; }
.rs-stats .rs-stat:nth-child(1) { animation-delay: .02s; }
.rs-stats .rs-stat:nth-child(2) { animation-delay: .07s; }
.rs-stats .rs-stat:nth-child(3) { animation-delay: .12s; }

.rs-panels > * { animation: rsDashIn .4s var(--ease) backwards; }
.rs-panels > *:nth-child(1) { animation-delay: .12s; }
.rs-panels > *:nth-child(2) { animation-delay: .16s; }
.rs-panels > *:nth-child(3) { animation-delay: .20s; }
.rs-panels > *:nth-child(4) { animation-delay: .24s; }
.rs-panels > *:nth-child(5) { animation-delay: .28s; }
.rs-panels > *:nth-child(6) { animation-delay: .32s; }

/* stat tiles are links — say so on hover */
.rs-stats .rs-stat { transition: transform .12s var(--ease), border-color .15s var(--ease), background-color .15s var(--ease); }
.rs-stats .rs-stat:hover { transform: translateY(-1px); border-color: var(--border-strong); }
.rs-stats .rs-stat:active { transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    .rs-stats .rs-stat, .rs-panels > * { animation: none !important; }
    .rs-stats .rs-stat:hover { transform: none; }
}

/* === 24. TOUCH + SAFE AREAS (Vercel web-interface-guidelines) ============= */

/* no 300ms double-tap delay on interactive elements */
.rs-body a, .rs-body button, .rs-body input, .rs-body select,
.rs-body textarea, .rs-body label { touch-action: manipulation; }

/* notched devices: keep chrome out of the unsafe zones */
.rs-topbar {
    padding-left: max(1.25rem, env(safe-area-inset-left));
    padding-right: max(1.25rem, env(safe-area-inset-right));
}
.rs-rail { padding-bottom: env(safe-area-inset-bottom); }
.rs-body #footer.rs-footer { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }

/* safety net: no page-level horizontal scroll, ever (clip, not hidden —
   position:sticky descendants keep working) */
body.rs-body { overflow-x: clip; }

/* === 25. VERIFICATION BANNERS (email-verify / fraud-doc) =================
   Stock twenty-one renders these as a flat grey band with a full-width
   dark slab button (btn-block, 255px). Restyle CSS-only to a clean SaaS
   notice: near-white bar, an amber icon badge (action-needed, not an
   error — red stays reserved), text, and a compact solid button. Amber
   also reads distinct from the yellow dev-licence band that sits below.
   Layout is flex by DOM order (close, text, resend), re-ordered to put
   text left / button+close right. Applies to both .verification-banner
   variants (.email-verification, .user-validation). */
.rs-body .verification-banner {
    background: var(--bg-card);
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-strong);
    padding: 0.8125rem 0;
    font-family: var(--font);
}
.rs-body .verification-banner .container {
    max-width: var(--max-w);
    width: 100%;
    margin: 0 auto;
    padding: 0 1.5rem;
}
/* kill Bootstrap's row negative margins + per-column gutters; flex it */
.rs-body .verification-banner .row {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin: 0;
    flex-wrap: wrap;
}
.rs-body .verification-banner .row > div {
    padding: 0;
    flex: 0 0 auto;
    width: auto;
    max-width: none;
}
/* DOM order is close(1), text(2), resend(3) — re-order for display */
.rs-body .verification-banner .row > div:nth-child(1) { order: 3; margin-left: auto; }
.rs-body .verification-banner .row > div:nth-child(2) { order: 1; flex: 1 1 16rem; display: flex; align-items: center; gap: 0.75rem; }
.rs-body .verification-banner .row > div:nth-child(3) { order: 2; }

/* icon → amber circular badge */
.rs-body .verification-banner i.fas,
.rs-body .verification-banner i.fal,
.rs-body .verification-banner i.far {
    flex: 0 0 auto;
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--hint-amber);
    color: var(--hint-amber-text);
    font-size: 0.875rem;
}
.rs-body .verification-banner .text {
    color: var(--text-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    line-height: 1.35;
}

/* resend → compact solid button, not a full-width slab */
.rs-body .verification-banner .btn-resend-verify-email,
.rs-body .verification-banner .btn-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    width: auto;
    min-width: 0;
    /* !important: stock .btn-default sets background-color from a later /
       higher-specificity rule and would otherwise keep its slate grey */
    background: var(--black) !important;
    color: var(--white) !important;
    border: 1px solid var(--black) !important;
    border-radius: var(--r-sm);
    padding: 0.5rem 0.9375rem;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition: transform 0.15s var(--ease), background 0.15s var(--ease);
}
.rs-body .verification-banner .btn-resend-verify-email:hover,
.rs-body .verification-banner .btn-action:hover {
    background: #1a1a1a !important;
    transform: translateY(-1px);
}

/* close → subtle round icon button */
.rs-body .verification-banner .btn.close {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    opacity: 1;
    color: var(--text-muted);
    text-shadow: none;
    font-size: 1.25rem;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}
.rs-body .verification-banner .btn.close:hover {
    background: var(--gray-100);
    color: var(--text-primary);
}

@media (max-width: 576px) {
    .rs-body .verification-banner .container { padding: 0 1rem; }
    /* stack: text full-width on top, button full-width below, close pinned */
    .rs-body .verification-banner .row > div:nth-child(2) { flex: 1 1 100%; padding-right: 2.25rem; }
    .rs-body .verification-banner .row > div:nth-child(3) { order: 2; flex: 1 1 100%; }
    .rs-body .verification-banner .btn-resend-verify-email,
    .rs-body .verification-banner .btn-action { width: 100%; }
    .rs-body .verification-banner .row > div:nth-child(1) { position: absolute; top: 0.5rem; right: 0.75rem; margin: 0; }
    .rs-body .verification-banner { position: relative; }
}

/* === 26. ADD FUNDS ======================================================
   Themed override of the stock table layout: one monochrome card, limits
   as a quiet spec strip (values in mono), themed fields, flow-button
   submit. Contract preserved — see clientareaaddfunds.tpl. */
.rs-body .rs-addfunds { max-width: 40rem; margin: 0 auto; }
.rs-body .rs-addfunds-intro { display: flex; align-items: flex-start; gap: 0.875rem; margin-bottom: 1.25rem; }
.rs-body .rs-addfunds-badge {
    flex: 0 0 auto; width: 2.75rem; height: 2.75rem;
    display: inline-flex; align-items: center; justify-content: center;
    border-radius: 50%; background: var(--hint-green); color: var(--hint-green-text); font-size: 1.125rem;
}
.rs-body .rs-addfunds-intro h1 { margin: 0 0 0.25rem; font-size: var(--t-section); line-height: 1.1; text-wrap: balance; }
.rs-body .rs-addfunds-intro p { margin: 0; color: var(--text-muted); font-size: var(--t-body-lg); max-width: 34rem; }

.rs-body .rs-addfunds-card {
    background: var(--bg-card); border: 1px solid var(--border-strong);
    border-radius: var(--r-lg); box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

/* limits — three quiet cells with dividers */
.rs-body .rs-addfunds-limits {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    margin: 0 0 1.5rem; padding: 0;
    border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
    background: var(--bg-surface);
}
.rs-body .rs-addfunds-limits > div { padding: 0.875rem 1rem; text-align: center; }
.rs-body .rs-addfunds-limits > div + div { border-left: 1px solid var(--border); }
.rs-body .rs-addfunds-limits dt { font-size: var(--t-tag); text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.25rem; font-weight: 500; }
.rs-body .rs-addfunds-limits dd { margin: 0; font-family: var(--mono); font-weight: 600; font-size: var(--t-card); color: var(--text-heading); }

.rs-body .rs-addfunds-form .rs-field { margin-bottom: 1rem; }
.rs-body .rs-addfunds-form label { display: block; margin-bottom: 0.375rem; font-weight: 600; font-size: var(--t-label); color: var(--text-primary); }
.rs-body .rs-addfunds-form .form-control {
    width: 100%; padding: 0.6875rem 0.875rem;
    border: 1px solid var(--border-strong); border-radius: var(--r-sm);
    background: var(--bg-card); color: var(--text-primary);
    font-family: var(--font); font-size: var(--t-body-lg);
    transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.rs-body .rs-addfunds-form .form-control:focus {
    outline: none; border-color: var(--black);
    box-shadow: 0 0 0 3px var(--border);
}
/* select: appearance:none removed the native arrow and our background
   shorthand removed Bootstrap's — restore a custom chevron affordance */
.rs-body .rs-addfunds-form select.form-control {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.875rem center;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* submit loading state — disable pointer + swap label so a valid submit
   gives feedback and can't be double-fired (pointer-events, not disabled,
   so the native POST still goes through) */
.rs-body .rs-addfunds-submit.is-submitting { pointer-events: none; opacity: 0.85; }
.rs-body .rs-addfunds-submit { width: 100%; justify-content: center; margin-top: 0.25rem; }

/* WHMCS-generated state dropdown (#stateselect) inherits appearance:none with
   no arrow image — give it the same chevron affordance as our other selects.
   Theme-wide so it covers both the checkout and the register form. */
.rs-body #stateselect {
    appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23555' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.25rem;
}
.rs-body .rs-addfunds-note { margin: 0.875rem 0 0; text-align: center; color: var(--text-muted); font-size: var(--t-body); }

@media (max-width: 480px) {
    .rs-body .rs-addfunds-limits { grid-template-columns: 1fr; }
    .rs-body .rs-addfunds-limits > div + div { border-left: none; border-top: 1px solid var(--border); }
}

/* === 27. DASHBOARD SERVICE LIST — premium ================================
   WHMCS's ProductsWidget renders each service as .div-service-item with a
   .div-service-status (status label), .div-service-name (name + .text-domain)
   and .div-service-buttons. Class names are WHMCS's own and stable, so this
   is a CSS-only reskin into a premium row: a hardware badge, the status as a
   soft dot-pill, the name prominent with the IP/domain in mono, and a whole-
   row hover. */
.rs-panel .div-service-item {
    display: flex; align-items: center; gap: .875rem; width: 100%;
}
/* leading hardware badge — SVG data-URI, no icon-font dependency */
.rs-panel .div-service-item::before {
    content: ""; order: 0; flex: 0 0 auto;
    width: 2.5rem; height: 2.5rem; border-radius: var(--r-sm);
    border: 1px solid var(--border);
    background: var(--bg-card) center/1.25rem no-repeat;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='7' rx='1.5'/%3E%3Crect x='3' y='13' width='18' height='7' rx='1.5'/%3E%3Cline x1='7' y1='7.5' x2='7.01' y2='7.5'/%3E%3Cline x1='7' y1='16.5' x2='7.01' y2='16.5'/%3E%3C/svg%3E");
}
/* name + domain */
.rs-panel .div-service-name {
    order: 1; flex: 1 1 auto; min-width: 0;
    display: flex; flex-direction: column; gap: .0625rem;
}
.rs-panel .div-service-name .font-weight-bold {
    color: var(--text-heading); font-weight: 600; font-size: var(--t-body-lg);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.rs-panel .div-service-name .text-domain {
    color: var(--text-muted); font-family: var(--mono); font-size: var(--t-body);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* status → soft dot-pill (green active, amber pending, pink terminated) */
.rs-panel .div-service-status { order: 2; flex: 0 0 auto; }
.rs-panel .div-service-status { min-width: max-content; }
.rs-panel .div-service-status .label {
    display: inline-flex; align-items: center; gap: .375rem;
    padding: .25rem .625rem; border-radius: 100px;
    font-size: var(--t-tag); font-weight: 600; line-height: 1.4;
    /* stock .label clips with overflow:hidden + a width cap; let it size to
       its text so "Active" (and the dot) aren't cut */
    width: auto; max-width: none; overflow: visible; white-space: nowrap;
}
.rs-panel .div-service-status .label::before {
    content: ""; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%;
    background: currentColor;
}
.rs-panel .div-service-status .label-placeholder { display: none; }
.rs-panel .div-service-status .label-success { background: var(--hint-green); color: var(--hint-green-text); }
.rs-panel .div-service-status .label-warning { background: var(--hint-amber); color: var(--hint-amber-text); }
.rs-panel .div-service-status .label-danger  { background: var(--hint-pink);  color: var(--hint-pink-text); }
/* button */
.rs-panel .div-service-buttons { order: 3; flex: 0 0 auto; }
.rs-panel .div-service-buttons .btn { white-space: nowrap; }

/* phones: keep the badge + name on row one, wrap status + button under it */
@media (max-width: 575.98px) {
    .rs-panel .div-service-item { flex-wrap: wrap; gap: .625rem .75rem; }
    .rs-panel .div-service-name { flex: 1 1 60%; }
    .rs-panel .div-service-status { order: 3; }
    .rs-panel .div-service-buttons { order: 4; margin-left: auto; }
}
