/* ============================================================
   MuDefender_v2 — Order Form (autonomous, based on standard_cart)
   Comprehensive tactical styling for products / configure / cart /
   checkout / complete / domain / renewals / addons.
   REV 18 — 2026-04-28 — EDIT + X wrapped in .md-of-actions inline-flex so they always stick together
   ============================================================ */

/* ============================================================
   FORCE MODAL POSITIONING — fixes "X button modal appearing inline"
   on cart.php?a=view (REMOVE ITEM, EMPTY CART confirmations)
   ============================================================ */
body .modal,
.modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 100050 !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  outline: 0 !important;
  pointer-events: auto !important;
}
body .modal:not(.in):not(.show) { display: none !important; }
body .modal.in,
body .modal.show {
  display: block !important;
  opacity: 1 !important;
}
body .modal.fade { transition: opacity 0.15s linear; }
body .modal-dialog {
  position: relative !important;
  width: auto !important;
  max-width: 600px !important;
  margin: 30px auto !important;
  pointer-events: auto !important;
  z-index: 100051 !important;
}
body .modal-content {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 100052 !important;
}
body .modal-content .btn,
body .modal-content button {
  pointer-events: auto !important;
  position: relative !important;
  z-index: 100053 !important;
}
body .modal-backdrop {
  position: fixed !important;
  top: 0 !important; right: 0 !important; bottom: 0 !important; left: 0 !important;
  z-index: 100040 !important;
}
body .modal-backdrop.fade { opacity: 0; }
body .modal-backdrop.in,
body .modal-backdrop.show { opacity: 0.85 !important; background: rgba(2, 3, 10, 0.85) !important; }
body .modal-open { overflow: hidden !important; }

/* When modal is open, kill sticky/positioning on the sidebar so it stops
   competing with the modal stacking context and intercepting clicks. */
body.modal-open .secondary-cart-sidebar,
body.modal-open #scrollingPanelContainer,
body.modal-open .order-summary,
body.modal-open #orderSummary {
  position: static !important;
  z-index: auto !important;
  pointer-events: none !important;
}
/* And make sure the order-standard_cart wrapper doesn't sit above the modal */
body.modal-open #order-standard_cart {
  z-index: auto !important;
}

/* X button visibility on cart rows */
.btn-remove-from-cart,
.btn-remove-from-cart i {
  color: var(--accent-red) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0.4rem 0.7rem !important;
  cursor: pointer !important;
  font-size: 1rem !important;
  transition: all 0.2s !important;
}
.btn-remove-from-cart:hover {
  color: var(--accent-red) !important;
  text-shadow: 0 0 12px rgba(255, 45, 77, 0.6);
  transform: scale(1.15);
}
.btn-remove-from-cart:hover i { color: var(--accent-red) !important; }

/* HIDE all field-icon labels (user request: icons inside boxes look wrong, remove them).
   Loaded at top with extra-high priority so it wins all cascades. */
.field-icon,
label.field-icon,
.form-group.prepend-icon > label.field-icon,
#order-standard_cart .field-icon,
#order-standard_cart label.field-icon,
.cart-container .field-icon,
.cart-checkout-container .field-icon,
[class*="field-icon"] { display: none !important; }

/* Restore .form-group.prepend-icon to normal layout since icon is hidden */
#order-standard_cart .form-group.prepend-icon,
.cart-container .form-group.prepend-icon,
.cart-checkout-container .form-group.prepend-icon,
.form-group.prepend-icon {
  padding-left: 0 !important;
  position: relative;
}
#order-standard_cart .form-group.prepend-icon .form-control,
#order-standard_cart .form-group.prepend-icon .field,
.cart-container .form-group.prepend-icon .form-control,
.cart-checkout-container .form-group.prepend-icon .form-control {
  padding-left: 0.9rem !important;
}

/* Token fallback (in case main theme.css didn't load) */
:root {
  --bg-base: #050608;
  --bg-deep: #02030a;
  --bg-panel: rgba(10, 14, 22, 0.85);
  --bg-panel-solid: #0a0e16;
  --grid-line: rgba(0, 230, 255, 0.04);
  --accent-red: #ff2d4d;
  --accent-red-glow: #ff003c;
  --accent-amber: #ffaa00;
  --accent-cyan: #00e6ff;
  --accent-cyan-glow: #00b4d8;
  --accent-green: #00ff9d;
  --accent-violet: #b14eff;
  --text-primary: #e8f4ff;
  --text-secondary: #8a9cb0;
  --text-muted: #4a5a6e;
  --border-faint: rgba(0, 230, 255, 0.12);
  --border-strong: rgba(0, 230, 255, 0.35);
  --font-display: 'Orbitron', sans-serif;
  --font-tactical: 'Rajdhani', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

/* ============================================================
   STANDARD CART CONTAINERS
   ============================================================ */
#order-standard_cart,
.cart-container,
.cart-checkout-container {
  font-family: var(--font-tactical);
  color: var(--text-primary);
  padding-bottom: 3rem;
}
#order-standard_cart .header-lined,
.cart-container .header-lined {
  border-bottom: 1px solid var(--border-faint);
  margin-bottom: 1.5rem;
  padding-bottom: 0.8rem;
}
#order-standard_cart .header-lined h1,
#order-standard_cart .font-size-36,
.cart-container .header-lined h1 {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  color: var(--text-primary) !important;
  margin: 0 !important;
}

#order-standard_cart .cart-sidebar,
.cart-container .cart-sidebar {
  background: transparent;
}
#order-standard_cart .cart-body,
.cart-container .cart-body {
  background: transparent;
}

/* ============================================================
   SIDEBAR CATEGORIES (cart left sidebar)
   ============================================================ */
#order-standard_cart .panel-sidebar,
#order-standard_cart .cart-sidebar .panel,
.cart-container .panel-sidebar,
.cart-sidebar .card-sidebar {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border-faint) !important;
  border-radius: 0 !important;
  margin-bottom: 1rem;
  box-shadow: none !important;
}
.panel-sidebar > .panel-heading,
.card-sidebar > .panel-heading,
.card-sidebar > .card-header {
  background: rgba(0, 230, 255, 0.04) !important;
  background-color: rgba(0, 230, 255, 0.04) !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-faint) !important;
  border-radius: 0 !important;
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.85rem 1.1rem !important;
}
.panel-sidebar .panel-title,
.card-sidebar .panel-title,
.card-sidebar .card-header h3 {
  font-family: var(--font-display) !important;
  font-size: 0.85rem !important;
  margin: 0 !important;
  color: var(--text-primary) !important;
}
.panel-sidebar .list-group-item,
.card-sidebar .list-group-item {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--border-faint) !important;
  border-radius: 0 !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-tactical) !important;
  font-size: 0.92rem !important;
  padding: 0.65rem 1.1rem !important;
}
.panel-sidebar .list-group-item:hover,
.card-sidebar .list-group-item:hover {
  background: rgba(0, 230, 255, 0.05) !important;
  color: var(--accent-cyan) !important;
}
.panel-sidebar .list-group-item.active,
.card-sidebar .list-group-item.active {
  background: rgba(0, 230, 255, 0.08) !important;
  color: var(--accent-cyan) !important;
  border-left: 2px solid var(--accent-cyan) !important;
}
.panel-sidebar .badge,
.card-sidebar .badge {
  background: rgba(0, 230, 255, 0.1) !important;
  color: var(--accent-cyan) !important;
  border: 1px solid var(--border-faint) !important;
  border-radius: 0 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
}
.card-minimise, .panel-minimise { color: var(--accent-cyan); }

