/* =============================================
   YDMU — Youth Digital Meet Up Platform
   Main Stylesheet
   ============================================= */

/* --- Variables & Reset --- */
:root {
  --brand:        #f8b400;
  --brand-dark:   #d9a000;
  --brand-light:  #fff8e1;
  --dark:         #111827;
  --text:         #374151;
  --muted:        #6b7280;
  --border:       #e5e7eb;
  --radius:       1rem;
  --radius-sm:    .5rem;
  --shadow:       0 4px 24px rgba(0,0,0,.08);
  --shadow-hover: 0 8px 36px rgba(0,0,0,.14);
  --transition:   .22s ease;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: #fafafa;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6,.fw-black { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
.fw-black { font-weight: 900 !important; }

a { text-decoration: none; }
img { max-width: 100%; }

/* --- Utilities --- */
.hover-lift {
  transition: transform var(--transition), box-shadow var(--transition);
}
.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover) !important;
}

.text-brand   { color: var(--brand) !important; }
.bg-brand     { background: var(--brand) !important; }
.btn-brand    { background: var(--brand); color: #fff; border: none; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }

.rounded-4  { border-radius: var(--radius)   !important; }
.rounded-5  { border-radius: 1.5rem           !important; }

/* --- Announcement Bar --- */
.announcement-bar {
  background: var(--brand);
  color: var(--dark);
  font-size: .82rem;
  font-weight: 600;
  padding: .45rem 0;
  position: relative;
  z-index: 1050;
}
.announcement-bar .marquee-wrap { overflow: hidden; }

/* ================================================
   NAVBAR  — Premium SaaS Style
   ================================================ */

/* Header wrapper */
.main-header {
  z-index: 1040;
  /* Same as nav shell — avoids any gap or “flash” of body (#fafafa) behind sticky header */
  background-color: #0d1117;
}

/* Navbar shell */
.main-navbar {
  /*
   * Bootstrap 5.3 .navbar has no background (transparent). .navbar-dark only sets
   * light text CSS variables. If custom CSS fails to load or loses a specificity
   * fight, customers see white/light text on a white page — report as “broken nav”.
   * Lock variables + background here so the bar is always readable.
   */
  --bs-navbar-color: rgba(255, 255, 255, 0.65);
  --bs-navbar-hover-color: rgba(255, 255, 255, 0.85);
  --bs-navbar-active-color: #fff;
  --bs-navbar-disabled-color: rgba(255, 255, 255, 0.35);
  --bs-navbar-brand-color: #fff;
  --bs-navbar-brand-hover-color: #fff;
  background-color: #0d1117 !important;
  background: #0d1117;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 0;
  transition: background .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.main-navbar.scrolled {
  background: rgba(9, 12, 20, 0.97) !important;
  background-color: rgba(9, 12, 20, 0.97) !important;
  box-shadow: 0 1px 0 rgba(255,255,255,.06), 0 8px 32px rgba(0,0,0,.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-container {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 1.5rem;
  /* Desktop: one row. Mobile overrides to wrap so collapse can sit full-width below. */
  flex-wrap: nowrap;
  min-width: 0;
}

/* ── Brand ── */
.nav-brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  flex-shrink: 0;
  padding: 0;
}
.nav-brand-logo {
  width: 38px; height: 38px;
  background: linear-gradient(145deg, #f8b400, #d97706);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem;
  color: #0d1117;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(248,180,0,.2), 0 4px 14px rgba(248,180,0,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-brand:hover .nav-brand-logo {
  transform: scale(1.07) rotate(-4deg);
  box-shadow: 0 0 0 1px rgba(248,180,0,.35), 0 6px 20px rgba(248,180,0,.35);
}
.nav-brand-info {
  display: flex; flex-direction: column; gap: 1px;
  min-width: 0;
}
.nav-brand-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.01em;
  line-height: 1;
}
.nav-brand-sub {
  font-size: .6rem;
  font-weight: 500;
  color: rgba(255,255,255,.35);
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1;
}

/* ── Mobile toggle ── */
.nav-mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  flex-shrink: 0;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
  transition: background .2s;
}
.nav-mobile-toggle:hover { background: rgba(255,255,255,.1); }
.tog-line {
  display: block;
  width: 100%; height: 1.5px;
  background: rgba(255,255,255,.75);
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}

/* ── Nav links ── */
.nav-links {
  display: flex;
  align-items: center;
  gap: .15rem;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links .nav-item { position: relative; }

.nav-links .nav-link {
  display: flex;
  align-items: center;
  gap: .3rem;
  font-size: .875rem;
  font-weight: 500;
  color: rgba(255,255,255,.6) !important;
  padding: .45rem .75rem !important;
  border-radius: 7px;
  text-decoration: none;
  transition: color .18s ease, background .18s ease;
  white-space: nowrap;
  position: relative;
}
.nav-links .nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 50%; transform: translateX(-50%) scaleX(0);
  width: 16px; height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
  opacity: 0;
}
.nav-links .nav-link:hover {
  color: rgba(255,255,255,.95) !important;
  background: rgba(255,255,255,.06);
}
.nav-links .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,.07);
}
.nav-links .nav-link.active::after {
  transform: translateX(-50%) scaleX(1);
  opacity: 1;
}

/* Chevron on dropdown toggle */
.nav-chevron {
  font-size: .65rem;
  transition: transform .2s ease;
  opacity: .5;
}
.nav-dropdown.show .nav-chevron,
.nav-dropdown:hover .nav-chevron { transform: rotate(180deg); opacity: .8; }
.nav-dropdown-toggle::after { display: none; } /* hide Bootstrap's default arrow */

/* Hot badge on Courses */
.nav-item-highlight .nav-link { color: rgba(255,255,255,.75) !important; }
.nav-hot-badge {
  font-size: .55rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f8b400, #f97316);
  color: #000;
  padding: 2px 6px;
  border-radius: 20px;
  line-height: 1;
  vertical-align: middle;
  margin-left: 2px;
}

/* ── Events mega-dropdown ── */
.nav-mega-drop {
  background: #111827;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: .6rem;
  min-width: 240px;
  margin-top: 6px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.06);
  animation: navDropIn .2s cubic-bezier(.16,1,.3,1);
}
.nav-mega-header {
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: rgba(255,255,255,.3);
  padding: .3rem .5rem .55rem;
}
.nav-drop-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .55rem .6rem;
  border-radius: 9px;
  text-decoration: none;
  transition: background .15s ease;
}
.nav-drop-item:hover { background: rgba(255,255,255,.07); }
.nav-drop-icon {
  width: 34px; height: 34px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: .9rem;
  flex-shrink: 0;
}
.nav-drop-item strong {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: rgba(255,255,255,.9);
  line-height: 1.2;
}
.nav-drop-item small {
  display: block;
  font-size: .74rem;
  color: rgba(255,255,255,.35);
  line-height: 1.2;
}

/* ── Right section ── */
.nav-right {
  display: flex;
  align-items: center;
  gap: .6rem;
  margin-left: auto;
  flex-shrink: 0;
}

/* Search */
.nav-search-form {
  position: relative;
  display: flex;
  align-items: center;
}
.nav-search-icon {
  position: absolute;
  left: .75rem;
  color: rgba(255,255,255,.35);
  font-size: .8rem;
  pointer-events: none;
  z-index: 1;
}
.nav-search-input {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  color: #fff;
  font-size: .82rem;
  padding: .42rem 1rem .42rem 2.1rem;
  width: 190px;
  outline: none;
  transition: width .25s ease, background .2s, border-color .2s, box-shadow .2s;
}
.nav-search-input::placeholder { color: rgba(255,255,255,.3); }
.nav-search-input:focus {
  width: 240px;
  background: rgba(255,255,255,.08);
  border-color: rgba(248,180,0,.45);
  box-shadow: 0 0 0 3px rgba(248,180,0,.1);
  color: #fff;
}

