/* ============================================================
   SEGUIU DESIGN SYSTEM v3 — LIME EDITION
   Perfect Panel Theme · style.css
   Stack: Bootstrap 3.3.7 Override + Proxima Nova + CSS Puro
   ============================================================ */

/* ===========================================
   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-sidebar: #1A1D23;
  --bg-hover: #F1F5F9;

  /* — Primary (Verde Limão) — */
  --primary-900: #3D6B0F;
  --primary-700: #4D7C0F;
  --primary-500: #84CC16;
  --primary-100: #ECFCCB;
  --primary-50: #F7FEE7;

  /* — Texto — */
  --text-primary: #1A1D23;
  --text-secondary: #64748B;
  --text-tertiary: #94A3B8;
  --text-white: #F1F5F9;
  --text-muted: #CBD5E1;

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

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

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

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

  /* — 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
   =========================================== */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: "proxima-nova", sans-serif;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
  margin-top: 0;
}

h1, .h1 { font-size: var(--text-2xl); margin-bottom: 16px; }
h2, .h2 { font-size: var(--text-xl); margin-bottom: 14px; }
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;
}

/* ===========================================
   4. NAVBAR — LOGADO (Dark, Full Width)
   =========================================== */
.navbar {
  border: none;
  border-radius: 0;
  margin-bottom: 0;
  min-height: var(--header-height);
  box-shadow: none;
}

.navbar-default {
  background-color: var(--bg-sidebar);
  border-color: transparent;
}

.navbar-static-top {
  border-width: 0;
  border-bottom: 1px solid var(--border-sidebar);
}

/* Logo / Brand */
.navbar-brand {
  height: var(--header-height);
  line-height: var(--header-height);
  padding: 0 20px;
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-white) !important;
  letter-spacing: -0.2px;
  transition: var(--transition);
}

.navbar-brand:hover,
.navbar-brand:focus {
  color: #FFFFFF !important;
  background-color: transparent;
}

.navbar-brand img {
  max-height: 32px;
  margin-top: -2px;
  vertical-align: middle;
  display: inline-block;
}

/* Nav Links — Logado */
.navbar-default .navbar-nav > li > a {
  color: var(--text-tertiary);
  font-size: var(--text-base);
  font-weight: 500;
  padding: 18px 16px;
  transition: var(--transition);
  letter-spacing: 0.01em;
  position: relative;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
  color: var(--text-white);
  background-color: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
  color: #A3E635;
  background-color: rgba(77, 124, 15, 0.15);
}

/* Nav Icons */
.navbar-icon {
  margin-right: 5px;
  font-size: var(--text-md);
  opacity: 0.7;
}

.navbar-default .navbar-nav > .active > a .navbar-icon,
.navbar-default .navbar-nav > li > a:hover .navbar-icon {
  opacity: 1;
}

/* Right side nav */
.navbar-right-block {
  display: flex;
  align-items: center;
}

/* Hamburger Toggle (mobile) */
.navbar-default .navbar-toggle {
  border-color: rgba(255, 255, 255, 0.1);
  margin-top: 11px;
  margin-bottom: 11px;
  border-radius: var(--radius);
}

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus {
  background-color: rgba(255, 255, 255, 0.06);
}

.navbar-default .navbar-toggle .icon-bar {
  background-color: var(--text-tertiary);
}

/* Navbar collapse border */
.navbar-default .navbar-collapse,
.navbar-default .navbar-form {
  border-color: var(--border-sidebar);
}

/* ===========================================
   5. NAVBAR — DESLOGADO (Dark, Contained)
   =========================================== */
/* Herda os mesmos estilos do logado pois ambos usam .navbar-default */

/* ===========================================
   6. DROPDOWN (Currencies, Languages, etc.)
   =========================================== */
.dropdown-menu {
  background-color: var(--bg-card);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
  box-shadow: var(--shadow-dropdown);
  padding: 6px 0;
  margin-top: 2px;
  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: 400;
  transition: var(--transition);
}

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

.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;
}

/* Dropdown inside dark navbar */
.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 (Balance, Counters)
   =========================================== */
.badge {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius);
  background-color: var(--primary-100);
  color: var(--primary-700);
  vertical-align: middle;
  letter-spacing: 0.01em;
}