/* ============================================================
   CONFIGURE PRODUCT PAGE
   ============================================================ */
.cart-body .secondary-cart-body,
.secondary-cart-body {
  padding-right: 1rem;
}
.product-info,
#order-standard_cart .product-info {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border-faint) !important;
  padding: 6px 15px !important;
  margin: 0 0 20px 0 !important;
  font-size: 0.85em !important;
  border-radius: 0 !important;
}
.product-info .product-title {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--text-primary) !important;
  margin: 0 0 0.4rem !important;
}
.product-info p { color: var(--text-secondary); margin: 0; }

/* Sub-headings (Choose Cycle, Configure Package, Available Addons, etc.) */
.sub-heading,
#order-standard_cart .sub-heading {
  height: 0 !important;
  text-align: center !important;
  margin-top: 20px !important;
  margin-bottom: 30px !important;
  border: 0 !important;
  padding: 0 !important;
  position: relative;
}
.sub-heading > span,
.sub-heading > span.primary-bg-color,
#order-standard_cart .sub-heading > span,
#order-standard_cart .sub-heading > span.primary-bg-color {
  display: inline-block !important;
  background: transparent !important;
  background-color: transparent !important;
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.2em !important;
  color: var(--accent-cyan) !important;
  padding: 0 0.8rem !important;
  border: 0 !important;
  position: relative;
  z-index: 1;
}
.sub-heading > span small,
.sub-heading i {
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: normal;
}

.field-container {
  background: rgba(2, 3, 10, 0.4);
  border: 1px solid var(--border-faint);
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
}

/* ============================================================
   FORMS — inputs, selects, labels
   ============================================================ */
#order-standard_cart .form-group,
.cart-container .form-group { margin-bottom: 1rem; }

#order-standard_cart label,
#order-standard_cart .form-group > label,
.cart-container label,
.cart-container .form-group > label {
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  color: var(--text-muted) !important;
  font-weight: 700 !important;
  margin-bottom: 0.45rem !important;
  display: block !important;
}
#order-standard_cart .checkbox label,
#order-standard_cart .radio label,
.cart-container .checkbox label,
.cart-container .radio label {
  font-family: var(--font-tactical) !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
}
.field-help-text {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

#order-standard_cart .form-control,
#order-standard_cart input[type=text],
#order-standard_cart input[type=email],
#order-standard_cart input[type=password],
#order-standard_cart input[type=tel],
#order-standard_cart input[type=number],
#order-standard_cart select,
#order-standard_cart textarea,
.cart-container .form-control,
.cart-container input[type=text],
.cart-container input[type=email],
.cart-container input[type=password],
.cart-container input[type=tel],
.cart-container input[type=number],
.cart-container select,
.cart-container textarea {
  background: var(--bg-deep) !important;
  background-color: var(--bg-deep) !important;
  border: 1px solid var(--border-faint) !important;
  color: var(--text-primary) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.9rem !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0.65rem 0.9rem !important;
  height: auto !important;
  width: 100%;
}
#order-standard_cart .form-control:focus,
#order-standard_cart input:focus,
#order-standard_cart select:focus,
#order-standard_cart textarea:focus,
.cart-container .form-control:focus {
  border-color: var(--accent-cyan) !important;
  outline: none !important;
  box-shadow: 0 0 14px rgba(0, 230, 255, 0.18) !important;
}
.form-control-static,
.form-control-static-inline {
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* ============================================================
   ADDON PRODUCTS (Available Addons section)
   ============================================================ */
.addon-products { margin: 0; }
.panel-addon,
.panel.panel-addon {
  background: var(--bg-panel) !important;
  background-color: var(--bg-panel) !important;
  border: 1px solid var(--border-faint) !important;
  border-radius: 0 !important;
  position: relative;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: all 0.2s ease;
  box-shadow: none !important;
}
.panel-addon:hover {
  border-color: var(--border-strong) !important;
  background: rgba(0, 230, 255, 0.04) !important;
}
.panel-addon-selected {
  border-color: var(--accent-green) !important;
  background: rgba(0, 255, 157, 0.04) !important;
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.12) !important;
}
.panel-addon .panel-body,
.panel-addon .card-body {
  padding: 1rem 1.2rem !important;
  background: transparent !important;
  color: var(--text-primary) !important;
}
.panel-addon label {
  font-family: var(--font-display) !important;
  font-size: 0.95rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--text-primary) !important;
  cursor: pointer;
}
.panel-addon label input[type=checkbox] {
  margin-right: 0.5rem;
  accent-color: var(--accent-green);
}
.panel-addon .panel-price,
#order-standard_cart .panel-addon .panel-price {
  position: absolute;
  top: 0;
  right: 0;
  background: transparent !important;
  color: var(--accent-cyan) !important;
  padding: 4px !important;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  border: 0 !important;
}
.panel-addon-selected .panel-price {
  color: var(--accent-green) !important;
}
.panel-addon .panel-add {
  margin: 0;
  padding: 0.7rem 1rem;
  background: var(--accent-green);
  color: var(--bg-deep) !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  text-align: center;
  cursor: pointer;
  border-top: 1px solid var(--accent-green);
  transition: all 0.2s;
}
.panel-addon .panel-add:hover {
  background: var(--accent-cyan);
  color: var(--bg-deep) !important;
}
.panel-addon-selected .panel-add {
  background: var(--accent-cyan);
}

