/* ============================================================
   SEGUIU DESIGN SYSTEM v4 — BLUEPRINT EDITION
   Perfect Panel Theme · style.css
   Components fully updated: buttons (pill), cards (grid-line borders),
   forms (subtle bg), tables, badges, nav-pills, pagination, etc.
   ============================================================ */

/* ===========================================
   0. FONT IMPORT — Proxima Nova (Adobe Typekit)
   =========================================== */
@import url("https://use.typekit.net/rck6pgt.css");

/* ===========================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   =========================================== */
:root {
  /* — Backgrounds — */
  --bg-page:    #F6F8FA;
  --bg-card:    #FFFFFF;
  --bg-subtle:  #FAFBFC;
  --bg-sidebar: #1A1D23;
  --bg-hover:   #F6F8FA;

  /* — Primary (Lime) — */
  --primary-900: #3F6212;
  --primary-700: #4D7C0F;
  --primary-600: #65A30D;
  --primary-500: #84CC16;
  --primary-400: #A3E635;
  --primary-200: #D9F99D;
  --primary-100: #ECFCCB;
  --primary-50:  #F7FEE7;

  /* — Forest (dark sections) — */
  --forest-900: #14281C;
  --forest-800: #1E3A2B;
  --forest-700: #284D3A;
  --forest-600: #3A6B51;

  /* — Texto — */
  --text-primary:   #0F172A;
  --text-secondary: #475569;
  --text-tertiary:  #64748B;
  --text-white:     #F1F5F9;
  --text-muted:     #94A3B8;

  /* — Bordas — */
  --border-default: #E2E8F0;
  --border-light:   #F1F5F9;
  --border-sidebar: rgba(255, 255, 255, 0.06);
  --grid-line:      #D5DFE8;

  /* — Semânticas — */
  --success:    #84CC16;
  --success-bg: #F7FEE7;
  --warning:    #F59E0B;
  --warning-bg: #FFF7ED;
  --danger:     #DC2626;
  --danger-bg:  #FEF2F2;
  --info:       #3B82F6;
  --info-bg:    #EFF6FF;

  /* — Tipografia — dashboard scale — */
  --text-xs:   11px;
  --text-sm:   12px;
  --text-base: 13px;
  --text-md:   14px;
  --text-lg:   16px;
  --text-xl:   20px;
  --text-2xl:  24px;

  /* — Tipografia — marketing scale — */
  --text-3xl:  36px;
  --text-4xl:  48px;
  --text-5xl:  64px;
  --tracking-tight:   -0.02em;
  --tracking-tighter: -0.035em;

  /* — Layout — */
  --header-height:     56px;
  --sidebar-width:     220px;
  --content-max-width: 1200px;
  --container-max:     1280px;
  --radius:            4px;
  --radius-lg:         8px;

  /* — Transições — */
  --transition: all 0.15s ease;

  /* — Sombras — */
  --shadow-card-hover: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-dropdown:   0 8px 24px rgba(0, 0, 0, 0.08);
}

/* ===========================================
   2. RESET & BASE
   =========================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: 10px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "proxima-nova", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: var(--text-md);
  font-weight: 400;
  line-height: 1.55;
  color: var(--text-primary);
  background-color: var(--bg-page);
  padding-bottom: 0;
  margin: 0;
}

/* ===========================================
   3. TIPOGRAFIA GLOBAL — v4 tighter
   =========================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "proxima-nova", sans-serif;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin-top: 0;
}

h1, .h1 { font-size: var(--text-2xl); margin-bottom: 16px; letter-spacing: -0.025em; }
h2, .h2 { font-size: var(--text-xl); margin-bottom: 14px; letter-spacing: -0.02em; }
h3, .h3 { font-size: var(--text-lg); margin-bottom: 12px; }
h4, .h4 { font-size: var(--text-md); margin-bottom: 10px; }
h5, .h5 { font-size: var(--text-base); margin-bottom: 8px; }
h6, .h6 { font-size: var(--text-sm); margin-bottom: 8px; }

p {
  margin: 0 0 12px;
  color: var(--text-secondary);
  font-size: var(--text-md);
  line-height: 1.6;
}

a {
  color: var(--primary-700);
  text-decoration: none;
  transition: var(--transition);
}

a:hover,
a:focus {
  color: var(--primary-900);
  text-decoration: none;
}

a:focus { outline: none; }

small, .small { font-size: var(--text-sm); color: var(--text-secondary); }

label {
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--text-primary);
  margin-bottom: 6px;
}

/* ============================================================
   SIDEBAR LAYOUT
   ============================================================ */

.material-symbols-outlined {
  font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
  font-size: 22px;
  vertical-align: middle;
}

body.has-sidebar { padding-bottom: 0; }

/* ====== TOP HEADER ====== */
.top-header {
  position: fixed;
  top: 0;
  left: var(--sidebar-width);
  right: 0;
  height: var(--header-height);
  background-color: var(--bg-card);
  border-bottom: 1px solid var(--grid-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.top-header__left { display: flex; align-items: center; gap: 12px; }

.top-header__logo {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  text-decoration: none;
  display: none;
}

.top-header__logo img { max-height: 28px; vertical-align: middle; }

.top-header__right { display: flex; align-items: center; gap: 6px; }

.top-header__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
  border: none;
  background: none;
}

.top-header__btn:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
  text-decoration: none;
}

.top-header__balance {
  font-weight: 600;
  color: var(--primary-700);
  font-size: var(--text-base);
  background-color: var(--primary-50);
  padding: 4px 12px;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

.top-header__notif { position: relative; }

.top-header__notif-badge {
  position: absolute;
  top: 2px;
  right: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.top-header__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: var(--primary-100);
  color: var(--primary-700);
  font-size: var(--text-sm);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.top-header__user { padding: 5px 8px; }

.sidebar-toggle {
  display: none;
  padding: 6px;
  border: none;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
}

.sidebar-toggle:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.sidebar-toggle .material-symbols-outlined { font-size: 24px; }
/* ====== SIDEBAR v4 — Forest Edition ====== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background-color: var(--forest-800);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(163,230,53,0.15) transparent;
}

.sidebar::-webkit-scrollbar { width: 4px; }
.sidebar::-webkit-scrollbar-thumb {
  background-color: rgba(163,230,53,0.15);
  border-radius: 2px;
}

/* Logo */
.sidebar__logo {
  height: var(--header-height);
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(163,230,53,0.12);
  flex-shrink: 0;
}

.sidebar__logo a { text-decoration: none; display: flex; align-items: center; gap: 10px; }
.sidebar__logo img { max-height: 28px; }

.sidebar__logo-text {
  font-size: var(--text-lg);
  font-weight: 700;
  color: #E2E8F0;
  letter-spacing: -0.01em;
}

/* Navigation */
.sidebar__nav {
  flex: 1;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: var(--text-base);
  font-weight: 500;
  color: #7C9A8B;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  overflow: hidden;
  position: relative;
}

.sidebar__item:hover {
  color: #E2E8F0;
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

/* Active item — green accent + losango */
.sidebar__item--active {
  color: var(--primary-400);
  background-color: rgba(163, 230, 53, 0.12);
}

.sidebar__item--active::before {
  content: '';
  position: absolute;
  left: -3px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 6px;
  height: 6px;
  background: var(--primary-400);
}

.sidebar__item--active:hover {
  color: var(--primary-400);
  background-color: rgba(163, 230, 53, 0.18);
}

.sidebar__item-icon {
  font-size: 20px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  opacity: 0.6;
}

.sidebar__item--active .sidebar__item-icon { opacity: 1; }

.sidebar__item-text { overflow: hidden; text-overflow: ellipsis; }

/* Footer */
.sidebar__footer {
  padding: 12px 10px;
  border-top: 1px solid rgba(163,230,53,0.12);
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar__footer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 14px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: #7C9A8B;
  text-decoration: none;
  border-radius: var(--radius);
  transition: var(--transition);
}

.sidebar__footer-link:hover {
  color: #E2E8F0;
  background-color: rgba(255, 255, 255, 0.05);
  text-decoration: none;
}

.sidebar__footer-link--logout:hover { color: var(--danger); }

/* Overlay */
.sidebar-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}

.sidebar-overlay--visible { opacity: 1; visibility: visible; }

/* ====== MAIN CONTENT ====== */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--header-height);
  min-height: calc(100vh - var(--header-height));
  padding: 24px 28px;
  background-color: var(--bg-page);
}

.main-content .container,
.main-content .container-fluid {
  max-width: 100%;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.main-content .col-md-8.col-md-offset-2,
.main-content .col-lg-8.col-lg-offset-2 {
  width: 100%;
  max-width: 800px;
  margin-left: 0;
  float: none;
}

.main-content .col-md-10.col-md-offset-1 {
  width: 100%;
  max-width: 1000px;
  margin-left: 0;
  float: none;
}

.main-content .container-fluid {
  padding-left: 0;
  padding-right: 0;
}

.main-content > .container,
.main-content > .container-fluid {
  padding-top: 0;
  padding-bottom: 0;
}

@media (min-width: 1441px) {
  .main-content { padding: 28px 40px; }
  .main-content .col-md-8.col-md-offset-2,
  .main-content .col-lg-8.col-lg-offset-2 { max-width: 900px; }
}

@media (max-width: 1024px) {
  .sidebar { transform: translateX(-100%); transition: transform 0.25s ease; }
  .sidebar--open { transform: translateX(0); }
  .top-header { left: 0; }
  .top-header__logo { display: flex; }
  .sidebar-toggle { display: flex; }
  .main-content { margin-left: 0; }
}

@media (max-width: 768px) {
  .main-content { padding: 16px; margin-top: var(--header-height); }
  .top-header { padding: 0 16px; }
  .top-header__btn { padding: 6px 8px; }
  .top-header__balance { font-size: var(--text-xs); padding: 3px 8px; }
  .main-content .col-md-8.col-md-offset-2,
  .main-content .col-lg-8.col-lg-offset-2 {
    max-width: 100%;
    padding-left: 0;
    padding-right: 0;
  }
}

body:not(.has-sidebar) { padding-bottom: 50px; }

/* ===========================================
   6. DROPDOWN — v4
   =========================================== */
.dropdown-menu {
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  padding: 6px 0;
  margin-top: 4px;
  min-width: 180px;
  font-size: var(--text-base);
}

.dropdown-menu > li > a {
  padding: 8px 16px;
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 500;
  transition: var(--transition);
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li > a:focus {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.dropdown-menu > .active > a,
.dropdown-menu > .active > a:hover,
.dropdown-menu > .active > a:focus {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.dropdown-menu .divider { background-color: var(--border-light); margin: 6px 0; }

.dropdown-max-height {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-default) transparent;
}

.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .open > a:focus {
  background-color: rgba(255, 255, 255, 0.06);
  color: var(--text-white);
}

/* ===========================================
   7. BADGE — v4 pill
   =========================================== */
.badge {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--primary-100);
  color: var(--primary-700);
  vertical-align: middle;
  letter-spacing: 0.02em;
}

.navbar-nav .badge {
  background-color: rgba(163, 230, 53, 0.2);
  color: var(--primary-400);
  padding: 5px 12px;
  font-size: var(--text-sm);
}

/* ===========================================
   8. BOTÕES — v4 Pill Style (AbacatePay-inspired)
   =========================================== */
.btn {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-md);
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: var(--transition);
  letter-spacing: 0;
  line-height: 1.42857143;
  box-shadow: none !important;
  outline: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn:active,
.btn.active { box-shadow: none !important; }

/* Primary — bright lime pill */
.btn-primary {
  background-color: var(--primary-400);
  border-color: var(--primary-400);
  color: var(--text-primary);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary.focus {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-color: var(--primary-500);
  border-color: var(--primary-500);
  color: var(--text-primary);
  transform: translateY(0);
}

.btn-primary.disabled,
.btn-primary[disabled],
fieldset[disabled] .btn-primary {
  background-color: var(--primary-400);
  border-color: var(--primary-400);
  color: var(--text-primary);
  opacity: 0.5;
}

/* Default — ghost outline */
.btn-default {
  background-color: transparent;
  border-color: var(--border-default);
  color: var(--text-primary);
}

.btn-default:hover,
.btn-default:focus {
  background-color: transparent;
  border-color: var(--primary-500);
  color: var(--primary-700);
}

.btn-default:active,
.btn-default.active,
.open > .dropdown-toggle.btn-default {
  background-color: var(--bg-hover);
  border-color: var(--primary-500);
  color: var(--primary-700);
}

/* Success — dark green solid */
.btn-success {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
  color: #FFFFFF;
}

.btn-success:hover,
.btn-success:focus {
  background-color: var(--primary-900);
  border-color: var(--primary-900);
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Danger */
.btn-danger {
  background-color: var(--danger);
  border-color: var(--danger);
  color: #FFFFFF;
}

.btn-danger:hover,
.btn-danger:focus {
  background-color: #B91C1C;
  border-color: #B91C1C;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Info */
.btn-info {
  background-color: var(--info);
  border-color: var(--info);
  color: #FFFFFF;
}

.btn-info:hover,
.btn-info:focus {
  background-color: #2563EB;
  border-color: #2563EB;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Warning */
.btn-warning {
  background-color: var(--warning);
  border-color: var(--warning);
  color: #FFFFFF;
}

.btn-warning:hover,
.btn-warning:focus {
  background-color: #D97706;
  border-color: #D97706;
  color: #FFFFFF;
  transform: translateY(-1px);
}

/* Link */
.btn-link {
  color: var(--primary-700);
  font-weight: 600;
  border-radius: 0;
}

.btn-link:hover,
.btn-link:focus {
  color: var(--primary-900);
  text-decoration: underline;
}

/* Sizes — all pill */
.btn-lg, .btn-group-lg > .btn {
  padding: 12px 26px;
  font-size: 15px;
  border-radius: 999px;
}

.btn-sm, .btn-group-sm > .btn {
  padding: 7px 16px;
  font-size: var(--text-base);
  border-radius: 999px;
}

.btn-xs, .btn-group-xs > .btn {
  padding: 4px 12px;
  font-size: var(--text-sm);
  border-radius: 999px;
}

.btn-block { width: 100%; }

/* ===========================================
   9. FORMULÁRIOS — v4 (subtle bg + lime focus)
   =========================================== */
.form-control {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-md);
  color: var(--text-primary);
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 10px 14px;
  height: auto;
  min-height: 42px;
  box-shadow: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-500);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
  outline: none;
}

.form-control::-webkit-input-placeholder { color: var(--text-muted); }
.form-control:-ms-input-placeholder { color: var(--text-muted); }
.form-control::-moz-placeholder { color: var(--text-muted); opacity: 1; }

.form-control[disabled],
.form-control[readonly],
fieldset[disabled] .form-control {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-tertiary);
  opacity: 1;
}

select.form-control {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

textarea.form-control { min-height: 100px; resize: vertical; }

.form-group { margin-bottom: 18px; }

.control-label {
  font-weight: 500;
  font-size: var(--text-md);
  color: var(--text-primary);
  margin-bottom: 6px;
}

.help-block {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-top: 4px;
  margin-bottom: 0;
}

.input-group-addon {
  font-size: var(--text-md);
  color: var(--text-secondary);
  background-color: var(--bg-hover);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 10px 14px;
}

.has-success .form-control { border-color: var(--success); }
.has-success .form-control:focus {
  border-color: var(--success);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}
.has-success .control-label,
.has-success .help-block { color: var(--primary-700); }

.has-error .form-control { border-color: var(--danger); }
.has-error .form-control:focus {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.15);
}
.has-error .control-label,
.has-error .help-block { color: var(--danger); }

.has-warning .form-control { border-color: var(--warning); }
.has-warning .form-control:focus {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}
.has-warning .control-label,
.has-warning .help-block { color: var(--warning); }

.checkbox label,
.radio label {
  font-weight: 400;
  font-size: var(--text-md);
  color: var(--text-secondary);
}

/* ===========================================
   10. TABELAS — v4 (grid-line borders, strong header)
   =========================================== */
.table {
  font-size: var(--text-base);
  margin-bottom: 0;
  background-color: var(--bg-card);
}

.table > thead > tr > th {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--grid-line);
  border-top: none;
  padding: 14px 16px;
  white-space: nowrap;
  background-color: var(--bg-subtle);
}

.table > tbody > tr > td {
  padding: 14px 16px;
  border-top: 1px solid var(--border-light);
  color: var(--text-primary);
  vertical-align: middle;
  font-size: var(--text-base);
}

.table > tbody > tr:first-child > td { border-top: none; }

.table-hover > tbody > tr:hover { background-color: var(--primary-50); }

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--bg-subtle);
}

.table-responsive {
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  margin-bottom: 0;
  overflow: hidden;
}

/* ===========================================
   11. ALERTAS — v4 (full border + accent left)
   =========================================== */
.alert {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-md);
  font-weight: 500;
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  border: 1px solid;
  margin-bottom: 20px;
  line-height: 1.5;
}

.alert-success {
  background-color: var(--success-bg);
  color: var(--primary-900);
  border-color: var(--primary-200);
  border-left: 4px solid var(--success);
}

.alert-danger {
  background-color: var(--danger-bg);
  color: #991B1B;
  border-color: #FECACA;
  border-left: 4px solid var(--danger);
}

.alert-warning {
  background-color: var(--warning-bg);
  color: #92400E;
  border-color: #FED7AA;
  border-left: 4px solid var(--warning);
}

.alert-info {
  background-color: var(--info-bg);
  color: #1E40AF;
  border-color: #BFDBFE;
  border-left: 4px solid var(--info);
}

.alert .close {
  font-weight: 400;
  opacity: 0.5;
  text-shadow: none;
  font-size: 18px;
}

.alert .close:hover { opacity: 0.8; }

.alert-dismissible .close { right: -10px; top: -2px; }

.alert h4 {
  font-size: var(--text-md);
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

#notify-wrapper {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 9999;
  min-width: 300px;
  max-width: 420px;
  border-radius: var(--radius-lg);
  font-size: var(--text-md);
  box-shadow: var(--shadow-dropdown);
}

/* ===========================================
   12. CARDS / WELLS / PANELS — v4 Blueprint
   =========================================== */