/* Badge inside navbar (balance) */
.navbar-nav .badge {
  background-color: rgba(77, 124, 15, 0.2);
  color: #A3E635;
  padding: 5px 12px;
  font-size: var(--text-sm);
}

/* ===========================================
   8. BOTÕES
   =========================================== */
.btn {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-md);
  font-weight: 500;
  padding: 10px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: var(--transition);
  letter-spacing: 0.01em;
  line-height: 1.42857143;
  box-shadow: none !important;
  outline: none !important;
}

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

/* Primary */
.btn-primary {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
  color: #FFFFFF;
}

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

.btn-primary:active,
.btn-primary.active,
.open > .dropdown-toggle.btn-primary {
  background-color: var(--primary-900);
  border-color: var(--primary-900);
  color: #FFFFFF;
}

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

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

.btn-default:hover,
.btn-default:focus {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
}

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

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

.btn-success:hover,
.btn-success:focus {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
  color: #FFFFFF;
}

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

.btn-danger:hover,
.btn-danger:focus {
  background-color: #DC2626;
  border-color: #DC2626;
  color: #FFFFFF;
}

/* 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;
}

/* 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;
}

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

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

/* Sizes */
.btn-lg,
.btn-group-lg > .btn {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: var(--radius);
}

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

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

.btn-block {
  width: 100%;
}

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

.form-control:focus {
  border-color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(77, 124, 15, 0.1);
  outline: none;
}

.form-control::-webkit-input-placeholder { color: var(--text-tertiary); }
.form-control:-ms-input-placeholder { color: var(--text-tertiary); }
.form-control::-moz-placeholder { color: var(--text-tertiary); 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='%2394A3B8' 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 */
.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;
}

/* Validation States */
.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.1);
}

.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(239, 68, 68, 0.1);
}

.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.1);
}

.has-warning .control-label,
.has-warning .help-block {
  color: var(--warning);
}

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

/* ===========================================
   10. TABELAS
   =========================================== */
.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: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  border-bottom: 1px solid var(--border-default);
  border-top: none;
  padding: 12px 14px;
  white-space: nowrap;
}

.table > tbody > tr > td {
  padding: 12px 14px;
  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(--bg-hover);
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: rgba(241, 245, 249, 0.5);
}

/* Table container */
.table-responsive {
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  margin-bottom: 0;
}

/* ===========================================
   11. ALERTAS
   =========================================== */
.alert {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-md);
  font-weight: 400;
  padding: 14px 18px;
  border-radius: var(--radius);
  border: none;
  margin-bottom: 20px;
  line-height: 1.5;
}

.alert-success {
  background-color: var(--success-bg);
  color: var(--primary-700);
  border-left: 3px solid var(--success);
}

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

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

.alert-info {
  background-color: var(--info-bg);
  color: #1E40AF;
  border-left: 3px 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: 600;
  margin-bottom: 4px;
}

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

/* ===========================================
   12. CARDS / WELLS / PANELS
   =========================================== */
.well {
  background-color: var(--bg-card);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  box-shadow: none;
  padding: 18px 20px;
  margin-bottom: 20px;
}

.well-sm {
  padding: 12px 14px;
  border-radius: var(--radius);
}

.well-lg {
  padding: 24px 28px;
  border-radius: var(--radius);
}

.panel {
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  box-shadow: none;
  background-color: var(--bg-card);
  margin-bottom: 20px;
}

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

.panel-default > .panel-heading {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
  font-weight: 600;
  font-size: var(--text-md);
  padding: 14px 18px;
  border-radius: var(--radius) var(--radius) 0 0;
}

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

.panel-footer {
  background-color: var(--bg-hover);
  border-color: var(--border-light);
  padding: 12px 18px;
  border-radius: 0 0 var(--radius) var(--radius);
}

.panel-title {
  font-size: var(--text-md);
  font-weight: 600;
}

/* Panel primary */
.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
   =========================================== */
.modal-content {
  border: none;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  background-color: var(--bg-card);
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border-default);
}

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

.modal-body {
  padding: 20px;
}

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border-light);
}

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

/* ===========================================
   14. PAGINATION
   =========================================== */
.pagination {
  margin: 16px 0;
  border-radius: var(--radius);
}