/* ============================================================
   ORDER SUMMARY (right sidebar)
   ============================================================ */
.secondary-cart-sidebar,
#scrollingPanelContainer {
  position: sticky;
  top: 80px;
}
#orderSummary {
  background: var(--bg-panel) !important;
  background-color: var(--bg-panel) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 0 !important;
  padding: 1.2rem !important;
  color: var(--text-primary) !important;
  position: relative;
  box-shadow: 0 0 24px rgba(0, 230, 255, 0.08);
}
#orderSummary::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
  box-shadow: 0 0 12px var(--accent-cyan-glow);
}

/* AGGRESSIVE: kill ALL inner backgrounds inside #orderSummary so no light boxes show */
#orderSummary .order-summary,
#orderSummary #producttotal,
#orderSummary > div,
#orderSummary > .text-center,
.order-summary,
#producttotal,
#producttotal > div {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-top: 0 !important;
  position: relative;
  color: var(--text-primary) !important;
}
#orderSummary .order-summary { padding: 0 !important; }

/* Summary container — restore standard_cart spacing/sizing per user request */
#orderSummary .summary-container,
#order-standard_cart .summary-container,
.summary-container {
  margin: 0 !important;
  padding: 10px !important;
  min-height: 100px !important;
  border-radius: 3px !important;
  background-color: transparent !important;
  background: transparent !important;
  font-size: 0.85rem !important;
  border: 0 !important;
  box-shadow: none !important;
  color: var(--text-primary) !important;
}
#orderSummary h2,
#orderSummary .font-size-30 {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 1.05rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  color: var(--text-primary) !important;
  margin: 0 0 1rem !important;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border-faint);
  position: relative;
}
#orderSummary h2::before {
  content: '// ';
  color: var(--accent-cyan);
}
#orderSummary .summary-container,
#orderSummary #producttotal {
  color: var(--text-primary);
}

/* Order summary line items — FORCE colors with !important */
.md-os-product-name,
#orderSummary .product-name,
#orderSummary span.product-name,
.summary-container .product-name {
  display: block !important;
  font-family: var(--font-display) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--accent-cyan) !important;
  margin-bottom: 0.3rem !important;
  text-shadow: 0 0 12px rgba(0, 230, 255, 0.25);
  background: transparent !important;
}
.md-os-product-group,
#orderSummary .product-group,
#orderSummary span.product-group,
.summary-container .product-group {
  display: block !important;
  font-family: var(--font-mono) !important;
  font-size: 0.7rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.18em !important;
  color: var(--text-muted) !important;
  margin: 0 0 0.8rem !important;
  padding: 0 0 0.8rem !important;
  border-bottom: 1px dashed var(--border-faint) !important;
  background: transparent !important;
}

.md-os-line,
#orderSummary .clearfix,
.summary-container .clearfix {
  display: flex !important;
  justify-content: space-between !important;
  align-items: baseline !important;
  gap: 0.6rem !important;
  padding: 0.4rem 0 !important;
  font-size: 0.92rem !important;
  color: var(--text-primary) !important;
  background: transparent !important;
}
.md-os-line span:first-child,
#orderSummary .clearfix .pull-left,
#orderSummary .clearfix .float-left,
.summary-container .clearfix .pull-left,
.summary-container .clearfix .float-left {
  color: var(--text-secondary) !important;
  font-family: var(--font-tactical) !important;
}
.md-os-line span:last-child,
#orderSummary .clearfix .pull-right,
#orderSummary .clearfix .float-right,
.summary-container .clearfix .pull-right,
.summary-container .clearfix .float-right {
  color: var(--text-primary) !important;
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
}
.md-os-suboption span,
#orderSummary .clearfix.suboption span {
  font-size: 0.82rem !important;
  color: var(--text-muted) !important;
}
.md-os-suboption-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.md-os-totals,
#orderSummary .summary-totals {
  margin-top: 0.8rem;
  padding-top: 0.6rem;
  border-top: 1px dashed var(--border-faint);
}

.md-os-grand-total,
#orderSummary .total-due-today {
  margin-top: 1rem;
  padding: 1rem 1.2rem;
  background: rgba(0, 255, 157, 0.05);
  border: 1px solid var(--accent-green);
  text-align: center;
  position: relative;
}
.md-os-total-amt,
#orderSummary .total-due-today .amt {
  display: block !important;
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 1.6rem !important;
  color: var(--accent-green) !important;
  text-shadow: 0 0 14px rgba(0, 255, 157, 0.35);
  letter-spacing: 0.02em;
  line-height: 1.1;
}
.md-os-total-label,
#orderSummary .total-due-today span:not(.amt):not(.md-os-total-amt) {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-top: 0.4rem;
}

.md-os-renewal { padding: 0.6rem 0; border-bottom: 1px dashed var(--border-faint); }
.md-os-renewal:last-child { border-bottom: 0; }
.md-os-remove,
#orderSummary [onclick*="removeItem"] {
  color: var(--accent-red) !important;
  margin-left: 0.5rem;
  transition: all 0.2s;
}
.md-os-remove:hover,
#orderSummary [onclick*="removeItem"]:hover {
  color: var(--accent-red) !important;
  text-shadow: 0 0 8px rgba(255, 45, 77, 0.6);
}

#orderSummaryLoader { color: var(--accent-cyan); }

/* Continue button below order summary */
#orderSummary .text-center,
.secondary-cart-sidebar .text-center {
  margin-top: 1rem;
}
#btnCompleteProductConfig,
#orderSummary .btn,
#orderSummary .btn-primary,
.secondary-cart-sidebar .btn-primary {
  width: 100%;
  background: var(--accent-cyan) !important;
  background-color: var(--accent-cyan) !important;
  border: 1px solid var(--accent-cyan) !important;
  color: var(--bg-deep) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.85rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.13em !important;
  border-radius: 0 !important;
  padding: 0.9rem 1rem !important;
  text-shadow: none !important;
  box-shadow: 0 0 16px rgba(0, 230, 255, 0.25) !important;
  transition: all 0.2s !important;
}
#btnCompleteProductConfig:hover,
#orderSummary .btn-primary:hover,
.secondary-cart-sidebar .btn-primary:hover {
  background: var(--accent-green) !important;
  background-color: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  color: var(--bg-deep) !important;
  box-shadow: 0 0 22px rgba(0, 255, 157, 0.45) !important;
}