.well {
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  box-shadow: none;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.well-sm { padding: 14px 16px; border-radius: var(--radius-lg); }
.well-lg { padding: 28px 32px; border-radius: var(--radius-lg); }

.panel {
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  box-shadow: none;
  background-color: var(--bg-card);
  margin-bottom: 20px;
  overflow: hidden;
}

.panel-default { border-color: var(--grid-line); }

.panel-default > .panel-heading {
  background-color: var(--bg-subtle);
  border-color: var(--grid-line);
  color: var(--text-primary);
  font-weight: 700;
  font-size: var(--text-md);
  padding: 14px 20px;
  border-radius: 0;
  letter-spacing: -0.01em;
}

.panel-body { padding: 20px 22px; }

.panel-footer {
  background-color: var(--bg-subtle);
  border-color: var(--grid-line);
  padding: 14px 20px;
  border-radius: 0;
}

.panel-title {
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: -0.01em;
}

.panel-primary { border-color: var(--primary-700); }

.panel-primary > .panel-heading {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
  color: #FFFFFF;
}

/* ===========================================
   13. MODALS — v4
   =========================================== */
.modal-content {
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
  background-color: var(--bg-card);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--grid-line);
}

.modal-title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
}

.modal-body { padding: 22px 24px; }

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--grid-line);
}

.modal-backdrop.in { opacity: 0.5; }

/* ===========================================
   14. PAGINATION — v4 pill buttons
   =========================================== */
.pagination {
  margin: 16px 0;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  padding-left: 0;
}

.pagination > li { display: inline-block; }

.pagination > li > a,
.pagination > li > span {
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  padding: 8px 14px;
  font-size: var(--text-base);
  font-weight: 600;
  transition: var(--transition);
  border-radius: var(--radius) !important;
  margin: 0;
}

.pagination > li:first-child > a,
.pagination > li:first-child > span,
.pagination > li:last-child > a,
.pagination > li:last-child > span { border-radius: var(--radius) !important; }

.pagination > li > a:hover,
.pagination > li > a:focus {
  color: var(--primary-700);
  background-color: var(--primary-50);
  border-color: var(--primary-500);
}

.pagination > .active > a,
.pagination > .active > span,
.pagination > .active > a:hover,
.pagination > .active > span:hover,
.pagination > .active > a:focus,
.pagination > .active > span:focus {
  background-color: var(--primary-400);
  border-color: var(--primary-400);
  color: var(--text-primary);
}

.pagination > .disabled > a,
.pagination > .disabled > span {
  color: var(--text-muted);
  background-color: var(--bg-card);
  border-color: var(--border-light);
}

/* ===========================================
   15. NAV PILLS / TABS — v4
   =========================================== */
.nav-pills { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 0; }
.nav-pills > li { display: inline-block; }

.nav-pills > li > a {
  border-radius: 999px;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 8px 18px;
  transition: var(--transition);
  border: 1px solid var(--grid-line);
  background-color: var(--bg-card);
}

.nav-pills > li > a:hover,
.nav-pills > li > a:focus {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-500);
}

.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus {
  background-color: var(--forest-800);
  border-color: var(--forest-800);
  color: #FFFFFF;
}

.nav-tabs { border-bottom: 1px solid var(--grid-line); }

.nav-tabs > li > a {
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-secondary);
  padding: 12px 20px;
  transition: var(--transition);
  border: none;
  background: transparent;
}

.nav-tabs > li > a:hover {
  border: none;
  background-color: var(--bg-subtle);
  color: var(--text-primary);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--primary-700);
  border: none;
  border-bottom: 2px solid var(--primary-500);
  background-color: transparent;
}

/* ===========================================
   16. LABELS (Status badges) — v4 pill
   =========================================== */
.label {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  display: inline-block;
  line-height: 1.4;
}

.label-default { background-color: var(--bg-hover); color: var(--text-secondary); }
.label-primary { background-color: var(--primary-100); color: var(--primary-900); }
.label-success { background-color: var(--primary-100); color: var(--primary-900); }
.label-warning { background-color: var(--warning-bg); color: #92400E; }
.label-danger { background-color: var(--danger-bg); color: #991B1B; }
.label-info { background-color: var(--info-bg); color: #1E40AF; }

/* ===========================================
   17. PROGRESS BAR — v4 pill
   =========================================== */
.progress {
  background-color: var(--bg-hover);
  border-radius: 999px;
  box-shadow: none;
  height: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}

.progress-bar {
  background-color: var(--primary-500);
  box-shadow: none;
  font-size: var(--text-xs);
  line-height: 8px;
}

.progress-bar-success { background-color: var(--success); }
.progress-bar-warning { background-color: var(--warning); }
.progress-bar-danger { background-color: var(--danger); }
.progress-bar-info { background-color: var(--info); }

/* ===========================================
   18. TOOLTIP & POPOVER
   =========================================== */
.tooltip-inner {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-sm);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  background-color: var(--forest-900);
  color: var(--text-white);
}

.tooltip.top .tooltip-arrow { border-top-color: var(--forest-900); }
.tooltip.right .tooltip-arrow { border-right-color: var(--forest-900); }
.tooltip.bottom .tooltip-arrow { border-bottom-color: var(--forest-900); }
.tooltip.left .tooltip-arrow { border-left-color: var(--forest-900); }

.popover {
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-dropdown);
  font-family: "proxima-nova", sans-serif;
}

.popover-title {
  font-size: var(--text-md);
  font-weight: 700;
  background-color: var(--bg-subtle);
  border-bottom-color: var(--grid-line);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 12px 16px;
}

.popover-content { font-size: var(--text-base); padding: 14px 16px; }

/* ===========================================
   19. BREADCRUMB
   =========================================== */
.breadcrumb {
  background-color: transparent;
  padding: 0;
  margin-bottom: 20px;
  font-size: var(--text-sm);
  font-weight: 500;
}

.breadcrumb > li + li::before { color: var(--text-muted); padding: 0 8px; }
.breadcrumb > .active { color: var(--text-tertiary); }

/* ===========================================
   20. LIST GROUP — v4
   =========================================== */
.list-group-item {
  border-color: var(--grid-line);
  padding: 14px 18px;
  font-size: var(--text-md);
  color: var(--text-primary);
  transition: var(--transition);
}

.list-group-item:first-child { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.list-group-item:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }

a.list-group-item:hover,
button.list-group-item:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.list-group-item.active,
.list-group-item.active:hover,
.list-group-item.active:focus {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
  color: #FFFFFF;
}

/* ===========================================
   21. CONTENT AREA
   =========================================== */
.container { max-width: var(--content-max-width); }

.container-fluid { padding-left: 28px; padding-right: 28px; }

body > .container,
body > .container-fluid {
  padding-top: 24px;
  padding-bottom: 40px;
}

.page-header {
  border-bottom: 1px solid var(--grid-line);
  margin: 0 0 24px;
  padding-bottom: 14px;
}

.page-header h1,
.page-header h2 {
  letter-spacing: -0.025em;
  font-weight: 700;
}

/* ===========================================
   22. UTILITY CLASSES
   =========================================== */
.nowrap { white-space: nowrap; }

.width-40 { width: 40% !important; word-break: break-all; min-width: 250px; }

.width-service-name { min-width: 200px; }

.link { word-break: break-all; min-width: 200px; }

.search { width: 250px; }

.well-float { float: left; width: 100%; }

.pull-right-middle { line-height: 40px; }

.border-solid { border: 1px solid var(--grid-line); }

.border-rounded {
  border-radius: var(--radius-lg);
  overflow-wrap: break-word;
  word-wrap: break-word;
  background: var(--bg-card);
}

/* ============================================================
   TICKETS PAGE — Forest/Blueprint Edition
   ============================================================ */

/* Header */
.tk-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.tk-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.tk-header__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: var(--tracking-tight);
}

.tk-header__desc {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 2px 0 0;
}

/* Card */
.tk-card {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.tk-card__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--grid-line);
  background: var(--bg-subtle);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
}

.tk-card__body {
  padding: 24px;
}

/* Labels */
.tk-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}

/* Submit */
.tk-submit {
  padding: 12px 28px;
  background: var(--primary-400);
  color: var(--text-primary);
  border: none;
  border-radius: 999px;
  font-size: var(--text-md);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.tk-submit:hover {
  background: var(--primary-500);
  transform: translateY(-1px);
}

/* List Section */
.tk-list-section {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.tk-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--grid-line);
  background: var(--bg-subtle);
  gap: 12px;
}

.tk-list-header__left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.tk-list-header__left h2 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Search */
.tk-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 0 4px 0 10px;
  transition: var(--transition);
}

.tk-search:focus-within {
  border-color: var(--primary-400);
  box-shadow: 0 0 0 3px rgba(132,204,22,0.15);
}

.tk-search input {
  border: none;
  outline: none;
  background: none;
  padding: 7px 4px;
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--text-primary);
  width: 160px;
  min-width: 0;
}

.tk-search button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 5px;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
}

.tk-search button:hover {
  color: var(--primary-700);
}

/* Ticket Items */
.tk-tickets {
  display: flex;
  flex-direction: column;
}

.tk-ticket {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 22px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: var(--transition);
  gap: 12px;
}

.tk-ticket:last-child {
  border-bottom: none;
}

.tk-ticket:hover {
  background: var(--bg-hover);
  text-decoration: none;
}

.tk-ticket--unread {
  background: var(--primary-50);
}

.tk-ticket--unread:hover {
  background: var(--primary-100);
}

.tk-ticket__left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.tk-ticket__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-400);
  flex-shrink: 0;
}

.tk-ticket__icon {
  width: 36px;
  height: 36px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-tertiary);
}

.tk-ticket--unread .tk-ticket__icon {
  background: var(--primary-100);
  border-color: var(--primary-200);
  color: var(--primary-700);
}

.tk-ticket__info {
  min-width: 0;
  flex: 1;
}

.tk-ticket__subject {
  display: block;
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.tk-ticket--unread .tk-ticket__subject {
  font-weight: 700;
}

.tk-ticket__meta {
  display: block;
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.tk-ticket__right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* Status Badges */
.tk-ticket__status {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: capitalize;
}

.tk-ticket__status--open,
.tk-ticket__status--new {
  background: var(--primary-100);
  color: var(--primary-900);
}

.tk-ticket__status--answered {
  background: var(--info-bg);
  color: #1E40AF;
}

.tk-ticket__status--closed {
  background: var(--bg-hover);
  color: var(--text-muted);
}

.tk-ticket__status--pending {
  background: var(--warning-bg);
  color: #92400E;
}

/* Responsive */
@media (max-width: 768px) {
  .tk-list-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .tk-search {
    width: 100%;
  }

  .tk-search input {
    width: 100%;
    flex: 1;
  }

  .tk-ticket {
    padding: 12px 16px;
  }

  .tk-ticket__icon {
    display: none;
  }

  .tk-card__body {
    padding: 18px;
  }
}

/* ============================================================
   END — TICKETS PAGE
   ============================================================ */

/* ===========================================
   24. MASS ALERT
   =========================================== */
.mass-alert { margin-bottom: 20px; }

.mass-alert .alert {
  margin-bottom: 0;
  border-radius: 0;
  border-left-width: 4px;
  border-right: 1px solid;
  border-top: 1px solid;
  border-bottom: 0;
}

.mass-alert .alert:first-child {
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
}

.mass-alert .alert:last-child {
  border-bottom: 1px solid;
  border-bottom-left-radius: var(--radius-lg);
  border-bottom-right-radius: var(--radius-lg);
}

/* ===========================================
   25. PASSWORD FIELD
   =========================================== */
.form-group__password { position: relative; }

.forgot-password {
  position: absolute;
  right: 11px;
  bottom: 7px;
  font-size: var(--text-sm);
  color: var(--primary-700);
  font-weight: 600;
}

.forgot-password:hover { color: var(--primary-900); }

/* ===========================================
   26. CONFIRM EMAIL
   =========================================== */
.confirm-email { margin-top: 30px; }
.confirm-email__description { margin-bottom: 24px; color: var(--text-secondary); }

/* ===========================================
   27. SERVICE DESCRIPTION
   =========================================== */
.service-description table { width: auto !important; }

.service-description {
  word-break: break-word;
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

.service-description__th { width: 40% !important; word-break: break-all; }

/* ===========================================
   28. API PAGE — v4 (forest code bg)
   =========================================== */
.api h1, .api h2, .api h3, .api pre { margin-top: 0; margin-bottom: 20px; }
.api h4, .api h5, .api h6, .api form { margin-top: 0; margin-bottom: 10px; }

pre {
  background-color: var(--forest-900);
  color: var(--text-white);
  border: 1px solid var(--forest-800);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  font-size: var(--text-base);
  line-height: 1.6;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

code {
  background-color: var(--primary-50);
  color: var(--primary-900);
  padding: 2px 7px;
  border-radius: var(--radius);
  font-size: 90%;
  font-family: "SF Mono", Menlo, Consolas, monospace;
}

pre code {
  background-color: transparent;
  color: inherit;
  padding: 0;
}

/* ===========================================
   29. ORDER ACTIONS
   =========================================== */
.order-actions {
  width: 92px;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

/* ===========================================
   30. STRIPE ELEMENTS
   =========================================== */
.StripeElement {
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 12px 14px;
  background-color: var(--bg-subtle);
  box-shadow: none;
  transition: var(--transition);
}

.StripeElement--focus {
  border-color: var(--primary-500);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}

.StripeElement--invalid { border-color: var(--danger); }

/* ===========================================
   31. SCROLLBAR
   =========================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background-color: var(--border-default);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background-color: var(--text-muted); }

/* ===========================================
   32. ANIMAÇÕES
   =========================================== */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fadeIn { animation: fadeIn 0.3s ease forwards; }

@keyframes spin { to { transform: rotate(360deg); } }

.spinner {
  width: 32px;
  height: 32px;
  border: 2.5px solid var(--border-default);
  border-top-color: var(--primary-500);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ===========================================
   33. MODAL BODY SCROLLER
   =========================================== */
.modal-body-scroller {
  max-height: 500px;
  overflow: auto;
  border-radius: var(--radius);
}

/* ===========================================
   34. SELECTION
   =========================================== */
::selection { background-color: var(--primary-200); color: var(--primary-900); }
::-moz-selection { background-color: var(--primary-200); color: var(--primary-900); }

/* ===========================================
   35. RTL OVERRIDES
   =========================================== */
.rtl-navbar { direction: rtl; }
.rtl-navbar .navbar-header { float: right; }
.rtl-navbar .navbar-right { float: left !important; margin-right: -15px; }
.rtl-navbar .navbar-nav { float: right; padding-right: 5px; margin-right: 15px; }
.rtl-navbar .navbar-nav li { float: right; }
.rtl-navbar .navbar-toggle { float: left; }
.rtl-navbar .navbar-brand { float: right; padding-right: 20px; }

.rtl-form { direction: rtl; }
.rtl-form input { direction: rtl; text-align: right; }
.rtl-form .checkbox label { padding-right: 20px; padding-left: 0; }
.rtl-form .checkbox input[type="checkbox"] { right: 0; }
.rtl-form .forgot-password { right: auto; left: 11px; }
.rtl-form .close { float: left; right: 0; top: 0; }
.rtl-form .pull-right { float: left !important; padding-right: 0; }

.rtl-content { direction: rtl; }
.rtl-table { direction: rtl; }
.rtl-table th, .rtl-table td { text-align: right; }

.rtl-h { direction: rtl; text-align: right; }
.rtl-btn { float: right; }

.rtl-content h1, .rtl-content h2, .rtl-content h3,
.rtl-content h4, .rtl-content h5, .rtl-content h6 { text-align: right; }

.rtl-content ul, .rtl-content ol { padding-right: 15px; }
.rtl-ul { text-align: right; direction: rtl; padding-right: 15px; }
.rtl-alert { text-align: right; direction: rtl; }
.rtl-alert .close { float: left; right: 0; top: 0; }

.rtl-pagination { float: right; }
.rtl-pagination li { float: right; }

.rtl-pagination li:last-child a {
  unicode-bidi: bidi-override;
  direction: rtl;
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: 0;
  border-top-right-radius: 0;
}

.rtl-pagination li:first-child a {
  unicode-bidi: bidi-override;
  direction: rtl;
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-bottom-left-radius: 0;
  border-top-left-radius: 0;
}

.rtl-nav { float: right; direction: rtl; width: 100%; padding-right: 0; }
.rtl-nav li { float: right; }
.rtl-nav .pull-right { float: left !important; }

.rtl-nav .pull-right .input-group input {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.rtl-nav .pull-right .input-group .btn {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.rtl-search { direction: rtl; }
.rtl-search .input-group input {
  border-top-right-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.rtl-search .input-group .btn {
  border-top-left-radius: var(--radius);
  border-bottom-left-radius: var(--radius);
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.rtl-modal { direction: rtl; }
.rtl-modal .close { float: left; }
.rtl-modal .modal-footer { text-align: left; }

/* ===========================================
   36. RESPONSIVE
   =========================================== */
@media (min-width: 1441px) {
  .container { max-width: 1600px; }
  .container-fluid { padding-left: 40px; padding-right: 40px; }
}

@media (min-width: 992px) {
  .service-name { max-width: 320px; word-break: break-word; }
  .text-md-right { text-align: right; }
}

@media (max-width: 991px) {
  .well-float { width: auto; min-width: 100%; }
}

@media (max-width: 1200px) {
  .order-actions { width: auto; }
  .order-actions .btn { margin-bottom: 2px; }
}

@media (max-width: 768px) {
  .container-fluid { padding-left: 16px; padding-right: 16px; }

  body > .container,
  body > .container-fluid {
    padding-top: 16px;
    padding-bottom: 24px;
  }

  .rtl-navbar .navbar-nav {
    float: right !important;
    width: 100%;
    margin-right: 0;
  }

  .rtl-navbar .navbar-nav li { width: 100%; }
  .rtl-navbar .navbar-header { float: none; margin-right: 0; }
  .rtl-navbar .navbar-brand { float: right; padding-right: 15px; }

  .navbar-collapsed-before .navbar-header { width: auto; }

  .navbar-default .navbar-collapse {
    border-top: 1px solid var(--border-sidebar);
    background-color: var(--bg-sidebar);
  }

  .navbar-nav { margin: 0; }

  .navbar-default .navbar-nav > li > a { padding: 12px 20px; }
}

/* ============================================================
   NEW ORDER v4 — Blueprint Edition
   2-Column Layout + Social Filter + Details
   Substituir TODOS os blocos anteriores de neworder
   ============================================================ */

/* Widgets Grid */
.order-widgets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

/* Widget Base */
.order-widget {
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 14px;
}


/* Icon */
.order-widget__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.order-widget--welcome .order-widget__icon { background-color: var(--primary-100); }
.order-widget--balance .order-widget__icon { background-color: var(--info-bg); }
.order-widget--spent .order-widget__icon { background-color: var(--warning-bg); }
.order-widget--points .order-widget__icon { background-color: var(--danger-bg); }

/* Content */
.order-widget__content {
  flex: 1;
  min-width: 0;
}

.order-widget__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 2px;
  display: block;
}

.order-widget__value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: block;
}

.order-widget__sub {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-widget__sub a {
  color: var(--primary-700);
  font-weight: 600;
  font-size: var(--text-xs);
}

.order-widget__sub a:hover { color: var(--primary-900); }

/* Add Funds button */
.order-widget__btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 700;
  color: var(--info);
  background-color: var(--info-bg);
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}

.order-widget__btn:hover {
  background-color: var(--info);
  color: #FFFFFF;
  text-decoration: none;
}

/* Accent bar removed — v4 uses hover bg change instead */
.order-widget::after { display: none; }

/* Responsive */
@media (max-width: 1199px) {
  .order-widgets {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .order-widget {
    padding: 16px 18px;
    gap: 12px;
  }

  .order-widget__icon {
    width: 38px;
    height: 38px;
  }

  .order-widget__value {
    font-size: var(--text-md);
  }
}

@media (max-width: 991px) {
  .order-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-widget:nth-child(2) {
    border-right: none;
  }

  .order-widget:nth-child(-n+2) {
    border-bottom: 1px solid var(--grid-line);
  }
}

@media (max-width: 480px) {
  .order-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-widget {
    padding: 14px 16px;
    gap: 10px;
  }

  .order-widget__icon {
    width: 34px;
    height: 34px;
  }

  .order-widget__icon .material-symbols-outlined {
    font-size: 18px !important;
  }

  .order-widget__value {
    font-size: var(--text-base);
  }

  .order-widget__label {
    font-size: 10px;
  }
}

/* ====== SOCIAL FILTER BAR ====== */
.social-filter {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  padding: 14px 18px;
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
}

.social-filter__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  cursor: pointer;
  transition: var(--transition);
  font-family: "proxima-nova", sans-serif;
  white-space: nowrap;
}

.social-filter__item:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-500);
}

.social-filter__item--active {
  background-color: var(--forest-800);
  color: #FFFFFF;
  border-color: var(--forest-800);
}

.social-filter__item--active:hover {
  background-color: var(--forest-900);
  border-color: var(--forest-900);
  color: #FFFFFF;
}

/* ====== 2-COLUMN ORDER LAYOUT ====== */
.order-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  align-items: start;
}

.order-layout__form {
  min-width: 0;
}

.order-layout__form .well {
  margin-bottom: 0;
}

/* Remove the col-md-8 restriction inside new layout */
.order-layout .container,
.order-layout .row,
.order-layout .col-md-8,
.order-layout .col-md-8.col-md-offset-2 {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  padding: 0;
  float: none;
}

/* ====== SERVICE DETAILS PANEL ====== */
.order-layout__details {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.svc-details {
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.svc-details__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--grid-line);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background-color: var(--bg-subtle);
}

.svc-details__name {
  padding: 18px 20px;
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.45;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--grid-line);
}

/* Quick Stats Grid */
.svc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--grid-line);
}

.svc-stat {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--grid-line);
  border-right: 1px solid var(--grid-line);
}

.svc-stat:nth-child(2n) {
  border-right: none;
}

.svc-stat:nth-last-child(-n+2) {
  border-bottom: none;
}

.svc-stat__icon {
  font-size: 18px;
  color: var(--primary-600);
  flex-shrink: 0;
}

.svc-stat__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  display: block;
}