/* Bell button */
.nav-bell-btn {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.09);
  color: rgba(255,255,255,.6);
  text-decoration: none;
  font-size: 1rem;
  transition: background .18s, color .18s, transform .15s;
}
.nav-bell-btn:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  transform: scale(1.06);
}
.nav-bell-dot {
  position: absolute;
  top: -3px; right: -3px;
  background: #ef4444;
  color: #fff;
  font-size: .57rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  line-height: 16px;
  padding: 0 3px;
  border-radius: 10px;
  text-align: center;
  border: 2px solid #0d1117;
}

.nav-notif-dropdown .nav-bell-btn.dropdown-toggle::after {
  display: none;
}
.nav-notif-menu {
  min-width: 300px;
  max-width: min(360px, calc(100vw - 24px));
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}
.nav-notif-menu-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #f8fafc;
}
.nav-notif-menu-body {
  max-height: 320px;
  overflow-y: auto;
}
.nav-notif-item {
  white-space: normal;
  border-bottom: 1px solid #f1f5f9;
}
.nav-notif-item:hover {
  background: #fffbeb;
}
.nav-notif-item.is-unread {
  background: rgba(254, 243, 199, 0.45);
}
.nav-notif-menu-footer {
  background: #f8fafc;
}

/* User button */
.nav-user-btn {
  display: flex;
  align-items: center;
  gap: .45rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 100px;
  padding: .28rem .65rem .28rem .28rem;
  cursor: pointer;
  transition: background .18s, border-color .18s;
  color: rgba(255,255,255,.8);
}
.nav-user-btn:hover, .nav-user-btn.show {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.18);
  color: #fff;
}
.nav-user-btn::after { display: none; }
.nav-user-avatar {
  width: 28px; height: 28px;
  background: linear-gradient(135deg, #f8b400, #f97316);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
  letter-spacing: 0;
}
.nav-user-name {
  font-size: .82rem;
  font-weight: 500;
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-user-chevron {
  font-size: .62rem;
  opacity: .5;
  transition: transform .2s;
}
.nav-user-btn.show .nav-user-chevron { transform: rotate(180deg); }

/* User dropdown */
.nav-user-drop {
  background: #111827;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  padding: .5rem;
  min-width: 210px;
  margin-top: 8px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.55), 0 1px 0 rgba(255,255,255,.06);
  animation: navDropIn .2s cubic-bezier(.16,1,.3,1);
}
.nav-user-drop-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .5rem .6rem .65rem;
}
.nav-user-drop-avatar {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #f8b400, #f97316);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem;
  font-weight: 700;
  color: #000;
  flex-shrink: 0;
}
.nav-user-drop-header strong {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}
.nav-user-drop-header small {
  font-size: .73rem;
  color: rgba(255,255,255,.35);
  text-transform: capitalize;
}
.nav-drop-divider {
  height: 1px;
  background: rgba(255,255,255,.07);
  margin: .3rem 0;
}
.nav-user-drop-item {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .52rem .7rem;
  font-size: .845rem;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  border-radius: 8px;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.nav-user-drop-item i {
  font-size: .9rem;
  width: 16px;
  text-align: center;
  opacity: .6;
}
.nav-user-drop-item:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.nav-user-drop-item:hover i { opacity: 1; }
.nav-drop-logout { color: rgba(239,68,68,.85) !important; }
.nav-drop-logout:hover { background: rgba(239,68,68,.1) !important; color: #ef4444 !important; }

/* Auth buttons */
.nav-btn-ghost {
  font-size: .855rem;
  font-weight: 500;
  color: rgba(255,255,255,.65);
  padding: .42rem .85rem;
  border-radius: 8px;
  text-decoration: none;
  transition: background .18s, color .18s;
  white-space: nowrap;
}
.nav-btn-ghost:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  background: var(--brand);
  color: #000 !important;
  font-size: .845rem;
  font-weight: 700;
  padding: .42rem 1.1rem;
  border-radius: 100px;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s, transform .15s, box-shadow .18s;
  box-shadow: 0 2px 12px rgba(248,180,0,.3);
}
.nav-btn-primary:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(248,180,0,.4);
}

/* ── Dropdown animation ── */
@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-8px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Mobile responsive ── */
@media (max-width: 991.98px) {
  .nav-mobile-toggle { display: flex; }
  /*
   * Row 1: brand (shrinks) + menu button. Row 2: full-width collapse.
   * flex-shrink on the toggle + min-width:0 on brand avoids overlap with the edges.
   */
  .nav-container {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    align-items: center;
    row-gap: 0;
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }
  .nav-brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .nav-brand-sub {
    max-width: min(220px, 42vw);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .main-navbar .navbar-collapse {
    flex-basis: 100%;
    width: 100%;
    background: #0d1117 !important;
    background-color: #0d1117 !important;
    border-top: 1px solid rgba(255,255,255,.07);
    padding: .75rem 12px 1.25rem;
    margin: 0 -12px;
    overflow-y: auto;
    max-height: calc(100dvh - 58px);
  }
  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    gap: .1rem;
    width: 100%;
    margin-bottom: .75rem;
  }
  .nav-links .nav-item { width: 100%; }
  .nav-links .nav-link {
    width: 100%;
    padding: .6rem .75rem !important;
    font-size: .9rem;
    border-radius: 9px;
  }
  .nav-links .nav-link::after { display: none; }
  .nav-mega-drop {
    position: static !important;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 10px;
    margin: .25rem 0 .35rem !important;
    box-shadow: none;
    animation: none;
  }
  .nav-right {
    flex-wrap: wrap;
    width: 100%;
    gap: .5rem;
    margin-left: 0;
    padding-top: .5rem;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .nav-search-form { width: 100%; }
  .nav-search-input { width: 100% !important; border-radius: 9px; }
  .nav-auth { width: 100%; }
  .nav-btn-ghost, .nav-btn-primary { flex: 1; text-align: center; justify-content: center; }
  /* User button fills remaining space next to bell */
  .nav-user-dropdown { flex: 1; }
  .nav-user-btn { width: 100%; border-radius: 9px; }
  /* Dropdown flows inside the collapse — no absolute float */
  .nav-user-drop {
    position: static !important;
    transform: none !important;
    float: none;
    width: 100%;
    margin-top: .5rem !important;
    box-shadow: 0 4px 20px rgba(0,0,0,.4) !important;
  }
}

/* ── Legacy placeholder (kept for compatibility) ── */
.navbar-user-avatar {
  width: 24px; height: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: #111;
  flex-shrink: 0;
}

/* --- Hero Section --- */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, #111827 0%, #1f2d47 60%, #2d3f5e 100%);
  padding: 6rem 0 4rem;
}
.hero-section::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='%23f8b400' 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");
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(248,180,0,.15);
  border: 1px solid rgba(248,180,0,.35);
  color: var(--brand);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 2rem;
  backdrop-filter: blur(4px);
}
.hero-section h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.1;
  color: #fff;
}
.hero-section h1 .highlight {
  color: var(--brand);
  position: relative;
}
.hero-section p.lead { color: rgba(255,255,255,.72); font-size: 1.1rem; }

.hero-float-card {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  color: #fff;
}
.hero-float-card .stat-number {
  font-size: 1.6rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--brand);
  line-height: 1;
}
.hero-float-card .stat-label { font-size: .72rem; color: rgba(255,255,255,.65); text-transform: uppercase; letter-spacing: .08em; }

