/* ── Brand palette ──────────────────────────────────────────────────────────── */
:root {
  --navy:       #831843;
  --navy-dark:  #1a0a14;
  --navy-light: #9d174d;
  --gold:       #ec4899;
  --gold-light: #f472b6;
  --gold-pale:  #fce7f3;
  --gray-soft:  #fff0f6;
  --text-muted: #6b7280;
  --green-dot:  #10b981;
  --gray-dot:   #9ca3af;
}

/* ── Base ───────────────────────────────────────────────────────────────────── */
body { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; color: #1a1a2e; background: #fff; }
a { text-decoration: none; }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.sh-navbar { background: var(--navy); box-shadow: 0 2px 16px rgba(27,43,75,.18); padding: .75rem 0; }
.sh-navbar .navbar-brand { font-size: 1.35rem; letter-spacing: -.01em; color: #fff; font-weight: 800; }
.sh-navbar .nav-link { color: rgba(255,255,255,.8); font-weight: 500; }
.sh-navbar .nav-link:hover { color: var(--gold); }

/* ── Buttons ────────────────────────────────────────────────────────────────── */
.btn-navy { background: var(--navy); color: #fff; border: 2px solid var(--navy); }
.btn-navy:hover { background: var(--navy-dark); color: #fff; border-color: var(--navy-dark); }
.btn-gold { background: var(--gold); color: #fff; border: 2px solid var(--gold); font-weight: 700; }
.btn-gold:hover { background: var(--gold-light); border-color: var(--gold-light); color: #fff; }
.btn-outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); font-weight: 600; }
.btn-outline-gold:hover { background: var(--gold); color: #fff; }

/* ── Colors ─────────────────────────────────────────────────────────────────── */
.text-navy { color: var(--navy) !important; }
.text-gold { color: var(--gold) !important; }
.bg-navy   { background: var(--navy) !important; }
.bg-gold   { background: var(--gold) !important; }
.bg-soft   { background: var(--gray-soft) !important; }
.bg-gold-pale { background: var(--gold-pale) !important; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.sh-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  color: #fff; padding: 80px 0 70px; position: relative; overflow: hidden;
}
.sh-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='%23C9A84C' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.sh-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.15; }
.sh-hero .lead { font-size: 1.15rem; opacity: .88; }
.hero-badge {
  display: inline-block; background: rgba(201,168,76,.18); border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-light); padding: .35rem 1rem; border-radius: 50px;
  font-size: .85rem; font-weight: 600; margin-bottom: 1.25rem;
}

/* ── Avatar Grid ────────────────────────────────────────────────────────────── */
.sh-avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.sh-avatar-wrap { position: relative; display: inline-block; }
.sh-avatar {
  width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; color: #fff;
  border: 2.5px solid rgba(255,255,255,.25);
  cursor: default; transition: transform .2s;
}
.sh-avatar:hover { transform: scale(1.08); }
.sh-avatar-photo { object-fit: cover; border: 2.5px solid rgba(255,255,255,.35); }
.sh-status-dot {
  position: absolute; bottom: 2px; right: 2px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid var(--navy-dark);
}
.sh-status-dot.online  { background: var(--green-dot); }
.sh-status-dot.offline { background: var(--gray-dot); }

/* ── Section titles ─────────────────────────────────────────────────────────── */
.section-title { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.section-title span { color: var(--gold); }
.section-divider { width: 48px; height: 4px; background: var(--gold); border-radius: 2px; margin: .5rem 0 1.5rem; }

/* ── Steps ──────────────────────────────────────────────────────────────────── */
.step-circle {
  width: 56px; height: 56px; background: var(--navy); color: var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 1.35rem;
  font-weight: 800; margin: 0 auto 1rem; flex-shrink: 0;
}
.step-connector { flex: 1; height: 2px; background: linear-gradient(90deg, var(--navy), var(--gold)); margin-top: -1.75rem; }

/* ── Avatar flag badge ──────────────────────────────────────────────────────── */
.sh-avatar-flag {
  position: absolute; top: -5px; right: -6px;
  font-size: .85rem; line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.5));
  pointer-events: none;
}

/* ── Assignment notification banner ────────────────────────────────────────── */
.assign-notice {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy-light));
  color: #fff; border-radius: 12px; padding: 1rem 1.25rem;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 4px 16px rgba(5,46,22,.25);
}
.assign-notice-icon { font-size: 2rem; flex-shrink: 0; }
.assign-notice .btn-close { filter: brightness(0) invert(1); opacity: .7; flex-shrink: 0; }
.assign-notice .btn-close:hover { opacity: 1; }

