/* ================================================================
   AWP Provider Portal — portal.css
   Palette: Navy #0F2A4A | Blue #1E6BB8 | Gold #C9973A (accent)
   Fonts: DM Serif Display (headings) + DM Sans (body)
   ================================================================ */

/* ── Reset & Base ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy-950: #060F1E;
  --navy-900: #0C1D36;
  --navy-800: #0F2A4A;
  --navy-700: #153560;
  --navy-600: #1B4275;
  --navy-500: #1E6BB8;
  --navy-400: #3A87D4;
  --navy-300: #72AEDE;
  --navy-200: #AECFED;
  --navy-100: #DCE9F6;
  --gold:     #C9973A;
  --gold-lt:  #D9AE5C;
  --green:    #16a34a;
  --red:      #dc2626;
  --orange:   #ea580c;
  --bg:       #F8FAFC;
  --border:   #E8EFF6;
  --text:     #0C1D36;
  --text-muted: #64748b;
  --radius:   8px;
  --radius-lg: 12px;
  --shadow:   0 4px 24px rgba(15,42,74,0.10);
  --shadow-lg: 0 12px 40px rgba(15,42,74,0.14);
  --sidebar-w: 260px;
}

html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

h1,h2,h3,h4 { font-family: 'DM Serif Display', Georgia, serif; color: var(--navy-800); line-height: 1.2; }
p { line-height: 1.65; color: var(--text-muted); }
a { color: var(--navy-500); text-decoration: none; transition: color .2s; }
a:hover { color: var(--navy-700); }
img { max-width: 100%; }

/* ── Scrollbar ────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--navy-300); border-radius: 3px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all .2s;
  text-decoration: none; white-space: nowrap;
}
.btn-primary   { background: var(--navy-500); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; transform: translateY(-1px); }
.btn-outline   { background: transparent; border: 1.5px solid var(--navy-500); color: var(--navy-500); }
.btn-outline:hover { background: var(--navy-500); color: #fff; }
.btn-ghost     { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-full      { width: 100%; justify-content: center; }
.btn-lg        { padding: 13px 28px; font-size: 1rem; }
.btn-sm        { padding: 5px 12px; font-size: 0.8rem; }
.btn-plain     { background: none; border: none; padding: 0; font-size: inherit; cursor: pointer; color: var(--navy-500); font-weight: 600; }
.btn-outline-danger { border-color: var(--red); color: var(--red); background: transparent; }
.btn-outline-danger:hover { background: var(--red); color: #fff; }
.btn:disabled  { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-group { display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; }
.form-group label { font-size: 0.875rem; font-weight: 600; color: var(--navy-800); }
.form-group input, .form-group select, .form-group textarea {
  padding: 9px 12px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: inherit; font-size: 0.9rem; color: var(--text);
  background: #fff; transition: border-color .2s, box-shadow .2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--navy-500); outline: none;
  box-shadow: 0 0 0 3px rgba(30,107,184,0.12);
}
.form-group input:disabled { background: var(--bg); color: var(--text-muted); }
.form-group textarea { resize: vertical; min-height: 80px; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid-2 .span-2 { grid-column: span 2; }
.form-check { display: flex; gap: 10px; align-items: flex-start; margin: 12px 0; }
.form-check input[type=checkbox] { margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--navy-500); }
.form-check label { font-size: 0.875rem; color: var(--text-muted); line-height: 1.5; }
.form-footer { margin-top: 20px; display: flex; gap: 12px; align-items: center; }
.req { color: var(--red); }
.hint { color: var(--text-muted); font-weight: 400; font-size: 0.8rem; }
.hint-text { color: var(--text-muted); font-size: 0.8rem; margin-top: 8px; }
.search-input { width: 100%; padding: 10px 16px; border: 1.5px solid var(--border); border-radius: 999px; font-family: inherit; font-size: 0.9rem; background: #fff; transition: border-color .2s; }
.search-input:focus { border-color: var(--navy-500); outline: none; box-shadow: 0 0 0 3px rgba(30,107,184,0.12); }
.search-wrap { display: flex; align-items: center; gap: 8px; flex: 1; }
.search-icon { order: -1; flex: none; color: var(--text-muted); pointer-events: none; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--radius); font-size: 0.9rem; margin-bottom: 16px; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #dc2626; }
.alert-info    { background: #eff6ff; border: 1px solid #bfdbfe; color: #1d4ed8; }
.alert-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }

/* ── Badges ──────────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }
.badge-primary { background: #dbeafe; color: #1d4ed8; border: 1px solid #93c5fd; }
.badge-success { background: #f0fdf4; color: #166534; border: 1px solid #86efac; }
.badge-danger  { background: #fef2f2; color: #dc2626; border: 1px solid #fca5a5; }

/* ── Cards ───────────────────────────────────────────────────── */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.card-title { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy-800); margin: 0; }
.card-link { font-size: 0.85rem; color: var(--navy-500); font-weight: 600; }
.card-link-full { display: block; padding: 12px 20px; font-size: 0.85rem; color: var(--navy-500); font-weight: 600; border-top: 1px solid var(--border); text-align: center; }
.card-section-title { font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy-800); padding: 20px 20px 0; margin-bottom: 16px; }