/* Hero image decorations */
.hero-img-wrap {
  position: relative;
}
.hero-img-wrap img {
  border-radius: 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.4);
  width: 100%;
  object-fit: cover;
  max-height: 520px;
}
.hero-badge-box {
  position: absolute;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-hover);
  padding: .75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: .82rem;
  white-space: nowrap;
  animation: float 4s ease-in-out infinite;
}
.hero-badge-box.top-left  { top: 1.5rem; left: -1.5rem; animation-delay: 0s; }
.hero-badge-box.bottom-right { bottom: 2rem; right: -1.5rem; animation-delay: 1.5s; }
.hero-badge-box .icon-wrap {
  width: 2.2rem; height: 2.2rem;
  border-radius: .5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

/* Hero wave divider */
.hero-wave {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  line-height: 0;
}
.hero-wave svg { width: 100%; height: auto; }

/* --- Countdown Timer --- */
.countdown-wrapper {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
}
.countdown-box {
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: var(--radius-sm);
  padding: .6rem 1rem;
  min-width: 68px;
  text-align: center;
  backdrop-filter: blur(4px);
}
.cd-num {
  font-size: 1.8rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--brand);
  line-height: 1;
  display: block;
}
.cd-label {
  font-size: .62rem;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.55);
  display: block;
  margin-top: .15rem;
}

/* Dark countdown variant (on light bg) */
.countdown-box.dark {
  background: var(--dark);
  border-color: transparent;
}
.countdown-box.dark .cd-label { color: rgba(255,255,255,.5); }

/* --- Section Labels --- */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--brand-light);
  color: #7a5a00;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  padding: .35rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(248,180,0,.3);
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--dark); }

/* --- Topic/Category Cards --- */
.topic-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 1.5rem 1.25rem;
  text-align: center;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.topic-card:hover {
  border-color: var(--brand);
  box-shadow: 0 6px 24px rgba(248,180,0,.18);
  transform: translateY(-3px);
}
.topic-card .topic-icon {
  width: 3.5rem; height: 3.5rem;
  border-radius: 1rem;
  background: var(--brand-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin: 0 auto 1rem;
  transition: background var(--transition);
}
.topic-card:hover .topic-icon { background: var(--brand); color: #fff; }
.topic-card .topic-name { font-weight: 700; font-size: .92rem; color: var(--dark); }
.topic-card .topic-count { font-size: .75rem; color: var(--muted); }

/* --- Course Cards --- */
.course-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}
.course-card .card-img-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #f3f4f6;
}
.course-card .card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.course-card:hover .card-img-wrap img { transform: scale(1.05); }
.course-card .card-img-wrap .type-badge {
  position: absolute; top: .6rem; left: .6rem;
  font-size: .68rem; font-weight: 700; padding: .2rem .55rem;
  border-radius: .35rem;
  text-transform: uppercase; letter-spacing: .05em;
}
.course-card .card-body { padding: 1.1rem; }
.course-card .course-title {
  font-size: .95rem; font-weight: 700; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.course-card .course-meta { font-size: .76rem; color: var(--muted); }
.course-card .course-price { font-size: 1.1rem; font-weight: 900; font-family: 'Space Grotesk', sans-serif; }
.course-card .rating-stars { color: var(--brand); font-size: .8rem; }
.course-card .expert-avatar {
  width: 28px; height: 28px; border-radius: 50%; object-fit: cover;
}

/* --- Expert Cards --- */
.expert-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.expert-card .expert-cover {
  height: 80px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
}
.expert-card .expert-avatar-wrap {
  margin-top: -36px;
  position: relative;
}
.expert-card .expert-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.expert-card .expert-name { font-weight: 700; font-size: .95rem; color: var(--dark); }
.expert-card .expert-specialty { font-size: .78rem; color: var(--muted); }
.expert-card .expert-stat { font-size: .74rem; color: var(--muted); }
.expert-card .expert-stat strong { color: var(--dark); font-weight: 700; }

/* --- Event Cards --- */
.event-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.event-card .event-img { aspect-ratio: 16/8; object-fit: cover; width: 100%; }
.event-card .event-date-chip {
  display: inline-flex; align-items: center; gap: .35rem;
  background: var(--brand-light);
  color: #7a5a00;
  font-size: .75rem; font-weight: 700;
  padding: .25rem .65rem; border-radius: .35rem;
}
.event-card .event-location { font-size: .78rem; color: var(--muted); }
.event-card .event-title { font-weight: 700; font-size: 1rem; color: var(--dark); }

/* --- Blog Cards --- */
.blog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.blog-card .blog-img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.blog-card .blog-category {
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--brand-dark);
}
.blog-card .blog-title {
  font-weight: 700; font-size: .95rem; color: var(--dark);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.blog-card .blog-meta { font-size: .74rem; color: var(--muted); }
.blog-card .blog-excerpt { font-size: .84rem; color: var(--muted); }

/* --- Testimonial Cards --- */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: relative;
}
.testimonial-card .quote-icon {
  font-size: 3rem; line-height: 1;
  color: var(--brand);
  opacity: .3;
  position: absolute; top: .75rem; right: 1rem;
  font-family: Georgia, serif;
}
.testimonial-card .testimonial-text { font-size: .9rem; color: var(--text); font-style: italic; }
.testimonial-card .testimonial-author { font-weight: 700; font-size: .88rem; color: var(--dark); }
.testimonial-card .testimonial-role { font-size: .75rem; color: var(--muted); }

/* --- Stats Strip --- */
.stats-strip {
  background: var(--dark);
  padding: 3rem 0;
}
.stat-item .stat-number {
  font-size: 2.5rem; font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--brand); line-height: 1;
}
.stat-item .stat-label { font-size: .82rem; color: rgba(255,255,255,.6); text-transform: uppercase; letter-spacing: .1em; }

/* --- Sponsor Logos --- */
.sponsor-logo {
  filter: grayscale(1);
  opacity: .55;
  transition: filter var(--transition), opacity var(--transition);
  max-height: 40px; object-fit: contain;
}
.sponsor-logo:hover { filter: grayscale(0); opacity: 1; }

.sponsors-section {
  background:
    radial-gradient(900px 240px at 50% -5%, rgba(248,180,0,.12), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}
.sponsors-subtext {
  max-width: 700px;
  margin-inline: auto;
}
.sponsor-tile {
  display: block;
}
.sponsor-tile-inner {
  background: rgba(255,255,255,.92);
  border: 1px solid rgba(17,24,39,.08);
  border-radius: 1rem;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: .8rem;
  box-shadow: 0 8px 24px rgba(2,6,23,.05);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.sponsor-tile:hover .sponsor-tile-inner {
  transform: translateY(-2px);
  border-color: rgba(248,180,0,.45);
  box-shadow: 0 14px 30px rgba(2,6,23,.1);
}
.sponsor-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .25rem;
  border-radius: .6rem;
  transition: background .2s ease;
}
.sponsor-logo-link:hover {
  background: rgba(248,180,0,.1);
}
.partner-logo {
  max-height: 42px;
  width: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: .72;
  transition: filter .24s ease, opacity .24s ease, transform .24s ease;
}
.sponsor-logo-link:hover .partner-logo,
.sponsor-tile:hover .partner-logo {
  filter: grayscale(0);
  opacity: 1;
  transform: scale(1.02);
}
.sponsor-name-fallback {
  color: #4b5563;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .01em;
  text-align: center;
}
.sponsor-cta-btn {
  border-radius: 999px;
  box-shadow: 0 10px 25px rgba(15,23,42,.2);
}
.sponsor-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15,23,42,.25);
}

