/* ===========================================================
   RAWEBS — WHMCS "Twenty-One" full theme
   Design system v2. Loaded after WHMCS's own theme.min.css /
   all.min.css (inherited from the twenty-one parent, per
   theme.yaml). Every template in this theme has been rebuilt
   to use the classes below in addition to WHMCS's own
   functional Bootstrap/JS scaffold (dropdowns, collapses,
   data-toggle hooks) — none of that has been renamed, only
   restyled and wrapped.

   Palette / type system lifted directly from rawebs.com
   (assets/styles.css) so the client area reads as the same
   product as the marketing site.
   =========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800;900&family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@500;600&display=swap');

:root{
  --ink: #17130F;
  --ink-soft: #4A423A;
  --paper: #FBF7F1;
  --paper-dim: #F1E9DE;
  --line: #E4D9C8;
  --line-dark: #362E26;
  --cream: #F4ECDF;
  --orange: #C1440E;
  --orange-dark: #9C3609;
  --ember: #E9812E;
  --green: #4F9B6E;
  --red: #C0392B;
  --muted-on-dark: #C9BEB0;

  --font-display: "Archivo", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;

  --radius: 6px;
  --radius-lg: 10px;
  --wrap: 1180px;
  --shadow-card: 0 18px 40px -22px rgba(23,19,15,.35);
  --shadow-lift: 0 24px 48px -20px rgba(0,0,0,.55);

  /* ---- Bootstrap 5 variable overrides -----------------------
     Twenty-One is built on Bootstrap 5.3, which drives most of
     its components off these custom properties. Setting them
     here re-themes buttons/links/focus rings/etc. even in
     places this stylesheet doesn't target directly. */
  --bs-font-sans-serif: var(--font-body);
  --bs-body-font-family: var(--font-body);
  --bs-body-color: var(--ink);
  --bs-body-bg: var(--paper);
  --bs-border-radius: var(--radius);
  --bs-border-radius-sm: 4px;
  --bs-border-radius-lg: 8px;
  --bs-border-color: var(--line);
  --bs-link-color: var(--orange);
  --bs-link-hover-color: var(--orange-dark);
  --bs-primary: var(--orange);
  --bs-primary-rgb: 193, 68, 14;
  --bs-secondary: var(--ink);
  --bs-secondary-rgb: 23, 19, 15;
  --bs-success: var(--green);
  --bs-danger: var(--red);
  --bs-warning: var(--ember);
  --bs-info: var(--green);
}

/* ===========================================================
   BASE
   =========================================================== */