/* ============================================================
   GENERIC BUTTONS (any .btn in cart)
   ============================================================ */
#order-standard_cart .btn,
.cart-container .btn,
.cart-checkout-container .btn {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.13em !important;
  border-radius: 0 !important;
  padding: 0.7rem 1.3rem !important;
  border: 1px solid var(--border-strong) !important;
  background: rgba(0, 230, 255, 0.05) !important;
  color: var(--text-primary) !important;
  transition: all 0.2s !important;
  text-shadow: none !important;
}
#order-standard_cart .btn-primary,
.cart-container .btn-primary,
.cart-checkout-container .btn-primary,
#btnCheckout, #btnCompleteOrder {
  background: var(--accent-cyan) !important;
  background-color: var(--accent-cyan) !important;
  border-color: var(--accent-cyan) !important;
  color: var(--bg-deep) !important;
}
#order-standard_cart .btn-primary:hover,
.cart-container .btn-primary:hover,
#btnCheckout:hover, #btnCompleteOrder:hover {
  background: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  box-shadow: 0 0 18px rgba(0, 255, 157, 0.4) !important;
}
#order-standard_cart .btn-success,
.cart-container .btn-success {
  background: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  color: var(--bg-deep) !important;
}
#order-standard_cart .btn-default,
.cart-container .btn-default {
  background: rgba(0, 230, 255, 0.05) !important;
  border-color: var(--border-strong) !important;
  color: var(--text-primary) !important;
}
#order-standard_cart .btn-default:hover {
  border-color: var(--accent-cyan) !important;
  color: var(--accent-cyan) !important;
}
#order-standard_cart .btn-lg { padding: 0.85rem 1.6rem !important; font-size: 0.85rem !important; }

/* ============================================================
   ALERTS
   ============================================================ */
#order-standard_cart .alert,
.cart-container .alert {
  background: var(--bg-panel) !important;
  background-color: var(--bg-panel) !important;
  border: 1px solid var(--border-faint) !important;
  border-left: 3px solid var(--accent-cyan) !important;
  color: var(--text-primary) !important;
  border-radius: 0 !important;
}
#order-standard_cart .alert-info { border-left-color: var(--accent-cyan) !important; }
#order-standard_cart .alert-success { border-left-color: var(--accent-green) !important; }
#order-standard_cart .alert-warning { border-left-color: var(--accent-amber) !important; }
#order-standard_cart .alert-danger,
#order-standard_cart .alert-error { border-left-color: var(--accent-red) !important; }
#order-standard_cart .alert-link { color: var(--accent-cyan) !important; text-decoration: underline; }
#order-standard_cart .info-text-sm {
  font-size: 0.88rem;
  margin: 1rem 0;
}

/* ============================================================
   NATIVE FORM CONTROLS RESET — keep checkboxes/radios native sized
   (Fix for "broken" giant payment-method circles + huge checkboxes)
   ============================================================ */
#order-standard_cart input[type=radio],
#order-standard_cart input[type=checkbox],
.cart-container input[type=radio],
.cart-container input[type=checkbox],
.cart-checkout-container input[type=radio],
.cart-checkout-container input[type=checkbox] {
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 0.4rem 0 0 !important;
  display: inline-block !important;
  vertical-align: middle !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  appearance: auto !important;
  -webkit-appearance: auto !important;
  -moz-appearance: auto !important;
  accent-color: var(--accent-cyan);
  outline: none !important;
  cursor: pointer;
}

/* Checkbox / radio LABELS keep native inline flow (not block) */
#order-standard_cart .checkbox,
#order-standard_cart .radio,
#order-standard_cart .checkbox label,
#order-standard_cart .radio label,
.cart-container .checkbox,
.cart-container .radio,
.cart-container .checkbox label,
.cart-container .radio label {
  font-family: var(--font-tactical) !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  color: var(--text-secondary) !important;
  font-weight: 400 !important;
  cursor: pointer;
  padding-left: 0 !important;
  display: inline-block;
}

/* Payment method selector — keep WHMCS native UI clean */
#order-standard_cart .paymentmethods-container,
#order-standard_cart .paymentmethod,
#order-standard_cart .payment-method,
#order-standard_cart .gateway-list,
#order-standard_cart .paymentmethod-list {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
#order-standard_cart .paymentmethod {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem !important;
  margin: 0.3rem 0.4rem !important;
}
#order-standard_cart .paymentmethod label {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  margin: 0 !important;
}
#order-standard_cart .paymentmethod img,
#order-standard_cart .payment-method img,
#order-standard_cart .gateway-icon img,
#order-standard_cart .payment-method-icon img {
  max-height: 32px !important;
  height: auto !important;
  width: auto !important;
  max-width: 80px !important;
  display: inline-block !important;
  vertical-align: middle;
}
#order-standard_cart .paymentmethod-icon,
#order-standard_cart .payment-method-icon,
#order-standard_cart .gateway-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: 1rem !important;
  color: var(--accent-cyan);
}
#order-standard_cart .paymentmethod-icon i,
#order-standard_cart .payment-method-icon i,
#order-standard_cart .gateway-icon i {
  font-size: 1rem !important;
}

/* Field-icon (input prefix icons) — keep small */
#order-standard_cart .field-icon,
#order-standard_cart .form-group .field-icon {
  font-size: 0.95rem !important;
  color: var(--accent-cyan);
  width: auto !important;
  height: auto !important;
}
#order-standard_cart .field-icon i {
  font-size: 0.95rem !important;
}

/* Mailing list / terms checkbox containers — keep inline */
#order-standard_cart .form-group.terms-of-service,
#order-standard_cart .form-group.mailinglist,
#order-standard_cart [class*="mailinglist"],
#order-standard_cart [class*="terms"] {
  background: transparent !important;
  border: 0 !important;
}

/* ============================================================
   VIEWCART — tabs, items, headers (per user request: clean transparent)
   ============================================================ */
#order-standard_cart .view-cart-tabs .tab-content {
  background-color: transparent !important;
  background: transparent !important;
  padding: 15px !important;
  border: 0 !important;
}
#order-standard_cart .view-cart-items .item {
  margin: 0 !important;
  padding: 10px !important;
  background-color: transparent !important;
  background: transparent !important;
  border-left: 0 !important;
  border-right: 0 !important;
  font-size: 0.85rem !important;
  color: var(--text-primary) !important;
  position: relative;
}

