/**
 * Ocean Pharmaceuticals — Shared Shell CSS v1.1
 * Design tokens, reset, nav, footer, buttons, cards, forms, utilities.
 * Import on every page BEFORE page-specific styles.
 */

/* ── GOOGLE FONTS ────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── DESIGN TOKENS ───────────────────────────────────────────────────────────── */
:root {
  /* Brand colours */
  --ocean:       #0077B6;
  --ocean-dark:  #005f92;
  --ocean-light: #e0f2fe;
  --sky:         #5BBCE8;
  --sky-dark:    #3da8d9;
  --navy:        #023E5C;
  --navy-dark:   #012a3e;
  --mist:        #EAF6FC;
  --white:       #FFFFFF;

  /* Semantic colours */
  --text:        #111827;
  --text-muted:  #6B7280;
  --text-light:  #9CA3AF;
  --border:      #D1E9F4;
  --border-dark: #A8D4EA;
  --bg:          #F8FAFC;
  --bg-card:     #FFFFFF;

  /* Status */
  --success:     #059669;
  --success-bg:  #ECFDF5;
  --warning:     #D97706;
  --warning-bg:  #FFFBEB;
  --danger:      #DC2626;
  --danger-bg:   #FEF2F2;
  --info:        #0077B6;
  --info-bg:     #EAF6FC;

  /* Shape */
  --radius:      12px;
  --radius-sm:   8px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-pill: 999px;

  /* Spacing */
  --space-xs:  4px;
  --space-sm:  8px;
  --space-md:  16px;
  --space-lg:  24px;
  --space-xl:  32px;
  --space-2xl: 48px;
  --space-3xl: 64px;

  /* Typography */
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;
  --font-mono:    'Courier New', Courier, monospace;

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow:     0 4px 16px rgba(2,62,92,.08), 0 1px 4px rgba(0,0,0,.04);
  --shadow-md:  0 8px 24px rgba(2,62,92,.12);
  --shadow-lg:  0 16px 40px rgba(2,62,92,.16);
  --shadow-xl:  0 24px 56px rgba(2,62,92,.20);

  /* Nav */
  --nav-h: 68px;

  /* Transition */
  --ease: cubic-bezier(.4,0,.2,1);
  --dur:  .2s;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg, video { display: block; max-width: 100%; }
a { color: var(--ocean); text-decoration: none; }
a:hover { text-decoration: underline; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
ul, ol { list-style: none; }
input, textarea, select { font-family: inherit; font-size: inherit; }
hr { border: none; border-top: 1px solid var(--border); }

/* ── TYPOGRAPHY ──────────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
}
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

p { margin-bottom: .75rem; }
p:last-child { margin-bottom: 0; }

/* ── UTILITY CLASSES ─────────────────────────────────────────────────────────── */
.hidden      { display: none !important; }
.sr-only     { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.text-muted  { color: var(--text-muted); }
.text-ocean  { color: var(--ocean); }
.text-navy   { color: var(--navy); }
.text-white  { color: var(--white); }
.text-success{ color: var(--success); }
.text-danger { color: var(--danger); }
.text-sm     { font-size: .875rem; }
.text-xs     { font-size: .75rem; }
.font-bold   { font-weight: 700; }
.font-semi   { font-weight: 600; }
.container   { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--space-lg); }
.flex        { display: flex; }
.flex-col    { flex-direction: column; }
.items-center{ align-items: center; }
.justify-between { justify-content: space-between; }
.gap-sm      { gap: var(--space-sm); }
.gap-md      { gap: var(--space-md); }
.gap-lg      { gap: var(--space-lg); }
.mt-sm       { margin-top: var(--space-sm); }
.mt-md       { margin-top: var(--space-md); }
.mt-lg       { margin-top: var(--space-lg); }
.mb-sm       { margin-bottom: var(--space-sm); }
.mb-md       { margin-bottom: var(--space-md); }
.mb-lg       { margin-bottom: var(--space-lg); }
.w-full      { width: 100%; }
.truncate    { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ── NAVIGATION ──────────────────────────────────────────────────────────────── */
.ocean-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  height: var(--nav-h);
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 0 var(--space-lg);
  max-width: 1280px;
  margin: 0 auto;
  gap: var(--space-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-brand img { height: 40px; width: auto; }
.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.nav-brand-text .brand-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1rem;
  color: var(--ocean);
}
.nav-brand-text .brand-sub {
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .04em;
  text-transform: uppercase;
}

#nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
#nav-links a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
#nav-links a:hover { color: var(--ocean); background: var(--mist); }
#nav-links a.active { color: var(--ocean); font-weight: 600; background: var(--ocean-light); }

.nav-util {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-shrink: 0;
}
.nav-util a {
  font-size: .875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.nav-util a:hover { color: var(--ocean); }

#nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}
#nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform .25s var(--ease), opacity .2s;
}

@media (max-width: 1024px) {
  #nav-toggle { display: flex; }

  #nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-md);
    gap: 4px;
    max-height: calc(100vh - var(--nav-h));
    overflow-y: auto;
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s var(--ease), transform .2s var(--ease);
  }
  #nav-links.open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
  }
  #nav-links a {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 1rem;
  }

  .nav-util { display: none; }
}