.pagination > li > a,
.pagination > li > span {
  color: var(--text-secondary);
  background-color: var(--bg-card);
  border-color: var(--border-default);
  padding: 8px 14px;
  font-size: var(--text-base);
  font-weight: 500;
  transition: var(--transition);
}

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

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

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

.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-700);
  border-color: var(--primary-700);
  color: #FFFFFF;
}

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

/* ===========================================
   15. NAV PILLS / TABS (Filtros de status)
   =========================================== */
.nav-pills > li > a {
  border-radius: var(--radius);
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 16px;
  transition: var(--transition);
}

.nav-pills > li > a:hover,
.nav-pills > li > a:focus {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

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

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

.nav-tabs > li > a {
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 10px 18px;
  transition: var(--transition);
}

.nav-tabs > li > a:hover {
  border-color: var(--border-default) var(--border-default) transparent;
  background-color: var(--bg-hover);
}

.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: var(--primary-700);
  border: 1px solid var(--border-default);
  border-bottom-color: var(--bg-card);
  background-color: var(--bg-card);
}

/* ===========================================
   16. LABELS (Bootstrap .label)
   =========================================== */
.label {
  font-family: "proxima-nova", sans-serif;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius);
}

.label-default {
  background-color: var(--bg-hover);
  color: var(--text-secondary);
}

.label-primary {
  background-color: var(--primary-100);
  color: var(--primary-700);
}

.label-success {
  background-color: var(--success-bg);
  color: var(--primary-700);
}

.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
   =========================================== */
.progress {
  background-color: var(--bg-hover);
  border-radius: var(--radius);
  box-shadow: none;
  height: 8px;
  margin-bottom: 16px;
}

.progress-bar {
  background-color: var(--primary-700);
  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);
  padding: 6px 12px;
  border-radius: var(--radius);
  background-color: var(--bg-sidebar);
  color: var(--text-white);
}

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

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

.popover-title {
  font-size: var(--text-md);
  font-weight: 600;
  background-color: var(--bg-hover);
  border-bottom-color: var(--border-default);
  border-radius: var(--radius) var(--radius) 0 0;
  padding: 10px 14px;
}

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

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

.breadcrumb > li + li::before {
  color: var(--text-muted);
}

.breadcrumb > .active {
  color: var(--text-tertiary);
}

/* ===========================================
   20. LIST GROUP
   =========================================== */
.list-group-item {
  border-color: var(--border-default);
  padding: 12px 16px;
  font-size: var(--text-md);
  color: var(--text-primary);
}

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

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

.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 (Main Layout)
   =========================================== */
.container {
  max-width: var(--content-max-width);
}

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

/* Conteúdo principal ({{ content }}) */
body > .container,
body > .container-fluid {
  padding-top: 24px;
  padding-bottom: 40px;
}

/* Page title pattern */
.page-header {
  border-bottom: 1px solid var(--border-default);
  margin: 0 0 24px;
  padding-bottom: 12px;
}

/* ===========================================
   22. UTILITY CLASSES (Sobrescritas)
   =========================================== */
.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(--border-default);
}

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

/* ===========================================
   23. TICKETS
   =========================================== */
.titcket-title {
  font-size: var(--text-lg);
  font-weight: 600;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-default);
  margin-bottom: 16px;
  color: var(--text-primary);
}

.ticket-message-block {
  margin-bottom: 16px;
}

.ticket-message-right .ticket-message,
.ticket-message-left .ticket-message {
  background: var(--bg-card);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  padding: 16px;
  font-size: var(--text-md);
  line-height: 1.6;
}

.ticket-message-right .ticket-message {
  background-color: var(--primary-50);
  border-color: var(--primary-100);
}

.ticket-message {
  word-break: break-word;
}

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

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

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

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

.mass-alert .alert {
  margin-bottom: 0;
  border-radius: 0;
}

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

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

/* ===========================================
   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: 500;
}

.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
   =========================================== */
.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;
}

/* Code blocks */
pre {
  background-color: var(--bg-sidebar);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius);
  padding: 16px 18px;
  font-size: var(--text-base);
  line-height: 1.6;
}