/* === X-remove button — boxed inline btn next to EDIT ====================
   The .tpl wraps EDIT + X in a span.md-of-actions inline-flex container so
   they ALWAYS stay on the same line, regardless of .item-title's display. */
.md-of-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  margin-left: 0.5rem;
}
.md-of-name {
  display: inline-block !important;
  vertical-align: middle !important;
}
.md-of-x-inline {
  display: none;  /* hidden on xs; shown on sm+ via @media */
}
@media (min-width: 576px) {
  .md-of-x-inline,
  #order-standard_cart .view-cart-items .item .md-of-x-inline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    vertical-align: middle !important;
    margin: 0 !important;
    padding: 0.32rem 0.55rem !important;
    border: 1px solid var(--accent-red) !important;
    border-radius: 0 !important;
    background: rgba(255, 45, 77, 0.06) !important;
    color: var(--accent-red) !important;
    font-size: 0.85rem !important;
    line-height: 1 !important;
    text-decoration: none !important;
    transition: all 0.2s !important;
    cursor: pointer !important;
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }
  .md-of-x-inline:hover {
    background: rgba(255, 45, 77, 0.18) !important;
    border-color: var(--accent-red) !important;
    color: var(--accent-red) !important;
    box-shadow: 0 0 12px rgba(255, 45, 77, 0.45);
    text-shadow: 0 0 8px rgba(255, 45, 77, 0.6);
    transform: none !important;
  }
  .md-of-x-inline i {
    color: var(--accent-red) !important;
    font-size: 0.95rem !important;
    margin: 0 !important;
  }
  /* Hide the right-column desktop X — replaced by the inline one */
  #order-standard_cart .view-cart-items .item .col-sm-1.hidden-xs,
  #order-standard_cart .view-cart-items .item .col-sm-1.d-none.d-sm-block {
    display: none !important;
  }
  /* Reclaim freed grid space: extend the price column to fill the row */
  #order-standard_cart .view-cart-items .item > .row > .col-sm-4.item-price {
    flex: 0 0 41.66667% !important;
    max-width: 41.66667% !important;
  }
}
#order-standard_cart .view-cart-items .item:nth-child(even) {
  background-color: transparent !important;
  background: transparent !important;
}
#order-standard_cart .view-cart-items .item:hover {
  background: rgba(0, 230, 255, 0.04) !important;
}
#order-standard_cart .view-cart-items-header {
  margin: 0 !important;
  padding: 8px 15px !important;
  background-color: transparent !important;
  background: transparent !important;
  color: var(--text-primary) !important;
  font-size: 0.9em !important;
  border-radius: 0 !important;
  border-bottom: 1px solid var(--border-faint) !important;
  font-family: var(--font-mono) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
}

/* ============================================================
   VIEWCART page table
   ============================================================ */
.cart-container .table,
.cart-checkout-container .table,
.review-table {
  background: var(--bg-panel) !important;
  background-color: var(--bg-panel) !important;
  border: 1px solid var(--border-faint) !important;
  color: var(--text-primary) !important;
  border-radius: 0 !important;
}
.cart-container .table thead th,
.cart-checkout-container .table thead th,
.review-table thead th {
  background: rgba(0, 230, 255, 0.05) !important;
  color: var(--accent-cyan) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.72rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  border-bottom: 1px solid var(--border-faint) !important;
  padding: 0.8rem !important;
}
.cart-container .table tbody td,
.cart-checkout-container .table tbody td,
.review-table tbody td {
  background: transparent !important;
  border-top: 1px dashed var(--border-faint) !important;
  color: var(--text-primary) !important;
  padding: 0.8rem !important;
}
.cart-container .table-condensed > tbody > tr > td { padding: 0.6rem !important; }
.review-table .total td { color: var(--accent-green) !important; font-family: var(--font-display) !important; }

/* ============================================================
   MARKET CONNECT / RECOMMENDATIONS
   ============================================================ */
.recommendation-modal-container,
.product-recommendations,
.marketconnect-promo {
  background: var(--bg-panel);
  border: 1px solid var(--border-faint);
}

/* ============================================================
   COMPLETE PAGE
   ============================================================ */
.cart-checkout-container .complete-content,
.complete-content {
  background: var(--bg-panel);
  border: 1px solid var(--accent-green);
  padding: 2rem;
  text-align: center;
}
.complete-content h1,
.complete-content h2 {
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  color: var(--accent-green) !important;
  text-shadow: 0 0 14px rgba(0, 255, 157, 0.3);
}

/* ============================================================
   CHECKOUT PAGE
   ============================================================ */
.cart-checkout-container .panel,
.cart-checkout-container .card {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border-faint) !important;
  border-radius: 0 !important;
}
.cart-checkout-container .panel-heading,
.cart-checkout-container .card-header {
  background: rgba(0, 230, 255, 0.04) !important;
  border-bottom: 1px solid var(--border-faint) !important;
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: var(--text-primary) !important;
}

/* Payment method selection */
.gateway-list,
.paymentmethod-list,
.payment-method {
  background: rgba(2, 3, 10, 0.4);
  border: 1px solid var(--border-faint);
  padding: 1rem;
}
.gateway-list label,
.paymentmethod-list label {
  font-family: var(--font-tactical) !important;
  font-size: 0.95rem !important;
  color: var(--text-primary) !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}

/* Loyalty / promo code */
.promo-code,
.applycode-form,
.promotion-form {
  background: rgba(2, 3, 10, 0.4);
  border: 1px dashed var(--border-faint);
  padding: 1rem;
  margin: 1rem 0;
}

/* ============================================================
   PRODUCTS PAGE (standard_cart products.tpl) — TACTICAL CARDS
   HTML: .products .row .col-md-6 .product { header > span (name) + qty,
                                              .product-desc > p + ul,
                                              footer > .product-pricing + .btn-order-now }
   ============================================================ */
#order-standard_cart .products,
.products {
  margin-top: 1rem;
}
#order-standard_cart .products .row,
.products .row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 0;
}