.svc-stat__value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary-700);
  display: block;
}

/* Description */
.svc-details__desc {
  padding: 18px 20px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.65;
}

.svc-details__desc p {
  margin: 0 0 8px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.svc-details__desc p:last-child {
  margin-bottom: 0;
}

.svc-details__bullet {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
}

.svc-details__bullet::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: var(--primary-500);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin-top: 6px;
}

/* Hide the original description inside form */
#service_description {
  display: none !important;
}

/* ====== FORM OVERRIDES ====== */
#order-form .btn-primary {
  width: 100%;
  padding: 12px 24px;
  font-size: var(--text-md);
  font-weight: 700;
  letter-spacing: 0;
  margin-top: 4px;
  border-radius: 999px;
}

#order-form .btn-primary:hover {
  transform: translateY(-1px);
}

#charge {
  font-weight: 700;
  font-size: var(--text-md);
  color: var(--primary-700);
  background-color: var(--primary-50);
  border-color: var(--primary-200);
}

/* ====== RESPONSIVE ====== */
@media (max-width: 1199px) {
  .order-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 16px;
  }
}

@media (max-width: 991px) {
  .order-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .order-layout__details {
    position: static;
    order: -1;
  }

  .social-filter {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .social-filter::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 768px) {
  .order-widgets {
    grid-template-columns: 1fr;
  }

  .order-widget {
    border-right: none !important;
    border-bottom: 1px solid var(--grid-line);
  }

  .order-widget:last-child {
    border-bottom: none;
  }

  .social-filter {
    padding: 10px 14px;
    gap: 4px;
  }

  .order-layout__details {
    order: 2;
  }
}

/* ============================================================
   END — NEW ORDER v4
   ============================================================ */
/* ============================================================
   RIGHT COLUMN FIX 
   ============================================================ */

/* Right column: not sticky, just aligned to top */
.order-layout__details {
  position: static !important;
  align-self: start;
}

/* On mobile, announcements show after form */
@media (max-width: 991px) {
  .order-layout__details {
    order: 2;
  }
}

/* ============================================================
   END — RIGHT COLUMN FIX
   ============================================================ */

/* ============================================================
   SERVICES PAGE v4 — Blueprint Edition
   ============================================================ */

/* Toolbar (Filter + Currency + Search) */
.nav-pills.rtl-nav,
.col-lg-12 > .nav-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding: 0;
  border: none;
}

.col-lg-12 > .nav-pills > li {
  float: none;
  margin: 0;
}

.col-lg-12 > .nav-pills > li > a {
  padding: 0;
  background: none;
}

/* Filter & Currency Dropdown Buttons */
.col-lg-12 > .nav-pills .dropdown > .btn-primary.dropdown-toggle {
  padding: 9px 18px;
  font-size: var(--text-base);
  font-weight: 600;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.col-lg-12 > .nav-pills .dropdown > .btn-primary.dropdown-toggle .caret {
  margin-left: 2px;
  opacity: 0.7;
}

.col-lg-12 > .nav-pills .dropdown > .btn-primary.dropdown-toggle .fal,
.col-lg-12 > .nav-pills .dropdown > .btn-primary.dropdown-toggle .fas,
.col-lg-12 > .nav-pills .dropdown > .btn-primary.dropdown-toggle .fa {
  font-size: var(--text-sm);
}

/* Category Dropdown Items */
.col-lg-12 > .nav-pills .dropdown-menu {
  min-width: 240px;
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
}

.col-lg-12 > .nav-pills .dropdown-menu > li > a.dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: var(--text-base);
  font-weight: 500;
}

.col-lg-12 > .nav-pills .dropdown-menu > li > a.dropdown-item:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.col-lg-12 > .nav-pills .dropdown-menu > li > a.dropdown-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

/* Favorite Star in Dropdown */
.col-lg-12 > .nav-pills .dropdown-menu > li > a .fas.fa-star {
  color: var(--warning);
  font-size: var(--text-sm);
}

/* Search Input (pull-right) */
.nav-pills > li.pull-right.search {
  margin-left: auto;
  float: none !important;
}

.nav-pills > li.search .input-group {
  width: 250px;
}

.nav-pills > li.search .input-group .form-control {
  font-size: var(--text-base);
  padding: 9px 14px;
  height: auto;
  min-height: 38px;
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
}

.nav-pills > li.search .input-group .form-control:focus {
  border-color: var(--primary-500);
  box-shadow: none;
}

.nav-pills > li.search .input-group .form-control:focus + .input-group-btn .btn {
  border-color: var(--primary-500);
}

.nav-pills > li.search .input-group-btn .btn {
  border: 1px solid var(--border-default);
  border-left: none;
  background-color: var(--bg-card);
  color: var(--text-tertiary);
  padding: 9px 14px;
  min-height: 38px;
  transition: var(--transition);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.nav-pills > li.search .input-group-btn .btn:hover {
  color: var(--primary-700);
  background-color: var(--primary-50);
}

/* Services Table Container */
.well.well-float {
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
}

/* Services Table */
#service-table {
  margin-bottom: 0;
}

#service-table > thead > tr > th {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  padding: 14px 16px;
  border-bottom: 1px solid var(--grid-line);
  border-top: none;
  background-color: var(--bg-subtle);
  white-space: nowrap;
}

#service-table > thead > tr > th .fa-exclamation-circle {
  color: var(--text-muted);
  font-size: var(--text-xs);
  cursor: help;
}

/* Category Row (separator) */
#service-table > tbody > tr[data-filter-table-category-id] > td[colspan] {
  background-color: var(--bg-page);
  padding: 12px 16px;
  font-size: var(--text-base);
  border-top: 1px solid var(--grid-line);
  border-bottom: none;
}

#service-table > tbody > tr[data-filter-table-category-id] > td[colspan] strong {
  font-weight: 700;
  color: var(--text-primary);
  font-size: var(--text-base);
  letter-spacing: -0.01em;
}

#service-table > tbody > tr[data-filter-table-category-id] > td[colspan] img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 6px;
}

#service-table > tbody > tr[data-filter-table-category-id] > td[colspan] span {
  vertical-align: middle;
  margin-right: 4px;
}

/* Service Rows */
#service-table > tbody > tr > td {
  padding: 12px 16px;
  font-size: var(--text-base);
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  vertical-align: middle;
}

#service-table > tbody > tr:hover > td {
  background-color: var(--primary-50);
}

/* Service ID column */
#service-table > tbody > tr > td[data-filter-table-service-id] {
  font-weight: 600;
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Service Name column */
#service-table .service-name {
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.45;
  max-width: 360px;
  word-break: break-word;
}

/* Rate column */
#service-table > tbody > tr > td:nth-child(3),
#service-table > tbody > tr > td:nth-child(4),
#service-table > tbody > tr > td:nth-child(5) {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

/* Favorite Star Button */
[data-favorite-service-id] {
  cursor: pointer;
  font-size: var(--text-md);
  color: var(--text-muted);
  transition: var(--transition);
  padding: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-favorite-service-id]:hover {
  color: var(--warning);
  transform: scale(1.15);
}

[data-favorite-service-id].favorite-active {
  color: var(--warning);
}

[data-favorite-service-id] .far.fa-star { font-size: var(--text-md); }
[data-favorite-service-id] .fas.fa-star { font-size: var(--text-md); }

/* Service Description (inline & mobile) */
#service-table .service-description {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.55;
  max-width: 300px;
}

#service-table tr.service-description > td {
  padding: 8px 16px 14px;
  background-color: var(--bg-subtle);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  border-top: none;
}

/* Average Time column */
#service-table .nowrap {
  white-space: nowrap;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* Services Text (below table) */
.col-md-8.col-md-offset-2 > .well.rtl-content,
.col-md-8.col-md-offset-2 > .well:last-child {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   END — SERVICES PAGE v4
   ============================================================ */

/* ============================================================
   ORDERS PAGE v4 — Blueprint Edition
   ============================================================ */

/* Toolbar */
.orders-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.orders-pills {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  min-width: 0;
}

.orders-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}

.orders-pill:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-500);
  text-decoration: none;
}

.orders-pill--active {
  background-color: var(--forest-800);
  color: #FFFFFF;
  border-color: var(--forest-800);
}

.orders-pill--active:hover {
  background-color: var(--forest-900);
  border-color: var(--forest-900);
  color: #FFFFFF;
}

/* Search */
.orders-search {
  flex-shrink: 0;
}

.orders-search__input {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  padding: 0 4px 0 12px;
  transition: var(--transition);
}

.orders-search__input:focus-within {
  border-color: var(--primary-500);
  background-color: var(--bg-card);
  box-shadow: 0 0 0 3px rgba(132, 204, 22, 0.15);
}

.orders-search__input input {
  border: none;
  outline: none;
  background: none;
  padding: 8px 4px;
  font-size: var(--text-sm);
  font-family: inherit;
  color: var(--text-primary);
  min-width: 0;
  width: 180px;
}

.orders-search__input input::placeholder {
  color: var(--text-muted);
}

.orders-search__input button {
  border: none;
  background: none;
  cursor: pointer;
  padding: 6px;
  color: var(--text-muted);
  border-radius: var(--radius);
  transition: var(--transition);
  display: flex;
  flex-shrink: 0;
}

.orders-search__input button:hover {
  color: var(--primary-700);
  background-color: var(--primary-50);
}

/* Action Bar */
.orders-action-bar {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background-color: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  animation: ordersSlideIn 0.2s ease;
}

@keyframes ordersSlideIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.orders-action-bar__left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.orders-action-bar__count {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary-700);
}

.orders-action-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-700);
  background-color: #FFFFFF;
  border: 1px solid var(--primary-200);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.orders-action-bar__btn:hover {
  background-color: var(--primary-700);
  color: #FFFFFF;
  border-color: var(--primary-700);
}

.orders-action-bar__btn--cancel {
  color: var(--text-muted);
  border-color: var(--border-default);
}

.orders-action-bar__btn--cancel:hover {
  background-color: var(--danger);
  color: #FFFFFF;
  border-color: var(--danger);
}

/* Table Wrapper */
.orders-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
}

/* Table */
.orders-table {
  margin-bottom: 0;
  width: 100%;
}

.orders-table thead th {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  white-space: nowrap;
  padding: 14px 16px;
  border-bottom: 1px solid var(--grid-line);
  background-color: var(--bg-subtle);
}

.orders-table tbody td {
  padding: 12px 16px;
  font-size: var(--text-sm);
  color: var(--text-primary);
  vertical-align: middle;
  border-top: 1px solid var(--border-light);
}

.orders-table tbody tr:hover td {
  background-color: var(--primary-50);
}

.orders-tr--selected td {
  background-color: var(--primary-50) !important;
}

/* Checkbox */
.otd-check {
  width: 40px;
  text-align: center;
}

.orders-checkbox {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin: 0;
  position: relative;
}

.orders-checkbox input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 0;
  height: 0;
}

.orders-checkbox__mark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border-default);
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  background-color: var(--bg-card);
}

.orders-checkbox input:checked + .orders-checkbox__mark {
  background-color: var(--primary-400);
  border-color: var(--primary-400);
}

.orders-checkbox input:checked + .orders-checkbox__mark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid var(--text-primary);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-top: -1px;
}

.orders-checkbox:hover .orders-checkbox__mark {
  border-color: var(--primary-500);
}

/* Copy ID */
.orders-copy-id {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  padding: 2px 6px;
  border-radius: var(--radius);
  transition: var(--transition);
  font-variant-numeric: tabular-nums;
}

.orders-copy-id .material-symbols-outlined {
  opacity: 0;
  transition: opacity 0.15s ease;
  color: var(--text-muted);
}

.orders-copy-id:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
}

.orders-copy-id:hover .material-symbols-outlined {
  opacity: 1;
  color: var(--primary-700);
}

/* Cell Styles */
.otd-date {
  font-size: var(--text-xs) !important;
  color: var(--text-tertiary) !important;
  white-space: nowrap;
}

.otd-link {
  min-width: 180px;
}

.orders-link-text {
  display: inline-block;
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
  font-size: var(--text-xs);
  color: var(--text-secondary);
}

.orders-detail-btn {
  color: var(--text-muted);
  margin-left: 4px;
  vertical-align: middle;
}

.orders-detail-btn:hover {
  color: var(--primary-700);
}

.otd-charge {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.otd-svc {
  font-size: var(--text-xs) !important;
  color: var(--text-secondary) !important;
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Status Badges — v4 pill */
.orders-status {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  text-transform: capitalize;
  letter-spacing: 0.02em;
}

.orders-status--pending { background-color: #FFF7ED; color: #B45309; }
.orders-status--inprogress,
.orders-status--in-progress { background-color: #EFF6FF; color: #1D4ED8; }
.orders-status--processing { background-color: #F5F3FF; color: #7C3AED; }
.orders-status--completed { background-color: var(--primary-100); color: var(--primary-900); }
.orders-status--partial { background-color: #FFF7ED; color: #EA580C; }
.orders-status--canceled,
.orders-status--cancelled { background-color: var(--danger-bg); color: var(--danger); }

/* Actions */
.orders-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.orders-btn {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
}

.orders-refilling {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--info);
  font-weight: 600;
}

.orders-refilling .material-symbols-outlined {
  animation: ordersSpin 1.5s linear infinite;
}

@keyframes ordersSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Share Button */
.orders-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  background-color: var(--bg-card);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.orders-share-btn:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
  background-color: var(--primary-50);
}

.orders-share-btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.orders-spin {
  animation: ordersSpin 1.5s linear infinite;
}

.otd-share {
  width: 50px;
  text-align: center;
}

/* Toast */
.orders-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background-color: var(--forest-900);
  color: #FFFFFF;
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0,0,0,0.15);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
  z-index: 9999;
  white-space: nowrap;
}

.orders-toast--show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.orders-toast .material-symbols-outlined {
  color: var(--primary-400);
}

/* Mobile toolbar fix */
@media (max-width: 768px) {
  .orders-toolbar {
    flex-direction: column;
    gap: 10px;
  }

  .orders-pills {
    flex-wrap: wrap;
  }

  .orders-search {
    width: 100%;
  }

  .orders-search__input {
    width: 100%;
  }

  .orders-search__input input {
    width: 100%;
    flex: 1;
  }
}

/* ============================================================
   END — ORDERS PAGE v4
   ============================================================ */

/* ============================================================
   ADD FUNDS v2 — Forest/Blueprint Edition
   ============================================================ */

.af-page {
  max-width: 640px;
}

/* Header */
.af-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.af-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.af-header__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: var(--tracking-tight);
}

.af-header__desc {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 2px 0 0;
}

.af-header__balance {
  text-align: right;
}

.af-header__balance-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.af-header__balance-value {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--primary-700);
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
}

/* Card */
.af-card {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
}

/* Section */
.af-section {
  margin-bottom: 22px;
}

.af-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 10px;
}