/* ── Tables ──────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.data-table th { padding: 10px 16px; text-align: left; font-weight: 700; color: var(--navy-800); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; background: var(--bg); border-bottom: 1px solid var(--border); }
.data-table td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #f8fafc; }
.data-table .total-row td { background: var(--bg); font-weight: 700; }
.row-inactive td { opacity: 0.55; }
.order-num-link { font-weight: 700; color: var(--navy-500); font-family: monospace; }
.inline-select { padding: 3px 6px; border: 1px solid var(--border); border-radius: 4px; font-size: 0.8rem; background: #fff; }
.role-tag { font-size: 0.8rem; color: var(--text-muted); text-transform: capitalize; }

/* ── Empty State ─────────────────────────────────────────────── */
.empty-state { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 48px 24px; text-align: center; }
.empty-icon { font-size: 3rem; }
.empty-notif { padding: 20px; color: var(--text-muted); font-size: 0.875rem; text-align: center; }
.empty-note { color: var(--text-muted); font-size: 0.875rem; font-style: italic; padding: 16px; }

/* ── Portal Layout ───────────────────────────────────────────── */
.portal-body { display: flex; min-height: 100vh; }

/* Sidebar */
.portal-sidebar {
  width: var(--sidebar-w); min-height: 100vh; background: var(--navy-800);
  display: flex; flex-direction: column; flex-shrink: 0;
  position: fixed; left: 0; top: 0; bottom: 0; z-index: 100;
  overflow-y: auto; transition: transform .3s ease;
}
.sidebar-logo { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.sidebar-logo a { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { background: var(--navy-500); color: #fff; font-weight: 800; font-size: 0.85rem; padding: 6px 9px; border-radius: 6px; letter-spacing: .04em; }
.logo-label { color: rgba(255,255,255,0.9); font-size: 0.875rem; font-weight: 600; }
.sidebar-logo-img { max-height: 40px; width: auto; object-fit: contain; filter: brightness(0) invert(1); }
.sidebar-close { display: none; background: none; border: none; color: rgba(255,255,255,0.5); font-size: 1.1rem; cursor: pointer; }

.sidebar-clinic { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.clinic-avatar { width: 36px; height: 36px; border-radius: 8px; background: var(--navy-700); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.9rem; flex-shrink: 0; }
.clinic-info { display: flex; flex-direction: column; min-width: 0; }
.clinic-name { color: #fff; font-size: 0.825rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clinic-user { color: rgba(255,255,255,0.55); font-size: 0.75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-nav { list-style: none; padding: 12px 0; flex: 1; }
.sidebar-nav li { margin: 1px 12px; }
.sidebar-nav li a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); color: rgba(255,255,255,0.65); font-size: 0.875rem; font-weight: 500; transition: all .2s; text-decoration: none; }
.sidebar-nav li a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.sidebar-nav li.active a { background: var(--navy-500); color: #fff; }
.nav-icon { width: 20px; text-align: center; font-size: 0.9rem; flex-shrink: 0; }
.nav-section-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.3); padding: 12px 22px 4px; font-weight: 700; margin: 0 !important; }
.nav-badge { background: var(--red); color: #fff; font-size: 0.7rem; font-weight: 700; padding: 1px 6px; border-radius: 999px; margin-left: auto; }

.sidebar-footer { padding: 16px 20px; border-top: 1px solid rgba(255,255,255,0.08); }
.logout-btn { display: block; color: rgba(255,255,255,0.55); font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; transition: color .2s; }
.logout-btn:hover { color: #fff; }
.sidebar-footer p { font-size: 0.75rem; color: rgba(255,255,255,0.3); }
.sidebar-footer a { color: rgba(174,207,237,0.7); }

/* Main area */
.portal-main { margin-left: var(--sidebar-w); flex: 1; display: flex; flex-direction: column; min-height: 100vh; }
.portal-topbar { background: #fff; border-bottom: 1px solid var(--border); height: 56px; display: flex; align-items: center; padding: 0 24px; gap: 16px; position: sticky; top: 0; z-index: 50; }
.topbar-menu-btn { display: none; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--navy-800); padding: 4px; }
.topbar-breadcrumb { flex: 1; font-weight: 700; color: var(--navy-800); font-size: 0.9rem; }
.topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-notif { position: relative; font-size: 1.1rem; color: var(--text-muted); }
.topbar-badge { position: absolute; top: -4px; right: -6px; background: var(--red); color: #fff; font-size: 0.65rem; font-weight: 700; width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.topbar-user { display: flex; align-items: center; gap: 8px; cursor: pointer; position: relative; padding: 4px 8px; border-radius: var(--radius); transition: background .2s; }
.topbar-user:hover { background: var(--bg); }
.user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--navy-500); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.8rem; flex-shrink: 0; }
.user-name { font-weight: 600; font-size: 0.875rem; color: var(--navy-800); }
.user-caret { font-size: 0.7rem; color: var(--text-muted); }
.user-dropdown { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); min-width: 180px; overflow: hidden; z-index: 200; }
.user-dropdown.open { display: block; }
.user-dropdown a { display: block; padding: 10px 16px; font-size: 0.875rem; color: var(--text); transition: background .15s; }
.user-dropdown a:hover { background: var(--bg); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.user-dropdown .text-danger { color: var(--red); }

.portal-content { padding: 24px; flex: 1; }
.sidebar-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.4); z-index: 99; }

/* Page header */
.page-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 24px; gap: 16px; flex-wrap: wrap; }
.page-title { font-size: 1.6rem; color: var(--navy-800); margin-bottom: 4px; }
.page-subtitle { color: var(--text-muted); font-size: 0.9rem; }
.page-header-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.back-link { display: inline-block; color: var(--text-muted); font-size: 0.875rem; margin-bottom: 6px; }