#order-standard_cart .products .product,
.products .product {
  background: var(--bg-panel) !important;
  background-color: var(--bg-panel) !important;
  border: 1px solid var(--border-faint) !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0.5rem !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  min-height: 280px;
  transition: all 0.25s ease !important;
  position: relative;
  overflow: hidden;
}
#order-standard_cart .products .product:hover,
.products .product:hover {
  border-color: var(--border-strong) !important;
  background: rgba(0, 230, 255, 0.04) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 30px rgba(0, 230, 255, 0.12) !important;
}
#order-standard_cart .products .product::before,
.products .product::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 0; height: 2px;
  background: var(--accent-cyan);
  box-shadow: 0 0 10px var(--accent-cyan-glow);
  transition: width 0.4s ease;
}
#order-standard_cart .products .product:hover::before,
.products .product:hover::before { width: 100%; }

/* Product header (name + qty) */
#order-standard_cart .products .product header,
.products .product header {
  background: rgba(0, 230, 255, 0.04) !important;
  background-color: rgba(0, 230, 255, 0.04) !important;
  padding: 1rem 1.3rem !important;
  border-bottom: 1px solid var(--border-faint) !important;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
#order-standard_cart .products .product header > span,
.products .product header > span:not(.qty) {
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 1.05rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  color: var(--text-primary) !important;
}
#order-standard_cart .products .product header .qty,
.products .product header .qty {
  font-family: var(--font-mono) !important;
  font-size: 0.65rem !important;
  padding: 2px 8px !important;
  border: 1px solid var(--accent-amber) !important;
  color: var(--accent-amber) !important;
  background: rgba(255, 170, 0, 0.06) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.15em !important;
  font-weight: 700 !important;
}

/* Product description body — SINGLE COLUMN, NO FLEX (prevents weird wrapping) */
#order-standard_cart .products .product .product-desc,
.products .product .product-desc {
  flex: 1;
  padding: 1rem 1.3rem !important;
  color: var(--text-secondary) !important;
  font-size: 0.95rem !important;
  line-height: 1.6 !important;
  columns: 1 !important;
  column-count: 1 !important;
  -webkit-column-count: 1 !important;
  -moz-column-count: 1 !important;
}
#order-standard_cart .products .product .product-desc p,
.products .product .product-desc p {
  color: var(--text-secondary) !important;
  margin: 0 0 0.8rem !important;
  line-height: 1.6 !important;
}
#order-standard_cart .products .product .product-desc ul,
.products .product .product-desc ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  columns: 1 !important;
  column-count: 1 !important;
}
#order-standard_cart .products .product .product-desc li,
.products .product .product-desc li {
  display: block !important;
  padding: 0.55rem 0 !important;
  color: var(--text-secondary) !important;
  font-size: 0.92rem !important;
  line-height: 1.6 !important;
  border-bottom: 1px dashed var(--border-faint) !important;
  break-inside: avoid !important;
  -webkit-column-break-inside: avoid !important;
}
#order-standard_cart .products .product .product-desc li:last-child,
.products .product .product-desc li:last-child {
  border-bottom: 0 !important;
}
#order-standard_cart .products .product .product-desc li::before,
.products .product .product-desc li::before {
  display: none !important;
  content: none !important;
}
#order-standard_cart .products .product .product-desc .feature-value,
.products .product .product-desc .feature-value {
  display: inline !important;
  color: var(--accent-cyan) !important;
  font-family: var(--font-mono) !important;
  font-weight: 700 !important;
  margin-right: 0.5rem !important;
}
/* Allow HTML links inside features to render as cyan accents */
#order-standard_cart .products .product .product-desc a,
.products .product .product-desc a {
  color: var(--accent-cyan) !important;
  text-decoration: underline !important;
}
#order-standard_cart .products .product .product-desc a:hover,
.products .product .product-desc a:hover {
  color: var(--accent-green) !important;
  text-shadow: 0 0 8px var(--accent-cyan);
}

/* When only ONE product in a category — make full width 100% */
#order-standard_cart .products .row > .col-md-6:only-child,
.products .row > .col-md-6:only-child,
.products .row > div:only-child {
  width: 100% !important;
  max-width: 100% !important;
  flex: 0 0 100% !important;
}

/* Product footer (pricing + Order Now button) */
#order-standard_cart .products .product footer,
.products .product footer {
  background: rgba(2, 3, 10, 0.5) !important;
  background-color: rgba(2, 3, 10, 0.5) !important;
  padding: 1rem 1.3rem !important;
  border-top: 1px dashed var(--border-faint) !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
#order-standard_cart .products .product .product-pricing,
.products .product .product-pricing {
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  color: var(--text-muted) !important;
  letter-spacing: 0.05em;
}
#order-standard_cart .products .product .product-pricing .price,
.products .product .product-pricing .price {
  font-family: var(--font-display) !important;
  font-weight: 900 !important;
  font-size: 1.5rem !important;
  color: var(--accent-green) !important;
  text-shadow: 0 0 14px rgba(0, 255, 157, 0.3);
  display: block;
  letter-spacing: 0.02em;
}
#order-standard_cart .products .product .product-pricing small,
.products .product .product-pricing small {
  display: block;
  margin-top: 0.3rem;
  color: var(--text-muted);
  font-size: 0.7rem !important;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Order Now button — tactical green */
#order-standard_cart .products .product .btn-order-now,
.products .product .btn-order-now,
.btn-order-now {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.4rem !important;
  background: var(--accent-cyan) !important;
  background-color: var(--accent-cyan) !important;
  border: 1px solid var(--accent-cyan) !important;
  color: var(--bg-deep) !important;
  font-family: var(--font-display) !important;
  font-weight: 700 !important;
  font-size: 0.74rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.13em !important;
  padding: 0.65rem 1.2rem !important;
  border-radius: 0 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  box-shadow: 0 0 14px rgba(0, 230, 255, 0.25) !important;
  transition: all 0.2s !important;
}
#order-standard_cart .products .product .btn-order-now:hover,
.products .product .btn-order-now:hover,
.btn-order-now:hover {
  background: var(--accent-green) !important;
  border-color: var(--accent-green) !important;
  color: var(--bg-deep) !important;
  box-shadow: 0 0 20px rgba(0, 255, 157, 0.45) !important;
  transform: translateY(-1px);
}
#order-standard_cart .products .product .btn-order-now i,
.btn-order-now i { font-size: 0.85rem; }

/* ============================================================
   DOMAIN CHECKER / DOMAIN OPTIONS
   ============================================================ */
.domain-availability,
.domain-search,
.domain-options {
  background: var(--bg-panel);
  border: 1px solid var(--border-faint);
  padding: 1rem;
  margin-bottom: 1rem;
}
.tld-select label, .tld-options label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* ============================================================
   SECURE TRANSACTION FOOTER
   ============================================================ */
.secure-warning {
  margin: 2rem 0 0 !important;
  padding: 0.8rem 1.2rem !important;
  background: rgba(0, 255, 157, 0.04) !important;
  border: 1px solid rgba(0, 255, 157, 0.2) !important;
  border-left: 3px solid var(--accent-green) !important;
  font-family: var(--font-mono) !important;
  font-size: 0.78rem !important;
  color: var(--text-secondary) !important;
  text-align: left !important;
  border-radius: 0 !important;
}
.secure-warning strong { color: var(--accent-cyan); }

/* ============================================================
   LOADING SPINNER
   ============================================================ */
#orderSummaryLoader,
.loader {
  color: var(--accent-cyan) !important;
}
#fullpage-overlay { background: rgba(2, 3, 10, 0.92); }

/* ============================================================
   REVIEW & CHECKOUT (existing customer login + new client form)
   ============================================================ */
.cart-checkout-container .nav-tabs {
  border-bottom: 1px solid var(--border-faint);
}
.cart-checkout-container .nav-tabs > li > a {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border-faint) !important;
  border-bottom: 0 !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  font-size: 0.85rem !important;
  border-radius: 0 !important;
}
.cart-checkout-container .nav-tabs > li.active > a,
.cart-checkout-container .nav-tabs > li > a:hover {
  background: rgba(0, 230, 255, 0.08) !important;
  color: var(--accent-cyan) !important;
  border-color: var(--accent-cyan) !important;
}

/* Discord gate popup (kept from legacy_boxes_MuDefender) */
/* Note: gate styles consolidated in main theme.css already, but include here for autonomy */
.md-gate-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 3, 10, 0.92);
  backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.md-gate-backdrop.active { opacity: 1; visibility: visible; }