/* ── FOOTER ──────────────────────────────────────────────────────────────────── */
.ocean-footer {
  background: var(--navy);
  color: rgba(255,255,255,.75);
  padding: var(--space-3xl) 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  padding: 0 var(--space-lg);
  max-width: 1280px;
  margin: 0 auto;
}
.footer-brand .brand-logo { height: 48px; margin-bottom: var(--space-md); }
.footer-brand p { font-size: .9rem; line-height: 1.7; max-width: 280px; }
.footer-col h4 {
  color: var(--white);
  font-family: var(--font-display);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--space-md);
}
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col ul a {
  color: rgba(255,255,255,.65);
  font-size: .9rem;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.footer-col ul a:hover { color: var(--sky); text-decoration: none; }

.footer-compliance {
  margin-top: var(--space-2xl);
  border-top: 1px solid rgba(255,255,255,.1);
  padding: var(--space-lg);
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-sm);
  font-size: .8rem;
  color: rgba(255,255,255,.45);
}
.footer-compliance a { color: rgba(255,255,255,.55); transition: color var(--dur) var(--ease); }
.footer-compliance a:hover { color: var(--sky); text-decoration: none; }
.footer-badges { display: flex; gap: var(--space-sm); flex-wrap: wrap; }
.footer-badge {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-pill);
  padding: 3px 12px;
  font-size: .72rem;
  color: rgba(255,255,255,.6);
  letter-spacing: .04em;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
  .footer-brand { grid-column: 1 / -1; }
  .footer-compliance { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── BUTTONS ─────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  font-family: var(--font-body);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
              transform var(--dur) var(--ease);
  white-space: nowrap;
  -webkit-user-select: none;
  user-select: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled, .btn[disabled] {
  opacity: .5; cursor: not-allowed; pointer-events: none; transform: none;
}

/* Primary — Ocean Blue bg, white text */
.btn-primary {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}
.btn-primary:hover {
  background: var(--ocean-dark);
  border-color: var(--ocean-dark);
  box-shadow: 0 4px 16px rgba(0,119,182,.35);
  color: var(--white);
}

/* Navy — Deep Navy bg, white text */
.btn-navy {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.btn-navy:hover {
  background: var(--navy-dark);
  border-color: var(--navy-dark);
  box-shadow: 0 4px 16px rgba(2,62,92,.35);
  color: var(--white);
}

/* Outline — transparent bg, Ocean border */
.btn-outline {
  background: transparent;
  color: var(--ocean);
  border-color: var(--ocean);
}
.btn-outline:hover {
  background: var(--mist);
  color: var(--ocean-dark);
}

/* Ghost — subtle, no border */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg);
  color: var(--text);
}

/* White — for dark backgrounds */
.btn-white {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}
.btn-white:hover {
  background: var(--mist);
  color: var(--ocean);
}

/* WhatsApp */
.btn-wa {
  background: #25D366;
  color: var(--white);
  border-color: #25D366;
}
.btn-wa:hover {
  background: #1da851;
  border-color: #1da851;
  box-shadow: 0 4px 16px rgba(37,211,102,.35);
  color: var(--white);
}

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

/* Sizes */
.btn-sm { padding: 7px 14px; font-size: .8125rem; }
.btn-lg { padding: 14px 28px; font-size: 1.0625rem; }
.btn-xl { padding: 16px 36px; font-size: 1.125rem; border-radius: var(--radius); }
.btn-icon { padding: 10px; border-radius: var(--radius-sm); }
.btn-block { width: 100%; }

/* Loading state */
.btn.loading { position: relative; color: transparent !important; pointer-events: none; }
.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}