@media (max-width: 767.98px) {
  .sponsors-section {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }
  .sponsors-section .display-6 {
    font-size: 1.55rem;
  }
  .sponsors-subtext {
    font-size: .9rem;
    padding-inline: .45rem;
  }
  .sponsor-tile-inner {
    min-height: 84px;
    padding: .65rem;
    border-radius: .85rem;
  }
  .partner-logo {
    max-height: 34px;
  }
  .sponsor-name-fallback {
    font-size: .82rem;
  }
  .sponsor-cta-btn {
    width: 100%;
    max-width: 320px;
    font-size: .95rem;
    padding-top: .72rem;
    padding-bottom: .72rem;
  }
}

/* --- CTA Strip --- */
.cta-strip {
  background: linear-gradient(135deg, #111827 0%, #1f2d47 100%);
  position: relative; overflow: hidden;
}
.cta-strip::before {
  content: '';
  position: absolute; top: -50%; right: -10%;
  width: 400px; height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(248,180,0,.12) 0%, transparent 70%);
}

/* --- Filter Sidebar (courses page) --- */
.filter-sidebar .filter-title {
  font-size: .8rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .1em; color: var(--muted);
  padding: .5rem 0; border-top: 1px solid var(--border); margin-top: .75rem;
}
.filter-sidebar .form-check-label { font-size: .88rem; }
.filter-sidebar .form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }

/* --- Courses page responsiveness --- */
.courses-hero .display-5 {
  font-size: clamp(1.9rem, 4.2vw, 2.9rem);
}
.courses-page .course-filter-card {
  border-radius: 1rem;
  top: 112px;
  z-index: 10;
}
.courses-page .course-grid-row .card {
  border-radius: 1rem;
}
.courses-page .course-grid-row .card .card-body {
  padding: 1rem;
}
.courses-page .course-grid-row .card h6 {
  font-size: .98rem;
}
.courses-page .course-grid-row .card p {
  min-height: 40px;
}

@media (max-width: 991.98px) {
  .courses-page .course-filter-card {
    position: static !important;
    top: auto !important;
  }
}

@media (max-width: 767.98px) {
  .courses-hero {
    padding-top: 2.25rem !important;
    padding-bottom: 2.25rem !important;
  }
  .courses-page {
    padding-top: 1.5rem !important;
  }
  .courses-page .course-grid-row {
    --bs-gutter-x: 0.8rem;
    --bs-gutter-y: 0.8rem;
  }
  .courses-page .course-grid-row .card .card-body {
    padding: .85rem;
  }
  .courses-page .course-grid-row .card h6 {
    font-size: .92rem;
  }
  .courses-page .course-grid-row .card .btn {
    padding: .25rem .6rem;
    font-size: .78rem;
  }
}

/* --- Course Detail / Learn pages --- */
.curriculum-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: .88rem;
  cursor: default;
}
.curriculum-item:hover { background: var(--brand-light); }
.curriculum-item.active { background: var(--brand-light); font-weight: 700; }
.curriculum-item .lesson-icon { width: 1.6rem; color: var(--muted); }

.video-player-wrap {
  background: #000;
  border-radius: var(--radius) var(--radius) 0 0;
  overflow: hidden;
  aspect-ratio: 16/9;
  position: relative;
}
.video-player-wrap video {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* --- Star Rating --- */
.star-rating label {
  font-size: 1.5rem; cursor: pointer;
  color: #d1d5db; transition: color .1s;
}
.star-rating input:checked ~ label,
.star-rating label:hover,
.star-rating label:hover ~ label { color: var(--brand); }
.star-rating { display: flex; flex-direction: row-reverse; width: fit-content; }
.star-rating input { display: none; }

/* --- Gallery Lightbox Grid --- */
.gallery-grid { columns: 2; gap: .75rem; }
@media(min-width:576px) { .gallery-grid { columns: 3; } }
@media(min-width:992px) { .gallery-grid { columns: 4; } }
.gallery-grid a { display: block; margin-bottom: .75rem; break-inside: avoid; }
.gallery-grid img {
  width: 100%; border-radius: var(--radius-sm);
  transition: transform var(--transition), filter var(--transition);
}
.gallery-grid a:hover img { transform: scale(1.02); filter: brightness(.85); }

/* --- Blog Single & Premium Content Body --- */
.blog-content h1, .blog-body h1, .prose h1 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 800;
  margin-top: 1.75rem;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.blog-content h2, .blog-content h3, .blog-content h4,
.blog-body h2, .blog-body h3, .blog-body h4,
.prose h2, .prose h3, .prose h4 {
  font-family: 'Space Grotesk', sans-serif;
  margin-top: 2rem;
  line-height: 1.3;
}
.blog-body::after, .prose::after {
  content: '';
  display: table;
  clear: both;
}
.blog-content figure, .blog-body figure, .prose figure {
  margin: 1.5rem auto;
  max-width: 100%;
}
.blog-content figcaption, .blog-body figcaption, .prose figcaption {
  font-size: 0.9rem;
  color: var(--muted);
  margin-top: 0.5rem;
  text-align: center;
  line-height: 1.5;
}
.blog-img-center {
  display: block !important;
  margin-left: auto !important;
  margin-right: auto !important;
  float: none !important;
}
.blog-img-left {
  float: left !important;
  margin: 0 1.25rem 1rem 0 !important;
}
.blog-img-right {
  float: right !important;
  margin: 0 0 1rem 1.25rem !important;
}
.blog-content .ratio-embed, .blog-body .ratio-embed, .prose .ratio-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-sm);
  margin: 1.5rem 0;
}
.blog-content .ratio-embed iframe, .blog-body .ratio-embed iframe, .prose .ratio-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.blog-content iframe[src*="youtube"], .blog-body iframe[src*="youtube"], .prose iframe[src*="youtube"] {
  max-width: 100%;
  border-radius: var(--radius-sm);
  margin: 1.25rem auto;
  display: block;
  aspect-ratio: 16 / 9;
  width: 100%;
  min-height: 240px;
}
.blog-content p, .blog-body p, .prose p { line-height: 1.85; margin-bottom: 1.25rem; }

/* Responsive images — never overflow container */
.blog-content img, .blog-body img, .prose img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  margin: 1rem 0;
  display: block;
}

/* Tables scroll horizontally on small screens */
.blog-content table, .blog-body table, .prose table {
  width: 100%;
  overflow-x: auto;
  display: block;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: .9rem;
}
.blog-content table th, .blog-content table td,
.blog-body table th, .blog-body table td,
.prose table th, .prose table td {
  border: 1px solid var(--border);
  padding: .5rem .75rem;
}

.blog-content blockquote, .blog-body blockquote, .prose blockquote {
  border-left: 4px solid var(--brand);
  padding: .75rem 1.25rem;
  margin: 1.5rem 0;
  background: var(--brand-light);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
}
.blog-content code, .blog-body code, .prose code {
  background: #f3f4f6; padding: .15rem .4rem; border-radius: .25rem; font-size: .88em;
}
.blog-content pre, .blog-body pre, .prose pre {
  background: var(--dark); color: #e5e7eb; border-radius: var(--radius-sm);
  padding: 1.25rem; overflow-x: auto; margin: 1.25rem 0;
}
/* Responsive font size for blog/premium body */
.blog-body, .prose { font-size: 1.05rem; }
@media (max-width: 575.98px) {
  .blog-body, .prose { font-size: .975rem; }
  .blog-body h2, .prose h2 { font-size: 1.35rem; }
  .blog-body h3, .prose h3 { font-size: 1.15rem; }
}

/* --- Comments --- */
.comment-item { padding: 1rem 0; border-bottom: 1px solid var(--border); }
.comment-item:last-child { border-bottom: none; }
.comment-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--border); }
.comment-meta { font-size: .76rem; color: var(--muted); }
.comment-body { font-size: .9rem; color: var(--text); }