/* Payment Methods Grid */
.af-methods {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.af-method {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.af-method input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.af-method:hover {
  border-color: var(--primary-400);
  background: var(--primary-50);
}

.af-method--active {
  border-color: var(--primary-400);
  background: var(--primary-50);
  box-shadow: 0 0 0 1px var(--primary-400);
}

.af-method__icon {
  font-size: 22px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.af-method--active .af-method__icon {
  color: var(--primary-700);
}

.af-method__name {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Amount Input */
.af-amount-wrap {
  position: relative;
}

.af-amount-currency {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-muted);
}

.af-amount-input {
  padding-left: 36px !important;
  font-size: var(--text-xl) !important;
  font-weight: 700 !important;
  height: 56px !important;
  font-variant-numeric: tabular-nums;
  letter-spacing: var(--tracking-tight);
}

.af-amount-input:focus {
  font-size: var(--text-xl) !important;
}

/* Quick Amount Buttons */
.af-quick-amounts {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.af-quick {
  padding: 6px 16px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: 999px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.af-quick:hover {
  border-color: var(--primary-400);
  color: var(--primary-700);
  background: var(--primary-50);
}

/* Submit */
.af-submit {
  width: 100%;
  padding: 14px;
  background: var(--primary-400);
  color: var(--text-primary);
  border: none;
  border-radius: 999px;
  font-size: var(--text-md);
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: var(--transition);
  margin-top: 24px;
}

.af-submit:hover {
  background: var(--primary-500);
  transform: translateY(-1px);
}

/* Security */
.af-security {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  flex-wrap: wrap;
}

.af-security__item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-tertiary);
}

/* Invoice Link */
.af-invoice-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--primary-700);
}

.af-invoice-link:hover {
  color: var(--primary-900);
}

/* History */
.af-history {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 24px;
}

.af-history__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--grid-line);
  background: var(--bg-subtle);
}

.af-history__header h2 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .af-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .af-header__balance {
    text-align: left;
  }

  .af-methods {
    grid-template-columns: 1fr;
  }

  .af-card {
    padding: 20px;
  }

  .af-quick-amounts {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .af-quick-amounts::-webkit-scrollbar {
    display: none;
  }

  .af-security {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}

/* ============================================================
   END — ADD FUNDS v2
   ============================================================ */

/* ============================================================
   SIGNIN PAGE — signin.twig
   ============================================================ */

/* Signin Form Container */
form[action*="signin"] .form-group,
form .form-group__password {
  margin-bottom: 20px;
}

/* Username & Password Inputs */
form[action*="signin"] .form-control,
form .form-group__password .form-control {
  padding: 12px 14px;
  min-height: 44px;
  font-size: var(--text-md);
}

/* Password Field with Forgot Link */
.form-group__password {
  position: relative;
}

.form-group__password .form-control {
  padding-right: 140px;
}

.forgot-password {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(4px);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--primary-700);
  transition: var(--transition);
  z-index: 2;
}

.forgot-password:hover {
  color: var(--primary-900);
}

.rtl-form .form-group__password .form-control {
  padding-right: 14px;
  padding-left: 140px;
}

.rtl-form .forgot-password {
  right: auto;
  left: 14px;
}

/* Captcha */
form[action*="signin"] .g-recaptcha,
form .g-recaptcha {
  margin-bottom: 20px;
}

/* Bottom Row (Button + Sign Up Link) */
form[action*="signin"] .row,
form > .row {
  margin-top: 4px;
}

/* Sign In Button */
form[action*="signin"] .btn-primary,
form .form-inline .btn-primary {
  padding: 11px 28px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
}

form[action*="signin"] .btn-primary:hover,
form .form-inline .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

form[action*="signin"] .btn-primary:active,
form .form-inline .btn-primary:active {
  transform: translateY(0);
}

/* Google Sign In */
.g_id_signin {
  display: inline-block;
  vertical-align: middle;
  margin-left: 8px;
}

.form-inline .form-group {
  vertical-align: middle;
}

.form-inline .form-group + .form-group {
  margin-left: 12px;
}

/* Sign Up Link */
.pull-right-middle {
  line-height: 44px;
  font-size: var(--text-md);
  color: var(--text-secondary);
}

.pull-right-middle a {
  color: var(--primary-700);
  font-weight: 600;
}

.pull-right-middle a:hover {
  color: var(--primary-900);
}

/* Auth Text Block */
.col-md-8.col-md-offset-2 > .well.rtl-content {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================================
   END — SIGNIN PAGE
   ============================================================ */

/* ============================================================
   MASS ORDER PAGE — massorder.twig
   ============================================================ */

/* Mass Order Textarea */
#links {
  min-height: 320px;
  font-size: var(--text-base);
  font-family: "proxima-nova", monospace;
  line-height: 1.7;
  resize: vertical;
  padding: 14px;
}

#links::placeholder {
  color: var(--text-tertiary);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Submit Button */
form[action*="massorder"] .btn-primary {
  width: 100%;
  padding: 12px 24px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

form[action*="massorder"] .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

form[action*="massorder"] .btn-primary:active {
  transform: translateY(0);
}

/* Success Alert — Order Results */
form[action*="massorder"] .alert-success h4 {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: 8px;
}

form[action*="massorder"] .alert-success {
  font-size: var(--text-base);
  line-height: 1.8;
}

form[action*="massorder"] .alert-success a {
  color: var(--primary-700);
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
}

form[action*="massorder"] .alert-success a:hover {
  color: var(--primary-900);
}

/* Error Alert — With Details */
form[action*="massorder"] .alert-danger h4 {
  font-size: var(--text-md);
  font-weight: 600;
  margin-bottom: 8px;
}

form[action*="massorder"] .alert-danger a {
  color: #991B1B;
  font-weight: 600;
  display: inline-block;
  margin-top: 6px;
}

form[action*="massorder"] .alert-danger a:hover {
  color: #7F1D1D;
}

/* ============================================================
   END — MASS ORDER PAGE
   ============================================================ */

/* ============================================================
   SIGNUP PAGE — signup.twig
   ============================================================ */

/* Signup Form Inputs */
form[action=""] .form-group .form-control,
form[method="post"] .form-group .form-control {
  padding: 12px 14px;
  min-height: 44px;
  font-size: var(--text-md);
}

/* Terms Checkbox */
.checkbox label {
  font-size: var(--text-md);
  color: var(--text-secondary);
  font-weight: 400;
  padding-left: 24px;
  cursor: pointer;
  line-height: 1.5;
}

.checkbox label a {
  color: var(--primary-700);
  font-weight: 500;
}

.checkbox label a:hover {
  color: var(--primary-900);
}

.checkbox input[type="checkbox"] {
  margin-top: 5px;
}

/* Signup Button */
form .form-inline .form-group .btn-primary {
  padding: 11px 28px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* Sign In Link (bottom right) */
.text-md-right .pull-right-middle {
  font-size: var(--text-md);
  color: var(--text-secondary);
}

.text-md-right .pull-right-middle a {
  color: var(--primary-700);
  font-weight: 600;
}

.text-md-right .pull-right-middle a:hover {
  color: var(--primary-900);
}

/* ============================================================
   END — SIGNUP PAGE
   ============================================================ */

/* ============================================================
   DRIP FEED PAGE — drip_feed.twig
   ============================================================ */

/* Runs Column — Link + Counter */
.well.well-float > .table > tbody > tr > td.nowrap a {
  color: var(--primary-700);
  font-weight: 500;
  transition: var(--transition);
}

.well.well-float > .table > tbody > tr > td.nowrap a:hover {
  color: var(--primary-900);
}

/* Link Column */
.well.well-float > .table > tbody > tr > td.link {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  word-break: break-all;
  min-width: 200px;
  line-height: 1.5;
}

/* Total Charges & Quantity — Numeric Alignment */
.well.well-float > .table > tbody > tr > td[nowrap] {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ============================================================
   END — DRIP FEED PAGE
   ============================================================ */

/* ============================================================
   SUBSCRIPTIONS PAGE — subscriptions.twig
   ============================================================ */

/* Posts Columns — Links (new_posts / old_posts) */
.well.well-float > .table > tbody > tr > td.nowrap a {
  color: var(--primary-700);
  font-weight: 500;
  transition: var(--transition);
}

.well.well-float > .table > tbody > tr > td.nowrap a:hover {
  color: var(--primary-900);
}

/* Reason Tooltip Icon */
.well.well-float > .table > tbody > tr > td .fas.fa-comment-alt-lines {
  color: var(--text-muted);
  font-size: var(--text-xs);
  margin-left: 4px;
  cursor: help;
  transition: var(--transition);
}

.well.well-float > .table > tbody > tr > td .fas.fa-comment-alt-lines:hover {
  color: var(--text-secondary);
}

/* Action Buttons (Cancel / Unpause / Reorder) */
.well.well-float > .table > tbody > tr > td .btn-xs {
  white-space: nowrap;
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 4px 10px;
}

.well.well-float > .table > tbody > tr > td .btn-xs.btn-default {
  background-color: transparent;
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.well.well-float > .table > tbody > tr > td .btn-xs.btn-default:hover {
  background-color: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

.well.well-float > .table > tbody > tr > td .btn-xs.btn-primary {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
}

.well.well-float > .table > tbody > tr > td .btn-xs.btn-primary:hover {
  background-color: var(--primary-900);
  border-color: var(--primary-900);
}

/* Date Columns */
.well.well-float > .table > tbody > tr > td > .nowrap {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ============================================================
   END — SUBSCRIPTIONS PAGE
   ============================================================ */

/* ============================================================
   REFUNDS PAGE — refunds.twig
   ============================================================ */

/* Info Alert (top banner) */
.col-lg-offset-2.col-lg-8 > .alert-info {
  margin-bottom: 16px;
  font-size: var(--text-base);
}

/* Order ID Link */
.well.well-float > .table > tbody > tr > td a[href*="orders"] {
  color: var(--primary-700);
  font-weight: 500;
  transition: var(--transition);
}

.well.well-float > .table > tbody > tr > td a[href*="orders"]:hover {
  color: var(--primary-900);
}

/* Amount Column */
.well.well-float > .table > tbody > tr > td[nowrap] {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

/* ============================================================
   END — REFUNDS PAGE
   ============================================================ */

/* ============================================================
   TICKETS PAGE — tickets.twig
   ============================================================ */

/* Ticket Form */
#ticketsend .form-group {
  margin-bottom: 20px;
}

/* Subject Input */
#subject {
  font-size: var(--text-md);
  padding: 12px 14px;
  min-height: 44px;
}

/* Message Textarea */
#message {
  min-height: 160px;
  font-size: var(--text-md);
  line-height: 1.65;
  resize: vertical;
  padding: 14px;
}

/* File Uploader */
.tickets-uploader {
  margin-bottom: 4px;
}

/* Hidden Danger Alert (JS-triggered) */
.ticket-danger {
  display: none;
}

/* Category Select */
#ticket-category-field {
  font-size: var(--text-md);
}

/* Dynamic Ticket Fields Container */
#ticket-fields .form-group {
  margin-bottom: 20px;
}

/* Submit Button */
#ticketsend .btn-primary {
  width: 100%;
  padding: 12px 24px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

#ticketsend .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

#ticketsend .btn-primary:active {
  transform: translateY(0);
}

/* Search Bar (below form) */
.col-md-4 > .nav-pills {
  margin-bottom: 16px;
  margin-top: 16px;
  padding: 0;
}

.col-md-4 > .nav-pills form {
  margin: 0;
}

.col-md-4 > .nav-pills .input-group .form-control {
  font-size: var(--text-base);
  padding: 8px 14px;
  height: auto;
  min-height: 36px;
  border-right: none;
  border-radius: var(--radius) 0 0 var(--radius);
}

.col-md-4 > .nav-pills .input-group .form-control:focus {
  border-color: var(--primary-700);
  box-shadow: none;
}

.col-md-4 > .nav-pills .input-group .form-control:focus + .input-group-btn .btn {
  border-color: var(--primary-700);
}

.col-md-4 > .nav-pills .input-group-btn .btn {
  border: 1px solid var(--border-default);
  border-left: none;
  background-color: var(--bg-card);
  color: var(--text-tertiary);
  padding: 8px 14px;
  min-height: 36px;
  transition: var(--transition);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.col-md-4 > .nav-pills .input-group-btn .btn:hover {
  color: var(--text-secondary);
  background-color: var(--bg-hover);
}

/* Ticket List Table */
.col-md-8.col-md-offset-2 > .well > .table {
  margin-bottom: 0;
}

.col-md-8.col-md-offset-2 > .well > .table > thead > tr > th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  border-top: none;
  background-color: var(--bg-hover);
}

.col-md-8.col-md-offset-2 > .well > .table > tbody > tr > td {
  padding: 11px 16px;
  font-size: var(--text-base);
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  vertical-align: middle;
}

.col-md-8.col-md-offset-2 > .well > .table > tbody > tr:first-child > td {
  border-top: none;
}

.col-md-8.col-md-offset-2 > .well > .table > tbody > tr:hover > td {
  background-color: var(--bg-hover);
}

/* Ticket ID */
.col-md-8.col-md-offset-2 > .well > .table > tbody > tr > td:first-child {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Ticket Subject Link */
.col-md-8.col-md-offset-2 > .well > .table > tbody > tr > td a {
  color: var(--primary-700);
  font-weight: 400;
  transition: var(--transition);
}

.col-md-8.col-md-offset-2 > .well > .table > tbody > tr > td a:hover {
  color: var(--primary-900);
}

/* Unread Ticket (bold) */
.col-md-8.col-md-offset-2 > .well > .table > tbody > tr > td a strong {
  font-weight: 600;
  color: var(--text-primary);
}

/* Date Column */
.col-md-8.col-md-offset-2 > .well > .table > tbody > tr > td .nowrap {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Pagination */
.col-md-8.col-md-offset-2 > .nav-pills {
  display: flex;
  justify-content: center;
  margin-top: 16px;
  padding: 0;
}

.col-md-8.col-md-offset-2 > .nav-pills > .pagination {
  margin: 0;
}

/* ============================================================
   END — TICKETS PAGE
   ============================================================ */

/* ============================================================
   VIEW TICKET PAGE — viewticket.twig
   ============================================================ */

/* Ticket Title */
.titcket-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 20px;
  line-height: 1.4;
}

/* Message Blocks */
.ticket-message-block {
  margin-bottom: 18px;
}

/* User Messages (right) */
.ticket-message-right .ticket-message {
  background-color: var(--primary-50);
  border: 0.5px solid var(--primary-100);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-primary);
}

/* Support Messages (left) */
.ticket-message-left .ticket-message {
  background-color: var(--bg-card);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: var(--text-md);
  line-height: 1.65;
  color: var(--text-primary);
}

/* Message Content */
.ticket-message .message {
  word-break: break-word;
}

.ticket-message .message p,
.ticket-message .message blockquote,
.ticket-message .message li {
  white-space: pre-wrap;
}

.ticket-message .message blockquote {
  border-left: 3px solid var(--primary-700);
  padding: 4px 12px;
  margin: 8px 0 12px;
  color: var(--text-secondary);
  font-size: var(--text-md);
}

.ticket-message .message hr {
  border-top: 1px solid var(--border-default);
}

/* Attached Files */
.ticket-message div[style*="margin-top"] {
  border-top: 1px solid var(--border-light);
  padding-top: 12px;
  margin-top: 14px !important;
}

.ticket-message div[style*="margin-top"] a {
  color: var(--primary-700);
  font-size: var(--text-sm);
  font-weight: 500;
  display: inline-block;
  padding: 2px 0;
  transition: var(--transition);
}

.ticket-message div[style*="margin-top"] a:hover {
  color: var(--primary-900);
}

/* Message Info (Author + Time) */
.ticket-message-block .info {
  margin-top: 8px;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: 0 4px;
}

.ticket-message-block .info strong {
  font-weight: 600;
  font-size: var(--text-sm);
  color: var(--text-primary);
  margin-right: 8px;
}

.ticket-message-block .info .text-muted {
  color: var(--text-tertiary);
  font-size: var(--text-xs);
}

/* Reply Form */
.panel-border-top {
  padding-top: 20px;
  border-top: 1px solid var(--border-default);
  margin-top: 8px;
}

/* Reply Textarea */
.panel-border-top + .form-group textarea,
form[action=""] textarea#message {
  min-height: 120px;
  font-size: var(--text-md);
  line-height: 1.65;
  resize: vertical;
  padding: 14px;
}

/* Reply Button */
form[action=""] .btn-primary {
  padding: 11px 28px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
}

form[action=""] .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

form[action=""] .btn-primary:active {
  transform: translateY(0);
}

/* ============================================================
   END — VIEW TICKET PAGE
   ============================================================ */

/* ============================================================
   RESET PASSWORD PAGE — resetpassword.twig
   ============================================================ */

/* Page Title */
form h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 24px;
  margin-top: 0;
}

/* Email Input */
#email {
  padding: 12px 14px;
  min-height: 44px;
  font-size: var(--text-md);
}

/* Captcha */
form .g-recaptcha {
  margin-bottom: 20px;
}

/* Submit Button */
form[action=""] .btn-primary {
  padding: 11px 28px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================================
   END — RESET PASSWORD PAGE
   ============================================================ */

/* ============================================================
   TWO-FACTOR AUTH PAGE — 2fa.twig
   ============================================================ */

/* 2FA Title */
form h4,
.well > h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 8px;
}

/* 2FA Description */
.well > p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: 20px;
  line-height: 1.55;
}

/* Code Input */
#code {
  padding: 12px 14px;
  min-height: 44px;
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Submit Button */
form[action*="2fa"] .btn-primary {
  width: 100%;
  padding: 12px 24px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

form[action*="2fa"] .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

form[action*="2fa"] .btn-primary:active {
  transform: translateY(0);
}

/* ============================================================
   END — TWO-FACTOR AUTH PAGE
   ============================================================ */

/* ============================================================
   SET NEW PASSWORD PAGE — setnewpassword.twig
   ============================================================ */

/* Username (readonly) */
#username[readonly] {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: default;
}

#username[readonly]:focus {
  border-color: var(--border-default);
  box-shadow: none;
}

/* Password Inputs */
#password_new,
#password_confirm {
  padding: 12px 14px;
  min-height: 44px;
  font-size: var(--text-md);
}

/* ============================================================
   END — SET NEW PASSWORD PAGE
   ============================================================ */

/* ============================================================
   FAQ PAGE — faq.twig
   ============================================================ */