.md-gate {
  max-width: 540px;
  width: 100%;
  background: var(--bg-panel-solid);
  border: 1px solid var(--border-strong);
  box-shadow: 0 0 80px rgba(0, 230, 255, 0.12);
  position: relative;
  padding: 2.2rem 2rem;
  text-align: center;
  font-family: var(--font-tactical);
  color: var(--text-primary);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.md-gate-backdrop.active .md-gate { transform: translateY(0) scale(1); }
.md-gate::before {
  content: ''; position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent-red), transparent);
  box-shadow: 0 0 14px var(--accent-red-glow);
}
.md-gate-corner { position: absolute; width: 14px; height: 14px; border: 1px solid var(--accent-red); }
.md-gate-corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.md-gate-corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.md-gate-corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.md-gate-corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }
.md-gate-tag {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--accent-red); letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 0.7rem;
}
.md-gate-title {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.5rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--accent-red); margin: 0 0 1rem;
}
.md-gate-body { font-size: 0.95rem; color: var(--text-secondary); line-height: 1.6; margin: 0 0 0.5rem; }
.md-gate-body strong { color: var(--text-primary); }
.md-gate-divider { height: 1px; background: var(--border-faint); margin: 1.2rem 0; }
.md-gate-discord {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #5865F2; color: #fff; padding: 0.85rem 1.4rem;
  text-decoration: none; font-family: var(--font-display);
  font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  border: 1px solid #5865F2; transition: all 0.2s;
}
.md-gate-discord:hover {
  background: #4752c4; color: #fff;
  box-shadow: 0 0 18px rgba(88, 101, 242, 0.4);
}
.md-gate-discord-icon { width: 22px; height: 22px; }
.md-gate-meta { margin-top: 0.8rem; font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-secondary); }
.md-gate-confirm {
  display: flex; align-items: center; gap: 0.5rem;
  justify-content: center; padding: 0.9rem 1rem;
  background: rgba(0, 230, 255, 0.04);
  border: 1px dashed var(--border-faint);
  margin: 1.2rem 0; cursor: pointer;
  font-size: 0.88rem; color: var(--text-secondary);
}
.md-gate-confirm input[type=checkbox] { accent-color: var(--accent-cyan); cursor: pointer; }
.md-gate-actions { margin-top: 1rem; display: flex; justify-content: center; gap: 0.6rem; flex-wrap: wrap; }
/* ============================================================
   PRODUCT LIST — radio-button cards with green glow on selection
   (REV 8 restored — legacy_boxes radio-button form list)
   ============================================================ */
.md-order-boxes {
  position: relative;
  z-index: 1;
  padding-bottom: 3rem;
  font-family: var(--font-tactical);
  color: var(--text-primary);
}
.md-of-head {
  margin-bottom: 1.8rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-faint);
}
.md-of-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}
.md-of-title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.1;
}
.md-of-subtag {
  font-family: var(--font-tactical);
  color: var(--text-secondary);
  margin: 0.6rem 0 0;
  font-size: 1rem;
}

.md-of-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.5rem;
  align-items: flex-start;
}
@media (max-width: 768px) {
  .md-of-grid { grid-template-columns: 1fr; }
}
.md-of-mobile-cats { margin-bottom: 1rem; }

.md-of-section-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin: 0.5rem 0 1rem;
  padding-left: 0.6rem;
  border-left: 2px solid var(--accent-cyan);
}

.md-of-products {
  display: grid;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}
.md-of-product {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.1rem 1.3rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-faint);
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  align-items: flex-start;
}
.md-of-product:hover {
  border-color: var(--border-strong);
  background: rgba(0, 230, 255, 0.04);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0, 230, 255, 0.08);
}
.md-of-product input[type=radio] {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
}
.md-of-product .md-of-product-marker {
  width: 22px;
  height: 22px;
  border: 2px solid var(--border-strong);
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s;
  margin-top: 4px;
  background: transparent;
}
.md-of-product input[type=radio]:checked ~ .md-of-product-marker {
  border-color: var(--accent-green);
  box-shadow: 0 0 14px rgba(0, 255, 157, 0.5);
}
.md-of-product input[type=radio]:checked ~ .md-of-product-marker::after {
  content: '';
  position: absolute;
  inset: 4px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
}
.md-of-product:has(input[type=radio]:checked) {
  border-color: var(--accent-green) !important;
  background: rgba(0, 255, 157, 0.04) !important;
  box-shadow: 0 0 24px rgba(0, 255, 157, 0.15) !important;
}