/* --- Footer --- */
footer { background: var(--dark); color: rgba(255,255,255,.7); }
footer h6 { color: #fff; font-family: 'Space Grotesk', sans-serif; font-weight: 700; }
footer a { color: rgba(255,255,255,.6); transition: color var(--transition); }
footer a:hover { color: var(--brand); }
footer .footer-logo { height: 36px; filter: brightness(0) invert(1); }
footer .social-icon {
  width: 2.2rem; height: 2.2rem; border-radius: .5rem;
  background: rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1rem; transition: background var(--transition), color var(--transition);
}
footer .social-icon:hover { background: var(--brand); color: var(--dark); }

/* About page mission/vision cards */
.about-mv-card {
  border-left: 4px solid var(--brand) !important;
}

.about-mv-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.about-value-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  background: #111111;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
footer .footer-divider { border-color: rgba(255,255,255,.1); }

/* --- Newsletter Form --- */
.newsletter-form .form-control {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.15);
  color: #fff; border-radius: .6rem 0 0 .6rem;
}
.newsletter-form .form-control::placeholder { color: rgba(255,255,255,.4); }
.newsletter-form .form-control:focus { background: rgba(255,255,255,.12); border-color: var(--brand); box-shadow: none; color: #fff; }
.newsletter-form .btn { border-radius: 0 .6rem .6rem 0; }

/* --- Flash Messages --- */
.flash-message {
  position: fixed; top: 1rem; right: 1rem; z-index: 9999;
  min-width: 280px; max-width: 420px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
  animation: slideIn .3s ease;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(40px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* --- Notification Bell --- */
.notif-dot {
  width: 8px; height: 8px;
  background: #ef4444; border-radius: 50%;
  position: absolute; top: 4px; right: 4px;
  border: 1px solid #fff;
}

/* --- Responsive --- */
@media (max-width: 767.98px) {
  .hero-badge-box { display: none; }
  .hero-section { padding: 5rem 0 3rem; min-height: auto; }
  .hero-section h1 { font-size: 2.1rem; }
  .countdown-box { min-width: 55px; padding: .5rem .7rem; }
  .cd-num { font-size: 1.4rem; }
}

/* --- Scrollbar --- */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #d1d5db; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--brand); }

/* --- Misc --- */
.section-divider { height: 1px; background: var(--border); margin: 0; }
.gradient-text {
  background: linear-gradient(90deg, var(--brand), #ff8c00);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.badge-pill { border-radius: 2rem; }
.object-cover { object-fit: cover; }
.pointer { cursor: pointer; }
.truncate-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.truncate-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* --- /auth/register + /auth/login — Join YDMU style cards --- */
.page-auth-register,
.page-auth-login {
  background: radial-gradient(120% 90% at 50% -10%, #eef1f5 0%, #e4e8ec 40%, #dee3e8 100%);
}
.page-auth-register .auth-register-card,
.page-auth-login .auth-register-card {
  border: 1px solid rgba(33, 37, 41, 0.06);
  box-shadow: 0 0.5rem 1.75rem rgba(33, 37, 41, 0.14) !important;
}
.page-auth-register .auth-register-input,
.page-auth-login .auth-register-input {
  border-radius: 0.65rem;
  padding: 0.65rem 0.9rem;
}
.page-auth-login .page-auth-login-pass-group .form-control {
  border-radius: 0.65rem 0 0 0.65rem;
  padding: 0.65rem 0.9rem;
}
.page-auth-login .page-auth-login-pass-group .btn {
  border-radius: 0 0.65rem 0.65rem 0;
}

/* --- /auth/login — split-screen (brand + dark hero, matches YDMU) --- */
.page-auth-login.page-auth-login--split,
.page-auth-register.page-auth-register--split,
.page-auth-forgot.page-auth-forgot--split,
.page-auth-verify-email.page-auth-verify-email--split {
  background: #f8fafc;
  padding: 0 !important;
  overflow-x: clip;
}

.auth-login-split {
  display: flex;
  flex-wrap: wrap;
  min-height: calc(100dvh - 64px);
  align-items: stretch;
  min-width: 0;
}

.auth-login-brand-col {
  position: relative;
  flex: 1 1 100%;
  min-width: 0;
  min-height: 220px;
  padding: clamp(1.5rem, 4vw, 2.75rem);
  box-sizing: border-box;
  background:
    radial-gradient(120% 90% at 15% 10%, rgba(248, 180, 0, 0.28) 0%, transparent 42%),
    radial-gradient(90% 70% at 100% 80%, rgba(248, 180, 0, 0.12) 0%, transparent 45%),
    linear-gradient(160deg, #0f172a 0%, #111827 48%, #0b1220 100%);
  color: #fff;
  overflow: hidden;
}

.auth-login-brand-col::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cpath fill='none' stroke='%23f8b400' stroke-width='0.45' opacity='0.22' d='M0 60 Q30 40 60 60 T120 60'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='0.45' opacity='0.12' d='M0 30 Q40 10 80 30 T160 30'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-width='0.4' opacity='0.1' d='M0 90 Q35 70 70 90 T140 90'/%3E%3C/svg%3E");
  background-size: 120px 120px;
  pointer-events: none;
}

.auth-login-brand-col::after {
  content: "\201C";
  position: absolute;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(8rem, 22vw, 14rem);
  line-height: 1;
  left: clamp(1.35rem, 5vw, 3.25rem);
  top: 10%;
  color: rgba(248, 180, 0, 0.09);
  pointer-events: none;
}

.auth-login-brand-inner {
  position: relative;
  z-index: 1;
  max-width: min(32rem, 100%);
  margin: 0 auto;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2rem;
  box-sizing: border-box;
}

.auth-login-brand-logo {
  display: inline-flex;
  align-self: flex-start;
  text-decoration: none;
}

.auth-login-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--dark);
  font-size: 1.45rem;
  box-shadow: 0 8px 28px rgba(248, 180, 0, 0.35);
}

.auth-login-quote {
  margin: 0;
  border: 0;
  padding: 0;
}

.auth-login-quote-text {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.35rem, 3.2vw, 2.05rem);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  margin: 0 0 1.75rem;
  text-wrap: balance;
}

.auth-login-quote-footer {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.auth-login-quote-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: rgba(248, 180, 0, 0.15);
  border: 2px solid rgba(248, 180, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--brand);
}

.auth-login-quote-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.9rem;
}

.auth-login-quote-meta strong {
  font-size: 1rem;
  font-weight: 700;
}

.auth-login-quote-meta span {
  opacity: 0.88;
  font-size: 0.82rem;
}

.auth-login-form-col {
  flex: 1 1 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 3rem) clamp(1.25rem, 4vw, 2.5rem) 2.5rem;
  background: #f8fafc;
}

.auth-login-form-inner {
  width: 100%;
  max-width: min(420px, 100%);
  box-sizing: border-box;
}

.auth-login-signup-hint {
  text-align: center;
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 1.25rem;
  margin-bottom: 0;
  line-height: 1.5;
}

.auth-login-signup-hint a {
  font-weight: 700;
  color: #b45309;
  text-decoration: none;
}

.auth-login-signup-hint a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}

.auth-login-title {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--dark);
  margin: 0 0 0.45rem;
  text-align: center;
  text-wrap: balance;
}

.auth-login-lead {
  font-size: 0.95rem;
  margin-bottom: 1.75rem;
  text-align: center;
  text-wrap: balance;
  max-width: 22rem;
  margin-left: auto;
  margin-right: auto;
}

.auth-login-field {
  margin-bottom: 1rem;
}