code {
  background-color: var(--primary-50);
  color: var(--primary-900);
  padding: 2px 6px;
  border-radius: var(--radius);
  font-size: 90%;
}

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-card);
  box-shadow: none;
  transition: var(--transition);
}

.StripeElement--focus {
  border-color: var(--primary-700);
  box-shadow: 0 0 0 3px rgba(77, 124, 15, 0.1);
}

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

/* ===========================================
   31. SCROLLBAR CUSTOM
   =========================================== */
::-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-700);
  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-100);
  color: var(--primary-900);
}

::-moz-selection {
  background-color: var(--primary-100);
  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;
  }

  /* Mobile navbar collapse */
  .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 PAGE — neworder.twig
   ============================================================ */

/* Container & Layout */
.container > .row > .col-md-8.col-md-offset-2 > .well {
  padding: 28px 32px;
  border: 0.5px solid var(--border-default);
  background-color: var(--bg-card);
}

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

#order-form .control-label {
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
  display: block;
}

/* Search Dropdown (Service Search) */
.search-dropdown {
  position: relative;
}

.search-dropdown .input-wrapper {
  position: relative;
}

.search-dropdown .input-wrapper button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 0 2px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  z-index: 2;
  cursor: pointer;
  font-size: var(--text-md);
  transition: var(--transition);
}

.search-dropdown .input-wrapper button:hover {
  color: var(--text-secondary);
}

.search-dropdown .input-wrapper input#template-input {
  padding-left: 36px;
}

.rtl-form .search-dropdown .input-wrapper input#template-input {
  padding-left: 14px;
  padding-right: 36px;
}

/* Select Dropdowns (Category & Service) */
#orderform-category,
#orderform-service {
  font-size: var(--text-md);
  font-weight: 400;
  color: var(--text-primary);
}

#orderform-category option,
#orderform-service option {
  padding: 8px 14px;
}

/* Service Description Panel */
#service_description .panel-body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
  padding: 14px 16px;
  background-color: var(--bg-hover);
  border: 1px solid var(--border-default);
  border-radius: var(--radius);
}

#service_description .panel-body p {
  margin-bottom: 8px;
}

#service_description .panel-body p:last-child {
  margin-bottom: 0;
}

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

#fields .form-control {
  font-size: var(--text-md);
}

#fields textarea.form-control {
  min-height: 90px;
}

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

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

/* Terms Checkbox */
.terms {
  margin-top: 0;
  margin-bottom: 20px;
}

.terms-accept-checkbox {
  margin-right: 6px;
  vertical-align: middle;
}

.form-group .terms {
  font-weight: 400;
  font-size: var(--text-md);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-group .terms a {
  color: var(--primary-700);
  font-weight: 500;
}

.form-group .terms a:hover {
  color: var(--primary-900);
}

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

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

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

/* Success Alert — Order Details */
#order-form .alert-success h4 {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--primary-700);
  margin-bottom: 10px;
}

#order-form .alert-success {
  font-size: var(--text-base);
  line-height: 1.8;
}

/* New Order Text Content (below form) */
.container > .row > .col-md-8.col-md-offset-2 > .well:last-child {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Hidden fields utility */
.fields.hidden {
  display: none;
}

/* ============================================================
   END — NEW ORDER PAGE
   ============================================================ */

/* ============================================================
   SERVICES PAGE — services.twig
   ============================================================ */

/* 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 16px;
  font-size: var(--text-base);
  font-weight: 500;
  border-radius: var(--radius);
  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: 220px;
  max-height: 360px;
  overflow-y: auto;
}

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

.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;
}

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

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

.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(--text-secondary);
  background-color: var(--bg-hover);
}

/* Services Table Container */
.well.well-float {
  padding: 0;
  overflow: hidden;
}

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

#service-table > thead > tr > th {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-default);
  border-top: none;
  background-color: var(--bg-hover);
  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: 10px 16px;
  font-size: var(--text-base);
  border-top: 1px solid var(--border-default);
  border-bottom: none;
}

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

#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: 11px 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(--bg-hover);
}

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

/* Service Name column */
#service-table .service-name {
  font-weight: 400;
  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;
}

/* 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-hover);
  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-secondary);
}

/* 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
   ============================================================ */

/* ============================================================
   ORDERS PAGE — orders.twig
   ============================================================ */