/* FAQ Content Container */
.col-md-8.col-md-offset-2 > .well h1,
.col-md-8.col-md-offset-2 > .well h2,
.col-md-8.col-md-offset-2 > .well h3,
.col-md-8.col-md-offset-2 > .well h4,
.col-md-8.col-md-offset-2 > .well h5 {
  color: var(--text-primary);
  margin-top: 24px;
  margin-bottom: 10px;
}

.col-md-8.col-md-offset-2 > .well h1:first-child,
.col-md-8.col-md-offset-2 > .well h2:first-child,
.col-md-8.col-md-offset-2 > .well h3:first-child {
  margin-top: 0;
}

.col-md-8.col-md-offset-2 > .well p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 14px;
}

.col-md-8.col-md-offset-2 > .well ul,
.col-md-8.col-md-offset-2 > .well ol {
  color: var(--text-secondary);
  font-size: var(--text-md);
  line-height: 1.7;
  padding-left: 20px;
  margin-bottom: 14px;
}

.col-md-8.col-md-offset-2 > .well li {
  margin-bottom: 6px;
}

.col-md-8.col-md-offset-2 > .well a {
  color: var(--primary-700);
  font-weight: 500;
}

.col-md-8.col-md-offset-2 > .well a:hover {
  color: var(--primary-900);
}

.col-md-8.col-md-offset-2 > .well hr {
  border-top: 1px solid var(--border-default);
  margin: 20px 0;
}

.col-md-8.col-md-offset-2 > .well img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 8px 0;
}

/* ============================================================
   END — FAQ PAGE
   ============================================================ */

/* ============================================================
   API PAGE — api.twig
   ============================================================ */

/* API Container */
.well.api {
  padding: 28px 32px;
}

/* API Title */
.well.api h2 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
}

/* Method Titles */
.well.api h4 {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
}

.well.api h4 strong {
  font-weight: 600;
}

/* Spacing Helpers */
.well.api .m-b-md { margin-bottom: 20px; }
.well.api .m-t-md { margin-top: 24px; }
.well.api .m-t { margin-top: 16px; }

/* API Info Table (bordered) */
.well.api .table-bordered {
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.well.api .table-bordered > thead > tr > th,
.well.api .table-bordered > tbody > tr > th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 12px 16px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-default);
  border-top: none;
}

.well.api .table-bordered > thead > tr:first-child > th {
  border-top: none;
}

.well.api .table-bordered > tbody > tr > td {
  padding: 11px 16px;
  font-size: var(--text-base);
  color: var(--text-primary);
  border: 1px solid var(--border-default);
  vertical-align: middle;
  line-height: 1.55;
}

.well.api .table-bordered > tbody > tr > td:first-child {
  font-weight: 500;
  color: var(--text-secondary);
  background-color: rgba(241, 245, 249, 0.4);
}

.well.api .table-bordered > tbody > tr > td a {
  color: var(--primary-700);
  font-weight: 500;
}

.well.api .table-bordered > tbody > tr > td a:hover {
  color: var(--primary-900);
}

/* Service Type Select */
.well.api #service_type {
  font-size: var(--text-base);
  padding: 7px 14px;
  min-height: 34px;
}

/* Code Blocks (Example Response) */
.well.api pre {
  background-color: var(--bg-sidebar);
  color: #E2E8F0;
  border: none;
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: var(--text-sm);
  line-height: 1.65;
  margin-bottom: 24px;
  overflow-x: auto;
  white-space: pre-wrap;
  word-wrap: break-word;
}

/* Example Response Label */
.well.api p strong {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* PHP Example Button */
.well.api .btn-default.m-t {
  margin-top: 20px;
  font-size: var(--text-base);
  font-weight: 500;
}

/* Hidden Type Divs (JS toggle) */
.well.api div[id^="type_"] {
  margin-bottom: 8px;
}

/* ============================================================
   END — API PAGE
   ============================================================ */

/* ============================================================
   AFFILIATES PAGE — affiliates.twig
   ============================================================ */

/* Affiliates Content Block */
.col-md-10.col-md-offset-1 > .well.rtl-content,
.col-md-10.col-md-offset-1 > .well:first-child {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Info Tables (Referral Link, Stats, Payments) */
.col-md-10.col-md-offset-1 > .well.well-float {
  padding: 0;
  overflow: hidden;
  margin-bottom: 16px;
}

.col-md-10.col-md-offset-1 > .well.well-float > .table {
  margin-bottom: 0;
}

.col-md-10.col-md-offset-1 > .well.well-float > .table > thead > tr > th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  border-top: none;
  background-color: var(--bg-hover);
  white-space: nowrap;
}

.col-md-10.col-md-offset-1 > .well.well-float > .table > tbody > tr > td {
  padding: 12px 16px;
  font-size: var(--text-base);
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  vertical-align: middle;
}

.col-md-10.col-md-offset-1 > .well.well-float > .table > tbody > tr:first-child > td {
  border-top: none;
}

.col-md-10.col-md-offset-1 > .well.well-float > .table > tbody > tr:hover > td {
  background-color: var(--bg-hover);
}

/* Referral Link Cell */
.col-md-10.col-md-offset-1 > .well.well-float > .table > tbody > tr > td:first-child {
  word-break: break-all;
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* Numeric Cells (commission, earnings, etc.) */
.col-md-10.col-md-offset-1 > .well.well-float > .table > tbody > tr > td {
  font-variant-numeric: tabular-nums;
}

/* Request Payout Button */
.col-md-10.col-md-offset-1 .btn-xs.btn-default {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 4px 10px;
  white-space: nowrap;
}

.col-md-10.col-md-offset-1 .btn-xs.btn-default:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-700);
  color: var(--primary-700);
}

/* Pagination */
.col-md-10.col-md-offset-1 > .pagination {
  margin: 16px 0 0;
}

/* ============================================================
   END — AFFILIATES PAGE
   ============================================================ */

/* ============================================================
   ACCOUNT PAGE — account.twig
   ============================================================ */

/* Account Tabs (General / Notifications) */
.col-md-8.col-md-offset-2 > .nav-pills {
  margin-bottom: 20px;
  padding: 0;
  display: flex;
  gap: 4px;
}

.col-md-8.col-md-offset-2 > .nav-pills > li {
  float: none;
}

.col-md-8.col-md-offset-2 > .nav-pills > li > a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius);
  transition: var(--transition);
}

.col-md-8.col-md-offset-2 > .nav-pills > li > a:hover {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

.col-md-8.col-md-offset-2 > .nav-pills > li.active > a,
.col-md-8.col-md-offset-2 > .nav-pills > li.active > a:hover,
.col-md-8.col-md-offset-2 > .nav-pills > li.active > a:focus {
  background-color: var(--primary-700);
  color: #FFFFFF;
}

/* Stacked Wells */
.col-md-8.col-md-offset-2 > .well {
  margin-bottom: 16px;
}

/* Readonly Inputs (Username, Email, API Key) */
.col-md-8.col-md-offset-2 #username[readonly],
.col-md-8.col-md-offset-2 #email[readonly],
.col-md-8.col-md-offset-2 #api_key[readonly] {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-secondary);
  font-weight: 500;
  cursor: default;
}

.col-md-8.col-md-offset-2 #username[readonly]:focus,
.col-md-8.col-md-offset-2 #email[readonly]:focus,
.col-md-8.col-md-offset-2 #api_key[readonly]:focus {
  border-color: var(--border-default);
  box-shadow: none;
}

/* API Key Help Block (date) */
.col-md-8.col-md-offset-2 #api_key + .help-block {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 6px;
}

/* Change Email Button */
#changeEmailLink {
  font-size: var(--text-base);
  font-weight: 500;
  padding: 9px 18px;
}

/* Password Inputs */
#current,
#new,
#confirm {
  padding: 12px 14px;
  min-height: 44px;
  font-size: var(--text-md);
}

/* 2FA Section */
.col-md-8.col-md-offset-2 .well label.control-label {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-primary);
}

#2fa-generate-form p,
#2fa-approve-form p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.55;
}

#2fa-approve-form #code {
  font-size: var(--text-lg);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-align: center;
  font-variant-numeric: tabular-nums;
  padding: 12px 14px;
  min-height: 44px;
}

/* Invoice Details Textarea */
#invoice_details {
  min-height: 140px;
  font-size: var(--text-md);
  line-height: 1.6;
  resize: vertical;
  padding: 14px;
}

/* Timezone & Language Selects */
#timezone,
#language {
  font-size: var(--text-md);
}

/* Account Form Buttons */
.col-md-8.col-md-offset-2 .well .btn-primary {
  font-size: var(--text-base);
  font-weight: 600;
  padding: 10px 22px;
  letter-spacing: 0.02em;
}

.col-md-8.col-md-offset-2 .well .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

.col-md-8.col-md-offset-2 .well .btn-primary:active {
  transform: translateY(0);
}

/* Change Email Modal */
#changeEmailModal .modal-header {
  padding: 18px 20px;
}

#changeEmailModal .modal-title {
  font-size: var(--text-lg);
  font-weight: 600;
}

#changeEmailModal .modal-body .form-group {
  margin-bottom: 18px;
}

#changeEmailModal .modal-body label {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 6px;
}

#changeEmailModal #current-email {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-secondary);
  font-weight: 500;
  display: block;
  padding: 10px 14px;
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-default);
  font-size: var(--text-md);
}

#changeEmailModal #new-email,
#changeEmailModal #current-password {
  padding: 12px 14px;
  min-height: 44px;
  font-size: var(--text-md);
}

#changeEmailModal .error-summary {
  font-size: var(--text-base);
}

#changeEmailModal .modal-footer {
  padding: 14px 20px;
}

#changeEmailModal .modal-footer .btn-default {
  font-weight: 500;
}

#changeEmailModal .modal-footer .btn-primary {
  font-weight: 600;
}

/* ============================================================
   END — ACCOUNT PAGE
   ============================================================ */

/* ============================================================
   BLOG POST PAGE — blogpost.twig
   ============================================================ */

/* Post Image */
.col-lg-8.col-lg-offset-2 > .well > p > img.img-responsive {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
}

/* Post Title */
.col-lg-8.col-lg-offset-2 > .well > h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Post Content */
.col-lg-8.col-lg-offset-2 > .well > div {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.75;
}

.col-lg-8.col-lg-offset-2 > .well > div p {
  margin-bottom: 14px;
}

.col-lg-8.col-lg-offset-2 > .well > div a {
  color: var(--primary-700);
  font-weight: 500;
}

.col-lg-8.col-lg-offset-2 > .well > div a:hover {
  color: var(--primary-900);
}

.col-lg-8.col-lg-offset-2 > .well > div img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 8px 0;
}

/* Back Button */
.col-lg-8.col-lg-offset-2 > .row > .col-md-12 > .btn-primary {
  font-size: var(--text-base);
  font-weight: 500;
  padding: 9px 18px;
  margin-top: 4px;
}

/* ============================================================
   END — BLOG POST PAGE
   ============================================================ */

/* ============================================================
   BLOG PAGE — blog.twig
   ============================================================ */

/* Blog Post Cards */
.col-md-8.col-md-offset-2 > .well + .well {
  margin-top: 0;
}

/* Post Title */
.col-md-8.col-md-offset-2 > .well > h4 {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 12px;
  line-height: 1.4;
}

/* Post Image */
.col-md-8.col-md-offset-2 > .well > p > img.img-responsive {
  border-radius: var(--radius);
  margin-bottom: 14px;
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Post Content */
.col-md-8.col-md-offset-2 > .well > div {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* Read More Button */
.col-md-8.col-md-offset-2 > .well > .btn-primary {
  font-size: var(--text-base);
  font-weight: 500;
  padding: 9px 18px;
}

.col-md-8.col-md-offset-2 > .well > .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

/* Pagination */
.col-md-8.col-md-offset-2 > .pagination {
  margin: 8px 0 0;
  display: flex;
  justify-content: center;
}

/* ============================================================
   END — BLOG PAGE
   ============================================================ */

/* ============================================================
   BLOG POST PAGE — blogpost.twig
   ============================================================ */

/* Post Image */
.col-lg-8.col-lg-offset-2 > .well > p > img.img-responsive {
  border-radius: var(--radius);
  width: 100%;
  height: auto;
  object-fit: cover;
  margin-bottom: 20px;
}

/* Post Title */
.col-lg-8.col-lg-offset-2 > .well > h1 {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 20px;
  line-height: 1.3;
}

/* Post Content */
.col-lg-8.col-lg-offset-2 > .well > div {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.75;
}

.col-lg-8.col-lg-offset-2 > .well > div p {
  margin-bottom: 14px;
}

.col-lg-8.col-lg-offset-2 > .well > div a {
  color: var(--primary-700);
  font-weight: 500;
}

.col-lg-8.col-lg-offset-2 > .well > div a:hover {
  color: var(--primary-900);
}

.col-lg-8.col-lg-offset-2 > .well > div img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  margin: 8px 0;
}

/* Back Button */
.col-lg-8.col-lg-offset-2 > .row > .col-md-12 > .btn-primary {
  font-size: var(--text-base);
  font-weight: 500;
  padding: 9px 18px;
  margin-top: 4px;
}

/* ============================================================
   END — BLOG POST PAGE
   ============================================================ */

/* ============================================================
   CHILD PANEL PAGE — child_panel.twig
   ============================================================ */

/* Renew/Restore Alert Actions */
.col-md-8.col-md-offset-2 > .well .alert .pull-right,
.col-md-8.col-md-offset-2 > .well .alert .text-right {
  margin-top: -2px;
}

#child-panels-renew,
#child-panels-restore {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 4px 12px;
}

#child-panels-renew:hover,
#child-panels-restore:hover {
  background-color: var(--primary-50);
  border-color: var(--primary-700);
  color: var(--primary-700);
}

/* Panels Table */
.col-md-8.col-md-offset-2 > .well.well-float > .table {
  margin-bottom: 0;
}

.col-md-8.col-md-offset-2 > .well.well-float > .table > thead > tr > th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  border-top: none;
  background-color: var(--bg-hover);
}

.col-md-8.col-md-offset-2 > .well.well-float > .table > tbody > tr > td {
  padding: 11px 16px;
  font-size: var(--text-base);
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  vertical-align: middle;
}

.col-md-8.col-md-offset-2 > .well.well-float > .table > tbody > tr:first-child > td {
  border-top: none;
}

.col-md-8.col-md-offset-2 > .well.well-float > .table > tbody > tr:hover > td {
  background-color: var(--bg-hover);
}

/* Domain Column */
.col-md-8.col-md-offset-2 > .well.well-float > .table > tbody > tr > td:first-child {
  font-weight: 500;
  word-break: break-all;
}

/* Date Columns */
.col-md-8.col-md-offset-2 > .well.well-float > .table > tbody > tr > td[nowrap] {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* Admin Button */
.col-md-8.col-md-offset-2 > .well.well-float .btn-xs.btn-default {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 4px 10px;
  white-space: nowrap;
}

/* ============================================================
   END — CHILD PANEL PAGE
   ============================================================ */

/* ============================================================
   CHILD PANEL ORDER PAGE — child_panel_order.twig
   ============================================================ */

/* NS Info Alert */
.col-md-8.col-md-offset-2 .well .alert-info ul {
  padding-left: 20px;
  margin-bottom: 0;
  margin-top: 8px;
}

.col-md-8.col-md-offset-2 .well .alert-info ul li {
  font-size: var(--text-base);
  font-weight: 500;
  color: #1E40AF;
  margin-bottom: 4px;
  font-variant-numeric: tabular-nums;
}

/* Domain Input */
#domain {
  font-size: var(--text-md);
  padding: 12px 14px;
  min-height: 44px;
}

/* Price (readonly) */
#price {
  font-weight: 600;
  font-size: var(--text-md);
  color: var(--primary-700);
  background-color: var(--primary-50);
  border-color: var(--primary-100);
  cursor: default;
}

#price:focus {
  border-color: var(--primary-100);
  box-shadow: none;
}

/* Form Inputs */
#createorderform-username,
#createorderform-password,
#createorderform-password_confirm,
#createorderform-currency {
  font-size: var(--text-md);
  padding: 12px 14px;
  min-height: 44px;
}

/* Submit Button */
.col-md-8.col-md-offset-2 .well form > .btn-primary {
  width: 100%;
  padding: 12px 24px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.col-md-8.col-md-offset-2 .well form > .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

.col-md-8.col-md-offset-2 .well form > .btn-primary:active {
  transform: translateY(0);
}

/* ============================================================
   END — CHILD PANEL ORDER PAGE
   ============================================================ */

/* ============================================================
   CONFIRM EMAIL PAGE — confirmemail.twig
   ============================================================ */

/* Confirm Email Container */
.well.confirm-email {
  padding: 32px;
  text-align: center;
}

/* Title */
.well.confirm-email h3 {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 12px;
}

/* Description */
.confirm-email__description {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 24px;
}

.confirm-email__description div {
  margin-bottom: 4px;
}

/* Action Buttons */
.confirm-email__action {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.confirm-email__action .btn-primary {
  padding: 11px 28px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.confirm-email__action .btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

.confirm-email__action .btn-link {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-secondary);
}

.confirm-email__action .btn-link:hover {
  color: var(--primary-700);
}

/* ============================================================
   END — CONFIRM EMAIL PAGE
   ============================================================ */

/* ============================================================
   NOTIFICATIONS PAGE — notifications.twig
   ============================================================ */

/* Section Titles */
.col-md-8.col-md-offset-2 > .well > h5 {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 0;
  margin-bottom: 6px;
}

/* Section Descriptions */
.col-md-8.col-md-offset-2 > .well > p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.55;
}

/* Confirm / Connect Buttons */
.col-md-8.col-md-offset-2 > .well .btn-primary.btn-block {
  padding: 12px 24px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.col-md-8.col-md-offset-2 > .well .btn-primary.btn-block:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover) !important;
}

.col-md-8.col-md-offset-2 > .well .btn-primary.btn-block:active {
  transform: translateY(0);
}

/* Notifications Table */
.col-md-8.col-md-offset-2 > .well > form > .table {
  margin-bottom: 16px;
}

.col-md-8.col-md-offset-2 > .well > form > .table > thead > tr > th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-default);
  border-top: none;
  background-color: var(--bg-hover);
}

.col-md-8.col-md-offset-2 > .well > form > .table > thead > tr > th:first-child {
  min-width: 200px;
}

.col-md-8.col-md-offset-2 > .well > form > .table > tbody > tr > td {
  padding: 11px 16px;
  font-size: var(--text-base);
  color: var(--text-primary);
  border-top: 1px solid var(--border-light);
  vertical-align: middle;
}

