/* ════════════════════════════════════════
   GovOps — Main CSS
   Clean production stylesheet
════════════════════════════════════════ */

/* ── Design Tokens ── */
:root {
  --primary: #1d4ed8;
  --primary-dark: #1e3a8a;
  --primary-light: #dbeafe;
  --success: #16a34a;
  --danger: #dc2626;
  --warning: #d97706;
  --info: #0891b2;
  --text: #111827;
  --text-muted: #6b7280;
  --text-light: #9ca3af;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --surface2: #f3f4f6;
  --white: #ffffff;
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.1);
  --shadow-md: 0 4px 12px rgba(0,0,0,.08);
  --duration: 200ms;
}

/* ── Dark Mode ── */
body.dark-mode {
  --text: #e6edf3;
  --text-muted: #8b949e;
  --text-light: #6e7681;
  --border: #30363d;
  --surface: #161b22;
  --surface2: #21262d;
  --white: #0d1117;
}
body.dark-mode .card,
body.dark-mode .g-topbar { background: #161b22 !important; }
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea { background: #21262d !important; color: #e6edf3 !important; border-color: #30363d !important; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 9px; }

/* ── Auth Layout ── */
.auth-full-page {
  display: flex;
  min-height: 100vh;
  width: 100%;
  direction: rtl;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 9999;
  background: #fff;
}
.auth-brand-panel {
  width: 360px;
  min-width: 320px;
  background: linear-gradient(160deg, #0f2460 0%, #1e40af 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px 36px;
  color: #fff;
}
.auth-brand-logo {
  width: 60px; height: 60px;
  background: rgba(255,255,255,.15);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: #fff;
  margin-bottom: 20px;
}
.auth-brand-name { font-size: 28px; font-weight: 700; margin: 0 0 8px; }
.auth-brand-tagline { font-size: 13px; opacity: .75; margin: 0 0 32px; }
.auth-features { display: flex; flex-direction: column; gap: 12px; }
.auth-feature-item { display: flex; align-items: center; gap: 10px; font-size: 13px; opacity: .85; }
.auth-feature-item i { font-size: 16px; opacity: .9; }
.auth-brand-footer { font-size: 11px; opacity: .45; }
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: #fff;
}
.auth-form-inner { width: 100%; max-width: 380px; }
.auth-form-title { font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.auth-form-sub   { font-size: 13px; color: var(--text-muted); margin-bottom: 24px; }
.auth-label { font-size: 12.5px; font-weight: 500; color: var(--text); margin-bottom: 5px; display: block; }
.auth-input-wrap { position: relative; }
.auth-input-icon {
  position: absolute; top: 50%; transform: translateY(-50%);
  right: 12px; color: var(--text-light); font-size: 15px; pointer-events: none;
}
.auth-input {
  width: 100%; padding: 9px 38px 9px 12px;
  border: 1px solid var(--border); border-radius: var(--radius);
  font-size: 13px; color: var(--text);
  background: #fff; outline: none; transition: border-color .2s;
  font-family: inherit;
}
.auth-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(29,78,216,.1); }
.auth-pw-toggle {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: 10px; background: none; border: none; cursor: pointer;
  color: var(--text-light); font-size: 15px; padding: 2px;
}
.auth-field { margin-bottom: 16px; }
.auth-forgot { font-size: 12px; color: var(--primary); text-decoration: none; }
.auth-forgot:hover { text-decoration: underline; }
.auth-submit-btn {
  width: 100%; padding: 10px;
  background: var(--primary); color: #fff;
  border: none; border-radius: var(--radius);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: background .2s; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.auth-submit-btn:hover { background: var(--primary-dark); }
.auth-form-lang { text-align: center; margin-top: 20px; }
.auth-lang-btn {
  font-size: 12px; color: var(--text-muted); text-decoration: none;
  display: inline-flex; align-items: center; gap: 4px;
}
.auth-lang-btn:hover { color: var(--primary); }

/* ── Cards ── */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.card-body { padding: 20px; }
.card-header {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-weight: 600; font-size: 14px;
  background: var(--white);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.card-title { font-size: 13px; font-weight: 600; color: var(--text); }

/* ── Status Pills ── */
.status-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
}
.status-pill.success, .status-pill.green { background: #dcfce7; color: #166534; }
.status-pill.warning, .status-pill.amber { background: #fef3c7; color: #92400e; }
.status-pill.danger,  .status-pill.red   { background: #fee2e2; color: #b91c1c; }
.status-pill.info,    .status-pill.blue  { background: #dbeafe; color: #1e40af; }
.status-pill.purple                      { background: #ede9fe; color: #6d28d9; }
.status-pill.muted,   .status-pill.gray  { background: #f3f4f6; color: #374151; }

/* ── Buttons ── */
.btn { border-radius: var(--radius); font-weight: 500; font-size: 13px; }
.btn-primary { background: var(--primary); border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); }

/* ── Forms ── */
.form-control, .form-select {
  border-radius: var(--radius);
  border-color: var(--border);
  font-size: 13px;
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29,78,216,.1);
}
.form-label { font-size: 12.5px; font-weight: 500; color: var(--text); margin-bottom: 5px; }
.form-text  { font-size: 11px; color: var(--text-muted); }

/* ── Tables ── */
.table th { font-size: 12px; font-weight: 600; color: var(--text-muted); background: var(--surface); }
.table td { font-size: 13px; color: var(--text); vertical-align: middle; }
.table tbody tr:hover { background: var(--surface); }

/* ── Alerts ── */
.alert { border-radius: var(--radius); font-size: 13px; }
.alert-top { position: relative; z-index: 999; }

/* ── Badges ── */
.badge { font-size: 11px; font-weight: 600; }

/* ── Activity Feed ── */
.activity-feed { display: flex; flex-direction: column; gap: 0; }
.activity-item {
  display: flex; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.activity-item:last-child { border-bottom: none; }
.activity-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); flex-shrink: 0; margin-top: 6px;
}
.activity-content { flex: 1; }
.activity-text { font-size: 13px; color: var(--text); }
.activity-meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }

/* ── Admin panes ── */
.admin-pane { display: block; }
.admin-pane.active { display: block; }
.admin-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-tab {
  padding: 7px 16px; border-radius: var(--radius);
  border: 1px solid var(--border); background: var(--white);
  font-size: 12.5px; font-weight: 500; cursor: pointer;
  color: var(--text-muted); transition: all .15s; font-family: inherit;
}
.admin-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.admin-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }

/* ── Admin plan price ── */
.admin-plan-price-row { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.admin-plan-price-lbl { font-size: 12px; color: var(--text-muted); min-width: 80px; }
.admin-plan-price-val { font-size: 13px; font-weight: 600; flex: 1; }
.admin-plan-price-save { font-size: 11px; color: var(--success); }

/* ── Compliance / health ── */
.compliance-bar { background: var(--surface2); border-radius: 4px; height: 6px; overflow: hidden; }
.compliance-fill { height: 100%; border-radius: 4px; transition: width .5s; }

/* ── Subscription / Plan ── */
.plan-card {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 20px; transition: all .2s;
}
.plan-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.plan-card.featured { border-color: var(--primary); }
.plan-card .plan-name { font-size: 14px; font-weight: 700; color: var(--text-muted); margin-bottom: 4px; }
.plan-card .plan-price { font-size: 32px; font-weight: 800; color: var(--text); }

/* ── Ticket ── */
.ticket-status-badge { padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.priority-badge { padding: 2px 8px; border-radius: 999px; font-size: 11px; }
.priority-critical { background: #fee2e2; color: #b91c1c; }
.priority-high     { background: #fef3c7; color: #92400e; }
.priority-medium   { background: #dbeafe; color: #1e40af; }
.priority-low      { background: #f3f4f6; color: #374151; }

/* ── Portal onboarding ── */
.onboarding-step {
  display: flex; gap: 16px;
  padding: 16px; border-radius: var(--radius-lg);
  border: 1px solid var(--border); margin-bottom: 12px;
}
.onboarding-num {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}

/* ── File upload ── */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius-lg);
  padding: 32px; text-align: center; cursor: pointer;
  transition: all .2s;
}
.upload-area:hover { border-color: var(--primary); background: var(--primary-light); }
.upload-area i { font-size: 32px; color: var(--text-muted); display: block; margin-bottom: 8px; }

/* ── Expiry colors ── */
.text-expired  { color: var(--danger); }
.text-critical { color: var(--warning); }
.text-ok       { color: var(--success); }
.bg-expired    { background: #fee2e2; }
.bg-critical   { background: #fef3c7; }
.bg-ok         { background: #dcfce7; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }
.empty-state i { font-size: 36px; display: block; margin-bottom: 10px; }
.empty-state p { font-size: 13px; }

/* ── Page transitions ── */
.page-transition { animation: fadeSlideIn .25s ease both; }
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .auth-brand-panel { display: none; }
  .auth-form-panel  { padding: 24px 16px; }
}

/* ════════════════════════════════════════
   Component Library — All Pages
════════════════════════════════════════ */

/* ── Page Header ── */
.page-header { margin-bottom: 20px; }
.page-header-title { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.page-header-sub   { font-size: 13px; color: #6b7280; }

/* ── GovOps Table ── */
.govops-table { width: 100%; border-collapse: collapse; }
.govops-table th {
  background: #f9fafb; font-size: 11px; font-weight: 600;
  color: #6b7280; padding: 10px 14px; text-align: right;
  border-bottom: 1px solid #e5e7eb; white-space: nowrap;
}
.govops-table td {
  padding: 10px 14px; font-size: 13px; color: #111827;
  border-bottom: 1px solid #f3f4f6; vertical-align: middle;
}
.govops-table tbody tr:hover { background: #fafafa; }

/* ── Search ── */
.search-input-wrap { position: relative; }
.search-input-wrap input { padding-right: 36px; }
.search-input-wrap i { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #9ca3af; }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; align-items: center; }

/* ── Avatar ── */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: #dbeafe; color: #1d4ed8;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: 11px; }

/* ── Chips ── */
.chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 500; }
.chip-blue   { background: #dbeafe; color: #1e40af; }
.chip-amber  { background: #fef3c7; color: #92400e; }
.chip-red    { background: #fee2e2; color: #b91c1c; }
.chip-gray   { background: #f3f4f6; color: #374151; }
.chip-green  { background: #dcfce7; color: #166534; }

/* ── KPI Cards ── */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 20px; }
.kpi-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; display: flex; align-items: flex-start; gap: 12px; }
.kpi-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.kpi-label { font-size: 11px; color: #6b7280; margin-bottom: 3px; }
.kpi-primary { font-size: 22px; font-weight: 700; color: #111827; line-height: 1; }
.kpi-content { flex: 1; }

/* ── Company Cards ── */
.companies-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.co-list-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; cursor: pointer; transition: all .2s; }
.co-list-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.co-list-name { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 4px; }
.co-list-cr   { font-size: 11px; color: #9ca3af; }
.co-stat { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #374151; }
.co-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.co-alert-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #fef2f2; border-radius: 8px; margin-bottom: 12px; }
.co-alert-icon { color: #dc2626; font-size: 16px; flex-shrink: 0; }
.co-alert-text { font-size: 13px; color: #b91c1c; flex: 1; }
.co-alert-close { background: none; border: none; cursor: pointer; color: #9ca3af; font-size: 16px; }
.co-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f3f4f6; }
.co-row:last-child { border-bottom: none; }
.co-checkbox { width: 16px; height: 16px; }
.co-tabs-wrap { display: flex; gap: 4px; flex-wrap: wrap; }

/* ── Company Detail ── */
.info-list { display: flex; flex-direction: column; gap: 0; }
.info-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid #f9fafb; font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-key { color: #6b7280; min-width: 120px; flex-shrink: 0; }
.info-val { color: #111827; font-weight: 500; }
.contact-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.contact-avatar { width: 38px; height: 38px; border-radius: 50%; background: #dbeafe; color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.contact-name { font-size: 13px; font-weight: 600; color: #111827; }
.contact-role { font-size: 11px; color: #9ca3af; }
.contact-info { flex: 1; }
.contact-link { font-size: 11px; color: #2563eb; text-decoration: none; }
.contacts-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

/* ── Saudization ── */
.saud-breakdown { display: flex; flex-direction: column; gap: 8px; }
.saud-display   { font-size: 28px; font-weight: 800; color: #111827; }
.saud-label     { font-size: 11px; color: #6b7280; }
.saud-bar-item  { display: flex; align-items: center; gap: 10px; }
.saud-bar-label { font-size: 11px; color: #374151; min-width: 80px; }
.saud-bar-dot   { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.saud-bar-num   { font-size: 11px; font-weight: 600; color: #111827; min-width: 30px; }

/* ── Health Ring ── */
.health-ring  { position: relative; flex-shrink: 0; }
.health-badge { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; font-size: 12px; font-weight: 700; }

/* ── Employees ── */
.emp-nat-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }

/* ── Ticket ── */
.ticket-num { font-size: 10px; font-weight: 600; color: #2563eb; }

/* ── Notifications ── */
.notif-filter-tabs { display: flex; gap: 4px; margin-bottom: 16px; flex-wrap: wrap; }
.notif-filter-btn  { padding: 5px 14px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: 12px; cursor: pointer; font-family: inherit; }
.notif-filter-btn.active { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.notif-body   { flex: 1; }
.notif-action { font-size: 11px; color: #2563eb; text-decoration: none; }
.notif-footer { padding: 12px 16px; text-align: center; border-top: 1px solid #f3f4f6; }
.notif-count-badge { background: #dc2626; color: #fff; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 999px; }

/* ── Billing ── */
.subscription-summary { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }

/* ── Account Manager ── */
.mgr-card   { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.mgr-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.mgr-name   { font-size: 14px; font-weight: 600; color: #111827; }
.mgr-role   { font-size: 11px; color: #6b7280; }
.mgr-info   { font-size: 12px; color: #374151; }
.mgr-badge  { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; background: #dbeafe; color: #1e40af; }
.unassigned-section { margin-top: 16px; }
.unassigned-header  { font-size: 12px; font-weight: 600; color: #6b7280; margin-bottom: 8px; }
.more-row { font-size: 11px; color: #9ca3af; text-align: center; padding: 8px; }

/* ── Wizard (Company Form) ── */
.wiz-steps   { display: flex; align-items: center; gap: 0; margin-bottom: 24px; }
.wiz-step    { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; position: relative; }
.wiz-step-num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #e5e7eb; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: #9ca3af; z-index: 1; }
.wiz-step.active .wiz-step-num  { border-color: #1d4ed8; background: #1d4ed8; color: #fff; }
.wiz-step.done .wiz-step-num    { border-color: #16a34a; background: #16a34a; color: #fff; }
.wiz-step-lbl { font-size: 10px; color: #9ca3af; }
.wiz-step.active .wiz-step-lbl { color: #1d4ed8; font-weight: 600; }
.wiz-line { position: absolute; top: 14px; right: 50%; width: 100%; height: 2px; background: #e5e7eb; z-index: 0; }
.wiz-pane { display: block; }
.wiz-pane.active { display: block; }

/* ── Plan / Subscription ── */
.plan-display    { font-size: 13px; color: #374151; }
.plan-dates      { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.plan-date-item  { font-size: 12px; color: #374151; }
.plan-date-label { font-size: 10px; color: #9ca3af; }
.plan-date-sep   { color: #d1d5db; }
.plan-btn        { display: block; width: 100%; padding: 10px; text-align: center; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: 2px solid #1d4ed8; color: #1d4ed8; background: #fff; text-decoration: none; }
.plan-btn:hover  { background: #1d4ed8; color: #fff; }
.plan-card.featured .plan-btn { background: #1d4ed8; color: #fff; }

/* Pricing toggle */
.ppc-amount   { font-size: 32px; font-weight: 800; color: #111827; }
.ppc-currency { font-size: 14px; color: #6b7280; }
.ppc-badges   { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.ppc-current-badge   { background: #dbeafe; color: #1e40af; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.ppc-popular-badge   { background: #1d4ed8; color: #fff; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.ppc-discount-badge  { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.ppc-feature  { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #374151; padding: 4px 0; }
.ppc-btn-check { display: none; }
.ppc-btn-text  { cursor: pointer; }
.ptog-btn { padding: 7px 18px; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #1d4ed8; background: #fff; color: #1d4ed8; font-family: inherit; }
.ptog-btn:first-child { border-radius: 8px 0 0 8px; }
.ptog-btn:last-child  { border-radius: 0 8px 8px 0; }
.ptog-btn.active      { background: #1d4ed8; color: #fff; }
.sub-duration-tabs    { display: flex; margin-bottom: 16px; }
.sub-dur-btn { flex: 1; padding: 8px; text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #e5e7eb; background: #fff; font-family: inherit; }
.sub-dur-btn.active   { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.sub-plan-name        { font-size: 13px; font-weight: 600; color: #374151; }
.sub-price-amount     { font-size: 28px; font-weight: 800; color: #111827; }
.sub-dates-row        { display: flex; gap: 12px; font-size: 12px; }
.sub-arrow            { color: #9ca3af; }
.plans-premium-grid   { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.premium-plan-card    { border: 2px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.premium-plan-card.featured { border-color: #1d4ed8; }

/* ── Platform ── */
.platform-chip { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 10px 12px; text-align: center; font-size: 12px; font-weight: 500; transition: all .15s; cursor: pointer; }
.platform-chip:hover { border-color: #1d4ed8; color: #1d4ed8; }
.platforms-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.platform-detail-card { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 10px; padding: 14px; display: flex; align-items: center; gap: 10px; }
.platform-detail-icon { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.platform-detail-info { flex: 1; }
.platform-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.platform-check   { width: 16px; height: 16px; }
.platforms-detail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }

/* ── PDF ── */
.pdf-header { background: #0f2460; color: #fff; padding: 20px 28px; }
.pdf-header-info { font-size: 12px; }
.pdf-company-name { font-size: 20px; font-weight: 700; }
.pdf-company-hero { padding: 16px 28px; background: #f9fafb; }
.pdf-company-meta { font-size: 12px; color: #6b7280; }
.pdf-footer { padding: 12px 28px; font-size: 10px; color: #9ca3af; border-top: 1px solid #e5e7eb; }

/* ── Error Pages ── */
.error-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 20px; padding: 48px 40px; text-align: center; max-width: 480px; width: 90%; box-shadow: 0 8px 40px rgba(0,0,0,.08); }
.error-num  { font-size: 80px; font-weight: 900; line-height: 1; margin-bottom: 8px; }
.error-icon { font-size: 48px; margin-bottom: 16px; }
.logo       { font-size: 16px; font-weight: 900; color: #1e40af; margin-bottom: 24px; }
.logo-icon  { font-size: 24px; }

/* ── Portal specific ── */
.portal-welcome    { background: linear-gradient(135deg, #1e40af, #1d4ed8); border-radius: 12px; padding: 20px; color: #fff; margin-bottom: 16px; }
.portal-welcome-name { font-size: 18px; font-weight: 700; }
.portal-welcome-co   { font-size: 12px; opacity: .75; }
.portal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }

/* ── Misc ── */
.nb { background: #dc2626; color: #fff; font-size: 9px; font-weight: 700; padding: 1px 5px; border-radius: 999px; margin-right: auto; }
.cursor-pointer { cursor: pointer; }
.highlight { background: #fef9c3; border-radius: 3px; padding: 0 2px; }
.icon-box { width: 36px; height: 36px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.weight-input { width: 70px; }

/* ── Admin settings ── */
.admin-plan-prices { display: flex; flex-direction: column; gap: 4px; }

/* ── Priority ── */
.prio-radio-label { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; border: 1px solid #e5e7eb; cursor: pointer; font-size: 12px; }
.prio-radio-btn   { display: none; }
.prio-radio-label:has(.prio-radio-btn:checked) { border-color: #1d4ed8; background: #eff6ff; }

/* ── Responsive helpers ── */
@media (max-width: 640px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }
  .companies-grid { grid-template-columns: 1fr; }
}

/* ════════════════════════════════════════
   Missing Classes — Restored
════════════════════════════════════════ */

/* ── Auth Pages ── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: #f4f5fb; }
.auth-card { background: #fff; border-radius: 16px; padding: 32px; width: 100%; max-width: 420px; box-shadow: 0 8px 32px rgba(0,0,0,.08); }
.auth-logo { font-size: 22px; font-weight: 700; color: #1d4ed8; margin-bottom: 20px; text-align: center; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form-header { margin-bottom: 8px; }
.auth-brand-content { display: flex; flex-direction: column; justify-content: center; }
.auth-channel-options { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.auth-channel-box { border: 1.5px solid #e5e7eb; border-radius: 10px; padding: 14px 16px; cursor: pointer; transition: all .2s; }
.auth-channel-box:hover { border-color: #1d4ed8; }
.auth-channel-opt { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 500; }
.auth-success-box { text-align: center; padding: 16px; }
.auth-success-icon { font-size: 48px; color: #16a34a; margin-bottom: 12px; }
.auth-success-title { font-size: 18px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.auth-success-msg { font-size: 13px; color: #6b7280; }
.auth-reset-illustration { text-align: center; font-size: 56px; margin-bottom: 16px; }
.auth-reset-text { font-size: 13px; color: #6b7280; margin-bottom: 20px; }

/* ── Company List ── */
.co-list { display: flex; flex-direction: column; gap: 0; }
.co-list-header { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #e5e7eb; }
.co-list-footer { padding: 10px 16px; border-top: 1px solid #e5e7eb; }
.co-list-logo { width: 38px; height: 38px; border-radius: 8px; background: #dbeafe; color: #1d4ed8; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 700; flex-shrink: 0; }
.co-list-en { font-size: 11px; color: #9ca3af; }
.co-list-stats { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.co-list-bar { margin-top: 6px; }
.co-list-bar-track { background: #f3f4f6; border-radius: 4px; height: 4px; overflow: hidden; }
.co-list-bar-fill { height: 100%; border-radius: 4px; }
.co-list-bar-label { font-size: 10px; color: #9ca3af; margin-top: 2px; }
.co-name { font-size: 13px; font-weight: 600; color: #111827; }
.co-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.co-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 16px; }
.co-tab-btn { padding: 6px 14px; border-radius: 8px; border: 1px solid #e5e7eb; background: #fff; font-size: 12px; font-weight: 500; cursor: pointer; font-family: inherit; transition: all .15s; }
.co-tab-btn.active { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.co-tab-count { font-size: 10px; background: #f3f4f6; padding: 1px 6px; border-radius: 999px; margin-right: 4px; }
.co-reassign { font-size: 11px; color: #2563eb; cursor: pointer; text-decoration: none; }

/* ── Company Hero / Detail ── */
.co-hero { background: linear-gradient(135deg,#1e40af,#1d4ed8); border-radius: 12px; padding: 20px 24px; color: #fff; margin-bottom: 20px; }
.co-hero-main { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.co-hero-logo { width: 56px; height: 56px; border-radius: 12px; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.co-hero-info { flex: 1; }
.co-hero-name { font-size: 18px; font-weight: 600; margin-bottom: 3px; }
.co-hero-en { font-size: 12px; opacity: .7; }
.co-hero-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; font-size: 12px; opacity: .8; }
.co-hero-actions { display: flex; gap: 8px; }
.co-hero-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.co-hero-badge { background: rgba(255,255,255,.15); border: 0.5px solid rgba(255,255,255,.25); border-radius: 999px; padding: 3px 10px; font-size: 11px; }
.co-kpi-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px,1fr)); gap: 8px; }
.co-kpi { background: rgba(255,255,255,.1); border-radius: 8px; padding: 10px; text-align: center; }
.co-kpi-val { font-size: 20px; font-weight: 600; color: #fff; }
.co-kpi-lbl { font-size: 10px; color: rgba(255,255,255,.65); margin-top: 2px; }
.co-kpi-icon { font-size: 14px; margin-bottom: 2px; }
.co-kpi-div { width: 1px; background: rgba(255,255,255,.15); }

/* ── Saudization Detail ── */
.saud-ring { position: relative; width: 80px; height: 80px; flex-shrink: 0; }
.saud-svg { width: 100%; height: 100%; }
.saud-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; }
.saud-info { flex: 1; }
.saud-value { font-size: 28px; font-weight: 700; color: #111827; }
.saud-target { font-size: 12px; color: #6b7280; }
.saud-status-badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; }

/* ── Notifications ── */
.notif-list { display: flex; flex-direction: column; gap: 0; }
.notif-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid #f3f4f6; transition: background .15s; cursor: pointer; }
.notif-item:hover { background: #fafafa; }
.notif-item:last-child { border-bottom: none; }
.notif-icon { width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.notif-title { font-size: 13px; font-weight: 500; color: #111827; margin-bottom: 2px; }
.notif-msg { font-size: 12px; color: #6b7280; }
.notif-time { font-size: 11px; color: #9ca3af; flex-shrink: 0; }
.notif-new-dot { width: 7px; height: 7px; border-radius: 50%; background: #1d4ed8; flex-shrink: 0; margin-top: 5px; }
.notif-read-btn { font-size: 11px; color: #2563eb; background: none; border: none; cursor: pointer; padding: 0; }

/* ── PDF Templates ── */
.pdf-logo { font-size: 18px; font-weight: 700; color: #fff; }
.pdf-section { margin-bottom: 20px; }
.pdf-section-title { font-size: 13px; font-weight: 700; color: #1e40af; border-bottom: 2px solid #dbeafe; padding-bottom: 6px; margin-bottom: 12px; }
.pdf-kpi-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.pdf-kpi { background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px; padding: 12px; text-align: center; }
.pdf-kpi-val { font-size: 20px; font-weight: 700; color: #111827; }
.pdf-kpi-lbl { font-size: 10px; color: #6b7280; margin-top: 2px; }
.pdf-health-badge { width: 56px; height: 56px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-direction: column; flex-shrink: 0; }
.pdf-health-num { font-size: 16px; font-weight: 700; }
.pdf-health-lbl { font-size: 9px; }

/* ── Landing Page ── */
.hero { padding: 60px 20px; text-align: center; }
.hero-content { max-width: 600px; margin: 0 auto; }
.hero-sub { font-size: 15px; color: #6b7280; margin-bottom: 24px; }
.hero-stats { display: flex; gap: 24px; justify-content: center; margin-top: 24px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 24px; font-weight: 700; color: #1d4ed8; }
.hero-stat-lbl { font-size: 12px; color: #6b7280; }
.hero-badge { background: #dbeafe; color: #1e40af; padding: 3px 12px; border-radius: 999px; font-size: 12px; font-weight: 500; display: inline-block; margin-bottom: 12px; }
.hero-cta-group { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 20px; }
.features { padding: 40px 20px; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.feature-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px; }
.feature-icon { font-size: 28px; margin-bottom: 10px; }
.feature-title { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 6px; }
.feature-desc { font-size: 12px; color: #6b7280; line-height: 1.6; }
.pain { padding: 40px 20px; background: #fef2f2; }
.pain-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 12px; }
.pain-card { background: #fff; border-radius: 10px; padding: 16px; }
.pain-icon { font-size: 24px; margin-bottom: 8px; }
.pain-title { font-size: 13px; font-weight: 600; color: #111827; }
.pain-desc { font-size: 12px; color: #6b7280; margin-top: 4px; }
.how { padding: 40px 20px; }
.steps { display: flex; flex-direction: column; gap: 16px; max-width: 560px; margin: 0 auto; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step-num { width: 32px; height: 32px; border-radius: 50%; background: #1d4ed8; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.step-title { font-size: 14px; font-weight: 600; color: #111827; margin-bottom: 3px; }
.step-desc { font-size: 12px; color: #6b7280; }
.pricing { padding: 40px 20px; }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; max-width: 780px; margin: 0 auto; }
.pricing-card { background: #fff; border: 2px solid #e5e7eb; border-radius: 12px; padding: 20px; text-align: center; position: relative; }
.pricing-card.featured { border-color: #1d4ed8; }
.pricing-badge { position: absolute; top: -10px; right: 50%; transform: translateX(50%); background: #1d4ed8; color: #fff; font-size: 10px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.pricing-toggle { display: flex; justify-content: center; gap: 4px; margin-bottom: 24px; }
.pricing-note { font-size: 11px; color: #9ca3af; margin-top: 8px; }
.social-proof { padding: 40px 20px; background: #f9fafb; }
.proof-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 16px; }
.proof-card { background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 8px rgba(0,0,0,.05); }
.proof-stars { color: #f59e0b; font-size: 14px; margin-bottom: 8px; }
.proof-text { font-size: 13px; color: #374151; line-height: 1.6; margin-bottom: 12px; }
.proof-author { font-size: 12px; font-weight: 600; color: #111827; }
.proof-role { font-size: 11px; color: #9ca3af; }
.cta-banner { background: linear-gradient(135deg,#1e40af,#1d4ed8); border-radius: 16px; padding: 32px; text-align: center; color: #fff; margin: 20px; }
.section-title { font-size: 20px; font-weight: 700; color: #111827; margin-bottom: 6px; }
.section-sub { font-size: 13px; color: #6b7280; margin-bottom: 24px; }
.section-label { font-size: 12px; font-weight: 600; color: #1d4ed8; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 6px; }

/* ── Plan / Subscription extras ── */
.plan-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.plan-name-big { font-size: 18px; font-weight: 700; color: #111827; }
.plan-period { font-size: 12px; color: #6b7280; }
.plan-expired { background: #fee2e2; color: #b91c1c; padding: 8px 14px; border-radius: 8px; font-size: 13px; }
.plan-warning { background: #fef3c7; color: #92400e; padding: 8px 14px; border-radius: 8px; font-size: 13px; }
.ppc-name { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.ppc-name-en { font-size: 11px; color: #9ca3af; }
.ppc-main-price { font-size: 32px; font-weight: 800; color: #111827; line-height: 1; }
.ppc-original-price { font-size: 14px; color: #9ca3af; text-decoration: line-through; }
.ppc-per-month { font-size: 12px; color: #6b7280; }
.ppc-per-period { font-size: 11px; color: #9ca3af; }
.ppc-price-wrap { margin-bottom: 12px; }
.ppc-features { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.ppc-select-btn { display: block; width: 100%; padding: 9px; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer; border: 2px solid #1d4ed8; color: #1d4ed8; background: #fff; font-family: inherit; text-align: center; text-decoration: none; }
.ppc-select-btn:hover { background: #1d4ed8; color: #fff; }
.ppc-duration-tabs { display: flex; margin-bottom: 16px; }
.ppc-duration-label { font-size: 12px; font-weight: 600; }
.ppc-duration-bar { height: 3px; background: #e5e7eb; border-radius: 2px; margin-top: 3px; }
.ppc-dur-btn { flex: 1; padding: 7px; text-align: center; font-size: 12px; font-weight: 600; cursor: pointer; border: 1px solid #e5e7eb; background: #fff; font-family: inherit; }
.ppc-dur-btn.active { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }
.ppc-dur-save { font-size: 10px; color: #16a34a; }
.sub-price-display { font-size: 32px; font-weight: 800; color: #111827; }
.sub-price-label { font-size: 12px; color: #6b7280; }
.sub-price-duration { font-size: 11px; color: #9ca3af; }
.sub-price-monthly { font-size: 11px; color: #6b7280; }
.sub-saving-badge { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; }
.sub-summary-left { flex: 1; }
.sub-summary-right { text-align: left; }

/* ── KPI extras ── */
.kpi-value { font-size: 22px; font-weight: 700; color: #111827; }
.kpi-success { color: #16a34a; }
.stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 16px; }
.stat-icon { font-size: 24px; margin-bottom: 8px; }
.stat-value { font-size: 24px; font-weight: 700; color: #111827; }
.stat-label { font-size: 12px; color: #6b7280; }

/* ── Empty state extras ── */
.empty-state-icon { font-size: 40px; color: #d1d5db; margin-bottom: 10px; }
.empty-state-title { font-size: 15px; font-weight: 600; color: #374151; margin-bottom: 4px; }
.empty-state-text { font-size: 13px; color: #9ca3af; }

/* ── Expiry chip ── */
.expiry-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #9ca3af; margin-bottom: 12px; flex-wrap: wrap; }
.breadcrumb-item { color: #9ca3af; }
.breadcrumb-item.active { color: #374151; font-weight: 500; }
.breadcrumb-item a { color: #2563eb; text-decoration: none; }

/* ── Wiz summary ── */
.wiz-summary-item { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 12px; color: #374151; border-bottom: 1px solid #f3f4f6; }
.wiz-summary-item:last-child { border-bottom: none; }

/* ── Platform extras ── */
.platform-icon { width: 32px; height: 32px; border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.platform-name { font-size: 12px; font-weight: 500; color: #111827; }
.platform-detail-name { font-size: 13px; font-weight: 600; color: #111827; }
.platform-detail-user { font-size: 11px; color: #9ca3af; }

/* ── input-group (Bootstrap supplement) ── */
.input-group { display: flex; }
.input-group .form-control { border-radius: 0; }
.input-group .form-control:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.input-group .form-control:last-child { border-radius: 0 var(--radius) var(--radius) 0; }
.input-group-text { display: flex; align-items: center; padding: 7px 10px; background: #f9fafb; border: 1px solid var(--border); font-size: 13px; color: #6b7280; }
.input-group-text:first-child { border-radius: var(--radius) 0 0 var(--radius); border-left: none; }

/* ── Tab Panes ── */
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* ── Missing CSS Variables ── */
:root {
  --success-light: #dcfce7;
  --warning-light: #fef3c7;
  --danger-light:  #fee2e2;
  --info-light:    #dbeafe;
  --primary-bg:    #eff6ff;
  --tab-count-bg:  #f3f4f6;
}

/* ── Co KPI Strip Fix ── */
.co-kpi-strip {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.co-kpi {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
}
.co-kpi-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.co-kpi-val { font-size: 18px; font-weight: 700; color: #111827; line-height: 1; }
.co-kpi-lbl { font-size: 10px; color: #6b7280; margin-top: 2px; }
.co-kpi-div { width: 1px; background: #e5e7eb; align-self: stretch; flex-shrink: 0; }

/* ── Tab count badge ── */
.tab-count-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: #f3f4f6; color: #374151;
  font-size: 10px; font-weight: 600;
  padding: 1px 6px; border-radius: 999px;
  margin-right: 4px;
}

/* ── Hero buttons override ── */
.co-hero .btn-outline-primary,
.co-hero .btn-outline-secondary,
.co-hero .btn-outline-warning,
.co-hero .btn-primary {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  background: rgba(255,255,255,.12);
  font-size: 12px;
  padding: 5px 12px;
}
.co-hero .btn-outline-primary:hover,
.co-hero .btn-outline-secondary:hover,
.co-hero .btn-outline-warning:hover,
.co-hero .btn-primary:hover {
  background: rgba(255,255,255,.25);
  color: #fff;
  border-color: rgba(255,255,255,.7);
}
.co-hero-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

/* ════════════════════════════════════════
   Subscriptions — Admin & Portal
════════════════════════════════════════ */

/* ── Stat cards (admin overview) ── */
.stat-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.stat-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.stat-icon.green  { background: #dcfce7; color: #16a34a; }
.stat-icon.teal   { background: #ccfbf1; color: #0f766e; }
.stat-icon.amber  { background: #fef3c7; color: #d97706; }
.stat-icon.red    { background: #fee2e2; color: #dc2626; }
.stat-icon.blue   { background: #dbeafe; color: #1d4ed8; }
.stat-value { font-size: 24px; font-weight: 700; color: #111827; line-height: 1; }
.stat-label { font-size: 12px; color: #6b7280; margin-top: 3px; }

/* ── Table wrapper ── */
.table-wrapper {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}
.table-wrapper .govops-table { margin: 0; }

/* ── Portal welcome card ── */
.portal-welcome {
  background: linear-gradient(135deg, #1e40af, #1d4ed8);
  border-radius: 12px;
  padding: 20px 24px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.portal-welcome-name { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.portal-welcome-co   { font-size: 12px; opacity: .8; }

/* ── Duration tabs ── */
.ppc-duration-bar { margin-bottom: 16px; }
.ppc-duration-label { font-size: 13px; font-weight: 500; color: #374151; margin-bottom: 8px; }
.ppc-duration-tabs {
  display: flex;
  gap: 0;
  background: #f3f4f6;
  border-radius: 10px;
  padding: 4px;
  width: fit-content;
}
.ppc-dur-btn {
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  border-radius: 7px;
  font-family: inherit;
  color: #6b7280;
  transition: all .15s;
  position: relative;
}
.ppc-dur-btn.active {
  background: #fff;
  color: #111827;
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,.1);
}
.ppc-dur-save {
  font-size: 9px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 1px 5px;
  border-radius: 999px;
  margin-right: 4px;
}
.ppc-dur-save.best {
  color: #92400e;
  background: #fef3c7;
}

/* ── Plans grid ── */
.plans-premium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.premium-plan-card {
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 14px;
  padding: 20px;
  transition: all .2s;
  position: relative;
}
.premium-plan-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); transform: translateY(-2px); }
.premium-plan-card.featured { border-color: #1d4ed8; }
.premium-plan-card.selected { border-color: #16a34a; background: #f0fdf4; }

/* ── Plan card content ── */
.ppc-badges { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 10px; min-height: 22px; }
.ppc-name    { font-size: 16px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.ppc-name-en { font-size: 11px; color: #9ca3af; margin-bottom: 12px; }

.ppc-price-wrap { margin-bottom: 14px; }
.ppc-original-price { font-size: 13px; color: #9ca3af; text-decoration: line-through; margin-bottom: 2px; }
.ppc-main-price { display: flex; align-items: baseline; gap: 4px; }
.ppc-currency { font-size: 14px; font-weight: 500; color: #374151; }
.ppc-amount   { font-size: 32px; font-weight: 800; color: #111827; line-height: 1; }
.ppc-per-period { font-size: 12px; color: #9ca3af; margin-top: 2px; }
.ppc-per-month  { font-size: 11px; color: #6b7280; margin-top: 2px; }

.ppc-select-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid #1d4ed8;
  color: #1d4ed8;
  background: #fff;
  font-family: inherit;
  margin-bottom: 14px;
  transition: all .15s;
  text-decoration: none;
}
.ppc-select-btn:hover { background: #1d4ed8; color: #fff; }
.ppc-select-btn.selected {
  background: #f0fdf4;
  border-color: #16a34a;
  color: #166534;
  cursor: default;
}
.ppc-btn-check { display: inline; }

.ppc-features { display: flex; flex-direction: column; gap: 7px; }
.ppc-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #374151;
}
.ppc-feature i { color: #16a34a; font-size: 13px; flex-shrink: 0; }

/* Badges */
.ppc-current-badge  { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.ppc-popular-badge  { background: #1d4ed8; color: #fff;    padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }
.ppc-discount-badge { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 999px; font-size: 10px; font-weight: 600; }

/* ── Assign plan form ── */
.sub-duration-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.sub-dur-btn {
  padding: 7px 16px;
  font-size: 12px; font-weight: 500;
  cursor: pointer;
  border: 1px solid #e5e7eb;
  background: #fff;
  border-radius: 8px;
  font-family: inherit;
  color: #374151;
  transition: all .15s;
}
.sub-dur-btn.active { background: #1d4ed8; color: #fff; border-color: #1d4ed8; }

.sub-price-display { font-size: 36px; font-weight: 800; color: #111827; line-height: 1; }
.sub-price-label   { font-size: 13px; color: #6b7280; margin-top: 4px; }
.sub-price-duration { font-size: 12px; color: #9ca3af; }
.sub-price-monthly  { font-size: 11px; color: #6b7280; margin-top: 2px; }
.sub-saving-badge {
  display: inline-flex; align-items: center;
  background: #dcfce7; color: #166534;
  padding: 2px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 600;
  margin-top: 6px;
}
.sub-plan-name   { font-size: 15px; font-weight: 700; color: #111827; margin-bottom: 2px; }
.sub-dates-row   { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #374151; }
.sub-arrow       { color: #9ca3af; }
.sub-summary-left  { flex: 1; }
.sub-summary-right { text-align: left; }
.sub-price-amount  { font-size: 28px; font-weight: 800; color: #111827; }

/* ── Landing page nav ── */
.lnav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
  background: #fff;
  border-bottom: 1px solid #f3f4f6;
  position: sticky; top: 0; z-index: 100;
}
.lnav-logo { font-size: 17px; font-weight: 700; color: #111827; display: flex; align-items: center; gap: 9px; text-decoration: none; }
.lnav-icon { width: 34px; height: 34px; border-radius: 9px; background: #1d4ed8; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; flex-shrink: 0; }
.lnav-links { display: flex; gap: 24px; }
.lnav-links a { font-size: 14px; color: #6b7280; text-decoration: none; }
.lnav-links a:hover { color: #111827; }
.lnav-actions { display: flex; gap: 8px; }

/* ── Landing service cards ── */
.svc-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 12px; padding: 20px 16px; text-align: right; }
.svc-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 20px; margin-bottom: 12px; }
.svc-name { font-size: 14px; font-weight: 700; color: #111827; margin-bottom: 4px; }
.svc-desc { font-size: 13px; color: #6b7280; line-height: 1.5; }