/* Status Pills Toolbar */
.col-lg-12 > .nav-pills {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  padding: 0;
}

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

.col-lg-12 > .nav-pills > li > a {
  font-size: var(--text-base);
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: var(--transition);
  background: transparent;
  line-height: 1.4;
}

.col-lg-12 > .nav-pills > li > a:hover,
.col-lg-12 > .nav-pills > li > a:focus {
  background-color: var(--bg-hover);
  color: var(--text-primary);
}

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

/* Search in Pills Bar */
.nav-pills > li.pull-right.search {
  margin-left: auto;
  float: none !important;
}

.nav-pills > li.search form {
  margin: 0;
}

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

.nav-pills > li.search .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);
}

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

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

.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: 8px 14px;
  min-height: 36px;
  transition: var(--transition);
  border-radius: 0 var(--radius) var(--radius) 0;
}

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

/* Orders Table Container */
.well.well-float {
  padding: 0;
  overflow: hidden;
}

/* Orders Table */
.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: 14px 16px;
  border-bottom: 1px solid var(--border-default);
  border-top: none;
  background-color: var(--bg-hover);
  white-space: nowrap;
}

.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;
}

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

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

/* Order ID column */
.well.well-float > .table > tbody > tr > td:first-child {
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

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

/* Order details icon */
.well.well-float > .table > tbody > tr > td .far.fa-file-alt {
  color: var(--primary-700);
  margin-left: 6px;
  font-size: var(--text-sm);
  transition: var(--transition);
}

.well.well-float > .table > tbody > tr > td .far.fa-file-alt:hover {
  color: var(--primary-900);
}

/* Charge column */
.well.well-float > .table > tbody > tr > td:nth-child(4) {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Status column */
.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;
}

/* Order Actions (Refill/Cancel) */
.order-actions {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
  width: auto;
  min-width: 80px;
}

.order-actions .btn-xs {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}

.order-actions .btn-xs.btn-primary {
  background-color: var(--primary-700);
  border-color: var(--primary-700);
}

.order-actions .btn-xs.btn-primary:hover {
  background-color: var(--primary-900);
  border-color: var(--primary-900);
}

.order-actions .btn-xs.btn-primary.disabled {
  opacity: 0.5;
  cursor: help;
}

.order-actions .btn-xs.btn-default {
  background-color: transparent;
  border-color: var(--border-default);
  color: var(--text-secondary);
}

.order-actions .btn-xs.btn-default:hover {
  background-color: var(--danger-bg);
  border-color: var(--danger);
  color: var(--danger);
}

/* Order Details Modal */
.modal.fade .modal-dialog {
  transition: transform 0.2s ease;
}

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

.modal .modal-body .form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}

.modal .modal-body .form-control[disabled] {
  background-color: var(--bg-hover);
  border-color: var(--border-default);
  color: var(--text-primary);
  font-size: var(--text-base);
  opacity: 1;
  cursor: default;
}

.modal .modal-body textarea.form-control[disabled] {
  min-height: 140px;
  resize: none;
  font-size: var(--text-sm);
  line-height: 1.6;
}

/* Pagination */
.col-lg-12 > .pagination {
  margin: 16px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0;
}

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

/* ============================================================
   ADD FUNDS PAGE — addfunds.twig
   ============================================================ */

/* Add Funds Form Container */
#amount-fields {
  width: 100%;
}

#amount-fields > div {
  width: 100%;
}

/* Amount Input */
#amount {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* CPF Field */
#cpf {
  font-variant-numeric: tabular-nums;
}

/* Payment Method Select */
#method {
  font-weight: 400;
}

/* Submit Button */
#amount-fields ~ input[type="hidden"] + .btn-primary,
form > .btn-primary {
  width: 100%;
  padding: 12px 24px;
  font-size: var(--text-md);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

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

form > .btn-primary:active {
  transform: translateY(0);
}

/* Payment History 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);
}

/* Payment 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;
}

/* Amount column */
.col-md-8.col-md-offset-2 > .well > .table > tbody > tr > td:nth-child(4) {
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  white-space: nowrap;
}

/* Invoice Download Link */
.col-md-8.col-md-offset-2 > .well > .table > tbody > tr > td.text-right a {
  color: var(--primary-700);
  font-size: var(--text-sm);
  font-weight: 500;
  transition: var(--transition);
}

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

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

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

/* ============================================================
   END — ADD FUNDS PAGE
   ============================================================ */

/* ============================================================
   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
   =========================================== */
/* ===========================================
   B. POINTS PAGE
   =========================================== */

/* Points Hero Section */
.points-hero {
  text-align: center;
  padding: 40px 20px 32px;
  background-color: var(--bg-card);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.points-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-500), var(--warning), var(--primary-700));
}