body{
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
}
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6{
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
a{ color: var(--orange); text-decoration: none; }
a:hover{ color: var(--orange-dark); }
code, kbd, pre, .font-monospace{ font-family: var(--font-mono); }
::selection{ background: var(--orange); color: #fff; }
:focus-visible{ outline: 3px solid var(--orange); outline-offset: 2px; }
.container{ max-width: var(--wrap); }

/* Reusable wrap used by hand-built sections (header/footer/hero) */
.rw-wrap{ max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.rw-eyebrow{
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase; color: var(--orange-dark);
  margin: 0 0 14px;
}
.rw-eyebrow--light{ color: var(--cream); }
.rw-pulse{ position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex: none; }
.rw-pulse::after{ content:""; position:absolute; inset:-4px; border-radius:50%; background:var(--green); opacity:.45; animation: rwpulse 2.2s ease-out infinite; }
@keyframes rwpulse{ 0%{transform:scale(.6);opacity:.45;} 80%{transform:scale(1.9);opacity:0;} 100%{transform:scale(1.9);opacity:0;} }

/* ===========================================================
   SPECIFICITY FIXES
   Twenty-One ships a handful of its own utility/accent classes
   that outrank plain element selectors, so match them directly.
   =========================================================== */
body.primary-bg-color{ background: var(--paper); }
.action-icon-btns a{ color: var(--ink); background: #fff; border: 1px solid var(--line); }
.action-icon-btns a:hover{ color: var(--orange); border-color: var(--orange); }
.action-icon-btns a .ico-container i{ color: var(--orange); }
.action-icon-btns a:hover .ico-container i{ color: var(--orange-dark); }
[class*="card-accent-"]{ border-top-color: var(--orange) !important; }

/* ===========================================================
   HEADER / TOPBAR / NAVBAR
   Custom wrapper classes (rw-*) added by header.tpl sit around
   WHMCS's own functional markup (#header, .navbar, .dropdown-*,
   data-toggle hooks) — those keep their original classes so
   Twenty-One's JS keeps working; this just re-themes them.
   =========================================================== */
#header, .navbar, .navbar-dark, header.navbar{
  background: var(--ink) !important;
  border-bottom: 1px solid var(--line-dark);
}
.rw-topbar{
  background: #0E0B08;
  border-bottom: 1px solid var(--line-dark);
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted-on-dark);
}
.rw-topbar .btn{ color: var(--muted-on-dark); }
.rw-topbar .btn:hover{ color: var(--cream); }
.rw-topbar .btn-active-client{
  background: rgba(244,236,223,.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  color: var(--cream) !important;
  font-family: var(--font-body);
  font-weight: 600;
}
.rw-topbar .btn-return-to-admin{
  background: var(--orange); color: var(--cream) !important; border-radius: var(--radius);
}

.rw-header-main{ padding: 14px 0; }
.rw-logo{ display: inline-flex; align-items: center; gap: 10px; }
.rw-logo img{ height: 30px; width: auto; display: block; }
.rw-logo-text{ font-family: var(--font-display); font-weight: 800; font-size: 19px; color: var(--cream) !important; letter-spacing: -0.01em; }
.rw-logo-text .dot{ color: var(--orange); }
.navbar-brand, .navbar-brand:hover{
  font-family: var(--font-display); font-weight: 800; color: var(--cream) !important;
}
.navbar-brand img{ height: 30px; width: auto; }

.navbar .nav-link, .navbar-nav .nav-link{ font-family: var(--font-body); font-weight: 500; }
/* WHMCS's `header.header .navbar a{color:#444}` chains two type
   selectors on top of two classes, beating plain class selectors —
   !important is the reliable fix; :not(.navbar-brand) keeps the
   logo text on its own colour. */
.navbar a:not(.navbar-brand),
.navbar a:not(.navbar-brand):link,
.navbar a:not(.navbar-brand):visited{ color: var(--muted-on-dark) !important; }
.navbar a:not(.navbar-brand):hover,
.navbar a:not(.navbar-brand):focus{ color: var(--cream) !important; }
#nav > li > a, .navbar-nav .nav-link{
  font-weight: 600;
  font-size: 14.5px;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  position: relative;
}
.navbar .dropdown-menu{
  background: var(--ink); border: 1px solid var(--line-dark);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 8px;
}
.navbar .dropdown-item{ border-radius: 4px; color: var(--muted-on-dark) !important; font-weight: 500; }
.navbar .dropdown-item:hover, .navbar .dropdown-item:focus{
  background: rgba(244,236,223,.08); color: var(--cream) !important;
}
.navbar .dropdown-divider{ border-color: var(--line-dark); }
.navbar .badge, #header .badge{ background: var(--orange) !important; }
/* Search icon button and text field are styled as one seamless
   pill -- no border between them, so there's no visible seam/outline
   sitting on top of the search icon. */
.navbar .search{ background: rgba(244,236,223,.06); border: 1px solid var(--line-dark); border-radius: var(--radius); overflow: hidden; }
.navbar .search .btn{ color: var(--muted-on-dark); background: transparent; border: none; border-radius: 0; }
.navbar .search .form-control{
  background: transparent; border: none; color: var(--cream); border-radius: 0;
}
.navbar .search .form-control:focus{ box-shadow: none; }
.navbar .search:focus-within{ border-color: var(--orange); }
.navbar .search .form-control::placeholder{ color: #7A6E5F; }
.navbar .cart-btn{
  background: rgba(244,236,223,.06); border: 1px solid var(--line-dark);
  border-radius: var(--radius); color: var(--cream) !important; font-weight: 600;
}
.navbar .cart-btn:hover{ border-color: var(--orange); }
.main-navbar-wrapper{ background: var(--ink); }
#header{ position: sticky; top: 0; z-index: 1030; transition: box-shadow .2s ease; }
#header.rw-scrolled{ box-shadow: 0 12px 28px -18px rgba(0,0,0,.5); }

.rw-header-cta{
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--orange); color: #fff !important; font-weight: 600; font-size: 14px;
  padding: 9px 16px; border-radius: var(--radius); border: 1.5px solid var(--orange);
  text-decoration: none !important;
}
.rw-header-cta:hover, .rw-header-cta:focus{
  background: var(--orange-dark); border-color: var(--orange-dark); color: #fff !important;
  text-decoration: none !important;
}

/* ===========================================================
   FOOTER
   =========================================================== */
#footer, footer, .footer{
  background: var(--ink) !important; color: #9C9186; font-size: 14px;
  padding: 0 !important;
}
#footer a, footer a, .footer a{ color: var(--muted-on-dark); }
#footer a:hover, footer a:hover, .footer a:hover{ color: var(--ember); }
#footer h1, #footer h2, #footer h3, #footer h4,
footer h1, footer h2, footer h3, footer h4{ color: var(--cream); }
#footer hr, footer hr{ border-color: var(--line-dark); }
.rw-footer-top{ padding: 56px 0 32px; border-bottom: 1px solid var(--line-dark); }
.rw-footer-grid{ display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
@media (max-width: 900px){ .rw-footer-grid{ grid-template-columns: 1fr 1fr; } }
.rw-footer-brand .rw-logo-text{ font-size: 18px; }
.rw-footer-tag{ color: #8C8072; font-size: 14px; max-width: 320px; margin-top: 10px; }
.rw-footer-col-title{
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: #8C8072; margin-bottom: 14px;
}
.rw-footer-col ul{ list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rw-footer-bottom{ padding: 20px 0; }
.rw-status-chip{
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono);
  font-size: 12.5px; color: var(--muted-on-dark);
}

/* ===========================================================
   BUTTONS
   =========================================================== */
.btn{
  font-family: var(--font-body); font-weight: 600; border-radius: var(--radius);
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.btn:active{ transform: translateY(1px); }
.btn-primary{ background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active{
  background: var(--orange-dark) !important; border-color: var(--orange-dark) !important; color: var(--cream) !important;
}
.btn-secondary, .btn-dark{ background: var(--ink); border-color: var(--ink); color: var(--cream); }
.btn-secondary:hover, .btn-dark:hover{ background:#000 !important; border-color:#000 !important; }
.btn-outline-primary{ color: var(--orange); border-color: var(--orange); }
.btn-outline-primary:hover{ background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-link{ color: var(--orange); }
.btn-link:hover{ color: var(--orange-dark); }
.rw-btn-ghost-light{ color: var(--cream); border: 1.5px solid rgba(244,236,223,.3); background: transparent; }
.rw-btn-ghost-light:hover{ border-color: var(--cream); background: rgba(244,236,223,.08); color: var(--cream); }

/* ===========================================================
   CARDS / PANELS
   =========================================================== */
.card, .panel{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card-header, .panel-heading{
  background: var(--paper-dim); border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-weight: 700; color: var(--ink);
}
.card-footer, .panel-footer{ background: var(--paper-dim); border-top: 1px solid var(--line); }
.card-sidebar .card-header{ border-radius: var(--radius) var(--radius) 0 0; }

/* ===========================================================
   PRICING TABLES (order forms / product listing / dynamic store)
   =========================================================== */
.pricing-table, .product-thumbnail-container, .orderform-standard-cart .card{
  border: 1px solid var(--line); border-radius: var(--radius);
}
.pricing-table .pricing-table-price, .pricing-table .price, .product-price{
  font-family: var(--font-mono); font-weight: 600; color: var(--ink);
}
.pricing-table.featured, .pricing-table.most-popular, .card.featured, .card.most-popular{
  border-color: var(--orange) !important; box-shadow: 0 18px 40px -22px rgba(193,68,14,.45);
}

/* Bespoke pricing / plan cards used across store/dynamic, ssl, domain-pricing */
.rw-plan-grid{ display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.rw-plan-card{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
  box-shadow: var(--shadow-card);
}
.rw-plan-card--featured{ border-color: var(--orange); box-shadow: 0 22px 48px -22px rgba(193,68,14,.4); position: relative; }
.rw-plan-badge{
  align-self: flex-start; font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; background: var(--orange); color: #fff;
  padding: 4px 10px; border-radius: 999px;
}
.rw-plan-name{ font-family: var(--font-display); font-weight: 800; font-size: 20px; margin: 0; }
.rw-plan-price{ font-family: var(--font-mono); font-size: 28px; font-weight: 700; color: var(--ink); }
.rw-plan-price small{ font-family: var(--font-body); font-size: 13px; font-weight: 500; color: var(--ink-soft); }
.rw-plan-features{ list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.rw-plan-features li{ display: flex; align-items: flex-start; gap: 8px; }
.rw-plan-features li::before{ content: "✓"; color: var(--green); font-weight: 700; flex: none; }

/* ===========================================================
   ORDER FORM PLAN CARDS (templates/orderforms/rawebs_cart)
   Extends the .rw-plan-card system above with the bigger,
   marketing-site-style price treatment and featured ribbon used
   on the product/plan selection step of checkout, so the WHMCS
   store reads as the same product as rawebs.com's own pricing
   tables (e.g. /business-web-hosting#plans).
   =========================================================== */
.rw-plan-grid--order{ grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.rw-plan-card--order{ position: relative; text-align: left; overflow: visible; }
.rw-plan-card--order .rw-plan-ribbon{
  position: absolute; top: 0; left: 24px; transform: translateY(-50%);
  background: var(--orange); color: #fff; font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; box-shadow: 0 6px 14px -6px rgba(193,68,14,.6);
}
.rw-plan-card--order .rw-plan-tagline{ color: var(--ink-soft); font-size: 13.5px; margin: -8px 0 0; }
.rw-plan-price-lg{
  font-family: var(--font-mono); font-weight: 700; color: var(--ink);
  font-size: 32px; line-height: 1.15; margin: 2px 0 0;
}
.rw-plan-price-lg .rw-plan-cycle-note,
.rw-plan-price-lg small{
  display: block; font-family: var(--font-body); font-size: 12.5px;
  font-weight: 500; color: var(--ink-soft); margin-top: 4px;
}
.rw-plan-card--order .btn-primary,
.rw-plan-card--order .order-button{
  display: block; width: 100%; text-align: center; padding: 12px 0;
  border-radius: var(--radius); font-weight: 700; margin: 4px 0 2px;
}
.rw-plan-card--order .order-button.unavailable{
  background: var(--paper-dim); border: 1px solid var(--line);
  color: var(--ink-soft) !important; cursor: not-allowed;
}
.rw-plan-card--order .order-button.unavailable:hover{ background: var(--paper-dim); }
.rw-plan-features--order{ border-top: 1px solid var(--line); padding-top: 14px; margin-top: auto; }
.rw-plan-includes{
  margin-top: 44px; background: var(--paper-dim); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 30px 32px;
}
.rw-plan-includes h2{
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--ink);
  margin: 0 0 18px; text-align: center;
}
.rw-plan-includes ul{
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px;
}
.rw-plan-includes li{ display: flex; align-items: flex-start; gap: 8px; font-size: 14px; color: var(--ink-soft); }
.rw-plan-includes li::before{ content: "✓"; color: var(--green); font-weight: 700; flex: none; }

/* ===========================================================
   COMPARISON / TLD PRICING TABLE (Brixly-style)
   =========================================================== */
.rw-compare-wrap{ overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.rw-compare-table{ width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.rw-compare-table th, .rw-compare-table td{ padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; }
.rw-compare-table thead th{
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .05em; color: var(--ink-soft); background: var(--paper-dim);
}
.rw-compare-table tbody tr:hover{ background: var(--paper-dim); }
.rw-compare-table td.rw-mono, .rw-compare-table th.rw-mono{ font-family: var(--font-mono); }
.rw-tld{ font-family: var(--font-mono); font-weight: 700; color: var(--ink); }
.rw-status-available{ color: var(--green); font-weight: 600; font-size: 13px; }
.rw-status-taken{ color: var(--ink-soft); font-weight: 600; font-size: 13px; }

/* ===========================================================
   TABLES (invoices, order history, domains, products & services)
   =========================================================== */
.table{ color: var(--ink); }
.table th{
  font-family: var(--font-mono); font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink-soft); border-bottom-color: var(--line); background: var(--paper-dim);
}
.table td{ border-color: var(--line); }
.table-hover tbody tr:hover{ background: var(--paper-dim); }

/* ===========================================================
   FORMS
   =========================================================== */
.form-control, .form-select, textarea.form-control, select.form-select{
  border: 1.5px solid var(--line); border-radius: var(--radius); font-family: var(--font-body); color: var(--ink);
}
.form-control:focus, .form-select:focus{
  border-color: var(--orange); box-shadow: 0 0 0 .2rem rgba(193,68,14,.15);
}
.form-label{ font-weight: 600; color: var(--ink); }
.input-group-text{ background: var(--paper-dim); border-color: var(--line); color: var(--ink-soft); }
.form-check-input:checked{ background-color: var(--orange); border-color: var(--orange); }

/* ===========================================================
   ALERTS / NOTICES
   =========================================================== */
.alert{ border-radius: var(--radius); border-width: 1px; }
.alert-success{ background: #EAF4EE; border-color: var(--green); color: #2C5E42; }
.alert-danger{ background: #FBEAE7; border-color: var(--red); color: #7A241A; }
.alert-warning{ background: #FDF0E1; border-color: var(--ember); color: #8A4A0F; }
.alert-info{ background: #EAF4EE; border-color: var(--green); color: #2C5E42; }

/* ===========================================================
   BADGES / LABELS
   =========================================================== */
.badge.bg-primary{ background: var(--orange) !important; }
.badge.bg-success{ background: var(--green) !important; }
.badge.bg-danger{ background: var(--red) !important; }
.badge.bg-warning{ background: var(--ember) !important; color: var(--cream) !important; }
.badge.bg-secondary{ background: var(--ink-soft) !important; }
[class*="status-"], .label{ font-family: var(--font-mono); font-weight: 600; letter-spacing: .02em; }
.label.status{
  display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 11px;
  text-transform: uppercase; background: var(--paper-dim); color: var(--ink-soft); border: 1px solid var(--line);
}
.label.status-active, .label.status-paid, .label.status-completed{ background: #EAF4EE; color: #2C5E42; border-color: #cfe6d8; }
.label.status-pending, .label.status-awaitingpayment, .label.status-unpaid{ background: #FDF0E1; color: #8A4A0F; border-color: #f3dcb8; }
.label.status-cancelled, .label.status-terminated, .label.status-overdue, .label.status-suspended{ background: #FBEAE7; color: #7A241A; border-color: #f1cec8; }
.table-list tr{ cursor: pointer; }
.ticket-number{ font-family: var(--font-mono); color: var(--ink-soft); margin-right: 6px; }
.ticket-subject.unread{ font-weight: 700; }

/* ===========================================================
   STANDALONE INVOICE / QUOTE VIEW (viewinvoice.tpl, viewquote.tpl,
   invoicepdf.tpl, quotepdf.tpl) — these render outside header/footer.tpl
   entirely, so brand fonts/colours are applied locally here.
   =========================================================== */
.invoice-container{ font-family: var(--font-body); color: var(--ink); }
.invoice-container h2, .invoice-container h3{ font-family: var(--font-display); }
.invoice-status span{ font-family: var(--font-mono); font-weight: 700; letter-spacing: .03em; padding: 4px 12px; border-radius: 999px; text-transform: uppercase; font-size: 12px; }
.invoice-status .paid{ background: #EAF4EE; color: #2C5E42; }
.invoice-status .unpaid, .invoice-status .draft{ background: #FDF0E1; color: #8A4A0F; }
.invoice-status .cancelled, .invoice-status .refunded, .invoice-status .collections{ background: #FBEAE7; color: #7A241A; }
.invoice-container .table th{ background: var(--paper-dim); }
.payment-btn-container .btn{ background: var(--orange); border-color: var(--orange); }

/* ===========================================================
   PAGINATION / BREADCRUMBS
   =========================================================== */
.pagination .page-link{ color: var(--ink); border-color: var(--line); }
.pagination .page-item.active .page-link{ background: var(--orange); border-color: var(--orange); }
.pagination .page-link:hover{ color: var(--orange); }
.master-breadcrumb{ background: var(--paper-dim); border-bottom: 1px solid var(--line); }
.breadcrumb{ font-family: var(--font-mono); font-size: 12.5px; background: transparent; margin: 0; padding: 10px 0; }
.breadcrumb-item.active{ color: var(--ink-soft); }
.breadcrumb-item + .breadcrumb-item::before{ color: var(--line); }

/* ===========================================================
   MODALS / DROPDOWNS
   =========================================================== */
.modal-content{ border-radius: var(--radius); border: 1px solid var(--line); }
.modal-header{ background: var(--paper-dim); border-bottom: 1px solid var(--line); }
.modal-header .modal-title{ font-family: var(--font-display); font-weight: 700; }

/* ===========================================================
   LIST GROUPS (client area home widgets, sidebar, ticket lists)
   =========================================================== */
.list-group-item{ border-color: var(--line); }
.list-group-item.active{ background: var(--orange); border-color: var(--orange); }
.list-group-item-action:hover{ background: var(--paper-dim); }
.sidebar-menu-item-icon{ color: var(--orange); }
.sidebar .card-sidebar .card-header{ background: var(--ink); }
.sidebar .card-sidebar .card-title{ color: var(--cream); font-size: 15px; }

/* ===========================================================
   LOGIN / REGISTER — split panel layout
   =========================================================== */
body.login-body, .login-container{ background: var(--paper); }
.login-container .card, #login .card{ border-color: var(--line); }
.rw-auth-shell{ min-height: calc(100vh - 220px); display: flex; align-items: stretch; }
.rw-auth-visual{
  flex: 1 1 46%; background: var(--ink); color: var(--cream); display: flex; flex-direction: column;
  justify-content: center; padding: 56px; position: relative; overflow: hidden;
}
.rw-auth-visual::before{
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 20% 20%, rgba(193,68,14,.25), transparent 60%);
}
.rw-auth-visual > *{ position: relative; }
.rw-auth-visual h2{ color: var(--cream); font-size: clamp(24px, 3vw, 32px); }
.rw-auth-visual p{ color: var(--muted-on-dark); max-width: 380px; }
.rw-auth-stat-row{ display: flex; gap: 28px; margin-top: 28px; }
.rw-auth-stat b{ display: block; font-family: var(--font-display); font-size: 22px; color: var(--cream); }
.rw-auth-stat span{ font-size: 12.5px; color: var(--muted-on-dark); }
.rw-auth-form{ flex: 1 1 54%; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.rw-auth-form-inner{ width: 100%; max-width: 420px; }
@media (max-width: 900px){
  .rw-auth-shell{ flex-direction: column; }
  .rw-auth-visual{ padding: 40px 24px; }
}

/* ===========================================================
   HERO SECTIONS (homepage, store/dynamic pages, ssl store,
   domain-pricing, addon module landing pages)
   =========================================================== */
.rw-hero{
  background: var(--ink); color: var(--cream); padding: 52px 0; margin-bottom: 32px; position: relative; overflow: hidden;
}
.rw-hero::before{
  content:""; position:absolute; inset:0;
  background: radial-gradient(700px 320px at 15% 0%, rgba(193,68,14,.22), transparent 60%);
}
/* Descendant selector, not a direct-child one: the domain search hero
   nests .rw-wrap inside a <form>/.home-domain-search wrapper, so a
   ">" combinator here never matched for that hero. Without
   position:relative, .rw-wrap's content stacks below the hero's own
   ::before glow layer (any positioned element beats non-positioned
   content, regardless of DOM order) and silently swallows clicks --
   that's what made "View all pricing" (and anything else in that
   hero) unclickable. */
.rw-hero .rw-wrap{ position: relative; }
.rw-hero h1, .rw-hero h2{ color: var(--cream); font-size: clamp(26px, 3.2vw, 38px); max-width: 720px; }
.rw-hero p{ color: var(--muted-on-dark); max-width: 620px; font-size: 16px; }
.rw-hero-actions{ display: flex; gap: 12px; flex-wrap: wrap; margin-top: 18px; }

/* Domain search hero (homepage) -- the whole search bar reads as one
   elevated white card sitting on the dark hero, instead of a plain
   row of native Bootstrap/multiselect controls. */
.rw-domain-hero{
  padding: 0; margin-bottom: 0;
  /* .rw-hero sets overflow:hidden to contain its radial-gradient glow,
     but that also clips the "Include TLDs" / "Maximum Length"
     dropdown panels, which need to pop open below the card. Let them
     escape; the glow still reads fine without the clip on this hero. */
  overflow: visible;
}
.rw-domain-hero h2{ color: var(--cream); }
.rw-domain-hero .input-group-wrapper{ max-width: 760px; margin: 28px auto; }
.home-domain-search .input-group-wrapper .advanced-input textarea {
  height: 150px;
}
.home-domain-search .input-group-wrapper .advanced-input .input-group-append {
  top: 106px;
}
.rw-domain-hero .input-group{
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
  padding: 14px; gap: 10px; align-items: center; text-align: left;
}
.rw-domain-hero .input-group .form-control,
.rw-domain-hero .input-group textarea{
  background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius);
  font-size: 16px; padding: 14px 16px; height: auto; margin: 0 !important; flex: 1 1 100%;
  font-family: var(--font-body); color: var(--ink);
}
.rw-domain-hero .input-group textarea{ resize: vertical; min-height: 92px; line-height: 1.5; }
.rw-domain-hero .input-group .form-control:focus,
.rw-domain-hero .input-group textarea:focus{
  border-color: var(--orange); box-shadow: 0 0 0 3px rgba(193,68,14,.12); outline: none;
}
.rw-domain-hero .btn-group{ margin: 0; }
.rw-domain-hero .btn-group .multiselect.btn-default{
  background: var(--paper-dim); border: 1.5px solid var(--line); color: var(--ink-soft);
  font-weight: 600; font-size: 13.5px; border-radius: var(--radius); padding: 8px 14px;
}
.rw-domain-hero .btn-group .multiselect.btn-default:hover{ border-color: var(--orange); color: var(--ink); }
.rw-domain-hero .btn-group .multiselect .caret{ margin-left: 6px; }
.rw-domain-hero label.checkbox{
  display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-soft);
  font-weight: 500; margin: 0; padding: 8px 4px;
}
.rw-domain-hero .input-group-append{ display: flex; gap: 10px; margin: 0 0 0 auto !important; flex: 0 0 auto; }
.rw-domain-hero .input-group-append .btn{
  border-radius: var(--radius); font-weight: 600; padding: 12px 22px; white-space: nowrap;
}
/* The Transfer button sits inside this white card, not on the dark
   hero -- give it a visible light-surface style instead of the cream
   "ghost" treatment (used elsewhere on this same page) meant for a
   dark backdrop, where it would otherwise be nearly invisible. */
.rw-domain-hero .input-group-append .rw-btn-ghost-light{
  color: var(--ink-soft); border: 1.5px solid var(--line); background: #fff;
}
.rw-domain-hero .input-group-append .rw-btn-ghost-light:hover{
  color: var(--orange); border-color: var(--orange); background: var(--paper-dim);
}
.rw-domain-hero .tld-logos{ list-style: none; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin: 18px 0 8px; padding: 0; color: var(--muted-on-dark); font-size: 13px; }
.rw-domain-hero .tld-logos img{ height: 18px; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ===========================================================
   FEATURE GRIDS
   =========================================================== */
.rw-feature-grid{ display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin: 24px 0; }
.rw-feature-item{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.rw-feature-item i, .rw-feature-item .icon{ color: var(--orange); font-size: 22px; margin-bottom: 10px; display: block; }
.rw-feature-item h4{ font-size: 16px; margin: 0 0 6px; }
.rw-feature-item p{ font-size: 14px; color: var(--ink-soft); margin: 0; }

/* ===========================================================
   FAQ ACCORDION
   =========================================================== */
.rw-faq .accordion-item{ border: 1px solid var(--line); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.rw-faq .accordion-button{ font-family: var(--font-display); font-weight: 700; font-size: 15px; background: #fff; color: var(--ink); }
.rw-faq .accordion-button:not(.collapsed){ background: var(--paper-dim); color: var(--orange-dark); box-shadow: none; }
.rw-faq .accordion-body{ color: var(--ink-soft); font-size: 14.5px; }

/* ===========================================================
   ADDON / STORE MODULE PAGES (nordvpn, weebly, sitelock,
   codeguard, marketgoo, socialbee, spamexperts, xovinow,
   threesixtymonitoring, ox, wp-toolkit) — shared wrapper
   =========================================================== */
.rw-addon-section{ padding: 36px 0; }
.rw-addon-section + .rw-addon-section{ border-top: 1px solid var(--line); }
.rw-addon-section--alt{ background: var(--paper-dim); }
.rw-addon-lede{ font-size: 16px; color: var(--ink-soft); max-width: 640px; }

/* Store add-on landing pages (nordvpn, weebly, sitelock, codeguard,
   marketgoo, socialbee, spamexperts, threesixtymonitoring, xovinow,
   ox, sitebuilder, wp-toolkit) ship their own rich `.landing-page
   .hero` marketing sections — retheme those in place rather than
   duplicating them. */
.landing-page .hero, .landing-page .hero-bg, .landing-page .hero-cta{
  background: var(--ink) !important; color: var(--cream);
}
.landing-page .hero h1, .landing-page .hero h2, .landing-page .hero h3,
.landing-page .hero-cta h1, .landing-page .hero-cta h2{ color: var(--cream); }
.landing-page .hero p, .landing-page .hero-cta p{ color: var(--muted-on-dark); }
.landing-page .btn-primary, .landing-page .btn-success{
  background: var(--orange) !important; border-color: var(--orange) !important; color: var(--cream) !important;
}
.landing-page .btn-primary:hover, .landing-page .btn-success:hover{ background: var(--orange-dark) !important; }
.landing-page h1, .landing-page h2, .landing-page h3{ font-family: var(--font-display); }
.landing-page .strong-green{ color: var(--green) !important; }
.landing-page{ background: var(--paper); }

/* ===========================================================
   DASHBOARD STAT TILES (clientareahome)
   =========================================================== */
.rw-stat-row{ display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); margin-bottom: 24px; }
.rw-stat-tile{ background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.rw-stat-tile .rw-stat-label{ font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.rw-stat-tile .rw-stat-value{ font-family: var(--font-display); font-size: 26px; font-weight: 800; margin-top: 4px; }
.rw-stat-tile .rw-stat-value.rw-stat-accent{ color: var(--orange); }

/* Twenty-One's own dashboard tile grid (.tiles/.tile) — used on
   clientareahome. Re-themed in place rather than restructured,
   since the tile markup is generated by a Smarty {function}. */
.tiles .tile{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 20px 16px; text-align: center; display: block; position: relative; overflow: hidden;
  transition: border-color .15s ease, transform .1s ease;
}
.tiles .tile:hover{ border-color: var(--orange); transform: translateY(-2px); }
.tiles .tile i{ color: var(--orange); font-size: 22px; }
.tiles .tile .stat{ font-family: var(--font-display); font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 6px; }
.tiles .tile .title{ font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.tiles .tile .highlight{ position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--orange) !important; }
.rw-page-lead{ margin-bottom: 24px; }
.rw-page-lead .rw-eyebrow{ margin-bottom: 6px; }
.rw-page-lead h1{ font-size: 26px; margin-bottom: 4px; }
.rw-page-lead p{ color: var(--ink-soft); margin: 0; }

/* ===========================================================
   MISC
   =========================================================== */
hr{ border-color: var(--line); }
.text-primary{ color: var(--orange) !important; }
.text-muted{ color: var(--ink-soft) !important; }
.bg-light{ background: var(--paper-dim) !important; }
.bg-dark{ background: var(--ink) !important; }
.nav-tabs .nav-link{ font-weight: 600; color: var(--ink-soft); }
.nav-tabs .nav-link.active{ color: var(--orange); border-bottom: 2px solid var(--orange); }
.rw-empty-state{ text-align: center; padding: 48px 24px; color: var(--ink-soft); }
.rw-empty-state i{ font-size: 32px; color: var(--line); margin-bottom: 12px; display: block; }

/* ===========================================================
   DOMAIN PRICING / FEATURED TLDs
   =========================================================== */
.featured-tlds-container{ margin-bottom: 24px; }
.featured-tld{
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 16px; text-align: center; margin-bottom: 16px;
}
.featured-tld .price{ font-family: var(--font-mono); font-weight: 700; color: var(--ink); margin-top: 8px; }
.tld-filters{ display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 20px; }
.tld-filters .badge{
  font-family: var(--font-mono); font-size: 12.5px; font-weight: 600; padding: 7px 12px;
  border-radius: 999px; background: #fff; color: var(--ink-soft); border: 1px solid var(--line); cursor: pointer;
}
.tld-filters .badge:hover{ border-color: var(--orange); color: var(--orange); }
.tld-filters .badge.badge-success{ background: var(--orange); border-color: var(--orange); color: #fff; }
/* ===========================================================
   CART / ORDER FORM (store/order.tpl) — WHMCS's own JS drives
   the tabs and domain validation; only visuals are touched here.
   =========================================================== */
.store-order-container .payment-term.rw-plan-card{ padding: 20px; }
.store-order-container .payment-term h4{ font-size: 15px; margin-bottom: 10px; }
.store-domain-tabs.nav-tabs{ border-bottom: 1px solid var(--line); gap: 4px; flex-wrap: wrap; }
.store-domain-tabs .nav-link{
  border: 1px solid transparent; border-bottom: none; border-radius: var(--radius) var(--radius) 0 0;
  color: var(--ink-soft); font-weight: 600;
}
.store-domain-tabs .nav-link.active{ background: #fff; border-color: var(--line); color: var(--orange); }
.store-domain-tab-content{ border: 1px solid var(--line); border-top: none; padding: 20px; border-radius: 0 0 var(--radius) var(--radius); }
.domain-validation.ok{ color: var(--green); font-weight: 600; }
.domain-validation:not(.ok){ color: var(--ink-soft); }
.store-promoted-product{ border-left: 4px solid var(--orange); }
.store-promoted-product .features{ list-style: none; padding: 0; margin: 12px 0; }
.store-promoted-product .features li{ color: var(--ink-soft); font-size: 14px; margin-bottom: 6px; }
.store-promoted-product .features i{ color: var(--green); margin-right: 6px; }

.tld-sale-group{
  display: inline-block; margin-left: 6px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  background: var(--green); color: #fff; padding: 2px 6px; border-radius: 4px; text-transform: uppercase;
}

/* ===========================================================
   STORE — product category sidebar (order form's own
   #premiumComparisonSidebar / .product-selection-sidebar).
   This markup and its "Show Menu" toggle script belong to
   WHMCS's separate orderforms/premium_comparison template, not
   to this theme, so it can't be edited directly -- instead we
   override it here.

   Desktop/tablet (>=768px, matching Bootstrap's own col-md-3
   breakpoint for this sidebar): keep it permanently visible and
   stop it from shifting the product listing when shown. Below
   that breakpoint the original "Show Menu" toggle is left
   untouched, since a collapsible menu makes sense on mobile. */
@media (min-width: 768px){
  .product-selection-sidebar{
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: static !important;
    left: 0 !important;
  }
  /* The toggle button has nothing left to do once the sidebar is
     always on at this width -- hide it rather than leave a dead
     control. */
  #btnShowSidebar{ display: none !important; }
  .row-product-selection{ flex-wrap: nowrap !important; }
  .row-product-selection > .col-md-12{ flex: 0 0 75% !important; max-width: 75% !important; }
}
/* Category icons vary in natural glyph width (bolt, boxes, lock,
   cloud, server, ...) so the label text after them lands at a
   different x-position per row. Give every icon the same fixed
   box -- same trick as Font Awesome's own .fa-fw -- so the text
   all lines up in a column regardless of screen width. */
.product-selection-sidebar .list-group-item i{
  display: inline-block;
  width: 20px;
  text-align: left;
}

/* ===========================================================
   DOMAIN TRANSFER — .uk IPS-tag advice (js/custom.js swaps
   this in over the Authorization Code field on the "Single
   domain transfer" quick-add box, another orderforms template
   we don't own the markup for).
   =========================================================== */
.rw-uktag-advice{
  background: var(--paper-dim);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-bottom: 20px;
}
.rw-uktag-advice p{ margin: 0 0 10px; color: var(--ink-soft); font-size: 14.5px; line-height: 1.5; }
.rw-uktag-advice p:last-child{ margin-bottom: 0; }
.rw-uktag-advice .rw-uktag-title{
  font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--ink) !important;
}
.rw-uktag-advice code{
  background: var(--ink); color: #fff; font-family: var(--font-mono);
  font-size: 12.5px; padding: 2px 7px; border-radius: 4px; letter-spacing: .02em;
}
.rw-uktag-advice .rw-uktag-links-label{ font-weight: 600; color: var(--ink) !important; }
.rw-uktag-advice .rw-uktag-links{ list-style: none; padding: 0; margin: 0 !important; display: flex; flex-wrap: wrap; gap: 8px 18px; }
.rw-uktag-advice .rw-uktag-links a{ color: var(--orange); font-weight: 600; text-decoration: none; }
.rw-uktag-advice .rw-uktag-links a:hover{ text-decoration: underline; }

/* ===========================================================
   COOKIE CONSENT — small bottom-left box + preferences modal
   (footer.tpl, js/cookie-notice.js). Matches the same pattern
   used on rawebs.com: small, non-blocking box (no backdrop, no
   full-width bar) with "Customize" / "Reject All" / "Accept All";
   "Customize" opens the small modal below it. Only Necessary and
   Analytics categories exist here — there's no chat widget on
   this domain.
   =========================================================== */
.rw-cookie-box{
  position: fixed; left: 20px; bottom: 20px; z-index: 1080;
  width: calc(100% - 40px); max-width: 360px;
  background: var(--ink); border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 40px -14px rgba(0,0,0,.5);
}
.rw-cookie-box-inner{ padding: 20px 22px; }
.rw-cookie-box-inner p{
  color: var(--muted-on-dark); font-size: 13.5px; line-height: 1.5; margin: 0 0 16px;
}
.rw-cookie-box-inner p a{ color: var(--cream); text-decoration: underline; }
.rw-cookie-box-actions{ display: flex; flex-wrap: wrap; gap: 8px; }
.rw-cookie-box-actions .btn{ flex: 1 1 auto; white-space: nowrap; }
.rw-cookie-box .btn-outline-light{ border-color: rgba(244,236,223,.35); color: var(--cream); }
.rw-cookie-box .btn-outline-light:hover{ border-color: var(--cream); background: rgba(244,236,223,.08); color: var(--cream); }

@media (max-width: 420px){
  .rw-cookie-box{ left: 12px; bottom: 12px; width: calc(100% - 24px); max-width: none; }
}

/* Round "reopen cookie preferences" launcher — replaces the old footer
   text link once a choice has been made. Matched to the Atlas chat
   widget's own launcher bubble (same size/shape/shadow/fill, injected by
   chatbot-widget.js as .cbw-launcher) just mirrored to the opposite
   corner, same as rawebs.com's equivalent icon. */
.rw-cookie-settings-btn{
  position: fixed; left: 20px; bottom: 20px; z-index: 1080;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--orange); color: #fff; border: none;
  box-shadow: 0 4px 14px rgba(23,19,15,.3);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.rw-cookie-settings-btn:hover{ background: var(--orange-dark); }
.rw-cookie-settings-btn[hidden]{ display: none; }

.rw-cookie-modal{
  position: fixed; inset: 0; z-index: 1090;
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.rw-cookie-modal[hidden]{ display: none; }
.rw-cookie-modal-backdrop{ position: absolute; inset: 0; background: rgba(15,12,9,.6); }
.rw-cookie-modal-panel{
  position: relative; background: #fff; border-radius: var(--radius);
  max-width: 480px; width: 100%; max-height: 86vh; overflow-y: auto;
  padding: 34px 30px 28px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.rw-cookie-modal-panel h2{
  font-family: var(--font-display); font-weight: 800; font-size: 21px;
  color: var(--ink); margin-bottom: 10px;
}
.rw-cookie-modal-panel > p{ font-size: 14px; color: var(--ink-soft); margin-bottom: 22px; line-height: 1.5; }
.rw-cookie-modal-close{
  position: absolute; top: 14px; right: 14px;
  width: 32px; height: 32px; border: none; background: transparent;
  font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-soft);
}
.rw-cookie-modal-close:hover{ color: var(--ink); }

.rw-cookie-toggle-row{
  display: flex; align-items: flex-start; justify-content: space-between; gap: 18px;
  padding: 16px 0; border-top: 1px solid var(--line);
}
.rw-cookie-toggle-row:first-of-type{ border-top: none; padding-top: 0; }
.rw-cookie-toggle-row h3{
  font-family: var(--font-display); font-weight: 700; font-size: 15px;
  color: var(--ink); margin-bottom: 4px;
}
.rw-cookie-toggle-row p{ font-size: 13.5px; color: var(--ink-soft); margin: 0; }
.rw-cookie-toggle-row .rw-cookie-switch{ flex: none; margin-top: 3px; }
.rw-cookie-toggle-row input:disabled ~ .rw-cookie-switch-track{ opacity: .55; cursor: not-allowed; }

.rw-cookie-switch{
  position: relative;
  display: inline-flex; align-items: center;
  width: 36px; height: 20px;
  flex: none;
  cursor: pointer;
}
.rw-cookie-switch input{
  position: absolute; inset: 0;
  opacity: 0; margin: 0; cursor: pointer;
}
.rw-cookie-switch-track{
  position: absolute; inset: 0;
  background: var(--line-dark);
  border-radius: 999px;
  transition: background .15s ease;
}
.rw-cookie-switch-thumb{
  position: absolute; top: 2px; left: 2px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform .15s ease;
}
.rw-cookie-switch input:checked ~ .rw-cookie-switch-track{ background: var(--orange); }
.rw-cookie-switch input:checked ~ .rw-cookie-switch-track .rw-cookie-switch-thumb{ transform: translateX(16px); }
.rw-cookie-switch input:focus-visible ~ .rw-cookie-switch-track{ outline: 2px solid var(--orange); outline-offset: 2px; }

.rw-cookie-modal-actions{
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end;
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line);
}