.col-md-8.col-md-offset-2 > .well > form > .table > tbody > tr:first-child > td {
  border-top: none;
}

.col-md-8.col-md-offset-2 > .well > form > .table > tbody > tr:hover > td {
  background-color: var(--bg-hover);
}

/* Notification Name */
.col-md-8.col-md-offset-2 > .well > form > .table > tbody > tr > td:first-child {
  font-weight: 500;
}

/* Checkboxes */
.col-md-8.col-md-offset-2 > .well > form > .table > tbody > tr > td input[type="checkbox"] {
  cursor: pointer;
  margin: 0;
}

.col-md-8.col-md-offset-2 > .well > form > .table > tbody > tr > td input[type="checkbox"][disabled] {
  cursor: not-allowed;
  opacity: 0.4;
}

/* Disabled Sender Tooltip Wrapper */
.col-md-8.col-md-offset-2 > .well > form > .table > tbody > tr > td span[data-toggle="tooltip"] {
  cursor: help;
}

/* ============================================================
   END — NOTIFICATIONS PAGE
   ============================================================ */

/* ============================================================
   POINTS SYSTEM — neworder.twig Widgets + points.twig Page
   ============================================================ */

/* ===========================================
   A. NEW ORDER WIDGETS (Top of neworder.twig)
   =========================================== */

/* Widgets Container */
.order-widgets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

/* Widget Base */
.order-widget {
  background-color: var(--bg-card);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  padding: 20px 22px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.order-widget:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-1px);
}

/* Widget Icon */
.order-widget__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.order-widget__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Welcome Widget */
.order-widget--welcome .order-widget__icon {
  background-color: var(--primary-50);
}

.order-widget--welcome .order-widget__icon svg {
  stroke: var(--primary-700);
}

/* Balance Widget */
.order-widget--balance .order-widget__icon {
  background-color: var(--info-bg);
}

.order-widget--balance .order-widget__icon svg {
  stroke: var(--info);
}

/* Points Widget */
.order-widget--points .order-widget__icon {
  background-color: var(--warning-bg);
}

.order-widget--points .order-widget__icon svg {
  stroke: var(--warning);
}

/* Widget Label */
.order-widget__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-bottom: 4px;
  display: block;
}

/* Widget Value */
.order-widget__value {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  display: block;
}

/* Widget Sub-info */
.order-widget__sub {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-widget__sub a {
  color: var(--primary-700);
  font-weight: 500;
  font-size: var(--text-xs);
}

.order-widget__sub a:hover {
  color: var(--primary-900);
}

/* Add Funds Button (inside balance widget) */
.order-widget__btn {
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--info);
  background-color: var(--info-bg);
  border-radius: var(--radius);
  text-decoration: none;
  transition: var(--transition);
  line-height: 1;
}

.order-widget__btn:hover {
  background-color: var(--info);
  color: #FFFFFF;
  text-decoration: none;
}

.order-widget__btn svg {
  width: 12px !important;
  height: 12px !important;
}

/* Widget Accent Bar (bottom) */
.order-widget::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  opacity: 0;
  transition: var(--transition);
}

.order-widget:hover::after {
  opacity: 1;
}

.order-widget--welcome::after { background-color: var(--primary-500); }
.order-widget--balance::after { background-color: var(--info); }
.order-widget--points::after { background-color: var(--warning); }

/* Responsive Widgets */
@media (max-width: 991px) {
  .order-widgets {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .order-widgets {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  .order-widget {
    padding: 16px 18px;
  }

  .order-widget__value {
    font-size: 18px;
  }
}

/* ===========================================
   END — NEW ORDER WIDGETS
   =========================================== */
/* ============================================================
   POINTS PAGE v2 — Forest/Blueprint Edition
   ============================================================ */

/* Hero */
.pts-hero {
  background: linear-gradient(135deg, var(--forest-800) 0%, var(--forest-900) 100%);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.pts-hero::after {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(163,230,53,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.pts-hero__content {
  text-align: center;
  position: relative;
  z-index: 1;
}

.pts-hero__icon {
  width: 64px;
  height: 64px;
  background: rgba(163,230,53,0.15);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.pts-hero__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-white);
  margin: 0 0 8px;
  letter-spacing: var(--tracking-tight);
}

.pts-hero__desc {
  font-size: var(--text-md);
  color: rgba(241,245,249,0.65);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.55;
}

/* Hero Stats */
.pts-hero__stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(163,230,53,0.12);
  position: relative;
  z-index: 1;
}

.pts-hero__stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pts-hero__stat-value {
  display: block;
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.pts-hero__stat-label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: rgba(241,245,249,0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.pts-hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(163,230,53,0.12);
}

/* Section */
.pts-section {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  overflow: hidden;
}

.pts-section__header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--grid-line);
  background: var(--bg-subtle);
}

.pts-section__header h2 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.01em;
}

/* Steps */
.pts-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.pts-step {
  padding: 24px;
  text-align: center;
  position: relative;
  border-right: 1px solid var(--border-light);
}

.pts-step:last-child {
  border-right: none;
}

.pts-step__num {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 20px;
  height: 20px;
  background: var(--primary-100);
  color: var(--primary-900);
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pts-step__icon {
  width: 48px;
  height: 48px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
}

.pts-step__icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--primary-700);
}

.pts-step h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
}

.pts-step p {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Tiers Grid */
.pts-tiers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.pts-tier {
  padding: 20px;
  text-align: center;
  border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.15s;
}

.pts-tier:nth-child(4n) {
  border-right: none;
}

.pts-tier:nth-last-child(-n+3) {
  border-bottom: none;
}

.pts-tier:hover {
  background: var(--bg-hover);
}

.pts-tier--active {
  background: var(--primary-50) !important;
  box-shadow: inset 0 2px 0 var(--primary-400);
}

.pts-tier__badge {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 12px;
}

.pts-tier__info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 8px;
}

.pts-tier__spend {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--text-primary);
}

.pts-tier__rate {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.pts-tier__value {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--primary-700);
}

.pts-tier__min {
  font-size: var(--text-xs);
  color: var(--text-muted);
  padding-top: 8px;
  border-top: 1px solid var(--border-light);
}

/* Redeem Info */
.pts-redeem {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  background: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
}

.pts-redeem strong {
  font-size: var(--text-md);
  color: var(--text-primary);
  display: block;
  margin-bottom: 4px;
}

.pts-redeem p {
  font-size: var(--text-base);
  color: var(--primary-900);
  line-height: 1.55;
  margin: 0;
}

/* CTA */
.pts-cta {
  text-align: center;
  padding: 40px 24px;
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
}

.pts-cta h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  margin: 12px 0 6px;
  letter-spacing: var(--tracking-tight);
}

.pts-cta p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.pts-cta__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: var(--primary-400);
  color: var(--text-primary);
  border-radius: 999px;
  font-size: var(--text-md);
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
}

.pts-cta__btn:hover {
  background: var(--primary-500);
  color: var(--text-primary);
  text-decoration: none;
  transform: translateY(-1px);
}

/* Responsive */
@media (max-width: 991px) {
  .pts-steps { grid-template-columns: repeat(2, 1fr); }
  .pts-step { border-bottom: 1px solid var(--border-light); }
  .pts-step:nth-child(2n) { border-right: none; }
  .pts-tiers-grid { grid-template-columns: repeat(2, 1fr); }
  .pts-tier:nth-child(2n) { border-right: none; }
  .pts-hero__stats { flex-wrap: wrap; gap: 16px; }
  .pts-hero__stat-divider { display: none; }
}

@media (max-width: 768px) {
  .pts-hero { padding: 24px 20px; border-radius: var(--radius-lg); }
  .pts-hero__title { font-size: var(--text-xl); }
  .pts-steps { grid-template-columns: 1fr; }
  .pts-step { border-right: none; }
  .pts-tiers-grid { grid-template-columns: 1fr; }
  .pts-tier { border-right: none; }
  .pts-redeem { flex-direction: column; gap: 8px; }
}

/* ============================================================
   END — POINTS PAGE v2
   ============================================================ */

/* ============================================================
   PERSONAL DASHBOARD v4 — Blueprint Edition
   ============================================================ */

/* Welcome Bar */
.dash-welcome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
  overflow: hidden;
}

.dash-welcome__left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.dash-welcome__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-100);
  color: var(--primary-700);
  font-size: var(--text-lg);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-welcome__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.015em;
  margin: 0 0 2px;
}

.dash-welcome__sub {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin: 0;
}

.dash-welcome__tier {
  color: var(--primary-700);
  font-weight: 700;
  margin-right: 8px;
}

.dash-welcome__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.dash-welcome__actions .btn {
  font-size: var(--text-base);
  padding: 9px 18px;
}

/* Stats Cards */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.dash-stat {
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  position: relative;
  transition: var(--transition);
  overflow: hidden;
}

.dash-stat:hover {
  background-color: var(--primary-50);
}

/* Icon */
.dash-stat__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 14px;
}

.dash-stat__icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dash-stat--balance .dash-stat__icon { background-color: var(--info-bg); }
.dash-stat--balance .dash-stat__icon svg { stroke: var(--info); }
.dash-stat--orders .dash-stat__icon { background-color: var(--primary-100); }
.dash-stat--orders .dash-stat__icon svg { stroke: var(--primary-700); }
.dash-stat--spent .dash-stat__icon { background-color: var(--warning-bg); }
.dash-stat--spent .dash-stat__icon svg { stroke: var(--warning); }
.dash-stat--points .dash-stat__icon { background-color: #FFF7ED; }
.dash-stat--points .dash-stat__icon svg { stroke: var(--warning); }

/* Content */
.dash-stat__content {
  width: 100%;
}

.dash-stat__label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  display: block;
  margin-bottom: 4px;
}

.dash-stat__value {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  display: block;
  line-height: 1.2;
}

/* Link arrow - top right */
.dash-stat__link {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.dash-stat__link:hover {
  background-color: var(--primary-100);
  color: var(--primary-700);
}

/* Accent bar removed — v4 uses hover bg change */
.dash-stat::after { display: none; }

/* Main Grid (2 columns) */
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
}

.dash-grid__main {
  min-width: 0;
}

.dash-grid__side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Cards */
.dash-card {
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.dash-grid__main .dash-card {
  margin-bottom: 16px;
}

.dash-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--grid-line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--bg-subtle);
}

.dash-card__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.dash-card__link {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-700);
  text-decoration: none;
  transition: var(--transition);
}

.dash-card__link:hover {
  color: var(--primary-900);
}

.dash-card__body--padded {
  padding: 20px;
}

/* Quick Actions */
.dash-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

.dash-action {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  text-decoration: none;
  transition: var(--transition);
  border-bottom: 1px solid var(--grid-line);
  border-right: 1px solid var(--grid-line);
}

.dash-action:nth-child(2n) {
  border-right: none;
}

.dash-action:nth-last-child(-n+2) {
  border-bottom: none;
}

.dash-action:hover {
  background-color: var(--primary-50);
}

.dash-action__icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dash-action__icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.dash-action__icon--primary { background-color: var(--primary-100); }
.dash-action__icon--primary svg { stroke: var(--primary-700); }
.dash-action__icon--info { background-color: var(--info-bg); }
.dash-action__icon--info svg { stroke: var(--info); }
.dash-action__icon--success { background-color: var(--success-bg); }
.dash-action__icon--success svg { stroke: var(--primary-700); }
.dash-action__icon--warning { background-color: var(--warning-bg); }
.dash-action__icon--warning svg { stroke: var(--warning); }

.dash-action__name {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  display: block;
  margin-bottom: 1px;
}

.dash-action__desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  display: block;
}

/* Notice (unread tickets) */
.dash-notice {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  border: 1px solid;
}

.dash-notice--warning {
  background-color: var(--warning-bg);
  border-color: #FED7AA;
  color: #92400E;
}

.dash-notice strong {
  font-weight: 700;
}

.dash-notice a {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: 600;
  color: #92400E;
}

/* Empty State */
.dash-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 0;
  text-align: center;
}

.dash-empty span {
  font-size: var(--text-base);
  color: var(--text-tertiary);
}

.dash-empty .btn {
  margin-top: 4px;
}

/* Points Display (sidebar card) */
.dash-points-display {
  text-align: center;
  padding: 8px 0 16px;
}

.dash-points-display__value {
  font-size: 32px;
  font-weight: 700;
  color: var(--warning);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.dash-points-display__label {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  margin-top: 4px;
}

/* Points Meta */
.dash-points-meta {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  margin-bottom: 16px;
}

.dash-points-meta__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--grid-line);
}

.dash-points-meta__item:last-child {
  border-bottom: none;
}

.dash-points-meta__label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.dash-points-meta__value {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

/* Points Progress Bar */
.dash-points-progress__bar {
  width: 100%;
  height: 6px;
  background-color: var(--bg-hover);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 6px;
}

.dash-points-progress__fill {
  height: 100%;
  background-color: var(--warning);
  border-radius: 999px;
  transition: width 0.6s ease;
}

.dash-points-progress__text {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
}

/* Account List */
.dash-account-list {
  display: flex;
  flex-direction: column;
}

.dash-account-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 11px 20px;
  border-bottom: 1px solid var(--grid-line);
}

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

.dash-account-item__label {
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.dash-account-item__value {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dash-account-item__value--highlight {
  color: var(--primary-700);
  font-weight: 700;
}

.dash-api-key {
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 11px;
  color: var(--text-tertiary);
}

/* Referral Box */
.dash-referral-box {
  display: flex;
  gap: 8px;
}

.dash-referral-box .form-control {
  flex: 1;
  min-width: 0;
}

/* Prevent horizontal overflow */
.container-fluid {
  overflow-x: hidden;
}

/* Responsive */
@media (max-width: 1199px) {
  .dash-grid {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .dash-stat {
    padding: 18px 20px;
  }

  .dash-stat__value {
    font-size: 18px;
  }
}

@media (max-width: 991px) {
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dash-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .dash-grid__side {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .dash-welcome__name {
    font-size: var(--text-md);
  }
}

@media (max-width: 768px) {
  .dash-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .dash-welcome {
    flex-direction: column;
    align-items: flex-start;
  }

  .dash-welcome__actions {
    width: 100%;
  }

  .dash-welcome__actions .btn {
    flex: 1;
    justify-content: center;
  }

  .dash-actions {
    grid-template-columns: 1fr;
  }

  .dash-action {
    border-right: none;
  }

  .dash-action:last-child {
    border-bottom: none;
  }

  .dash-grid__side {
    grid-template-columns: 1fr;
  }

  .dash-stat {
    padding: 16px 18px;
  }

  .dash-stat__value {
    font-size: 18px;
  }
}

/* ============================================================
   END — PERSONAL DASHBOARD v4
   ============================================================ */

/* ============================================================
   ORDER WIDGETS FIX — Force 4 cols / 2 cols mobile
   Cole DEPOIS de todos os outros blocos no style.css
   ============================================================ */

.order-widgets {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin-bottom: 16px !important;
}

/* Desktop: horizontal */
.order-widget {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
}

/* Tablet: 2 cols, still horizontal */
@media (max-width: 991px) {
  .order-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }

  .order-widget {
    display: flex !important;
    flex-direction: row !important;
  }
}

/* Mobile: 2 cols, vertical (icon on top) */
@media (max-width: 576px) {
  .order-widgets {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  .order-widget {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
    padding: 14px 16px !important;
  }

  .order-widget__icon {
    margin-bottom: 0 !important;
  }

  .order-widget__value {
    font-size: var(--text-md) !important;
  }

  .order-widget__label {
    font-size: 10px !important;
  }

  .order-widget__btn {
    top: 10px !important;
    right: 10px !important;
    padding: 3px 8px !important;
    font-size: 9px !important;
  }
}

/* ============================================================
   END — ORDER WIDGETS FIX
   ============================================================ */

/* ============================================================
   ANNOUNCEMENTS WIDGET v4 — Blueprint Edition
   ============================================================ */

/* Widget Container */
.ann-widget {
  margin-top: 20px;
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Header */
.ann-widget__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--grid-line);
  background-color: var(--bg-subtle);
}

.ann-widget__header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ann-widget__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.ann-widget__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background-color: var(--danger);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.ann-widget__mark-all {
  background: none;
  border: none;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-700);
  cursor: pointer;
  font-family: inherit;
  padding: 4px 10px;
  border-radius: 999px;
  transition: var(--transition);
}

.ann-widget__mark-all:hover {
  background-color: var(--primary-50);
  color: var(--primary-900);
}

/* Messages Container */
.ann-widget__body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 400px;
  overflow-y: auto;
}

/* Message Bubble */
.ann-msg {
  background-color: var(--bg-subtle);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius) var(--radius-lg) var(--radius-lg) var(--radius-lg);
  padding: 14px 16px;
  position: relative;
  transition: var(--transition);
}

.ann-msg--read {
  opacity: 0.7;
}

.ann-msg--read:hover {
  opacity: 1;
}

/* Urgent Style */
.ann-msg--urgent {
  background-color: var(--danger-bg);
  border-color: #FECACA;
  border-left: 3px solid var(--danger);
}

.ann-msg__urgent-tag {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--danger);
  background-color: #FEE2E2;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* Message Header */
.ann-msg__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.ann-msg__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ann-msg__time {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Message Body */
.ann-msg__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  word-wrap: break-word;
}

/* Order ID links */
.ann-order-link {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  background-color: var(--primary-100);
  color: var(--primary-700);
  font-weight: 700;
  font-size: var(--text-xs);
  border-radius: 999px;
  text-decoration: none;
  transition: var(--transition);
  font-variant-numeric: tabular-nums;
}

.ann-order-link:hover {
  background-color: var(--primary-700);
  color: #FFFFFF;
  text-decoration: none;
}

/* Message Footer */
.ann-msg__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--grid-line);
}

/* Like Button */
.ann-like {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.ann-like:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
  background-color: var(--primary-50);
}

.ann-like--active {
  border-color: var(--primary-500);
  color: var(--primary-700);
  background-color: var(--primary-50);
}

.ann-like--active .material-symbols-outlined {
  font-variation-settings: 'FILL' 1;
}

.ann-like__count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* Read Button */
.ann-read-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 999px;
  transition: var(--transition);
}

.ann-read-btn:hover {
  color: var(--primary-700);
  background-color: var(--primary-50);
}

/* Read Done */
.ann-read-done {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-700);
  padding: 4px 8px;
}