.auth-login-input {
  border: 1px solid transparent;
  background: #f1f5f9;
  border-radius: 0.85rem;
  padding: 0.85rem 1.05rem;
  font-size: max(16px, 0.95rem);
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.auth-login-input:focus {
  background: #fff;
  border-color: rgba(248, 180, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(248, 180, 0, 0.2);
  outline: none;
}

.auth-login-pass-wrap {
  position: relative;
}

.auth-login-input-pass {
  padding-right: 3.25rem;
}

.auth-login-eye {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.65rem;
  height: 2.65rem;
  border: none;
  border-radius: 0.65rem;
  background: transparent;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.15s ease, background 0.15s ease;
}

.auth-login-eye:hover {
  color: var(--dark);
  background: rgba(248, 180, 0, 0.14);
}

.auth-login-forgot-wrap {
  text-align: right;
  margin-bottom: 1.35rem;
}

.auth-login-forgot {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
}

.auth-login-forgot:hover {
  color: #b45309;
}

.auth-login-submit {
  border: none;
  border-radius: 0.85rem;
  padding: 0.9rem 1.25rem;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--dark) !important;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  box-shadow: 0 10px 28px rgba(248, 180, 0, 0.38);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.auth-login-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 34px rgba(217, 160, 0, 0.45);
  filter: brightness(1.04);
  color: var(--dark) !important;
}

.auth-login-submit:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  filter: none !important;
}

.auth-login-submit:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 3px;
}

.auth-login-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0 1.25rem;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}

.auth-login-divider::before,
.auth-login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-login-social {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-login-google-btn {
  width: 100%;
  min-height: 3.1rem;
  border-radius: 0.9rem;
  border: 1px solid #dbe3ef;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.8rem 1rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  cursor: pointer;
}

.auth-login-google-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #db4437;
  font-size: 1.05rem;
  flex: 0 0 auto;
}

a.auth-login-google-btn:hover {
  color: #0f172a;
  border-color: #cbd5e1;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-1px);
}

a.auth-login-google-btn:focus-visible,
button.auth-login-google-btn:focus-visible {
  outline: 2px solid #334155;
  outline-offset: 2px;
}

button.auth-login-google-btn:disabled {
  cursor: not-allowed;
  opacity: 0.65;
  box-shadow: none;
  transform: none;
}

.auth-login-social-note {
  text-align: center;
  margin-top: 0.65rem;
}

/* --- /auth/verify-email — OTP + resend (same card system as login) --- */
.page-auth-verify-email.page-auth-verify-email--split .auth-login-lead {
  max-width: 22rem;
}

.page-auth-verify-email.page-auth-verify-email--split .auth-verify-otp-wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
}