.md-of-product-info { min-width: 0; flex: 1; }
.md-of-product-head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
  margin-bottom: 0.5rem;
}
.md-of-product-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-primary);
}
.md-of-product:has(input[type=radio]:checked) .md-of-product-name {
  color: var(--accent-green);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.3);
}
.md-of-product-qty {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  padding: 2px 8px;
  border: 1px solid var(--accent-amber);
  color: var(--accent-amber);
  background: rgba(255, 170, 0, 0.06);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-weight: 700;
}
.md-of-product-price {
  margin-left: auto;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  color: var(--accent-green);
  text-shadow: 0 0 12px rgba(0, 255, 157, 0.25);
  letter-spacing: 0.02em;
}
.md-of-product-desc {
  font-family: var(--font-tactical);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin: 0.5rem 0 0.8rem;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.md-of-product-desc strong,
.md-of-product-desc b {
  color: var(--text-primary) !important;
  font-weight: 700 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.md-of-product-desc p { margin: 0 0 0.7rem; line-height: 1.7; }
.md-of-product-desc br { display: block; content: ""; margin-bottom: 0.2rem; }
.md-of-product-desc a {
  color: var(--accent-cyan) !important;
  text-decoration: underline !important;
}
.md-of-product-desc a:hover {
  color: var(--accent-green) !important;
  text-shadow: 0 0 8px var(--accent-cyan);
}

.md-of-product-features {
  list-style: none !important;
  margin: 0.6rem 0 0 !important;
  padding: 0 !important;
  display: block !important;
  columns: 1 !important;
  column-count: 1 !important;
}
.md-of-product-features li {
  display: block !important;
  padding: 0.5rem 0 !important;
  border-bottom: 1px dashed var(--border-faint) !important;
  font-size: 0.95rem !important;
  font-family: var(--font-tactical) !important;
  color: var(--text-primary) !important;
  line-height: 1.5 !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  break-inside: avoid !important;
}
.md-of-product-features li:last-child { border-bottom: 0 !important; }
.md-of-product-features .md-of-feature-value,
.md-of-product-features strong.md-of-feature-value {
  display: inline !important;
  color: var(--text-primary) !important;
  font-family: var(--font-tactical) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  margin: 0 !important;
}
.md-of-product-features .md-of-feature-name {
  display: inline !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-tactical) !important;
  font-weight: 400 !important;
  font-size: 0.95rem !important;
  text-transform: none !important;
  letter-spacing: normal !important;
}
.md-of-product-features a { color: var(--accent-cyan) !important; text-decoration: underline !important; }
.md-of-product-features a:hover { color: var(--accent-green) !important; text-shadow: 0 0 8px var(--accent-cyan); }

/* Description text — also normal case, not uppercase */
.md-of-product-desc,
.md-of-product-desc * {
  text-transform: none !important;
  letter-spacing: normal !important;
}

.md-of-product-disabled { opacity: 0.4; cursor: not-allowed !important; pointer-events: none; }

.md-of-cta {
  text-align: center !important;
  margin: 2rem auto !important;
  display: block;
  width: 100%;
}
.md-of-cta .md-of-btn { margin: 0 auto; }

.md-of-info {
  padding: 1rem 1.3rem;
  background: var(--bg-panel);
  border: 1px solid var(--border-faint);
  border-left: 3px solid var(--accent-cyan);
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}
.md-of-info-tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-cyan);
  letter-spacing: 0.2em;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.md-of-secure {
  margin: 2rem 0 0;
  padding: 0.8rem 1.2rem;
  background: rgba(0, 255, 157, 0.04);
  border: 1px solid rgba(0, 255, 157, 0.2);
  border-left: 3px solid var(--accent-green);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-secondary);
}
.md-of-secure-icon { color: var(--accent-green); font-size: 1.1rem; }
.md-of-secure-label { color: var(--accent-green); letter-spacing: 0.18em; font-weight: 700; }
.md-of-secure-meta { color: var(--text-muted); letter-spacing: 0.08em; }
.md-of-secure-meta strong { color: var(--accent-cyan); }

/* Sidebar — tactical wrapper for the panels rendered by sidebar-categories.tpl */
.md-of-sidebar {
  background: transparent;
}
.md-of-sidebar .panel,
.md-of-sidebar .card {
  background: var(--bg-panel) !important;
  border: 1px solid var(--border-faint) !important;
  border-radius: 0 !important;
  margin-bottom: 1rem;
  box-shadow: none !important;
}
.md-of-sidebar .panel-heading,
.md-of-sidebar .card-header {
  background: rgba(0, 230, 255, 0.04) !important;
  font-family: var(--font-display) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: var(--text-primary) !important;
  border-bottom: 1px solid var(--border-faint) !important;
  border-radius: 0 !important;
}
.md-of-sidebar .list-group-item {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px dashed var(--border-faint) !important;
  border-radius: 0 !important;
  color: var(--text-secondary) !important;
  font-family: var(--font-tactical) !important;
}
.md-of-sidebar .list-group-item:hover {
  background: rgba(0, 230, 255, 0.05) !important;
  color: var(--accent-cyan) !important;
}
.md-of-sidebar .list-group-item.active {
  background: rgba(0, 230, 255, 0.08) !important;
  color: var(--accent-cyan) !important;
  border-left: 2px solid var(--accent-cyan) !important;
}

.md-of-btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.7rem 1.3rem; font-family: var(--font-display);
  font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.15em;
  border: 1px solid; cursor: pointer; transition: all 0.2s;
  background: transparent; text-decoration: none; border-radius: 0;
  min-width: 140px; justify-content: center;
}
.md-of-btn-primary {
  background: var(--accent-cyan); border-color: var(--accent-cyan);
  color: var(--bg-deep);
}
.md-of-btn-primary:hover {
  background: var(--accent-green); border-color: var(--accent-green);
  color: var(--bg-deep); box-shadow: 0 0 24px rgba(0, 255, 157, 0.4);
}
.md-of-btn-ghost {
  color: var(--text-primary); border-color: var(--border-strong);
  background: rgba(0, 230, 255, 0.04);
}
.md-of-btn-ghost:hover {
  border-color: var(--accent-red); color: var(--accent-red);
  background: rgba(255, 45, 77, 0.06);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  #order-standard_cart .row { display: block; }
  #order-standard_cart .cart-sidebar,
  #order-standard_cart .cart-body { width: 100%; }
  .secondary-cart-sidebar, #scrollingPanelContainer {
    position: static;
    margin-top: 1.5rem;
  }
}