/* Footer */
.ann-widget__footer {
  padding: 12px 20px;
  border-top: 1px solid var(--grid-line);
  text-align: center;
}

.ann-widget__view-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--primary-700);
  text-decoration: none;
  transition: var(--transition);
}

.ann-widget__view-all:hover {
  color: var(--primary-900);
  text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
  .ann-widget__body {
    padding: 12px 16px;
    gap: 10px;
  }

  .ann-msg {
    padding: 12px 14px;
  }

  .ann-msg__header {
    flex-direction: column;
    gap: 2px;
  }

  .ann-msg__time {
    margin-top: 0;
  }
}

/* ============================================================
   END — ANNOUNCEMENTS WIDGET v4
   ============================================================ */

/* ============================================================
   SAVED PROFILES v4 — Blueprint Edition
   ============================================================ */

.saved-profiles {
  margin-bottom: 16px;
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.saved-profiles__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--grid-line);
  background-color: var(--bg-subtle);
}

.saved-profiles__header-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.saved-profiles__title {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.saved-profiles__add-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: var(--primary-700);
  background-color: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.saved-profiles__add-btn:hover {
  background-color: var(--primary-700);
  color: #FFFFFF;
  border-color: var(--primary-700);
}

.saved-profiles__list {
  display: flex;
  flex-direction: column;
  max-height: 220px;
  overflow-y: auto;
}

/* Empty state */
.sp-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* Item */
.sp-item {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--grid-line);
  transition: var(--transition);
}

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

.sp-item:hover {
  background-color: var(--primary-50);
}

.sp-item--used {
  background-color: var(--primary-50) !important;
  transition: background-color 0.15s ease;
}

.sp-item__main {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  min-width: 0;
  transition: var(--transition);
}

.sp-item__main:hover {
  background-color: var(--primary-50);
}

.sp-item__icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 15px;
}

.sp-item__info {
  min-width: 0;
  flex: 1;
}

.sp-item__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.sp-item__link {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

/* Actions */
.sp-item__actions {
  display: flex;
  gap: 2px;
  padding-right: 10px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.sp-item:hover .sp-item__actions {
  opacity: 1;
}

.sp-item__action {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: 999px;
  transition: var(--transition);
}

.sp-item__action:hover {
  background-color: var(--bg-card);
  color: var(--text-primary);
}

.sp-item__action--delete:hover {
  background-color: var(--danger-bg);
  color: var(--danger);
}

/* Modal */
.sp-modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(15, 23, 42, 0.5);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.sp-modal {
  background: #FFFFFF;
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.15);
}

.sp-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--grid-line);
  background-color: var(--bg-subtle);
}

.sp-modal__header h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0;
}

.sp-modal__close {
  background: none;
  border: none;
  font-size: 20px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  line-height: 1;
  border-radius: 999px;
  transition: var(--transition);
}

.sp-modal__close:hover {
  color: var(--text-primary);
  background-color: var(--bg-hover);
}

.sp-modal__body {
  padding: 20px;
}

.sp-modal__body .form-group {
  margin-bottom: 14px;
}

.sp-modal__body label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
  display: block;
}

.sp-modal__footer {
  padding: 14px 20px;
  border-top: 1px solid var(--grid-line);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.sp-platform-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background-color: var(--bg-subtle);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  margin-top: 10px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--text-secondary);
}

.sp-platform-preview i {
  font-size: 16px;
}

/* ============================================================
   END — SAVED PROFILES v4
   ============================================================ */

/* ============================================================
   ANNOUNCEMENTS PAGE v4 — Blueprint Edition
   ============================================================ */

.ann-page {
  max-width: 800px;
}

/* Header */
.ann-page__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
}

.ann-page__header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ann-page__title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin: 0;
  line-height: 1.2;
}

.ann-page__subtitle {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 2px 0 0;
}

.ann-page__mark-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary-700);
  background-color: var(--primary-50);
  border: 1px solid var(--primary-200);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
  white-space: nowrap;
}

.ann-page__mark-all:hover {
  background-color: var(--primary-700);
  color: #FFFFFF;
  border-color: var(--primary-700);
}

/* Filters */
.ann-page__filters {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}

.ann-page__filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.ann-page__filter:hover {
  background-color: var(--primary-50);
  color: var(--primary-700);
  border-color: var(--primary-500);
}

.ann-page__filter--active {
  background-color: var(--forest-800);
  color: #FFFFFF;
  border-color: var(--forest-800);
}

.ann-page__filter--active:hover {
  background-color: var(--forest-900);
  border-color: var(--forest-900);
}

/* Loading */
.ann-page__loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 60px 20px;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.ann-page-spin {
  animation: annPageSpin 1.5s linear infinite;
}

@keyframes annPageSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Empty */
.ann-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 60px 20px;
  text-align: center;
}

.ann-page__empty h3 {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  margin: 8px 0 0;
}

.ann-page__empty p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin: 0;
}

/* List */
.ann-page__list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Card */
.ann-card {
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: var(--transition);
  border-left: 3px solid var(--primary-500);
}

.ann-card:hover {
  background-color: var(--primary-50);
}

.ann-card--read {
  border-left-color: var(--grid-line);
  opacity: 0.75;
}

.ann-card--read:hover {
  opacity: 1;
}

.ann-card--urgent {
  border-left-color: var(--danger);
  background-color: var(--danger-bg);
}

.ann-card--urgent:hover {
  background-color: #FEE2E2;
}

/* Card top row */
.ann-card__top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ann-card__unread-dot {
  width: 8px;
  height: 8px;
  transform: rotate(45deg);
  background-color: var(--primary-500);
  flex-shrink: 0;
}

.ann-card__urgent-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 8px;
  background-color: #FEE2E2;
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.ann-card__time {
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

/* Card title */
.ann-card__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
  line-height: 1.4;
}

/* Card body */
.ann-card__body {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 14px;
}

.ann-page-order-link {
  color: var(--primary-700);
  font-weight: 700;
  text-decoration: none;
}

.ann-page-order-link:hover {
  text-decoration: underline;
}

/* Card footer */
.ann-card__footer {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--grid-line);
}

.ann-card__like {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  background-color: var(--bg-card);
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.ann-card__like:hover {
  color: var(--primary-700);
  border-color: var(--primary-500);
  background-color: var(--primary-50);
}

.ann-card__like--active {
  color: var(--primary-700);
  background-color: var(--primary-50);
  border-color: var(--primary-200);
}

.ann-card__like-count {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.ann-card__read-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  background: none;
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  cursor: pointer;
  font-family: inherit;
  transition: var(--transition);
}

.ann-card__read-btn:hover {
  color: var(--primary-700);
  border-color: var(--primary-500);
  background-color: var(--primary-50);
}

.ann-card__read-done {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--primary-700);
}

/* Mobile */
@media (max-width: 768px) {
  .ann-page__header {
    flex-direction: column;
    align-items: flex-start;
  }

  .ann-page__filters {
    flex-wrap: wrap;
  }

  .ann-card {
    padding: 16px;
  }

  .ann-card__footer {
    flex-wrap: wrap;
  }
}

/* ============================================================
   END — ANNOUNCEMENTS PAGE v4
   ============================================================ */

/* ============================================================
   HOMEPAGE.CSS — Seguiu v4 · Blueprint Edition
   Inspired by AbacatePay grid system + SmmFollows content density
   ============================================================ */

/* ===== TYPEKIT (Proxima Nova) ===== */
@import url("https://use.typekit.net/rck6pgt.css");

/* ===== TOKENS — missing tokens this page needs (not in the v3 style.css :root).
   Scoped to body.is-homepage so they don't leak into the rest of the system.
   If you later update style.css's :root with these values, these fallbacks stay harmless. */
body.is-homepage {
  --grid-line:   #D5DFE8;
  --bg-subtle:   #FAFBFC;
  --primary-400: #A3E635;
  --primary-600: #65A30D;
  --forest-900:  #14281C;
  --forest-800:  #1E3A2B;
  --container-max: 1280px;
}


/* ===== HOMEPAGE MODE — overrides from layout.twig guest shell ===== */
body.is-homepage {
  overflow-x: hidden;
  padding-bottom: 0 !important;   /* layout.twig gives guest body a 50px padding */
  margin: 0;
  background: #FFFFFF;            /* blueprint canvas — forces white only on homepage */
  color: var(--text-primary);
  font-family: proxima-nova, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Belt-and-suspenders: if the inline script fails to remove the guest navbar,
   this keeps it invisible and reclaims the reserved vertical space. */
body.is-homepage > nav.navbar,
body.is-homepage > nav.navbar-default,
body.is-homepage > .navbar-static-top {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}

/* Make sure our container sits flush to the top of the viewport */
body.is-homepage .bp-container { margin-top: 0; }

/* ===== BLUEPRINT CANVAS ===== */
.bp-container {
  position: relative;
  z-index: 1;
  max-width: var(--container-max);
  margin: 0 auto;
  background: #FFFFFF;
  border-left: 1px solid var(--grid-line);
  border-right: 1px solid var(--grid-line);
  min-height: 100vh;
}

/* ===== CROSSHAIRS (diamond markers at corners) ===== */
.crosshair-frame { position: relative; }

.ch {
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--primary-500);
  z-index: 60;               /* FIX: above .bp-nav (z-index: 50) so crosshairs aren't clipped by the sticky header */
  pointer-events: none;
}
.ch-tl { top: -4px; left: -4px; transform: rotate(45deg); }
.ch-tr { top: -4px; right: -4px; transform: rotate(45deg); }
.ch-bl { bottom: -4px; left: -4px; transform: rotate(45deg); }
.ch-br { bottom: -4px; right: -4px; transform: rotate(45deg); }

/* ===== SECTION BASE ===== */
.bp-section {
  position: relative;
  padding: 80px 64px;
  border-bottom: 1px solid var(--grid-line);
}
.bp-section--tight { padding: 40px 64px; }

.bp-section:last-of-type { border-bottom: none; }

/* Section head (2-col: title left / desc right) */
.bp-section__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 56px;
  align-items: end;
}
.bp-section__head-left { max-width: 560px; }
.bp-section__head-right { color: var(--text-secondary); font-size: 15px; line-height: 1.65; }
.bp-section__head-right p { margin: 0; }

/* ===== TYPOGRAPHY ===== */
.bp-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--primary-700);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.bp-eyebrow--light { color: var(--primary-400); }

.bp-h1 {
  font-size: 64px;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text-primary);
  margin: 0 0 20px;
}
.bp-h2 {
  font-size: 42px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0 0 14px;
}
.bp-h2--light { color: #FFFFFF; }

.bp-lead {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0 0 18px;
}
.bp-lead--light { color: #C7DCC9; }
.bp-lead strong { color: var(--text-primary); font-weight: 600; }
.bp-lead--light strong { color: #FFFFFF; }

.bp-muted {
  font-size: 15px;
  color: var(--text-secondary);
  margin: 0;
}

/* ===== HIGHLIGHT (hand-drawn circle around keyword) ===== */
.bp-highlight {
  position: relative;
  display: inline-block;
  color: var(--primary-700);
  white-space: nowrap;
  padding: 0 0.15em 0.1em;      /* FIX: breathing room so the SVG circles around, not through */
}
.bp-highlight__svg {
  position: absolute;
  left: -4%;
  top: -18%;                     /* FIX: raise higher so the bottom arc clears descenders */
  width: 108%;
  height: 145%;                  /* FIX: taller ellipse — arcs pass above/below letters, not through */
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.bp-highlight > :not(.bp-highlight__svg) { position: relative; z-index: 1; }

.bp-highlight-static {
  color: var(--primary-700);
}

/* ===== BUTTONS ===== */
.bp-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 44px;
  padding: 0 20px;
  font: 600 14px/1 proxima-nova, sans-serif;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}

.bp-btn--pill {
  background: var(--primary-400);
  color: var(--text-primary);
  padding: 0 6px 0 20px;
}
.bp-btn--pill:hover {
  background: var(--primary-500);
  transform: translateY(-1px);
  color: var(--text-primary);
  text-decoration: none;
}
.bp-btn__icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--text-primary);
  color: var(--primary-400);
  display: grid;
  place-items: center;
}
.bp-btn__icon .material-symbols-outlined { font-size: 16px; }

.bp-btn--light .bp-btn__icon,
.bp-btn__icon--light {
  background: var(--forest-900);
  color: var(--primary-400);
}

.bp-btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-default);
}
.bp-btn--ghost:hover {
  border-color: var(--primary-500);
  color: var(--primary-700);
  text-decoration: none;
}

.bp-btn--block { width: 100%; justify-content: center; padding: 0 20px; }
.bp-btn--block.bp-btn--pill { padding: 0 12px; }

.bp-cta-row {
  text-align: center;
  margin-top: 48px;
}

/* ===== NAVBAR ===== */
.bp-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.bp-nav--scrolled {
  border-bottom-color: var(--grid-line);
  box-shadow: 0 1px 0 rgba(15,23,42,0.02);
}
.bp-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 64px;
  gap: 32px;
}
.bp-nav__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  color: var(--text-primary);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.bp-nav__logo:hover { text-decoration: none; color: var(--text-primary); }

.bp-nav__links {
  display: flex;
  gap: 28px;
}
.bp-nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
}
.bp-nav__links a:hover { color: var(--primary-700); text-decoration: none; }

.bp-nav__actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.bp-nav__actions .bp-btn { height: 38px; font-size: 13px; padding: 0 16px; }
.bp-nav__actions .bp-btn--pill { padding: 0 4px 0 16px; }
.bp-nav__actions .bp-btn__icon { width: 26px; height: 26px; }
.bp-nav__actions .bp-btn__icon .material-symbols-outlined { font-size: 14px; }

/* ===== HERO ===== */
.bp-hero {
  padding: 72px 64px 96px;
}
.bp-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 72px;
  align-items: start;
}
.bp-hero__left { padding-top: 16px; }
.bp-hero__left .bp-lead { max-width: 540px; }

.bp-hero__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--grid-line);
}
.bp-proof-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.bp-proof-item__icon {
  font-size: 22px;
  color: var(--primary-600);
  flex-shrink: 0;
}
.bp-proof-item div { display: flex; flex-direction: column; }
.bp-proof-item strong {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.bp-proof-item span {
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.4;
}

/* ===== LOGIN CARD (hero right) ===== */
.bp-login {
  background: var(--bg-card);
  border: 1px solid var(--grid-line);
  padding: 32px;
  position: relative;
}

.bp-login__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--grid-line);
}
.bp-login__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-100);
  color: var(--primary-700);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.bp-login__icon .material-symbols-outlined { font-size: 22px; }
.bp-login__head h2 {
  margin: 0 0 2px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.bp-login__head p {
  margin: 0;
  font-size: 13px;
  color: var(--text-tertiary);
}

.bp-login__form .bp-alert {
  font-size: 13px;
  padding: 10px 36px 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 14px;
  position: relative;
}
.bp-login__form .bp-alert .close { font-size: 16px; }

.bp-field {
  display: flex;
  align-items: center;
  height: 46px;
  padding: 0 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  margin-bottom: 12px;
  transition: border-color .15s, background .15s;
}
.bp-field:focus-within {
  border-color: var(--primary-500);
  background: var(--bg-card);
}
.bp-field__icon {
  font-size: 20px;
  color: var(--text-muted);
  margin-right: 10px;
}
.bp-field input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font: 400 14px/1 proxima-nova, sans-serif;
  color: var(--text-primary);
  min-width: 0;
}
.bp-field input::placeholder { color: var(--text-muted); }

.bp-login__forgot {
  text-align: right;
  margin: -4px 0 14px;
}
.bp-login__forgot a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--primary-700);
  text-decoration: none;
}
.bp-login__forgot a:hover { text-decoration: underline; }

.bp-login__captcha { margin-bottom: 14px; }

.bp-login__google {
  margin-top: 14px;
  display: flex;
  justify-content: center;
}

.bp-login__foot {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--text-tertiary);
  text-align: center;
}
.bp-login__foot a {
  color: var(--primary-700);
  font-weight: 600;
  text-decoration: none;
}
.bp-login__foot a:hover { text-decoration: underline; }

/* ===== PLATFORMS STRIP ===== */
.bp-strip-label {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-tertiary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin: 0 0 28px;
}
.bp-platforms {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1px;
  background: var(--grid-line);
  border: 1px solid var(--grid-line);
}
.bp-platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 12px;
  background: var(--bg-card);
  transition: background .2s;
}
.bp-platform:hover { background: var(--primary-50); }
.bp-platform i {
  font-size: 26px;
  color: var(--text-secondary);
}
.bp-platform span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}

/* ===== BENTOS (9 benefit cards) ===== */
.bp-bentos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--grid-line);
}
.bp-bento {
  padding: 32px 28px;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  transition: background .2s;
  position: relative;
}
.bp-bento:hover { background: var(--primary-50); }
.bp-bento:nth-child(3n) { border-right: none; }
.bp-bento:nth-last-child(-n+3) { border-bottom: none; }

.bp-bento__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--primary-100);
  color: var(--primary-700);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}
.bp-bento__icon .material-symbols-outlined { font-size: 24px; }
.bp-bento h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.bp-bento p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-tertiary);
}

/* ===== DARK SECTION (forest + dot pattern) ===== */
.bp-section--dark {
  background-color: var(--forest-800);
  background-image: radial-gradient(
    circle, rgba(163, 230, 53, 0.12) 1px, transparent 1.5px
  );
  background-size: 24px 24px;
  border-bottom: none;
}
.bp-section--dark .ch { background: var(--primary-400); }

.bp-dark__inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.bp-dark__inner .bp-btn--pill {
  margin-top: 12px;
  background: var(--primary-400);
}
.bp-dark__inner .bp-btn--pill:hover { background: var(--primary-500); }

/* ===== STATS STRIP ===== */
.bp-section--stats { padding: 44px 64px; }
.bp-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.bp-stat {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  border-right: 1px solid var(--grid-line);
}
.bp-stat:last-child { border-right: none; }
.bp-stat__icon {
  font-size: 32px;
  color: var(--primary-500);
  flex-shrink: 0;
}
.bp-stat__value {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.1;
  margin-bottom: 2px;
}
.bp-stat__value span {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-tertiary);
  margin-left: 2px;
}
.bp-stat__label {
  font-size: 12.5px;
  color: var(--text-tertiary);
  line-height: 1.3;
}