.page-auth-verify-email.page-auth-verify-email--split .auth-verify-otp-box {
  width: 2.65rem;
  height: 3.1rem;
  flex: 0 0 auto;
  font-size: max(16px, 1.15rem);
  padding: 0;
  border: 1px solid transparent;
  background: #f1f5f9;
  border-radius: 0.85rem;
  line-height: 1;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.page-auth-verify-email.page-auth-verify-email--split .auth-verify-otp-box:focus {
  background: #fff;
  border-color: rgba(248, 180, 0, 0.45);
  box-shadow: 0 0 0 3px rgba(248, 180, 0, 0.2);
  outline: none;
}

.page-auth-verify-email.page-auth-verify-email--split .auth-verify-otp-box.auth-verify-otp-filled {
  border-color: rgba(248, 180, 0, 0.35);
  background: #fff;
}

.page-auth-verify-email.page-auth-verify-email--split .auth-verify-resend-btn {
  border-radius: 0.85rem;
  padding: 0.85rem 1.1rem;
  min-height: 3rem;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--dark);
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.page-auth-verify-email.page-auth-verify-email--split .auth-verify-resend-btn:hover {
  border-color: rgba(248, 180, 0, 0.45);
  background: #f8fafc;
  color: var(--dark);
}

@media (min-width: 992px) {
  .auth-login-split {
    flex-wrap: nowrap;
    min-height: calc(100dvh - 64px);
  }

  .auth-login-brand-col {
    flex: 1 1 56%;
    min-width: 0;
    min-height: calc(100dvh - 64px);
    padding: clamp(2rem, 5vw, 4rem);
  }

  .auth-login-brand-inner {
    margin: 0;
    max-width: 28rem;
    padding-left: clamp(2.25rem, 7vw, 5.5rem);
    padding-right: clamp(0.75rem, 2vw, 1.5rem);
  }

  .auth-login-form-col {
    flex: 1 1 44%;
    min-width: 0;
    min-height: calc(100dvh - 64px);
    padding: clamp(2rem, 5vw, 4rem);
    background: linear-gradient(180deg, #f1f5f9 0%, #e8eef5 100%);
  }

  .auth-login-form-card {
    padding: 2.35rem 2.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }
}

@media (max-width: 991.98px) {
  /* Natural scroll height — avoid stretching brand + form to 50/50 of viewport */
  .auth-login-split {
    min-height: 0;
    align-content: flex-start;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .auth-login-brand-col {
    /* Full-width row that may shrink (avoid flex: 0 0 auto widening past viewport) */
    flex: 1 1 100%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    padding: 1rem max(1.65rem, env(safe-area-inset-left, 0px)) 1.15rem max(1.25rem, env(safe-area-inset-right, 0px));
  }

  /* Login + register + verify: hide yellow bolt tile on small screens (quote + nav remain) */
  .page-auth-login.page-auth-login--split .auth-login-brand-logo,
  .page-auth-register.page-auth-register--split .auth-login-brand-logo,
  .page-auth-verify-email.page-auth-verify-email--split .auth-login-brand-logo {
    display: none;
  }

  /* Compact top padding on phones (logo tile is hidden; avoids a tall empty band) */
  .page-auth-login.page-auth-login--split .auth-login-brand-inner,
  .page-auth-register.page-auth-register--split .auth-login-brand-inner,
  .page-auth-forgot.page-auth-forgot--split .auth-login-brand-inner,
  .page-auth-verify-email.page-auth-verify-email--split .auth-login-brand-inner {
    padding-top: max(0.85rem, env(safe-area-inset-top, 0px));
  }

  /* Register: remove large decorative “ quote (absolute); keeps hero calmer on phones */
  .page-auth-register.page-auth-register--split .auth-login-brand-col::after {
    content: none;
  }

  .auth-login-brand-col::after {
    font-size: clamp(4.5rem, 28vw, 7rem);
    left: 0.75rem;
    top: 0;
  }

  .auth-login-brand-inner {
    gap: 1rem;
    justify-content: flex-start;
    min-height: 0;
    padding-left: clamp(0.5rem, 3.5vw, 1.35rem);
    padding-right: clamp(0.5rem, 3.5vw, 1.35rem);
  }

  .auth-login-quote-text {
    font-size: clamp(1.05rem, 4.8vw, 1.35rem);
    line-height: 1.32;
    margin-bottom: 1rem;
  }

  .auth-login-quote-footer {
    gap: 0.65rem;
  }

  .page-auth-login.page-auth-login--split .auth-login-quote-footer {
    justify-content: center;
  }

  .auth-login-quote-avatar {
    width: 2.4rem;
    height: 2.4rem;
    font-size: 1.05rem;
  }

  .auth-login-quote-meta {
    font-size: 0.82rem;
    min-width: 0;
  }

  .auth-login-quote-meta strong {
    font-size: 0.92rem;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
  }

  .auth-login-quote-meta span {
    font-size: 0.75rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  /* Full-width form band so the card isn’t shrink-to-fit (~420px) and stuck left */
  .auth-login-form-col {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    padding: 1rem max(1rem, env(safe-area-inset-left, 0px)) max(1.5rem, env(safe-area-inset-bottom, 0px))
      max(1rem, env(safe-area-inset-right, 0px));
  }

  /* Centered white card on grey (matches mobile mockup) */
  .auth-login-form-inner {
    width: 100%;
    max-width: min(420px, 100%);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
  }

  /* Long quotes / site names — avoid horizontal scroll on narrow screens */
  .page-auth-login.page-auth-login--split .auth-login-quote-text,
  .page-auth-forgot.page-auth-forgot--split .auth-login-quote-text,
  .page-auth-verify-email.page-auth-verify-email--split .auth-login-quote-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  .auth-login-form-card {
    padding: 1.35rem 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow-x: clip;
  }

  .auth-login-title {
    margin-top: 0;
    font-size: clamp(1.45rem, 6.5vw, 1.85rem);
  }

  .auth-login-lead {
    margin-bottom: 1.35rem;
    font-size: 0.9rem;
    padding: 0;
    max-width: 100%;
  }

  .auth-login-signup-hint {
    margin-top: 1.1rem;
  }

  .auth-login-field {
    margin-bottom: 0.9rem;
  }

  .auth-login-input {
    padding: 0.95rem 1.1rem;
    border-radius: 0.9rem;
  }

  .auth-login-eye {
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    -webkit-tap-highlight-color: transparent;
  }

  .auth-login-submit {
    padding: 1rem 1.25rem;
    min-height: 3.25rem;
    -webkit-tap-highlight-color: transparent;
  }

  .auth-login-divider {
    margin: 1.35rem 0 1rem;
    font-size: 0.76rem;
    gap: 0.65rem;
  }

  .auth-login-social {
    width: 100%;
  }

  .auth-login-google-btn {
    min-height: 2.95rem;
    border-radius: 0.8rem;
    padding: 0.72rem 0.92rem;
    font-size: 0.9rem;
  }

  .auth-login-google-icon {
    width: 1.85rem;
    height: 1.85rem;
    font-size: 1rem;
  }

  .page-auth-login--split .container.mt-3,
  .page-auth-register--split .container.mt-3,
  .page-auth-forgot--split .container.mt-3,
  .page-auth-verify-email--split .container.mt-3 {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  /* /auth/register — full-width form band + centered card (matches login) */
  .page-auth-register.page-auth-register--split .auth-login-form-col {
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
  }

  .page-auth-register.page-auth-register--split .auth-login-form-inner.auth-register-form-card {
    width: 100%;
    max-width: min(420px, 100%);
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    min-width: 0;
  }

  .page-auth-register.page-auth-register--split .auth-register-form {
    min-width: 0;
    max-width: 100%;
  }

  .page-auth-register.page-auth-register--split .auth-login-quote-text {
    overflow-wrap: break-word;
    word-wrap: break-word;
  }

  /* Cancel Bootstrap .row negative margins inside the card (avoids skew / horizontal scroll) */
  .page-auth-register.page-auth-register--split .auth-register-form .row {
    margin-left: 0;
    margin-right: 0;
  }

  .page-auth-register.page-auth-register--split .auth-register-form .row > [class*="col-"] {
    padding-left: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
    padding-right: calc(var(--bs-gutter-x, 1.5rem) * 0.5);
  }

  /* /auth/register — mobile: comfortable field rhythm (~18–20px), social pills */
  .page-auth-register.page-auth-register--split .auth-login-form-col {
    padding-left: max(1.25rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.25rem, env(safe-area-inset-right, 0px));
    padding-top: clamp(0.65rem, 2.5vw, 1rem);
  }

  .page-auth-register.page-auth-register--split .auth-login-form-card {
    padding: 1.25rem clamp(1.125rem, 5vw, 1.5rem) 1.5rem;
  }

  .page-auth-register.page-auth-register--split .auth-login-lead {
    margin-bottom: 1.25rem;
  }

  .page-auth-register.page-auth-register--split .auth-login-field {
    margin-bottom: 1.125rem;
  }

  .page-auth-register.page-auth-register--split .auth-register-section {
    margin-bottom: 1.35rem;
  }

  .page-auth-register.page-auth-register--split .auth-register-section--role {
    margin-bottom: 1.25rem;
  }

  .page-auth-register.page-auth-register--split .auth-register-password-row {
    margin-bottom: 1.2rem;
  }

  .page-auth-register.page-auth-register--split .auth-register-terms {
    margin-bottom: 1.25rem;
  }

  .page-auth-register.page-auth-register--split .auth-login-input::placeholder {
    color: #94a3b8;
    opacity: 1;
  }

}

/* --- /auth/login (and split auth) — extra-narrow phones --- */
@media (max-width: 575.98px) {
  .page-auth-login.page-auth-login--split .auth-login-brand-col::after,
  .page-auth-forgot.page-auth-forgot--split .auth-login-brand-col::after,
  .page-auth-verify-email.page-auth-verify-email--split .auth-login-brand-col::after {
    content: none;
  }

  .page-auth-login.page-auth-login--split .auth-login-brand-col,
  .page-auth-forgot.page-auth-forgot--split .auth-login-brand-col,
  .page-auth-register.page-auth-register--split .auth-login-brand-col,
  .page-auth-verify-email.page-auth-verify-email--split .auth-login-brand-col {
    padding-left: max(1rem, env(safe-area-inset-left, 0px));
    padding-right: max(1rem, env(safe-area-inset-right, 0px));
    padding-bottom: 0.9rem;
  }

  .page-auth-login.page-auth-login--split .auth-login-form-card,
  .page-auth-register.page-auth-register--split .auth-login-form-card,
  .page-auth-forgot.page-auth-forgot--split .auth-login-form-card,
  .page-auth-verify-email.page-auth-verify-email--split .auth-login-form-card {
    padding-left: 1rem;
    padding-right: 1rem;
    border-radius: 0.75rem;
  }

  .page-auth-login.page-auth-login--split .auth-login-form-col,
  .page-auth-forgot.page-auth-forgot--split .auth-login-form-col,
  .page-auth-verify-email.page-auth-verify-email--split .auth-login-form-col {
    padding-left: max(0.75rem, env(safe-area-inset-left, 0px));
    padding-right: max(0.75rem, env(safe-area-inset-right, 0px));
  }

  /* Register: keep ~20px side padding on very narrow phones (matches field mockups) */
  .page-auth-register.page-auth-register--split .auth-login-form-col {
    padding-left: max(1.125rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.125rem, env(safe-area-inset-right, 0px));
  }

  .page-auth-register.page-auth-register--split .auth-login-form-card {
    padding-left: 1.125rem;
    padding-right: 1.125rem;
  }
}

/* --- /auth/register on split layout — same card width + rhythm as /auth/login --- */
.page-auth-register--split .auth-login-form-inner.auth-register-form-card {
  max-width: min(420px, 100%);
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}

.page-auth-register--split .auth-register-role-heading {
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.page-auth-register.page-auth-register--split .auth-register-role-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  min-height: 0;
  padding: 0.72rem 0.95rem !important;
  border-width: 1px !important;
  border-radius: 0.85rem;
  text-align: left;
  font-weight: 700;
  background: #f1f5f9 !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
  color: var(--dark) !important;
  box-shadow: none;
  transition: box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.18s ease;
}

.page-auth-register.page-auth-register--split #role_user:checked + .auth-register-role-btn {
  background: var(--dark) !important;
  border-color: var(--dark) !important;
  color: #fff !important;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.2);
}

.page-auth-register.page-auth-register--split #role_expert:checked + .auth-register-role-btn {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%) !important;
  border-color: rgba(248, 180, 0, 0.5) !important;
  color: var(--dark) !important;
  box-shadow: 0 10px 26px rgba(248, 180, 0, 0.35);
}

.page-auth-register.page-auth-register--split #role_expert:not(:checked) + .auth-register-role-btn {
  background: #f1f5f9 !important;
  border-color: rgba(226, 232, 240, 0.95) !important;
}

.page-auth-register--split .auth-register-role-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.page-auth-register--split .auth-register-role-text {
  min-width: 0;
  text-align: left;
}

.page-auth-register--split .auth-register-role-btn .role-title {
  font-size: 0.9rem;
  line-height: 1.25;
}

.page-auth-register--split .auth-register-role-btn .role-desc {
  font-size: 0.7rem;
  line-height: 1.3;
  margin-top: 0.05rem;
}

.page-auth-register--split .auth-register-role-block .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.page-auth-register--split .auth-login-form-card .form-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.page-auth-register--split .auth-register-section {
  margin-bottom: 1.25rem;
}

.page-auth-register--split .auth-register-section--role {
  margin-bottom: 1.15rem;
}

.page-auth-register--split .auth-register-section > .auth-login-field:not(:last-child) {
  margin-bottom: 1rem;
}

.page-auth-register--split .auth-register-section > .auth-login-field:last-child {
  margin-bottom: 0;
}

.page-auth-register--split .auth-register-password-row {
  margin-top: 0;
  margin-bottom: 1.35rem;
}

.page-auth-register--split .auth-register-password-row .auth-login-field {
  margin-bottom: 0;
}

.page-auth-register--split .auth-register-terms {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0;
  margin: 0 0 1.35rem;
}

.page-auth-register--split .auth-register-terms-input {
  width: 1.125rem;
  height: 1.125rem;
  min-width: 1.125rem;
  min-height: 1.125rem;
  margin: 0.2rem 0 0 0;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid #cbd5e1;
  border-radius: 0.3rem;
  accent-color: var(--brand);
}

.page-auth-register--split .auth-register-terms-input:focus {
  outline: 2px solid rgba(248, 180, 0, 0.45);
  outline-offset: 2px;
}

.page-auth-register--split .auth-register-terms-input:focus-visible {
  outline: 2px solid var(--dark);
  outline-offset: 2px;
}

.page-auth-register--split .auth-register-terms-label {
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0;
  line-height: 1.5;
  font-size: 0.8125rem;
  cursor: pointer;
  text-align: left;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.page-auth-register--split .auth-register-legal-link {
  color: #b45309;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.page-auth-register--split .auth-register-legal-link:hover {
  color: var(--brand-dark);
}

.page-auth-register--split .auth-login-submit {
  margin-top: 0.35rem;
}

.page-auth-register--split .auth-login-lead {
  max-width: 22rem;
}

/* Tablet portrait: a bit more breathing room */
@media (min-width: 576px) and (max-width: 991.98px) {
  .auth-login-form-col {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }

  .auth-login-brand-col {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

/* Short viewports: keep hero compact */
@media (max-width: 991.98px) and (max-height: 520px) {
  .auth-login-brand-col {
    padding-top: 0.65rem;
    padding-bottom: 0.75rem;
  }

  .auth-login-brand-inner {
    gap: 0.65rem;
  }

  .auth-login-quote-text {
    margin-bottom: 0.5rem;
    font-size: 0.98rem;
  }

  .auth-login-brand-col::after {
    font-size: clamp(3rem, 20vw, 4.5rem);
    opacity: 0.7;
  }
}

/* Extra-small phones: tighter hero */
@media (max-width: 380px) {
  .auth-login-brand-icon {
    width: 2.65rem;
    height: 2.65rem;
    font-size: 1.25rem;
  }

  .auth-login-quote-text {
    font-size: 1rem;
  }
}

.page-auth-register .auth-register-role-btn {
  border-radius: 0.75rem;
  text-align: center;
}
.page-auth-register #role_user:checked + .auth-register-role-btn .auth-register-role-icon {
  color: #fff !important;
}
.page-auth-register #role_user:checked + .auth-register-role-btn .role-title {
  color: #fff !important;
}
.page-auth-register #role_user:checked + .auth-register-role-btn .role-desc {
  color: rgba(255, 255, 255, 0.72) !important;
}
.page-auth-register #role_user:not(:checked) + .auth-register-role-btn .role-desc {
  color: #6c757d;
}
.page-auth-register #role_expert:checked + .auth-register-role-btn .role-title {
  color: #212529 !important;
}
.page-auth-register #role_expert:checked + .auth-register-role-btn .role-desc {
  color: rgba(33, 37, 41, 0.65) !important;
}
.page-auth-register #role_expert:checked + .auth-register-role-btn .text-warning {
  color: #212529 !important;
}
.page-auth-register #role_expert:not(:checked) + .auth-register-role-btn .role-title {
  color: var(--bs-warning);
}
.page-auth-register #role_expert:not(:checked) + .auth-register-role-btn .role-desc {
  color: #6c757d;
}