/* ── CARDS ───────────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.card-body  { padding: var(--space-lg); }
.card-header {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.card-header h3, .card-header h4 { margin: 0; }
.card-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  background: var(--bg);
}

/* Stat card */
.stat-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}
.stat-card .stat-label { font-size: .8125rem; color: var(--text-muted); font-weight: 500; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--navy); font-family: var(--font-display); line-height: 1; }
.stat-card .stat-sub   { font-size: .8125rem; color: var(--text-muted); }
.stat-card .stat-icon  {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.25rem;
  background: var(--mist);
  color: var(--ocean);
  margin-bottom: 4px;
}

/* ── BADGES ──────────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.badge-ocean   { background: var(--ocean-light); color: var(--ocean-dark); }
.badge-navy    { background: rgba(2,62,92,.1);   color: var(--navy); }
.badge-success { background: var(--success-bg);  color: var(--success); }
.badge-warning { background: var(--warning-bg);  color: var(--warning); }
.badge-danger  { background: var(--danger-bg);   color: var(--danger); }
.badge-muted   { background: #F3F4F6;            color: var(--text-muted); }
.badge-sky     { background: rgba(91,188,232,.15); color: var(--navy); }

/* Pulse dot */
.pulse-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  position: relative;
}
.pulse-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--success);
  opacity: .35;
  animation: pulse-ring 1.4s ease-out infinite;
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .35; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* ── ALERTS ──────────────────────────────────────────────────────────────────── */
.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-md);
  border-radius: var(--radius-sm);
  font-size: .9rem;
  border-left: 4px solid transparent;
}
.alert-info    { background: var(--info-bg);    border-color: var(--info);    color: var(--navy); }
.alert-success { background: var(--success-bg); border-color: var(--success); color: #065f46; }
.alert-warning { background: var(--warning-bg); border-color: var(--warning); color: #92400e; }
.alert-danger  { background: var(--danger-bg);  border-color: var(--danger);  color: #991b1b; }
.alert-icon    { font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.alert-body    { flex: 1; }
.alert-title   { font-weight: 700; margin-bottom: 2px; }

/* ── TABS ────────────────────────────────────────────────────────────────────── */
.tab-bar {
  display: flex;
  border-bottom: 2px solid var(--border);
  gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 10px 18px;
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tab-btn:hover { color: var(--ocean); }
.tab-btn.active { color: var(--ocean); border-bottom-color: var(--ocean); font-weight: 600; }

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Pill tabs */
.tab-bar-pills {
  display: flex;
  gap: var(--space-xs);
  flex-wrap: wrap;
}
.tab-bar-pills .tab-btn {
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  padding: 7px 16px;
  margin: 0;
}
.tab-bar-pills .tab-btn.active {
  background: var(--ocean);
  color: var(--white);
  border-color: var(--ocean);
}

/* ── MODALS ──────────────────────────────────────────────────────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
  backdrop-filter: blur(4px);
}
.modal-backdrop.hidden { display: none; }

.modal-box {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  animation: modal-in .2s var(--ease);
}
.modal-box-lg { max-width: 680px; }
.modal-box-xl { max-width: 900px; }

@keyframes modal-in {
  from { transform: translateY(16px) scale(.97); opacity: 0; }
  to   { transform: translateY(0) scale(1);      opacity: 1; }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-lg);
  border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 1.125rem; margin: 0; }

.modal-close {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  background: none; border: none; cursor: pointer;
  color: var(--text-muted);
  font-size: 1.25rem;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.modal-close:hover { background: var(--bg); color: var(--text); }

.modal-body   { padding: var(--space-lg); }
.modal-footer {
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: var(--space-sm);
  background: var(--bg);
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* ── FORMS ───────────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: var(--space-md); }
.form-label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.form-label .req { color: var(--danger); margin-left: 2px; }

.form-control {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius-sm);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  outline: none;
}
.form-control:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(0,119,182,.15);
}
.form-control::placeholder { color: var(--text-light); }
.form-control:disabled { background: var(--bg); cursor: not-allowed; opacity: .7; }

.form-control.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(220,38,38,.1);
}
.form-hint  { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: .8rem; color: var(--danger);     margin-top: 4px; }

select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236B7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; padding-right: 36px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-md); }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.input-group { position: relative; display: flex; }
.input-group .form-control { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-group .btn           { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; flex-shrink: 0; }
.input-prefix, .input-suffix {
  display: flex; align-items: center;
  padding: 0 12px;
  background: var(--bg);
  border: 1.5px solid var(--border-dark);
  font-size: .9rem;
  color: var(--text-muted);
}
.input-prefix { border-right: none; border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.input-suffix { border-left:  none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.input-prefix ~ .form-control { border-left: none; border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }

/* Checkbox / Radio */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  cursor: pointer;
  font-size: .9rem;
}
.check-row input[type="checkbox"],
.check-row input[type="radio"] {
  width: 18px; height: 18px;
  accent-color: var(--ocean);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

/* OTP inputs */
.otp-row { display: flex; gap: var(--space-sm); justify-content: center; }
.otp-input {
  width: 52px; height: 56px;
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  border: 2px solid var(--border-dark);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.otp-input:focus {
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(0,119,182,.15);
}
@media (max-width: 400px) { .otp-input { width: 42px; height: 48px; font-size: 1.25rem; } }

/* ── DATA TABLES ─────────────────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table.data-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.data-table th {
  padding: 12px 16px;
  text-align: left;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--mist); }
.data-table .col-right { text-align: right; }

/* ── STEP INDICATOR ──────────────────────────────────────────────────────────── */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: var(--space-xl);
  overflow-x: auto;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  text-align: center;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 16px;
  left: calc(50% + 16px);
  right: calc(-50% + 16px);
  height: 2px;
  background: var(--border);
}
.step.done::after  { background: var(--ocean); }
.step.active::after { background: var(--border); }

.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8125rem;
  font-weight: 700;
  background: var(--border);
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  flex-shrink: 0;
}
.step.done   .step-num { background: var(--ocean);  color: var(--white); }
.step.active .step-num { background: var(--navy);   color: var(--white); box-shadow: 0 0 0 4px var(--ocean-light); }

.step-label {
  margin-top: 8px;
  font-size: .78rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  white-space: nowrap;
}
.step.active .step-label { color: var(--navy); font-weight: 700; }
.step.done   .step-label { color: var(--ocean); }

/* ── SPINNER ─────────────────────────────────────────────────────────────────── */
.spinner {
  display: inline-block;
  width: 24px; height: 24px;
  border: 3px solid rgba(0,119,182,.2);
  border-top-color: var(--ocean);
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
.spinner-sm { width: 16px; height: 16px; border-width: 2px; }
.spinner-lg { width: 40px; height: 40px; border-width: 4px; }

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

.loading-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  gap: var(--space-md);
  color: var(--text-muted);
}

/* ── SKELETON ────────────────────────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #F1F5F9 25%, #E2E8F0 50%, #F1F5F9 75%);
  background-size: 200% 100%;
  animation: skeleton-wave 1.5s ease-in-out infinite;
  border-radius: var(--radius-sm);
}
@keyframes skeleton-wave {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.skel-text  { height: .875rem; border-radius: 4px; }
.skel-h2    { height: 1.75rem; border-radius: 6px; }
.skel-btn   { height: 42px; border-radius: var(--radius-sm); }
.skel-card  { height: 120px; border-radius: var(--radius); }
.skel-avatar{ width: 40px; height: 40px; border-radius: 50%; }

/* ── EMPTY STATE ─────────────────────────────────────────────────────────────── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-3xl) var(--space-lg);
  text-align: center;
  color: var(--text-muted);
}
.empty-state .empty-icon {
  font-size: 3rem;
  margin-bottom: var(--space-md);
  opacity: .4;
}
.empty-state h3 { color: var(--text-muted); font-size: 1.125rem; margin-bottom: var(--space-sm); }
.empty-state p  { max-width: 320px; font-size: .9rem; margin-bottom: var(--space-lg); }

/* ── MONIEBOX (payment fallback) ─────────────────────────────────────────────── */
.moniebox {
  background: linear-gradient(135deg, var(--navy) 0%, #034a6e 100%);
  color: var(--white);
  border-radius: var(--radius);
  padding: var(--space-lg);
  margin-top: var(--space-md);
}
.moniebox.hidden { display: none; }
.moniebox-title {
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  margin-bottom: var(--space-sm);
}
.moniebox-acct {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .06em;
  color: var(--sky);
  margin-bottom: 4px;
}
.moniebox-name { font-size: .9rem; color: rgba(255,255,255,.85); }
.moniebox-bank { font-size: .8rem; color: rgba(255,255,255,.55); margin-bottom: var(--space-md); }
.moniebox-ref  { font-size: .8rem; color: rgba(255,255,255,.65); margin-top: var(--space-sm); }
.moniebox-warn {
  font-size: .78rem;
  color: rgba(255,255,255,.5);
  margin-top: var(--space-sm);
  font-style: italic;
}

/* ── SECTION STYLES ──────────────────────────────────────────────────────────── */
.section { padding: var(--space-3xl) 0; }
.section-sm { padding: var(--space-2xl) 0; }
.section-lg { padding: calc(var(--space-3xl) * 1.5) 0; }
.section-mist   { background: var(--mist); }
.section-white  { background: var(--white); }
.section-navy   { background: var(--navy); color: var(--white); }
.section-navy h1, .section-navy h2, .section-navy h3,
.section-navy h4, .section-navy p { color: var(--white); }

.section-header { text-align: center; max-width: 680px; margin: 0 auto var(--space-2xl); }
.section-header .eyebrow {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: var(--space-sm);
}
.section-navy .section-header .eyebrow { color: var(--sky); }
.section-header p { color: var(--text-muted); font-size: 1.0625rem; margin-top: var(--space-sm); }
.section-navy .section-header p { color: rgba(255,255,255,.75); }

/* ── HERO UTILITY ────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #034a6e 50%, #015079 100%);
  color: var(--white);
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero h1, .hero h2, .hero h3, .hero p { color: var(--white); }
.hero .eyebrow { color: var(--sky); }

/* ── GRID UTILITIES ──────────────────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-lg); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-lg); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-lg); }

@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ── BREADCRUMB ──────────────────────────────────────────────────────────────── */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: .8125rem;
  color: var(--text-muted);
  flex-wrap: wrap;
  margin-bottom: var(--space-lg);
}
.breadcrumb a { color: var(--ocean); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border-dark); }
.breadcrumb .current { color: var(--text); font-weight: 500; }

/* ── PROGRESS BAR ────────────────────────────────────────────────────────────── */
.progress { height: 8px; background: var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--ocean) 0%, var(--sky) 100%);
  border-radius: var(--radius-pill);
  transition: width .4s var(--ease);
}
.progress-sm  { height: 4px; }
.progress-lg  { height: 12px; }

/* ── DIVIDER ─────────────────────────────────────────────────────────────────── */
.divider {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  color: var(--text-muted);
  font-size: .8rem;
  margin: var(--space-lg) 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── AVATAR ──────────────────────────────────────────────────────────────────── */
.avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--ocean-light);
  color: var(--ocean);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  font-family: var(--font-display);
  overflow: hidden;
  flex-shrink: 0;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-lg { width: 56px; height: 56px; font-size: 1.125rem; }
.avatar-xl { width: 80px; height: 80px; font-size: 1.5rem; }

/* ── NOTICE / STAGING BANNER ─────────────────────────────────────────────────── */
.staging-notice {
  background: linear-gradient(90deg, #7c3aed 0%, #5b21b6 100%);
  color: #fff;
  text-align: center;
  padding: 8px var(--space-lg);
  font-size: .8125rem;
  font-weight: 600;
  position: relative;
  z-index: 1001;
}
.staging-notice a { color: #e9d5ff; text-decoration: underline; }

/* ── FLOATING CHAT BUTTON ────────────────────────────────────────────────────── */
.float-chat {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-sm);
}
.float-btn {
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.float-btn:hover { transform: scale(1.08); box-shadow: var(--shadow-xl); }
.float-btn-ocean { background: var(--ocean); color: var(--white); }
.float-btn-wa    { background: #25D366;      color: var(--white); }

/* ── ANNOUNCEMENT BAR ────────────────────────────────────────────────────────── */
.announce-bar {
  background: var(--ocean);
  color: var(--white);
  text-align: center;
  padding: 9px var(--space-lg);
  font-size: .875rem;
  font-weight: 500;
}
.announce-bar a { color: var(--white); text-decoration: underline; font-weight: 600; }
.announce-bar .close-bar {
  position: absolute;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(255,255,255,.7);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}

/* ── PRINT ───────────────────────────────────────────────────────────────────── */
@media print {
  .ocean-nav, .ocean-footer, .float-chat, .staging-notice { display: none !important; }
  body { background: #fff; }
  .card { box-shadow: none; border: 1px solid #ddd; }
}