/* ===== FAQ ===== */
.bp-faq {
  border: 1px solid var(--grid-line);
}
.bp-faq--2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}
.bp-faq--2col .bp-fq { border-right: 1px solid var(--grid-line); }
.bp-faq--2col .bp-fq:nth-child(2n) { border-right: none; }

.bp-fq {
  border-bottom: 1px solid var(--grid-line);
  background: var(--bg-card);
}
.bp-fq:last-child { border-bottom: none; }
.bp-faq--2col .bp-fq:nth-last-child(-n+2):not(:nth-last-child(1)) { border-bottom: 1px solid var(--grid-line); }

.bp-fq summary {
  list-style: none;
  padding: 22px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: background .15s;
}
.bp-fq summary::-webkit-details-marker { display: none; }
.bp-fq summary:hover { background: var(--primary-50); }
.bp-fq summary h3 {
  margin: 0;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-primary);
  line-height: 1.35;
  flex: 1;
}
.bp-fq summary .material-symbols-outlined {
  font-size: 22px;
  color: var(--primary-600);
  transition: transform .25s ease;
  flex-shrink: 0;
}
.bp-fq[open] summary .material-symbols-outlined { transform: rotate(45deg); }

.bp-fq p {
  margin: 0;
  padding: 0 24px 22px;
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
}
.bp-fq p strong { color: var(--text-primary); font-weight: 600; }
.bp-fq p em { color: var(--primary-700); font-style: normal; font-weight: 500; }

/* ===== WHY US ===== */
.bp-why__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--grid-line);
}
.bp-why__icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-right: 1px solid var(--grid-line);
}
.bp-why-item {
  padding: 36px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
}
.bp-why-item:nth-child(2n) { border-right: none; }
.bp-why-item:nth-last-child(-n+2) { border-bottom: none; }
.bp-why-item__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--primary-100);
  color: var(--primary-700);
  display: grid;
  place-items: center;
}
.bp-why-item__icon .material-symbols-outlined { font-size: 26px; }
.bp-why-item strong {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.bp-why__copy {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.bp-why__copy .bp-btn { align-self: flex-start; margin-top: 12px; }

/* ===== RESELLER (tabs) ===== */
.bp-reseller {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 0;
  border: 1px solid var(--grid-line);
  min-height: 380px;
}
.bp-reseller__tabs {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--grid-line);
}
.bp-tab {
  background: var(--bg-card);
  border: none;
  border-bottom: 1px solid var(--grid-line);
  padding: 20px 24px;
  text-align: left;
  font: 600 14.5px/1.35 proxima-nova, sans-serif;
  color: var(--text-primary);
  cursor: pointer;
  transition: background .15s, color .15s;
  position: relative;
}
.bp-tab:last-child { border-bottom: none; }
.bp-tab:hover { background: var(--primary-50); }
.bp-tab--active {
  background: var(--forest-800);
  color: #FFFFFF;
}
.bp-tab--active::before {
  content: '';
  position: absolute;
  top: 50%;
  right: -5px;
  transform: translateY(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background: var(--forest-800);
  z-index: 2;
}

.bp-reseller__body { padding: 40px; position: relative; }
.bp-tab-panel { display: none; }
.bp-tab-panel--active { display: block; }
.bp-tab-panel p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
}
.bp-tab-panel p:last-child { margin-bottom: 0; }
.bp-tab-panel p strong { color: var(--text-primary); font-weight: 600; }

/* ===== SERVICES (editorial list + body) ===== */
.bp-services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
.bp-tag-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bp-tag-list li {
  padding: 12px 18px;
  background: var(--bg-subtle);
  border: 1px solid var(--grid-line);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  transition: all .15s;
}
.bp-tag-list li:hover {
  background: var(--primary-50);
  border-color: var(--primary-500);
  color: var(--primary-700);
}
.bp-tag-list li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--primary-500);
  transform: rotate(45deg);
  margin-right: 12px;
  vertical-align: middle;
}

.bp-services-copy h3 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 28px 0 10px;
}
.bp-services-copy h3:first-of-type { margin-top: 32px; }
.bp-services-copy p {
  margin: 0 0 14px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ===== SVC GRID (platform services) ===== */
.bp-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--grid-line);
}
.bp-svc {
  padding: 32px 28px;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  transition: background .2s;
}
.bp-svc:hover { background: var(--primary-50); }
.bp-svc:nth-child(3n) { border-right: none; }
.bp-svc:nth-last-child(-n+3) { border-bottom: none; }
.bp-svc__ic {
  font-size: 30px;
  margin-bottom: 16px;
}
.bp-svc h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}
.bp-svc p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-tertiary);
}

/* ===== FINAL CTA ===== */
.bp-section--cta {
  padding: 96px 64px;
  text-align: center;
}
.bp-cta .bp-h2 { margin-bottom: 16px; }
.bp-cta .bp-lead { max-width: 540px; margin-left: auto; margin-right: auto; }
.bp-cta__buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
}

/* ===== FOOTER ===== */
.bp-footer {
  padding: 64px 64px 32px;
  background: var(--bg-subtle);
  border-top: 1px solid var(--grid-line);
  border-bottom: none;
}
.bp-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}
.bp-footer__col h4 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin: 0 0 16px;
}
.bp-footer__col a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color .15s;
}
.bp-footer__col a:hover { color: var(--primary-700); text-decoration: none; }
.bp-footer__col--brand p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text-tertiary);
  margin: 0 0 16px;
  max-width: 340px;
}
.bp-footer__logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 12px;
}
.bp-footer__contact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.bp-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}
.bp-footer__contact .material-symbols-outlined { font-size: 16px; color: var(--primary-600); }
.bp-footer__bottom {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--grid-line);
  font-size: 12.5px;
  color: var(--text-tertiary);
}

/* ============================================================
   RESPONSIVE — TABLET (< 1024px)
   ============================================================ */
@media (max-width: 1024px) {
  .bp-section, .bp-hero { padding: 64px 40px; }
  .bp-section--stats, .bp-section--tight { padding: 40px; }
  .bp-nav__inner { padding: 12px 40px; }
  .bp-footer { padding: 48px 40px 28px; }

  .bp-h1 { font-size: 48px; }
  .bp-h2 { font-size: 34px; }

  .bp-hero__grid { grid-template-columns: 1fr; gap: 48px; }
  .bp-section__head { grid-template-columns: 1fr; gap: 16px; }

  .bp-bentos, .bp-svc-grid { grid-template-columns: repeat(2, 1fr); }
  .bp-bento:nth-child(3n), .bp-svc:nth-child(3n) { border-right: 1px solid var(--grid-line); }
  .bp-bento:nth-child(2n), .bp-svc:nth-child(2n) { border-right: none; }
  .bp-bento:nth-last-child(-n+3), .bp-svc:nth-last-child(-n+3) { border-bottom: 1px solid var(--grid-line); }
  .bp-bento:nth-last-child(-n+2), .bp-svc:nth-last-child(-n+2) { border-bottom: none; }

  .bp-platforms { grid-template-columns: repeat(4, 1fr); }
  .bp-stats { grid-template-columns: repeat(2, 1fr); }
  .bp-stat:nth-child(2) { border-right: none; }
  .bp-stat:nth-child(-n+2) { border-bottom: 1px solid var(--grid-line); padding-bottom: 20px; }
  .bp-stat:nth-child(n+3) { padding-top: 20px; }

  .bp-services-grid { grid-template-columns: 1fr; gap: 32px; }
  .bp-why__grid { grid-template-columns: 1fr; }
  .bp-why__icons { border-right: none; border-bottom: 1px solid var(--grid-line); }
  .bp-reseller { grid-template-columns: 1fr; }
  .bp-reseller__tabs { flex-direction: row; border-right: none; border-bottom: 1px solid var(--grid-line); }
  .bp-tab { flex: 1; border-bottom: none; border-right: 1px solid var(--grid-line); text-align: center; padding: 16px 12px; font-size: 13px; }
  .bp-tab:last-child { border-right: none; }
  .bp-tab--active::before { display: none; }

  .bp-footer__grid { grid-template-columns: 1fr 1fr; gap: 32px; }

  .bp-nav__links { display: none; }
}

/* ============================================================
   RESPONSIVE — MOBILE (< 640px)
   ============================================================ */
@media (max-width: 640px) {
  .bp-container { border-left: none; border-right: none; }

  .bp-section, .bp-hero { padding: 48px 20px; }
  .bp-section--stats, .bp-section--tight, .bp-section--cta { padding: 32px 20px; }
  .bp-nav__inner { padding: 12px 20px; gap: 12px; }
  .bp-footer { padding: 40px 20px 24px; }

  .bp-h1 { font-size: 34px; letter-spacing: -0.025em; }
  .bp-h2 { font-size: 26px; letter-spacing: -0.02em; }
  .bp-lead { font-size: 15px; }

  .bp-nav__logo span:last-child { display: none; }
  .bp-nav__actions .bp-btn--ghost { display: none; }

  .bp-hero { padding-top: 40px; padding-bottom: 56px; }
  .bp-hero__proof { grid-template-columns: 1fr; gap: 12px; padding-top: 20px; margin-top: 28px; }

  .bp-login { padding: 24px 20px; }

  .bp-platforms { grid-template-columns: repeat(3, 1fr); }
  .bp-platform { padding: 16px 8px; }
  .bp-platform i { font-size: 22px; }

  .bp-bentos, .bp-svc-grid { grid-template-columns: 1fr; }
  .bp-bento, .bp-svc { border-right: none !important; border-bottom: 1px solid var(--grid-line) !important; }
  .bp-bento:last-child, .bp-svc:last-child { border-bottom: none !important; }

  .bp-stats { grid-template-columns: 1fr; }
  .bp-stat { border-right: none !important; border-bottom: 1px solid var(--grid-line); padding: 16px 0; }
  .bp-stat:last-child { border-bottom: none; }

  .bp-faq--2col { grid-template-columns: 1fr; }
  .bp-faq--2col .bp-fq { border-right: none !important; border-bottom: 1px solid var(--grid-line) !important; }
  .bp-faq--2col .bp-fq:last-child { border-bottom: none !important; }
  .bp-fq summary { padding: 18px 18px; }
  .bp-fq summary h3 { font-size: 14.5px; }
  .bp-fq p { padding: 0 18px 18px; font-size: 13.5px; }

  .bp-why__icons { grid-template-columns: 1fr; }
  .bp-why-item { border-right: none !important; }
  .bp-why-item:nth-last-child(-n+2) { border-bottom: 1px solid var(--grid-line); }
  .bp-why-item:last-child { border-bottom: none; }
  .bp-why__copy { padding: 32px 24px; }

  .bp-reseller__tabs { flex-direction: column; }
  .bp-tab { border-right: none; border-bottom: 1px solid var(--grid-line); text-align: left; }
  .bp-tab:last-child { border-bottom: none; }
  .bp-reseller__body { padding: 24px 20px; }

  .bp-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .bp-footer__bottom { flex-direction: column; gap: 8px; text-align: center; }
}
/* ============================================================
   END — HOMEPAGE
   ============================================================ */

/* ============================================================
   HOMEPAGE PATCH — 4 fixes
   Cole DEPOIS do homepage.css no style.css
   ============================================================ */

/* 1. HIGHLIGHT — Replace SVG circle with underline gradient (won't break) */
.bp-highlight {
  position: relative;
  display: inline;
  color: var(--primary-700);
  white-space: nowrap;
}

.bp-highlight__svg {
  display: none;
}

.bp-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: var(--primary-200);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.6;
}

/* 2. NAVBAR — always show border line */
.bp-nav {
  border-bottom-color: var(--grid-line);
}

/* 3. CROSSHAIRS — prevent horizontal scroll without cutting diamonds */
body.is-homepage {
  overflow-x: hidden;
}

.bp-container {
  overflow: visible;
}

/* Mobile: clip container to prevent lateral scroll from diamonds */
@media (max-width: 640px) {
  .bp-container {
    overflow-x: clip;
  }
}

/* 4. PROOF ICONS — bigger with green circle background */
.bp-proof-item__icon {
  font-size: 22px !important;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700) !important;
  flex-shrink: 0;
}

/* 5. FINAL CTA — AbacatePay-style dot pattern + blurred diamond */
.bp-section--cta {
  position: relative;
  overflow: hidden;
  background-color: #FAFBFC;
  background-image: radial-gradient(circle, #C8D1DA 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Dot mask — radial fade so dots only show in corners */
.bp-section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #FAFBFC 20%, rgba(250,251,252,0.75) 45%, rgba(250,251,252,0) 72%);
  pointer-events: none;
  z-index: 1;
}

/* Blurred diamond shape — like AbacatePay's chevron */
.bp-section--cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 500px;
  transform: translate(-50%, -45%) rotate(0deg);
  background: linear-gradient(180deg, rgba(30,58,43,0.06) 0%, rgba(30,58,43,0.03) 100%);
  clip-path: polygon(50% 0%, 90% 38%, 75% 100%, 25% 100%, 10% 38%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.bp-section--cta .bp-cta {
  position: relative;
  z-index: 2;
}

/* ============================================================
   END — HOMEPAGE PATCH
   ============================================================ */

/* ============================================================
   HOMEPAGE PATCH — 4 fixes
   Cole DEPOIS do homepage.css no style.css
   ============================================================ */

/* 1. HIGHLIGHT — Replace SVG circle with underline gradient (won't break) */
.bp-highlight {
  position: relative;
  display: inline;
  color: var(--primary-700);
  white-space: nowrap;
}

.bp-highlight__svg {
  display: none;
}

.bp-highlight::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 8px;
  background: var(--primary-200);
  border-radius: 4px;
  z-index: -1;
  opacity: 0.6;
}

/* 2. NAVBAR — always show border line */
.bp-nav {
  border-bottom-color: var(--grid-line);
}

/* 3. CROSSHAIRS — prevent horizontal scroll without cutting diamonds */
body.is-homepage {
  overflow-x: hidden;
}

.bp-container {
  overflow: visible;
}

/* Mobile: clip container to prevent lateral scroll from diamonds */
@media (max-width: 640px) {
  .bp-container {
    overflow-x: clip;
  }
}

/* 4. PROOF ICONS — bigger with green circle background */
.bp-proof-item__icon {
  font-size: 22px !important;
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: var(--primary-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-700) !important;
  flex-shrink: 0;
}

/* 5. FINAL CTA — AbacatePay-style dot pattern + blurred diamond */
.bp-section--cta {
  position: relative;
  overflow: hidden;
  background-color: #FAFBFC;
  background-image: radial-gradient(circle, #C8D1DA 1px, transparent 1px);
  background-size: 16px 16px;
}

/* Dot mask — radial fade so dots only show in corners */
.bp-section--cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, #FAFBFC 20%, rgba(250,251,252,0.75) 45%, rgba(250,251,252,0) 72%);
  pointer-events: none;
  z-index: 1;
}

/* Blurred diamond shape — like AbacatePay's chevron */
.bp-section--cta::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 340px;
  height: 500px;
  transform: translate(-50%, -45%) rotate(0deg);
  background: linear-gradient(180deg, rgba(30,58,43,0.06) 0%, rgba(30,58,43,0.03) 100%);
  clip-path: polygon(50% 0%, 90% 38%, 75% 100%, 25% 100%, 10% 38%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}

.bp-section--cta .bp-cta {
  position: relative;
  z-index: 2;
}

/* 6. HERO — Green gradient glow behind login (AbacatePay-style) */
/* Mobile/tablet default */
.bp-hero {
  background: radial-gradient(246.6% 88.54% at 37.12% 5.43%, hsla(0,0%,100%,0) 56.43%, #c2fa11 80.92%, #33bd19 100%), #fff;
}

/* Desktop */
@media (min-width: 1025px) {
  .bp-hero {
    background: radial-gradient(200% 300% at -30% -60%, hsla(0,0%,100%,0) 56.43%, #c2fa11 70.92%, #33bd19 100%), #fff;
  }
}

/* ============================================================
   END — HOMEPAGE PATCH
   ============================================================ */

/* ============================================================
   HOMEPAGE SEO SECTIONS — CSS
   Cole DEPOIS do homepage-patch.css no style.css
   ============================================================ */

/* Expanded service cards (longer text blocks) */
.bp-svc--expanded p {
  font-size: 13.5px;
  line-height: 1.7;
}

.bp-svc--expanded h3 {
  font-size: 16px;
  margin-bottom: 10px;
}

.bp-svc--expanded strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* 2-column layout for expanded services on desktop */
@media (min-width: 1025px) {
  .bp-svc-grid--expanded {
    grid-template-columns: repeat(2, 1fr);
  }
  .bp-svc-grid--expanded .bp-svc:nth-child(3n) { border-right: 1px solid var(--grid-line); }
  .bp-svc-grid--expanded .bp-svc:nth-child(2n) { border-right: none; }
  .bp-svc-grid--expanded .bp-svc:nth-last-child(-n+3) { border-bottom: 1px solid var(--grid-line); }
  .bp-svc-grid--expanded .bp-svc:nth-last-child(-n+2) { border-bottom: none; }
}

/* Glossary */
.bp-glossary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--grid-line);
}

.bp-glossary__item {
  padding: 28px 24px;
  border-right: 1px solid var(--grid-line);
  border-bottom: 1px solid var(--grid-line);
  transition: background 0.2s;
}

.bp-glossary__item:hover {
  background: var(--primary-50);
}

.bp-glossary__item:nth-child(3n) { border-right: none; }
.bp-glossary__item:nth-last-child(-n+3) { border-bottom: none; }

.bp-glossary__term {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.bp-glossary__term h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.bp-glossary__item p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-tertiary);
}

/* Tablet */
@media (max-width: 1024px) {
  .bp-glossary {
    grid-template-columns: repeat(2, 1fr);
  }
  .bp-glossary__item:nth-child(3n) { border-right: 1px solid var(--grid-line); }
  .bp-glossary__item:nth-child(2n) { border-right: none; }
  .bp-glossary__item:nth-last-child(-n+3) { border-bottom: 1px solid var(--grid-line); }
  .bp-glossary__item:nth-last-child(-n+2) { border-bottom: none; }
}

/* Mobile */
@media (max-width: 640px) {
  .bp-glossary {
    grid-template-columns: 1fr;
  }
  .bp-glossary__item {
    border-right: none !important;
    border-bottom: 1px solid var(--grid-line) !important;
  }
  .bp-glossary__item:last-child {
    border-bottom: none !important;
  }
}

/* ============================================================
   END — HOMEPAGE SEO SECTIONS
   ============================================================ */