/* --- /contact — layout & responsive polish --- */
.page-contact {
  overflow-x: clip;
}

.page-contact .contact-hero {
  position: relative;
  padding-top: clamp(5.25rem, 14vw, 7.5rem);
  padding-bottom: clamp(2.25rem, 6vw, 3.5rem);
}

.page-contact .contact-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(248, 180, 0, 0.18) 0%, transparent 55%),
    radial-gradient(80% 60% at 100% 40%, rgba(59, 130, 246, 0.12) 0%, transparent 50%),
    linear-gradient(165deg, #0f172a 0%, #111827 45%, #0b1220 100%);
  pointer-events: none;
}

.page-contact .contact-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(248, 180, 0, 0.15);
  color: #fde68a;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.4rem 1rem;
  border-radius: 2rem;
  border: 1px solid rgba(248, 180, 0, 0.35);
}

.page-contact .contact-hero-title {
  font-size: clamp(1.85rem, 5vw, 2.75rem);
  line-height: 1.15;
  text-wrap: balance;
}

.page-contact .contact-hero-lead {
  font-size: clamp(0.95rem, 2.2vw, 1.15rem);
  line-height: 1.55;
  max-width: 36rem;
}

.page-contact .contact-main {
  margin-top: 0;
  padding-top: clamp(1.25rem, 3vw, 2rem);
  position: relative;
  z-index: 1;
}

.page-contact .contact-form-card {
  border: 1px solid var(--border);
}

.page-contact .contact-input {
  border-radius: 0.65rem;
  padding: 0.65rem 0.9rem;
  font-size: max(16px, 0.95rem);
}

.page-contact .contact-aside {
  position: relative;
}

@media (min-width: 992px) {
  .page-contact .contact-aside {
    position: sticky;
    top: 6.5rem;
  }
}

.page-contact .contact-info-tile {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.page-contact .contact-info-tile:hover {
  border-color: rgba(248, 180, 0, 0.45);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.page-contact .contact-info-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.75rem;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #b45309;
  font-size: 1.1rem;
}

.page-contact .contact-info-label {
  letter-spacing: 0.06em;
}

.page-contact .contact-info-link {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  word-break: break-word;
  text-decoration: underline;
  text-decoration-color: rgba(248, 180, 0, 0.55);
  text-underline-offset: 0.18em;
}

.page-contact .contact-info-link:hover {
  color: #b45309;
}

.page-contact .contact-social-btn {
  padding-inline: 0.85rem;
}

.page-contact .contact-faq .accordion-item:last-child {
  border-bottom: 0 !important;
}

.page-contact .contact-faq-btn {
  min-height: 2.85rem;
  padding: 0.65rem 0;
  font-size: 0.88rem;
}