/* ── Dashboard learner grid ─────────────────────────────────────────────────── */
.dash-learner-grid { display: flex; flex-wrap: wrap; gap: 12px; }
.dash-learner {
  position: relative; cursor: pointer; outline: none;
  transition: transform .2s;
}
.dash-learner:hover { transform: scale(1.08); }
.dash-learner-photo {
  width: 52px; height: 52px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  display: block;
}
.dash-learner-flag {
  position: absolute; top: -4px; right: -5px;
  font-size: .8rem; line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
  pointer-events: none;
}
.dash-learner-dot {
  position: absolute; bottom: 2px; right: 0;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--green-dot); border: 2px solid #fff;
}

/* ── Testimonials ───────────────────────────────────────────────────────────── */
.testimonial-scroll {
  overflow-x: auto; padding-bottom: .75rem;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
.testimonial-scroll::-webkit-scrollbar { height: 5px; }
.testimonial-scroll::-webkit-scrollbar-track { background: #e2e8f0; border-radius: 3px; }
.testimonial-scroll::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 3px; }
.testimonial-track { display: flex; gap: 1.25rem; padding: .25rem .125rem 1rem; }
.testimonial-card {
  background: #fff; border-radius: 14px; padding: 1.75rem;
  border: 1.5px solid #e8eef7; box-shadow: 0 2px 12px rgba(27,43,75,.06);
  width: 310px; flex-shrink: 0; scroll-snap-align: start;
}
.testimonial-card .stars { color: var(--gold); }
.testimonial-avatar {
  width: 46px; height: 46px; background: var(--navy); color: var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem; flex-shrink: 0;
}

/* ── FAQ ────────────────────────────────────────────────────────────────────── */
.faq-item .accordion-button { font-weight: 600; color: var(--navy); background: #fff; }
.faq-item .accordion-button:not(.collapsed) { color: var(--navy); background: var(--gold-pale); box-shadow: none; }

/* ── Auth / Form pages ──────────────────────────────────────────────────────── */
.sh-spa-wrap { min-height: 100vh; background: var(--gray-soft); padding: 1.5rem 0 3rem; }
.sh-card { background: #fff; border-radius: 16px; box-shadow: 0 4px 24px rgba(27,43,75,.09); padding: 2rem; }
@media (max-width: 576px) { .sh-card { padding: 1.25rem; border-radius: 12px; } }

/* Stepper */
.sh-stepper { display: flex; align-items: center; margin-bottom: 2rem; }
.sh-step { display: flex; flex-direction: column; align-items: center; flex: 1; }
.sh-step-dot {
  width: 36px; height: 36px; border-radius: 50%; border: 2.5px solid #dee2e6;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; background: #fff; color: #aaa; transition: all .3s;
}
.sh-step.active .sh-step-dot { border-color: var(--navy); background: var(--navy); color: #fff; }
.sh-step.done   .sh-step-dot { border-color: #198754; background: #198754; color: #fff; }
.sh-step-label { font-size: .72rem; font-weight: 600; color: #aaa; margin-top: .35rem; text-align: center; }
.sh-step.active .sh-step-label { color: var(--navy); }
.sh-step.done   .sh-step-label { color: #198754; }
.sh-step-line { flex: 1; height: 2px; background: #dee2e6; margin: 0 .25rem; margin-bottom: 1.4rem; }
.sh-step-line.done { background: #198754; }

/* Form fields */
.sh-label { font-weight: 600; color: var(--navy); font-size: .9rem; margin-bottom: .35rem; }
.sh-input {
  border: 1.5px solid #dee2e6; border-radius: 10px; padding: .75rem 1rem;
  font-size: 1rem; transition: border-color .2s; width: 100%;
}
.sh-input:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(27,43,75,.1); outline: none; }
.sh-input.is-invalid { border-color: #dc3545; }

/* Payment pulse */
.payment-pulse { animation: pulse 1.5s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .4; } }

/* Status badges */
.badge-success  { background: #d1fae5; color: #065f46; }
.badge-pending  { background: #fef9c3; color: #713f12; }
.badge-failed   { background: #fee2e2; color: #991b1b; }
.badge-initiated { background: #dbeafe; color: #1e3a8a; }

/* ── Dashboard ──────────────────────────────────────────────────────────────── */
.sh-sidebar {
  background: var(--navy); min-height: 100vh; width: 240px;
  position: fixed; left: 0; top: 0; z-index: 1000; padding-top: 1rem;
}
.sh-sidebar .brand {
  color: #fff; font-weight: 800; font-size: 1.15rem;
  padding: 1rem 1.25rem 1.5rem; border-bottom: 1px solid rgba(255,255,255,.1); display: block;
}
.sh-sidebar .nav-link {
  color: rgba(255,255,255,.7); padding: .65rem 1.25rem; border-radius: 8px;
  margin: .1rem .75rem; font-size: .9rem; font-weight: 500; transition: all .2s;
}
.sh-sidebar .nav-link:hover,
.sh-sidebar .nav-link.active { background: rgba(201,168,76,.15); color: var(--gold); }
.sh-sidebar .nav-link i { width: 20px; }

.sh-main { margin-left: 240px; min-height: 100vh; background: var(--gray-soft); }
.sh-topbar {
  background: #fff; border-bottom: 1px solid #e8eef7;
  padding: .9rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
}
.sh-content { padding: 1.5rem; }

/* Stat cards */
.stat-card {
  background: #fff; border-radius: 14px; padding: 1.25rem 1.5rem;
  border: 1.5px solid #e8eef7; box-shadow: 0 2px 10px rgba(27,43,75,.05);
}
.stat-card .stat-icon { width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 800; color: var(--navy); }
.stat-card .stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* Tables */
.sh-table { background: #fff; border-radius: 14px; border: 1.5px solid #e8eef7; overflow: hidden; }
.sh-table table { margin-bottom: 0; }
.sh-table thead th {
  background: var(--gray-soft); font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted);
  border-bottom: 1.5px solid #e8eef7; padding: .85rem 1rem; white-space: nowrap;
}
.sh-table tbody td { padding: .85rem 1rem; vertical-align: middle; font-size: .9rem; }
.sh-table tbody tr:hover { background: var(--gray-soft); }

/* Online toggle pill */
.online-toggle { cursor: pointer; border: none; background: none; padding: 0; }
.online-pill {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .4rem .9rem; border-radius: 50px; font-size: .85rem; font-weight: 600;
  border: 2px solid transparent; transition: all .2s;
}
.online-pill.online { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.online-pill.offline { background: #f1f5f9; color: #475569; border-color: #e2e8f0; }
.online-pill .dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.online-pill.online .dot  { background: #22c55e; }
.online-pill.offline .dot { background: #94a3b8; }

/* Dashboard avatar grid */
.dash-avatar-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.dash-avatar { position: relative; }
.dash-avatar-circle {
  width: 50px; height: 50px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; color: #fff; cursor: default;
}
.dash-avatar .status-dot {
  position: absolute; bottom: 1px; right: 1px;
  width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--gray-soft);
}
.dash-avatar .status-dot.online  { background: var(--green-dot); }
.dash-avatar .status-dot.offline { background: var(--gray-dot); }

/* Referral link box */
.referral-box {
  background: var(--gold-pale); border: 1.5px solid rgba(201,168,76,.3);
  border-radius: 12px; padding: 1rem 1.25rem;
  font-family: monospace; font-size: .9rem; word-break: break-all;
}

/* Mobile sidebar */
@media (max-width: 991px) {
  .sh-sidebar { transform: translateX(-100%); transition: transform .3s; }
  .sh-sidebar.open { transform: translateX(0); }
  .sh-main { margin-left: 0; }
}

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.sh-footer { background: var(--navy-dark); }
.footer-link { color: rgba(255,255,255,.55); font-size: .875rem; display: block; margin-bottom: .35rem; }
.footer-link:hover { color: var(--gold); }

/* ── Utilities ──────────────────────────────────────────────────────────────── */
.rounded-14 { border-radius: 14px !important; }
.fw-800 { font-weight: 800 !important; }
.sh-disclaimer {
  background: #fff8e1; border-left: 4px solid var(--gold);
  border-radius: 0 8px 8px 0; padding: 1rem 1.25rem;
  font-size: .875rem; color: #5a4000;
}