/* ── Dashboard ───────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; display: flex; align-items: center; gap: 16px; box-shadow: var(--shadow); transition: transform .2s, box-shadow .2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.stat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.stat-blue   { background: #dbeafe; }
.stat-gold   { background: #fef9e7; }
.stat-green  { background: #f0fdf4; }
.stat-navy   { background: var(--navy-100); }
.stat-purple { background: #f5f3ff; }
.stat-value  { font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--navy-800); line-height: 1; }
.stat-label  { font-size: 0.8rem; color: var(--text-muted); margin-top: 2px; font-weight: 600; }
.dashboard-grid { display: grid; grid-template-columns: 1fr 360px; gap: 20px; }
.dashboard-sidebar-col { display: flex; flex-direction: column; gap: 20px; }

/* Quick actions */
.quick-actions { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; }
.quick-action { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: var(--radius); border: 1px solid var(--border); font-size: 0.8rem; font-weight: 600; color: var(--text); transition: all .2s; text-align: center; text-decoration: none; background: #fff; }
.quick-action:hover { border-color: var(--navy-500); color: var(--navy-500); background: #f8fbff; }
.qa-icon { font-size: 1.4rem; }

/* Notifications */
.notif-list { list-style: none; }
.notif-item { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.notif-item:last-child { border-bottom: none; }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; margin-top: 6px; }
.notif-dot.order_received { background: var(--navy-500); }
.notif-dot.order_status   { background: var(--green); }
.notif-dot.account        { background: var(--gold); }
.notif-body p { font-size: 0.875rem; color: var(--text); margin-bottom: 3px; }
.notif-body time { font-size: 0.75rem; color: var(--text-muted); }

/* Notifications page */
.notif-list-full { list-style: none; }
.notif-item-full { display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-bottom: 1px solid var(--border); transition: background .15s; }
.notif-item-full:last-child { border-bottom: none; }
.notif-item-full.unread { background: #f8fbff; }
.notif-body-full { flex: 1; }
.notif-msg { font-size: 0.9rem; color: var(--text); margin-bottom: 4px; }
.notif-item-full.unread .notif-msg { font-weight: 600; }

/* ── Order Detail ────────────────────────────────────────────── */
.order-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 20px; }
.order-info-card { padding: 20px; }
.info-rows { display: flex; flex-direction: column; gap: 10px; }
.info-row { display: flex; gap: 16px; font-size: 0.875rem; }
.info-row span { color: var(--text-muted); width: 130px; flex-shrink: 0; }
.info-row strong { color: var(--text); }

/* ── Formulary ────────────────────────────────────────────────── */
.formulary-controls { display: flex; align-items: center; gap: 12px; flex-wrap: nowrap; margin-bottom: 12px; }
.formulary-controls .search-wrap { flex: 1 1 auto; }
.formulary-controls .search-input { padding: 13px 18px; font-size: 0.95rem; }
.cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.cat-tab { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--border); background: #fff; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .2s; white-space: nowrap; }
.cat-tab:hover { border-color: var(--navy-500); color: var(--navy-500); }
.cat-tab.active { background: var(--navy-500); border-color: var(--navy-500); color: #fff; }
.formulary-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 20px; }
.drug-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 0; overflow: hidden; cursor: pointer; transition: all .22s; display: flex; flex-direction: column; }
.drug-card:hover { border-color: var(--navy-500); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.drug-card-img { width: 100%; height: 160px; overflow: hidden; flex-shrink: 0; position: relative; background: #F0F3F7; display: flex; align-items: center; justify-content: center; }
.drug-card-img img { width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; transform: scale(1.5); transition: transform .3s; }
.drug-card:hover .drug-card-img img { transform: scale(1.57); }
.drug-card-img.img-error { background: #F0F3F7; }
.drug-card-img.img-error::after { content: '💊'; font-size: 2.5rem; }
.drug-card-placeholder { flex-direction: column; gap: 6px; }
.drug-placeholder-icon { font-size: 2.5rem; line-height: 1; }
.drug-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; flex: 1; }
.drug-card-header { margin-bottom: 6px; }
.drug-cat-badge { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--navy-500); background: var(--navy-100); padding: 2px 8px; border-radius: 4px; }
.drug-name { font-size: 0.95rem; font-weight: 700; color: var(--navy-800); margin-bottom: 4px; line-height: 1.3; }
.drug-strength { font-size: 0.8rem; color: var(--text-muted); }
.drug-form     { font-size: 0.8rem; color: var(--text-muted); }
.drug-footer   { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--border); }
.drug-price    { font-weight: 800; color: var(--navy-500); font-size: 1.05rem; }
.drug-add-btn  { font-size: 0.78rem; color: var(--navy-500); font-weight: 700; }

/* Drug detail modal */
.drug-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.detail-col { display: flex; flex-direction: column; gap: 10px; }
.detail-row { display: flex; gap: 12px; align-items: center; font-size: 0.875rem; }
.detail-label { color: var(--text-muted); width: 100px; flex-shrink: 0; font-weight: 600; }
.detail-val   { color: var(--text); font-weight: 600; }
.price-val    { color: var(--navy-500); font-size: 1.1rem; font-weight: 800; }
.detail-desc  { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }

/* ── Order Wizard ─────────────────────────────────────────────── */
.wizard-steps { display: flex; align-items: center; margin-bottom: 28px; flex-wrap: wrap; gap: 4px; }
.wizard-step  { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; font-weight: 600; color: var(--text-muted); padding: 6px 0; }
.wizard-step .step-num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.8rem; transition: all .2s; flex-shrink: 0; }
.wizard-step.active .step-num { background: var(--navy-500); border-color: var(--navy-500); color: #fff; }
.wizard-step.active .step-label { color: var(--navy-800); }
.wizard-step.completed .step-num { background: var(--green); border-color: var(--green); color: #fff; }
.wizard-connector { flex: 1; height: 2px; background: var(--border); min-width: 20px; max-width: 60px; }
.wizard-panel { display: none; }
.wizard-panel.active { display: block; }
.wizard-card  { padding: 28px; }
.wizard-panel-title { font-size: 1.25rem; margin-bottom: 20px; }
.wizard-nav   { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.panel-desc   { color: var(--text-muted); margin-bottom: 20px; }

/* Medication search in wizard */
.med-search-row { display: grid; grid-template-columns: 1fr 200px; gap: 12px; margin-bottom: 16px; }
.med-results-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; max-height: 340px; overflow-y: auto; padding: 4px 0; }
.med-search-card { border: 1.5px solid var(--border); border-radius: var(--radius); padding: 12px; cursor: pointer; font-size: 0.825rem; transition: all .2s; background: #fff; }
.med-search-card:hover { border-color: var(--navy-500); }
.med-search-card.selected { border-color: var(--navy-500); background: #f0f7ff; }
.med-cat-badge { display: block; font-size: 0.68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--navy-500); font-weight: 700; margin-bottom: 4px; }
.med-search-card strong { display: block; color: var(--navy-800); line-height: 1.3; margin-bottom: 2px; }
.med-strength, .med-form { display: block; color: var(--text-muted); font-size: 0.78rem; }
.med-price { display: block; color: var(--navy-500); font-weight: 700; margin-top: 6px; }
.med-add   { color: var(--navy-500); font-size: 0.75rem; font-weight: 700; }
.med-check { color: var(--green); font-size: 0.75rem; font-weight: 700; }

.selected-meds-list { display: flex; flex-direction: column; gap: 10px; }
.selected-med-row { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: var(--bg); border-radius: var(--radius); border: 1px solid var(--border); }
.sel-med-info { flex: 1; display: flex; align-items: center; gap: 12px; }
.sel-med-info strong { color: var(--navy-800); font-size: 0.9rem; }
.sel-med-info span { color: var(--text-muted); font-size: 0.8rem; }
.sel-med-controls { display: flex; align-items: center; gap: 8px; }
.qty-input { width: 60px; text-align: center; padding: 6px 8px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; }
.remove-btn  { background: none; border: none; cursor: pointer; color: var(--red); font-size: 1rem; padding: 4px; }
.btn-icon    { padding: 4px 8px; }

/* Dosage step */
.dosage-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 14px; }
.dosage-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.dosage-sub { color: var(--text-muted); font-size: 0.8rem; }

/* Signature */
.sig-wrap { background: var(--bg); border: 2px dashed var(--border); border-radius: var(--radius); padding: 12px; margin-bottom: 12px; }
#sigCanvas { display: block; background: #fff; border-radius: 4px; cursor: crosshair; max-width: 100%; touch-action: none; }
.sig-controls { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.sig-label { font-size: 0.8rem; color: var(--text-muted); }

/* Review */
.review-section { margin-bottom: 24px; }
.review-heading { font-family: 'DM Sans', sans-serif; font-size: 0.875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 12px; }
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rv-row { display: flex; gap: 10px; font-size: 0.875rem; padding: 6px 0; border-bottom: 1px solid var(--border); }
.rv-row span { color: var(--text-muted); width: 110px; flex-shrink: 0; }

/* ── Filter Bar ───────────────────────────────────────────────── */
.filter-bar { margin-bottom: 16px; }
.filter-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-input  { flex: 1; min-width: 200px; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; background: #fff; }
.filter-select { padding: 8px 12px; border: 1.5px solid var(--border); border-radius: var(--radius); font-size: 0.875rem; background: #fff; }

/* ── Settings ─────────────────────────────────────────────────── */
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.settings-card { padding: 24px; }

/* ── Auth Pages ───────────────────────────────────────────────── */
.auth-page { background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-800) 100%); }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }

/* Left panel */
.auth-panel-left { padding: 48px 56px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-logo a { text-decoration: none; }
.logo-text { color: #fff; font-family: 'DM Serif Display', serif; font-size: 1.3rem; line-height: 1.3; }
.auth-logo-img { max-height: 60px; width: auto; object-fit: contain; }
.auth-hero-content { flex: 1; padding: 48px 0; }
.auth-hero-content h1 { font-family: 'DM Serif Display', serif; font-size: 2.8rem; color: #fff; margin-bottom: 16px; }
.auth-hero-content > p { color: rgba(255,255,255,0.7); font-size: 1.05rem; margin-bottom: 32px; }
.auth-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.auth-features li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.feat-icon { font-size: 1.1rem; }
.auth-panel-footer { color: rgba(255,255,255,0.35); font-size: 0.75rem; }
.states-map-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .09em; color: rgba(255,255,255,.45); margin-bottom: 6px; }
.states-map-svg { width: 100%; max-width: 370px; display: block; }
.states-map-abbr { margin-top: 6px; font-size: .68rem; color: rgba(255,255,255,.4); letter-spacing: .03em; }

/* Right panel */
.auth-panel-right { background: #fff; display: flex; align-items: center; justify-content: center; padding: 48px 40px; }
.auth-form-wrap { width: 100%; max-width: 420px; }
.auth-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 28px; }
.auth-tab { padding: 10px 16px; border: none; background: none; cursor: pointer; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); border-bottom: 2px solid transparent; transition: all .2s; margin-bottom: -1px; text-decoration: none; }
.auth-tab.active, .auth-tab:hover { color: var(--navy-500); border-bottom-color: var(--navy-500); }
.auth-form-wrap h2 { font-family: 'DM Serif Display', serif; font-size: 1.8rem; color: var(--navy-800); margin-bottom: 4px; }
.auth-sub { color: var(--text-muted); margin-bottom: 24px; }
.auth-form { margin-bottom: 20px; }
.input-with-icon { position: relative; }
.input-with-icon input { width: 100%; }
.toggle-pw { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 1rem; color: var(--text-muted); }
.forgot-link { float: right; font-size: 0.8rem; font-weight: 400; color: var(--navy-500); }
.auth-divider { text-align: center; margin: 20px 0 14px; font-size: 0.8rem; color: var(--text-muted); position: relative; }
.auth-divider::before { content:''; position: absolute; top: 50%; left: 0; right: 0; height: 1px; background: var(--border); z-index: 0; }
.auth-divider span, .auth-divider { z-index: 1; }
.auth-help { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 20px; line-height: 1.7; }

/* Apply page */
.page-topbar { background: var(--navy-800); padding: 12px 32px; display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,0.7); font-size: 0.875rem; }
.topbar-logo { color: #fff; font-weight: 700; font-family: 'DM Serif Display', serif; font-size: 1rem; }
.topbar-sep  { color: rgba(255,255,255,0.3); }
.topbar-login { margin-left: auto; color: rgba(174,207,237,0.85); font-weight: 600; }
.apply-wrap  { max-width: 940px; margin: 0 auto; padding: 40px 24px; }
.apply-header { text-align: center; margin-bottom: 36px; }
.apply-badge  { display: inline-block; background: var(--navy-100); color: var(--navy-500); font-size: 0.8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 14px; border-radius: 999px; margin-bottom: 16px; }
.apply-header h1 { font-size: 2.2rem; color: var(--navy-800); margin-bottom: 10px; }
.apply-form  { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.form-section { padding: 28px 32px; border-bottom: 1px solid var(--border); }
.form-section:last-child { border-bottom: none; }
.section-heading { display: flex; align-items: center; gap: 12px; font-family: 'DM Sans', sans-serif; font-size: 1rem; font-weight: 700; color: var(--navy-800); margin-bottom: 20px; }
.section-num { width: 28px; height: 28px; background: var(--navy-500); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 0.85rem; font-weight: 800; flex-shrink: 0; }
.apply-submit { padding: 28px 32px; text-align: center; background: var(--bg); border-top: 1px solid var(--border); }
.submit-note { margin-top: 10px; color: var(--text-muted); font-size: 0.8rem; }
.apply-success-card { background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 48px; text-align: center; }
.success-icon { width: 64px; height: 64px; background: #f0fdf4; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 20px; color: var(--green); }

/* ── Modals ───────────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; backdrop-filter: blur(2px); }
.modal { background: #fff; border-radius: 16px; box-shadow: 0 24px 80px rgba(0,0,0,0.25); width: 100%; max-width: 480px; overflow: hidden; animation: modalIn .2s ease; }
.modal-lg { max-width: 680px; }
.modal h3 { font-family: 'DM Serif Display', serif; font-size: 1.3rem; color: var(--navy-800); margin-bottom: 12px; padding: 24px 24px 0; }
.modal > p { color: var(--text-muted); padding: 0 24px 16px; font-size: 0.9rem; }
.modal .form-group { padding: 0 24px; margin-bottom: 12px; }
.modal-actions { display: flex; gap: 10px; padding: 16px 24px 24px; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px 16px; border-bottom: 1px solid var(--border); }
.modal-header h3 { margin: 0; padding: 0; }
.modal-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: var(--text-muted); padding: 4px; }
.modal-body { padding: 20px 24px; max-height: 60vh; overflow-y: auto; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--border); display: flex; gap: 10px; }
.text-center { text-align: center; }
@keyframes modalIn { from { opacity:0; transform:scale(.95) translateY(10px); } to { opacity:1; transform:none; } }

/* ── Misc ────────────────────────────────────────────────────── */
.text-blue  { color: var(--navy-500); }
.text-danger{ color: var(--red); }
.text-muted { color: var(--text-muted); }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .dashboard-grid { grid-template-columns: 1fr; }
  .order-detail-grid { grid-template-columns: 1fr; }
  .settings-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --sidebar-w: 0px; }
  .portal-sidebar { transform: translateX(-260px); width: 260px; }
  .portal-sidebar.open { transform: translateX(0); }
  .portal-main { margin-left: 0; }
  .topbar-menu-btn { display: flex; }
  .sidebar-close { display: block; }
  .sidebar-overlay.open { display: block; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-panel-left { display: none; }
  .auth-panel-right { padding: 32px 24px; min-height: 100vh; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .form-grid-2 .span-2 { grid-column: span 1; }
  .wizard-step .step-label { display: none; }
  .wizard-connector { min-width: 8px; }
  .med-search-row { grid-template-columns: 1fr; }
  .portal-content { padding: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .page-header { flex-direction: column; }
  .drug-detail-grid { grid-template-columns: 1fr; }
}

@media print {
  .portal-sidebar, .portal-topbar, .page-header-actions, .wizard-nav { display: none !important; }
  .portal-main { margin-left: 0; }
  .portal-content { padding: 0; }
}

/* ================================================================
   PROFESSIONAL DESIGN ENHANCEMENTS — v2
   ================================================================ */

/* ── Enhanced Variables ──────────────────────────────────────── */
:root {
  --grad-primary:  linear-gradient(135deg, #1E6BB8 0%, #153560 100%);
  --grad-sidebar:  linear-gradient(180deg, #07121F 0%, #0F2A4A 100%);
  --grad-gold:     linear-gradient(135deg, #C9973A 0%, #E8C068 100%);
  --gold-glow:     rgba(201,151,58,0.35);
  --blue-glow:     rgba(30,107,184,0.20);
  --shadow-blue:   0 4px 18px rgba(30,107,184,0.22);
  --shadow-gold:   0 4px 18px rgba(201,151,58,0.28);
}

/* ── Sidebar Upgrade ─────────────────────────────────────────── */
.portal-sidebar {
  background: var(--grad-sidebar);
  box-shadow: 4px 0 28px rgba(0,0,0,0.22);
  border-right: none;
}
.sidebar-nav li a {
  position: relative;
  transition: background .18s, color .18s, padding-left .18s, transform .18s;
}
.sidebar-nav li.active a {
  background: linear-gradient(90deg, rgba(201,151,58,0.20) 0%, rgba(30,107,184,0.24) 100%);
  border-left: 3px solid var(--gold);
  padding-left: 7px;
  color: #fff;
}
.sidebar-nav li a:hover {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  transform: translateX(2px);
}
.clinic-avatar {
  background: linear-gradient(135deg, var(--navy-600), var(--navy-700));
  box-shadow: 0 2px 8px rgba(0,0,0,0.28);
}

/* ── Topbar Upgrade ──────────────────────────────────────────── */
.portal-topbar {
  box-shadow: 0 1px 14px rgba(15,42,74,0.08);
  border-bottom: 1px solid rgba(232,239,246,0.9);
}

/* ── Button Upgrades ─────────────────────────────────────────── */
.btn-primary {
  background: var(--grad-primary);
  box-shadow: var(--shadow-blue);
  letter-spacing: 0.015em;
}
.btn-primary:hover {
  background: linear-gradient(135deg, #153560 0%, #0F2A4A 100%);
  box-shadow: 0 8px 26px rgba(30,107,184,0.34);
  transform: translateY(-1px);
  color: #fff;
}
.btn-gold {
  background: var(--grad-gold);
  color: #fff;
  border: none;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover {
  background: linear-gradient(135deg, #B8862A, #C9973A);
  box-shadow: 0 6px 22px rgba(201,151,58,0.42);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Card Upgrades ───────────────────────────────────────────── */
.card {
  transition: border-color .25s, box-shadow .25s, transform .22s;
}
.card:hover {
  border-color: rgba(30,107,184,0.22);
  box-shadow: 0 10px 36px rgba(15,42,74,0.11);
}

/* ── Stat Cards ──────────────────────────────────────────────── */
.stat-card {
  position: relative;
  overflow: hidden;
  transition: transform .22s, box-shadow .22s;
}
.stat-card::after {
  content: '';
  position: absolute;
  top: -18px; right: -18px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,107,184,0.06) 0%, transparent 70%);
  pointer-events: none;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: 0 14px 38px rgba(15,42,74,0.13); }
.stat-icon { border-radius: 14px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.65); }
.stat-blue   { background: linear-gradient(135deg, #dbeafe, #eff6ff); }
.stat-gold   { background: linear-gradient(135deg, #fef3c7, #fefce8); }
.stat-green  { background: linear-gradient(135deg, #dcfce7, #f0fdf4); }
.stat-navy   { background: linear-gradient(135deg, #dbeafe, #e8f0fb); }
.stat-purple { background: linear-gradient(135deg, #ede9fe, #f5f3ff); }

/* ── Drug Cards ──────────────────────────────────────────────── */
.drug-card { transition: border-color .2s, box-shadow .22s, transform .2s; }
.drug-card:hover {
  border-color: rgba(30,107,184,0.32);
  box-shadow: 0 12px 32px rgba(15,42,74,0.13);
  transform: translateY(-3px);
}
.drug-cat-badge {
  background: linear-gradient(135deg, #e6f0fb, #dbeafe);
  color: var(--navy-700);
}

/* ── Page Title Gradient ─────────────────────────────────────── */
.page-title {
  background: linear-gradient(135deg, var(--navy-800) 10%, var(--navy-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Wizard Steps ────────────────────────────────────────────── */
.wizard-step.active .step-num {
  background: var(--grad-primary);
  box-shadow: 0 2px 10px var(--blue-glow);
}
.wizard-step.completed .step-num {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

/* ── Quick Actions ───────────────────────────────────────────── */
.quick-action {
  transition: all .2s;
}
.quick-action:hover {
  border-color: var(--navy-400);
  background: linear-gradient(135deg, #f8fbff, #f0f7ff);
  color: var(--navy-600);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(30,107,184,0.11);
}

/* ── Modal Upgrade ───────────────────────────────────────────── */
.modal {
  box-shadow: 0 32px 80px rgba(0,0,0,0.26);
}
.modal-overlay { backdrop-filter: blur(3px); }

/* ── Auth Page — Left Panel ──────────────────────────────────── */
.auth-page {
  background:
    radial-gradient(ellipse 65% 55% at 18% 38%, rgba(30,107,184,0.28) 0%, transparent 58%),
    radial-gradient(ellipse 48% 42% at 76% 82%, rgba(201,151,58,0.12) 0%, transparent 60%),
    linear-gradient(148deg, #050D1A 0%, #0C1D36 44%, #0F2A4A 100%);
}

.auth-panel-left { position: relative; overflow: hidden; }

.auth-panel-left::before {
  content: '';
  position: absolute;
  top: -100px; right: -70px;
  width: 360px; height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201,151,58,0.10) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.auth-panel-left::after {
  content: '';
  position: absolute;
  bottom: 60px; left: -90px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,107,184,0.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.auth-logo, .auth-hero-content, .auth-panel-footer { position: relative; z-index: 1; }

/* Gold-white gradient heading */
.auth-hero-content h1 {
  background: linear-gradient(135deg, #ffffff 25%, #E8C068 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 2.9rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

/* Feature list polish */
.auth-features { gap: 9px; }
.auth-features li {
  padding: 9px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  transition: background .2s, border-color .2s, transform .2s;
  cursor: default;
}
.auth-features li:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(201,151,58,0.28);
  transform: translateX(3px);
}
.feat-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(201,151,58,0.16);
  border-radius: 7px;
  flex-shrink: 0;
  font-size: 0.95rem;
}

/* ── Auth Page — Right Panel ─────────────────────────────────── */
.auth-panel-right {
  background: linear-gradient(174deg, #ffffff 0%, #F5F8FD 100%);
}
.auth-form-wrap h2 {
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-500) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.auth-form .btn-primary {
  padding: 13px 18px;
  font-size: 0.95rem;
  letter-spacing: 0.03em;
}

/* ── Map Section ─────────────────────────────────────────────── */
.states-map-svg {
  filter: drop-shadow(0 4px 18px rgba(0,0,0,0.45));
  overflow: visible;
}
.states-map-label {
  font-weight: 600;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.48);
}
.states-map-abbr {
  color: rgba(201,151,58,0.75);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  margin-top: 8px;
}

/* ── Apply Page Topbar ───────────────────────────────────────── */
.page-topbar {
  background: linear-gradient(90deg, #050D1A 0%, #0F2A4A 100%);
  box-shadow: 0 2px 14px rgba(0,0,0,0.22);
}

/* ── Scrollbar Polish ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--navy-300), var(--navy-400));
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--navy-400); }

/* ================================================================
   ELEVATED v3 — navy header bands, refined cards, type & states
   Appended last so it cleanly overrides earlier rules.
   Contrast rules baked in: on navy → white / light-gold / light-blue;
   deeper gold (#C9973A) only for borders + accents on light, never small text.
   ================================================================ */

/* Cards — rounder corners, softer-but-deeper layered shadow */
.card {
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(15,42,74,0.05), 0 14px 40px rgba(15,42,74,0.08);
}
.card:hover {
  box-shadow: 0 1px 2px rgba(15,42,74,0.06), 0 18px 50px rgba(15,42,74,0.12);
}
/* Softer, rounder edges throughout */
.stat-card, .modal, .drug-card { border-radius: 18px; }
.btn, .btn-primary, .btn-outline, .btn-ghost, .btn-sm { border-radius: 11px; }
.form-group input, .form-group select, .form-group textarea,
input:not([type=checkbox]):not([type=radio]), select, textarea { border-radius: 11px; }
.badge, .status-badge, .pill { border-radius: 999px; }

/* Small section headings → clean DM Sans (page titles/h1-h2 stay serif) */
h3, h4 { font-family: 'DM Sans', system-ui, sans-serif; font-weight: 600; letter-spacing: -0.01em; }

/* Navy header band for data-card / section headers.
   Usage: place as the FIRST child of a .card (which must have no own padding):
   <div class="card"><div class="section-band"><h3>Title</h3><span class="meta">…</span></div><div class="card-body">…</div></div> */
.section-band {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  background: linear-gradient(100deg, var(--navy-800), var(--navy-600));
  padding: 14px 22px;
}
.section-band h1, .section-band h2, .section-band h3, .section-band h4 {
  color: #fff; -webkit-text-fill-color: #fff;
  margin: 0; font-family: 'DM Sans', sans-serif; font-weight: 600; font-size: 1rem;
}
.section-band .meta { color: var(--gold-lt); font-size: 0.8rem; font-weight: 600; }
.section-band .band-actions { display: flex; gap: 8px; align-items: center; }
.section-band a, .section-band .card-link, .section-band button.card-link {
  color: var(--gold-lt); -webkit-text-fill-color: var(--gold-lt);
  background: none; border: none; cursor: pointer; font-weight: 600;
}
.section-band a:hover, .section-band .card-link:hover { color: #fff; -webkit-text-fill-color: #fff; }
.card-body { padding: 20px 22px; }

/* Gold tick accent for plain (light) card section titles */
.section-title { display: flex; align-items: center; gap: 9px; }
.section-title::before {
  content: ''; width: 4px; height: 15px; background: var(--gold);
  border-radius: 2px; flex: 0 0 auto;
}

/* Status badges — consistent pill shape + weight everywhere */
.badge, .status-badge {
  display: inline-flex; align-items: center;
  border-radius: 999px; font-weight: 600; font-size: 0.72rem;
  padding: 3px 11px; letter-spacing: .01em; line-height: 1.5;
}

/* Stat cards — subtle gold underline accent */
.stat-card { border-bottom: 2px solid rgba(201,151,58,0.55); }

/* Inputs — keep white, add a friendly focus ring */
.form-group input:focus, .form-group select:focus, .form-group textarea:focus,
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy-500);
  box-shadow: 0 0 0 3px rgba(30,107,184,0.14);
}

/* Primary button — gradient + soft lift */
.btn-primary {
  background: linear-gradient(100deg, var(--navy-500), var(--navy-700));
  box-shadow: 0 2px 10px rgba(30,107,184,0.22);
}
.btn-primary:hover {
  background: linear-gradient(100deg, var(--navy-600), var(--navy-800));
  box-shadow: 0 4px 16px rgba(30,107,184,0.30);
}