.points-hero__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius);
  background-color: var(--warning-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.points-hero__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--warning);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.points-hero__title {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.points-hero__desc {
  font-size: var(--text-md);
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

/* Points Stats (Your Balance) */
.points-stats {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}

.points-stat {
  text-align: center;
  min-width: 120px;
}

.points-stat__value {
  font-size: var(--text-2xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  display: block;
}

.points-stat__value--warning {
  color: var(--warning);
}

.points-stat__value--primary {
  color: var(--primary-700);
}

.points-stat__label {
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-top: 4px;
  display: block;
}

/* How It Works Section */
.points-section {
  background-color: var(--bg-card);
  border: 0.5px solid var(--border-default);
  border-radius: var(--radius);
  padding: 28px 32px;
  margin-bottom: 20px;
}

.points-section__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.points-section__title-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.points-section__title-icon svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

/* Steps List */
.points-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.points-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.points-step__number {
  width: 28px;
  height: 28px;
  border-radius: var(--radius);
  background-color: var(--primary-50);
  color: var(--primary-700);
  font-size: var(--text-sm);
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.points-step__content {
  flex: 1;
}

.points-step__title {
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.points-step__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Tiers Table */
.points-tiers {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
}

.points-tiers thead 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);
  text-align: left;
  background-color: var(--bg-hover);
}

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

.points-tiers tbody tr:first-child td {
  border-top: none;
}

.points-tiers tbody tr:hover td {
  background-color: var(--bg-hover);
}

/* Tier Badge */
.points-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: var(--text-sm);
}

.points-tier-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.points-tier-dot--new { background-color: var(--text-muted); }
.points-tier-dot--junior { background-color: var(--info); }
.points-tier-dot--regular { background-color: var(--primary-500); }
.points-tier-dot--frequent { background-color: var(--primary-700); }
.points-tier-dot--elite { background-color: var(--warning); }
.points-tier-dot--vip { background-color: #E879F9; }
.points-tier-dot--master { background-color: var(--danger); }

/* Tier Value (conversion rate) */
.points-tier-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--primary-700);
}

/* Tier Active Row */
.points-tiers tbody tr.points-tier--active td {
  background-color: var(--primary-50);
}

.points-tiers tbody tr.points-tier--active td:first-child {
  border-left: 3px solid var(--primary-700);
}

/* Minimum Redeem */
.points-tier-min {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}

/* Redeem Info */
.points-redeem-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background-color: var(--info-bg);
  border-radius: var(--radius);
  margin-top: 20px;
}

.points-redeem-info__icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background-color: rgba(59, 130, 246, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.points-redeem-info__icon svg {
  width: 16px;
  height: 16px;
  stroke: var(--info);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.points-redeem-info__text {
  font-size: var(--text-base);
  color: #1E40AF;
  line-height: 1.55;
}

.points-redeem-info__text strong {
  font-weight: 600;
}

/* CTA Section */
.points-cta {
  text-align: center;
  padding: 28px 20px;
  background-color: var(--primary-50);
  border: 0.5px solid var(--primary-100);
  border-radius: var(--radius);
  margin-top: 4px;
}

.points-cta__title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.points-cta__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: 16px;
  line-height: 1.55;
}

.points-cta .btn-primary {
  padding: 12px 32px;
  font-size: var(--text-md);
  font-weight: 600;
}

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

/* Responsive Points Page */
@media (max-width: 768px) {
  .points-hero {
    padding: 28px 16px 24px;
  }

  .points-stats {
    gap: 20px;
  }

  .points-section {
    padding: 20px;
  }

  .points-step {
    gap: 10px;
  }
}

/* ============================================================
   END — POINTS SYSTEM
   ============================================================ */
