/* Institute Portal — CLATutor-inspired: white, black, amber accent. Sharp, minimal shadow. No green/teal. */
:root {
  --black: #0a0a0a;
  --white: #ffffff;
  --paper: #f6f6f6;
  --line: #d4d4d4;
  --line-light: #e8e8e8;
  --muted: #404040;
  --muted-light: #737373;
  --accent: #ffcc00;
  --accent-hover: #e6b800;
  --accent-ink: #0a0a0a;
  --link: #1e40af;
  --link-hover: #1d4ed8;
  --radius: 4px;
  --radius-sm: 3px;
  --sidebar-w: 288px;
  --font: 'Poppins', 'Segoe UI', system-ui, sans-serif;
  --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 4px 14px rgba(0, 0, 0, 0.07);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  /* semantic aliases for app pages */
  --text: var(--black);
  --bg-deep: var(--paper);
  --bg-card: var(--white);
  --bg-elevated: var(--white);
  --border: var(--line-light);
  --border-bright: var(--line);
  --success: #15803d;
  --danger: #b91c1c;
  --warning: #b45309;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

.ambient {
  display: none !important;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--white);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}

body.page-public,
body.page-login {
  background: var(--white);
  color: var(--black);
  padding-bottom: 0;
}

body.page-public > * ,
body.page-login > * {
  position: relative;
  z-index: 1;
}

/* Dashboard / CRM — light, airy */
body.app-body {
  background: var(--paper);
  color: var(--black);
  min-height: 100vh;
  overflow-x: hidden;
}

body.app-body::before {
  display: none;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s var(--ease);
}

a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* ——— Site header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--line-light);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  padding-inline: 20px;
}

/* Make the header brand flush to viewport edges */
.site-header .container {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
}

.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
  flex-wrap: nowrap;
}

.header-left {
  flex-shrink: 0;
  min-width: 0;
}

.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
  min-width: 0;
}

.header-center.site-nav {
  justify-content: center;
}

.header-right {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  min-width: 0;
}

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--black);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Keeps “CLAT” + “utor” as one unit so flex gap doesn’t insert space between T and u */
.logo__word {
  display: inline;
  white-space: nowrap;
}

.logo__accent {
  color: var(--accent);
  text-shadow: none;
}

.logo i {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  background: none;
  color: var(--black);
  font-size: 1.15rem;
  box-shadow: none;
}

.logo img.logo__mark {
  height: 1.65rem;
  width: auto;
  max-width: 2.5rem;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.logo__tag {
  display: block;
  font-size: 0.65rem;
  font-weight: 500;
  color: var(--muted-light);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 0.15rem;
  line-height: 1.2;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Top website nav (public pages) */
.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

@media (max-width: 720px) {
  .site-header .inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .header-center {
    width: 100%;
    justify-content: flex-start;
  }
}

.site-nav__link,
.site-nav summary {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--black);
  text-decoration: none;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.site-nav__link-label {
  display: inline;
}

.site-nav__link:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav__link[aria-current='page'] {
  color: var(--link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav__link[aria-current='page']:hover {
  color: var(--link-hover);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-nav__details {
  position: relative;
}

.site-nav__details > summary {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  outline: none;
}

.site-nav__details > summary:focus,
.site-nav__details > summary:focus-visible {
  outline: none;
  box-shadow: none;
}

.site-nav__details > summary::-webkit-details-marker {
  display: none;
}

.site-nav__dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 0.35rem);
  left: 50%;
  transform: translateX(-50%);
  min-width: 180px;
  padding: 0.35rem 0;
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: 8px;
  box-shadow: var(--shadow-card);
  z-index: 1000;
  text-align: left;
}

.site-nav__details[open] .site-nav__dropdown {
  display: block;
}

.site-nav__dropdown a {
  display: block;
  padding: 0.6rem 0.9rem;
  color: var(--black);
  font-weight: 500;
  text-decoration: none;
  font-size: 0.92rem;
  white-space: nowrap;
}

.site-nav__dropdown a:hover {
  background: var(--paper);
  color: var(--black);
  text-decoration: none;
}

.site-nav__dropdown a[aria-current="page"] {
  background: rgba(255, 204, 0, 0.22);
  color: var(--black);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--accent);
}

.site-nav__dropdown a[aria-current="page"]:hover {
  background: rgba(255, 204, 0, 0.3);
  color: var(--black);
}

/* ——— Hero ——— */
.hero {
  padding: 3rem 0 2.5rem;
  text-align: center;
  background: var(--white);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  border-radius: 2px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--black);
  background: var(--paper);
  border: 1px solid var(--line-light);
  margin-bottom: 1.25rem;
}

.hero h1,
.hero__title {
  font-size: clamp(1.85rem, 4.5vw, 2.65rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.75rem;
  line-height: 1.15;
  color: var(--black);
  -webkit-text-fill-color: currentColor;
  text-decoration: none;
}

/* Per-letter lift (login-style); motion in first 40%, then ~2s pause (60% of 3.33s) */
.hero__title .hero-title__char {
  display: inline-block;
  text-decoration: none;
  min-width: 0.02em;
  transform: translateY(0);
  animation: hero-title-char 3.33s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

.hero__title .hero-title__char--space {
  min-width: 0.22em;
}

@keyframes hero-title-char {
  0% {
    transform: translateY(0);
    color: inherit;
  }
  14% {
    transform: translateY(-0.4em);
    color: var(--black);
  }
  22% {
    transform: translateY(-0.4em);
    color: var(--black);
  }
  40% {
    transform: translateY(0);
    color: inherit;
  }
  40%,
  100% {
    transform: translateY(0);
    color: inherit;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__title .hero-title__char {
    animation: none;
    transform: none;
  }
}

.hero__rule {
  width: 4rem;
  height: 4px;
  background: var(--accent);
  margin: 0 auto 1.25rem;
  border: none;
}

.hero p.lead {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 400;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.06);
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero .nav-actions,
.hero__actions {
  justify-content: center;
}

/* Hero CTAs — Uiverse gharsh11032000 animated-button (theme: black / amber) */
.hero-btn-animated {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.65rem 1.35rem;
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid var(--black);
  background: var(--white);
  color: var(--black);
  transition: border-color 0.35s ease;
}

a.hero-btn-animated:hover,
a.hero-btn-animated:focus,
a.hero-btn-animated:visited,
a.hero-btn-animated:visited:hover {
  text-decoration: none;
}

/* Header: compact animated login (same treatment as hero “Student login”) */
.site-header__login {
  min-height: 2.45rem;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.site-header__login .arr-1 {
  width: 1.05rem;
  height: 1.05rem;
}

.hero-btn-animated .circle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s ease;
  z-index: 0;
}

.hero-btn-animated .text {
  position: relative;
  z-index: 1;
  white-space: nowrap;
  transition: color 0.45s ease;
}

.hero-btn-animated .arr-1 {
  position: relative;
  z-index: 1;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  fill: currentColor;
  transition:
    transform 0.35s ease,
    color 0.45s ease;
}

.hero-btn-animated:hover .circle {
  transform: translate(-50%, -50%) scale(22);
}

.hero-btn-animated:hover {
  color: var(--white);
}

.hero-btn-animated:hover .arr-1 {
  transform: translateX(4px);
}

.hero-btn-animated:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.hero-btn-animated--primary .circle {
  background: linear-gradient(145deg, #2a2a2a 0%, #0a0a0a 100%);
}

.hero-btn-animated--primary:hover {
  border-color: #0a0a0a;
}

/* Press-in / hover effect for "Enquire now" only */
a.hero-btn-animated--primary[href="#enquiry"] {
  box-shadow: inset 0px -6px 18px -6px rgba(0, 0, 0, 0),
    inset rgba(0, 0, 0, 0.18) -1px -1px 6px 0px,
    inset 12px 0px 12px -6px rgba(0, 0, 0, 0),
    inset -12px 0px 12px -6px rgba(0, 0, 0, 0),
    rgba(0, 0, 0, 0.14) -1px -1px 6px 0px;
}

a.hero-btn-animated--primary[href="#enquiry"]:hover {
  box-shadow: inset 0px -6px 18px -6px rgba(0, 0, 0, 0.55),
    inset 0px 6px 18px -6px rgba(0, 0, 0, 0.35),
    inset 12px 0px 12px -6px rgba(0, 0, 0, 0),
    inset -12px 0px 12px -6px rgba(0, 0, 0, 0),
    -1px -1px 6px 0px rgba(0, 0, 0, 0.22);
}

a.hero-btn-animated--primary[href="#enquiry"]:active {
  box-shadow: inset 0px -12px 12px -6px rgba(0, 0, 0, 0.7),
    inset 0px 12px 12px -6px rgba(0, 0, 0, 0.55),
    inset 12px 0px 12px -6px rgba(0, 0, 0, 0.45),
    inset -12px 0px 12px -6px rgba(0, 0, 0, 0.45),
    -1px -1px 6px 0px rgba(0, 0, 0, 0.35);
}

a.hero-btn-animated--primary[href="#enquiry"] .text {
  transition: transform 0.2s ease, color 0.45s ease;
}

a.hero-btn-animated--primary[href="#enquiry"]:hover .text {
  transform: scale(0.9);
}

a.hero-btn-animated--primary[href="#enquiry"]:active .text {
  transform: scale(0.8);
}

.hero-btn-animated--ghost {
  border: 2px solid var(--line);
  background: var(--white);
  color: var(--black);
}

.hero-btn-animated--ghost .circle {
  background: linear-gradient(145deg, #ffd84a 0%, var(--accent) 50%, #c9a000 100%);
}

.hero-btn-animated--ghost:hover {
  border-color: #c9a000;
  color: var(--accent-ink);
}

@media (prefers-reduced-motion: reduce) {
  .hero-btn-animated .circle {
    transition: none;
    transform: translate(-50%, -50%) scale(0);
  }

  .hero-btn-animated:hover .circle {
    transform: translate(-50%, -50%) scale(0);
  }

  .hero-btn-animated:hover {
    color: inherit;
  }

  .hero-btn-animated--primary:hover {
    color: var(--black);
  }

  .hero-btn-animated--ghost:hover {
    color: var(--black);
  }

  .hero-btn-animated:hover .arr-1 {
    transform: none;
  }
}

/* ——— Sections ——— */
.section {
  padding: 2.75rem 0;
  background: var(--white);
}

.section:nth-of-type(even) {
  background: var(--paper);
}

/* Branches: keep a clean white band under testimonials (paper) */
section.section.section--branches {
  background: var(--white);
}

.section__head {
  margin-bottom: 1.5rem;
}

.section h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 700;
  margin: 0 0 0.4rem;
  color: var(--black);
}

.section__accent {
  color: var(--accent);
  font-weight: 700;
}

.section__sub {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 38rem;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Cards — crisp edges, light shadow */
.card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.35rem;
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  box-shadow: var(--shadow-card);
}

.card:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: var(--shadow-elevated);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--black);
}

.card h3 .feat-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.6;
}

/* Programs grid — rotating amber border (Uiverse-style), scoped to .card--program only */
.card.card--program {
  position: relative;
  z-index: 0;
  overflow: hidden;
  padding: 0;
  border-radius: 1rem;
  border: 1px solid transparent;
  background: var(--white);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  isolation: isolate;
}

.card.card--program:hover {
  border-color: transparent;
  box-shadow: var(--shadow-elevated);
}

/* Rotating gradient ring (theme: amber / gold) */
.card.card--program::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100px;
  height: 140%;
  z-index: 0;
  margin: 0;
  background-image: linear-gradient(
    180deg,
    #fff3c4 0%,
    var(--accent) 35%,
    #e6a800 70%,
    #b8860b 100%
  );
  transform-origin: center center;
  animation: program-card-rot-border 3.5s linear infinite;
  pointer-events: none;
}

/* Inner face masks the centre so only the edge ring shows */
.card.card--program::after {
  content: '';
  position: absolute;
  inset: 3px;
  z-index: 1;
  border-radius: calc(1rem - 3px);
  background: var(--white);
  pointer-events: none;
}

@keyframes program-card-rot-border {
  from {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  to {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card.card--program::before {
    animation: none;
  }
}

/* Top-right corner accent (moved from card::after so glow can use ::before/::after) */
.program-card__inner::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  z-index: 3;
  width: 2.35rem;
  height: 2.35rem;
  pointer-events: none;
  background: linear-gradient(135deg, #ffd84a, var(--accent) 55%, #d9a600);
  border-radius: 0 1rem 0 2rem;
}

.program-card__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem 1.25rem 1.35rem;
}

.program-card__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
}

.card.card--program .feat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1rem;
  flex-shrink: 0;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.card.card--program .feat-icon .program-card__icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.card.card--program .program-card__title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.25;
  color: #262626;
}

.card.card--program .program-card__lead {
  margin: 0;
  font-size: 0.93rem;
  font-weight: 400;
  line-height: 1.55;
  color: var(--muted);
}

.program-card__line {
  width: 100%;
  height: 1px;
  margin: 0;
  border: none;
  background: var(--line-light);
}

.program-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.program-card__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--muted);
}

.program-card__check {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
  line-height: 0;
}

.program-card__check-img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

.card.card--program .program-card__cta {
  margin-top: 0.15rem;
  border-radius: 9999px;
  text-decoration: none;
  font-size: 0.8125rem;
}

.card.card--program .program-card__cta:hover {
  text-decoration: none;
}

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn:active {
  transform: scale(0.99);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

.btn-primary::after {
  display: none;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: var(--black);
  box-shadow: none;
}

.btn-ghost {
  background: var(--white);
  color: var(--black);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  background: var(--paper);
  border-color: var(--muted-light);
  color: var(--black);
}

.btn-block {
  width: 100%;
}

.btn-icon-only {
  padding: 0.5rem 0.65rem;
}

/* ——— Forms ——— */
.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--black);
}

.input-wrap {
  position: relative;
}

.input-wrap > i {
  position: absolute;
  left: 0.85rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted-light);
  font-size: 0.9rem;
  pointer-events: none;
  z-index: 1;
}

.input-wrap input,
.input-wrap select {
  padding-left: 2.35rem;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--black);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:hover,
select:hover,
textarea:hover {
  border-color: #bdbdbd;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06);
  background: var(--white);
}

textarea {
  min-height: 100px;
  resize: vertical;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.88rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  border: 1px solid var(--line);
}

.alert-success {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: var(--success);
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

/* Enquiry */
.enquiry-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 900px) {
  .enquiry-layout {
    grid-template-columns: 1fr 1fr;
  }
}

.enquiry-aside ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.enquiry-aside li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.93rem;
}

.enquiry-aside li i {
  margin-top: 0.15rem;
  color: var(--black);
}

/* Enquiry callback form — mi-series layout (Uiverse), amber / ink palette */
.enquiry-form-box {
  position: relative;
  width: 100%;
  max-width: 100%;
  background: linear-gradient(165deg, #fff8e8 0%, #fffdf6 45%, #fff5e0 100%);
  padding: 1.5rem 1.35rem 1.65rem;
  border-radius: 10px;
  border: 1px solid rgba(230, 184, 0, 0.35);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 10px 32px rgba(0, 0, 0, 0.06);
}

.enquiry-form-box #enquiry-alert:not(:empty) {
  margin-top: 1rem;
}

.enquiry-form {
  margin-top: 1rem;
}

.enquiry-form__column {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.enquiry-form__column:first-of-type {
  margin-top: 0;
}

@media (min-width: 540px) {
  .enquiry-form__column {
    flex-direction: row;
    gap: 1rem;
    align-items: stretch;
  }

  .enquiry-form__column .enquiry-form__input-box {
    flex: 1;
    min-width: 0;
  }
}

.enquiry-form__input-box {
  width: 100%;
  margin-top: 0;
}

.enquiry-form__input-box label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
  margin-bottom: 0.35rem;
}

.enquiry-form__input-box input,
.enquiry-form__select-wrap,
.enquiry-form__input-box textarea {
  margin-top: 0;
}

.enquiry-form__input-box input,
.enquiry-form__select-wrap {
  min-height: 40px;
  box-sizing: border-box;
}

.enquiry-form__input-box input,
.enquiry-form__select-wrap,
.enquiry-form__input-box textarea {
  width: 100%;
  outline: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--black);
  border: 1px solid rgba(201, 162, 0, 0.85);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.65);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.enquiry-form__input-box input,
.enquiry-form__input-box textarea {
  padding: 0 0.95rem;
}

.enquiry-form__input-box input::placeholder,
.enquiry-form__input-box textarea::placeholder {
  color: #808080;
}

.enquiry-form__input-box input:hover,
.enquiry-form__select-wrap:hover,
.enquiry-form__input-box textarea:hover {
  border-color: #b89800;
  background: rgba(255, 255, 255, 0.9);
}

.enquiry-form__input-box input:focus,
.enquiry-form__input-box textarea:focus {
  border-color: var(--black);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  background: var(--white);
}

.enquiry-form__select-wrap {
  display: flex;
  align-items: stretch;
  border-radius: 6px;
  overflow: hidden;
}

.enquiry-form__select-wrap select {
  flex: 1;
  min-height: 40px;
  padding: 0 2rem 0 0.95rem;
  border: none;
  cursor: pointer;
  appearance: none;
  font-size: 1rem;
  font-family: inherit;
  color: var(--black);
  background-color: transparent;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23404040' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
}

.enquiry-form__select-wrap:hover {
  border-color: #b89800;
  background: rgba(255, 255, 255, 0.9);
}

.enquiry-form__select-wrap:focus-within {
  border-color: var(--black);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
  background: var(--white);
}

.enquiry-form__select-wrap select:focus {
  outline: none;
}

.enquiry-form__input-box--message {
  margin-top: 0.75rem;
}

.enquiry-form__input-box--message textarea {
  display: block;
  min-height: 100px;
  padding: 0.65rem 0.95rem;
  resize: vertical;
  line-height: 1.45;
}

.enquiry-form__submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 42px;
  margin-top: 1.1rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  color: var(--accent-ink);
  background: linear-gradient(180deg, #ffd84a 0%, var(--accent) 55%, #e6b800 100%);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
  transition: filter 0.2s ease, transform 0.15s ease;
}

.enquiry-form__submit:hover {
  filter: brightness(0.97);
}

.enquiry-form__submit:active {
  transform: translateY(1px);
}

.enquiry-form__submit:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.enquiry-form-box .alert {
  margin-bottom: 0;
}

/* Section note — Google reviews cue */
.section__sub--google-note {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.5rem 0 0;
  font-size: 0.88rem;
  color: var(--muted-light);
}

.section__google-mark {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Testimonials — Google-review inspired (not a copy); scoped */
.testimonial-carousel {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 0.9rem;
  min-height: 0;
}

.testimonial-carousel .testimonial-grid {
  flex: 1 1 auto;
  min-width: 0;
}

.testimonial-nav {
  flex: 0 0 2.35rem;
  align-self: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  border: 1px solid var(--line-light);
  background: var(--white);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  transition: box-shadow 0.2s var(--ease), transform 0.15s var(--ease);
}

.testimonial-nav:hover {
  box-shadow: var(--shadow-elevated);
  transform: translateY(-1px);
}

.testimonial-nav:active {
  transform: translateY(0);
}

/* [hidden] must win over `.testimonial-nav { display: flex }` or buttons stay visible */
.testimonial-nav[hidden] {
  display: none !important;
  pointer-events: none;
}

.testimonial-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 720px) {
  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  max-width: 100%;
  padding: 0;
  overflow: visible;
  background: var(--white);
  border: 1px solid #e8eaed;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(60, 64, 67, 0.12);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.testimonial-card:hover {
  border-color: #dadce0;
  box-shadow: 0 2px 8px rgba(60, 64, 67, 0.14);
}

.testimonial-card__inner {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  padding: 1.1rem 1.1rem 1.15rem;
}

.testimonial-card__head {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.75rem;
  min-width: 0;
}

.testimonial-card__avatar {
  flex-shrink: 0;
  width: 2.75rem;
  height: 2.75rem;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: #f1f3f4;
  border: 1.5px solid #000;
}

.testimonial-card__photo {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 50%;
}

.testimonial-card__identity {
  flex: 1 1 auto;
  min-width: 0;
}

.testimonial-card .testimonial-card__name {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: #202124;
  line-height: 1.25;
  letter-spacing: 0.01em;
}

.testimonial-card__context {
  margin: 0.2rem 0 0;
  font-size: 0.78rem;
  color: #5f6368;
  line-height: 1.35;
}

.testimonial-card__time {
  display: block;
  margin: 0.15rem 0 0;
  font-size: 0.75rem;
  color: #80868b;
}

.testimonial-card__brand {
  position: relative;
  flex-shrink: 0;
  margin-left: auto;
  padding-left: 0.35rem;
}

/* Hover tooltip — black bubble left of Google icon, caret points right */
.testimonial-card__g-tip {
  position: absolute;
  right: calc(100% + 6px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: #000;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 500;
  font-family: var(--font);
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.15s ease,
    visibility 0.15s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.testimonial-card__g-tip::after {
  content: '';
  position: absolute;
  left: 100%;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 7px;
  border-color: transparent transparent transparent #000;
}

.testimonial-card__brand:hover .testimonial-card__g-tip {
  opacity: 1;
  visibility: visible;
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-card__g-tip {
    transition: none;
  }
}

.testimonial-card__google {
  display: block;
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.testimonial-card__rating {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.testimonial-card__stars {
  display: inline-flex;
  align-items: center;
  gap: 0.12rem;
  font-size: 0.82rem;
  color: #fbbc04;
  filter: none;
}

.testimonial-card__verified {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: #1a73e8;
  color: #fff;
  font-size: 0.55rem;
  line-height: 1;
}

.testimonial-card__quote {
  margin: 0.75rem 0 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: #3c4043;
  text-align: left;
  border: none;
  quotes: none;
  display: -webkit-box;
  -webkit-line-clamp: 6;
  line-clamp: 6;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.testimonial-card__quote::before {
  content: none;
}

/* ——— Our Branches: horizontal 16:9 embed, copy, compact map CTA ——— */
.branches-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .branches-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
  }
}

.branch-card {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-height: 0;
  padding: 1.25rem 1.25rem 1.2rem;
  border-radius: 1rem;
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: var(--shadow-card);
  transition:
    border-color 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
}

.branch-card:hover {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: var(--shadow-elevated);
}

.branch-card__embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #0f0f0f;
}

.branch-card__embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.file-protocol-banner {
  padding: 0.55rem 1rem;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--black);
  background: linear-gradient(90deg, rgba(255, 204, 0, 0.35) 0%, rgba(255, 230, 140, 0.45) 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  text-align: center;
}

.file-protocol-banner code {
  font-size: 0.78em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.65);
}

.branch-card__body {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.branch-card__title {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--black);
  line-height: 1.2;
}

.branch-card__line {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--muted);
}

.branch-card__bottom {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
}

.branch-card__map-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  align-self: flex-start;
  width: auto;
  max-width: 100%;
  padding: 0.32rem 0.65rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--accent-ink);
  background: var(--accent);
  border: 1px solid rgba(0, 0, 0, 0.1);
  transition:
    background 0.15s ease,
    filter 0.15s ease;
}

.branch-card__map-btn .fa-map-location-dot {
  font-size: 0.72em;
}

.branch-card__map-btn:hover {
  background: var(--accent-hover);
  filter: none;
  text-decoration: none;
  color: var(--black);
}

.branch-card__map-btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

/* ——— Login ——— */
.login-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr;
  align-items: stretch;
  background: var(--paper);
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: hidden;
}

@media (min-width: 960px) {
  .login-page {
    /* minmax(0,…) lets columns shrink — avoids horizontal page scroll */
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  }
}

.login-hero {
  display: none;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 7vh, 4.5rem) clamp(1.25rem, 4vw, 2.5rem);
  /* Fills vertical space with a calm, editorial tone (not flat white) */
  background: linear-gradient(
    165deg,
    #eceef0 0%,
    #f3f4f6 22%,
    #f9fafb 55%,
    #f4f5f7 100%
  );
  border-right: 1px solid var(--line-light);
  min-width: 0;
  overflow-x: hidden;
}

.login-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    ellipse 85% 55% at 50% -15%,
    rgba(255, 204, 0, 0.09),
    transparent 58%
  );
}

.login-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image: radial-gradient(rgba(10, 10, 10, 0.035) 1px, transparent 0);
  background-size: 22px 22px;
}

@media (min-width: 960px) {
  .login-hero {
    display: flex;
  }
}

/* ilkhoeri-inspired card: soft layered shadow + floating badge — theme: black / white / amber */
.login-hero-card {
  --login-hero-card-shadow: 0 1px 2px rgba(60, 64, 67, 0.12),
    0 4px 12px rgba(60, 64, 67, 0.08),
    0 12px 28px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  margin-top: 1.75rem;
  border-radius: 1rem;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: var(--login-hero-card-shadow);
}

.login-hero-card__badge {
  position: absolute;
  top: 0;
  left: 50%;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 14px;
  transform: translate(-50%, -50%);
  background: linear-gradient(155deg, #ffd84a 0%, var(--accent) 48%, #d9a600 100%);
  color: var(--accent-ink);
  border: 3px solid var(--white);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04) inset;
}

.login-hero-card__badge i {
  font-size: 1.45rem;
}

.login-hero-card__body {
  padding: 2.35rem clamp(1.25rem, 3vw, 2rem) 1.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .login-hero-card__body {
    gap: 1.5rem 2rem;
    column-gap: clamp(1.25rem, 3vw, 2.5rem);
  }
}

@media (min-width: 1100px) {
  .login-hero-card__body {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  }
}

.login-hero-card__intro {
  min-width: 0;
}

.login-hero-card__features-col {
  min-width: 0;
  padding-top: 0.15rem;
}

@media (min-width: 960px) and (max-width: 1099px) {
  .login-hero-card__features-col {
    border-top: 1px solid var(--line-light);
    padding-top: 1.25rem;
  }
}

@media (min-width: 1100px) {
  .login-hero-card__features-col {
    border-left: 1px solid var(--line-light);
    border-top: none;
    padding-top: 0.15rem;
    padding-left: clamp(1.25rem, 2.5vw, 2rem);
    margin-left: 0;
  }
}

.login-hero-card__eyebrow {
  margin-bottom: 0.5rem;
}

.login-hero__title {
  font-size: clamp(1.5rem, 2.6vw, 2.05rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 0.75rem;
  color: var(--black);
  -webkit-text-fill-color: currentColor;
  background: none;
}

.login-hero__rule {
  width: 3.5rem;
  height: 4px;
  border: none;
  margin: 0 0 1rem;
  border-radius: 2px;
  background: linear-gradient(90deg, #e6b800 0%, var(--accent) 40%, #ffd84a 100%);
}

.login-hero__text {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: none;
  line-height: 1.65;
  margin: 0;
  text-align: left;
}

.login-hero__features {
  display: grid;
  gap: 0;
}

.login-hero__feat {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-light);
  border-radius: 0;
  background: none;
  border-left: none;
  border-right: none;
  border-top: none;
}

.login-hero__feat:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.login-hero__feat:hover {
  transform: none;
  background: none;
}

.login-hero__feat > div {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.login-hero__feat-title {
  display: block;
  color: var(--black);
  font-size: 0.95rem;
  font-weight: 700;
}

.login-hero__feat-desc {
  display: block;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.login-hero__feat i {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #fff4c2 0%, var(--accent) 52%, #e0ac00 100%);
  color: var(--accent-ink);
  border: 1px solid rgba(0, 0, 0, 0.07);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
  font-size: 1rem;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem clamp(1rem, 4vw, 1.5rem);
  background: var(--paper);
  min-width: 0;
  box-sizing: border-box;
}

.login-card {
  width: min(420px, 100%);
  max-width: 100%;
  min-width: 0;
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem clamp(1.25rem, 4vw, 1.75rem);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line-light);
  box-sizing: border-box;
}

.login-card h1 {
  margin: 0 0 0.25rem;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--black);
}

.login-card .sub {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 1.25rem;
}

.login-card .sub code {
  font-size: 0.82em;
  padding: 0.15rem 0.35rem;
  border-radius: 2px;
  background: var(--paper);
  color: var(--black);
  font-weight: 600;
  border: 1px solid var(--line-light);
}

/* Only standard field labels — role pills define their own colors */
.login-card .form-group > label {
  color: var(--black);
}

.login-card select {
  background: var(--paper) !important;
  border-color: var(--line) !important;
  color: var(--black) !important;
}

.login-card select:focus {
  border-color: var(--black) !important;
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.06) !important;
}

.login-card .input-wrap > i {
  color: var(--muted-light);
}

/* ——— Floating animated labels (Uiverse-style) — adapted to light theme ——— */
.form-group--float {
  margin-bottom: 0.5rem;
}

.login-card .form-control--login {
  position: relative;
  margin: 1.5rem 0 0.25rem;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.login-card .form-control__icon {
  position: absolute;
  left: 0;
  bottom: 0.55rem;
  font-size: 1.05rem;
  color: var(--muted-light);
  pointer-events: none;
  z-index: 1;
  line-height: 1;
}

.login-card .form-control--login:focus-within .form-control__icon {
  color: var(--black);
}

.login-card .form-control--login input {
  background-color: transparent !important;
  border: 0 !important;
  border-bottom: 2px solid var(--line) !important;
  display: block;
  width: 100%;
  padding: 1rem 0 0.5rem 2rem !important;
  font-size: 1rem !important;
  color: var(--black) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.login-card .form-control--password input {
  padding-right: 2.35rem !important;
}

.login-card .form-control--login input:focus,
.login-card .form-control--login input:valid {
  outline: 0 !important;
  border-bottom-color: var(--black) !important;
  box-shadow: none !important;
}

.login-card .form-control--login label {
  position: absolute;
  top: 1rem;
  left: 2rem;
  pointer-events: none;
  white-space: nowrap;
}

.login-card .form-control--login label span {
  display: inline-block;
  font-size: 1rem;
  min-width: 0.28em;
  color: var(--muted);
  transition:
    color 0.25s ease,
    transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.login-card .form-control--login input:focus + label span,
.login-card .form-control--login input:valid + label span {
  color: var(--black);
  transform: translateY(-1.75rem);
}

/* Keep autofill from breaking transparent / underline look */
.login-card .form-control--login input:-webkit-autofill,
.login-card .form-control--login input:-webkit-autofill:hover,
.login-card .form-control--login input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--white) inset !important;
  transition: background-color 99999s ease-out;
}

@media (prefers-reduced-motion: reduce) {
  .login-card .form-control--login label span {
    transition: color 0.15s ease;
  }
}

.login-card .form-control__toggle {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  border: none;
  background: none;
  color: var(--muted-light);
  cursor: pointer;
  padding: 0.35rem;
  z-index: 2;
  border-radius: 2px;
}

.login-card .form-control__toggle:hover {
  color: var(--black);
  background: var(--paper);
}

.role-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.role-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.role-option label {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.7rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--muted);
  box-shadow: 0.2em 0.2em 0.28em rgba(0, 0, 0, 0.08);
  transition:
    border-color 0.2s,
    background 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.15s;
  overflow: hidden;
}

/* Folded-corner paper effect (Uiverse / ferlagher) — neutrals only, keeps existing fills */
.role-option label::before {
  position: absolute;
  content: '';
  height: 0;
  width: 0;
  top: 0;
  left: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    135deg,
    #ececec 0%,
    #ececec 50%,
    #d8d8d8 50%,
    #cbcbcb 60%
  );
  border-radius: 0 0 var(--radius) 0;
  box-shadow: 0.12em 0.12em 0.18em rgba(0, 0, 0, 0.12);
  transition: width 0.3s ease, height 0.3s ease;
}

.role-option label:hover::before {
  width: 1.6em;
  height: 1.6em;
}

.role-option label > i,
.role-option label > b {
  position: relative;
  z-index: 1;
  font-weight: inherit;
}

.role-option label:hover {
  border-color: var(--black);
  background: var(--paper);
}

.role-option label:active {
  box-shadow: 0.1em 0.1em 0.2em rgba(0, 0, 0, 0.12);
  transform: translate(0.08em, 0.08em);
}

.role-option input:checked + label {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
  box-shadow: 0.2em 0.2em 0.32em rgba(0, 0, 0, 0.22);
}

.role-option input:checked + label::before {
  background: linear-gradient(
    135deg,
    #3a3a3a 0%,
    #3a3a3a 50%,
    #1f1f1f 50%,
    #121212 60%
  );
  box-shadow: 0.12em 0.12em 0.2em rgba(0, 0, 0, 0.35);
}

.role-option input:checked + label i {
  color: var(--white);
}

.role-option input:checked + label:active {
  box-shadow: 0.1em 0.1em 0.22em rgba(0, 0, 0, 0.35);
}

/* Continue — Uiverse pill + arrow (alexmaracinaru), full-width on login card */
.btn-continue-pill {
  cursor: pointer;
  font-family: var(--font);
  font-weight: 700;
  transition: background 0.2s, transform 0.15s;
  padding: 10px 20px;
  border-radius: 100px;
  background: var(--accent);
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: var(--accent-ink);
  width: 100%;
  margin-top: 1.35rem;
  box-sizing: border-box;
}

.btn-continue-pill:hover {
  background: var(--accent-hover);
}

.btn-continue-pill > svg {
  width: 34px;
  height: 34px;
  margin-left: 10px;
  flex-shrink: 0;
  transition: transform 0.3s ease-in-out;
}

.btn-continue-pill:hover > svg {
  transform: translateX(5px);
}

.btn-continue-pill:active {
  transform: scale(0.95);
}

.btn-continue-pill:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.back-link {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  max-width: 100%;
}

/* Uiverse-inspired back control (Jedi-hongbin) — login only */
.login-back-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 3em;
  min-width: 100px;
  padding: 0 0.75rem;
  letter-spacing: 1px;
  border: none;
  border-radius: 3px;
  background: #fff;
  color: var(--black);
  font-size: 0.875rem;
  font-weight: 600;
  font-family: var(--font-body, inherit);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s linear;
}

.login-back-btn__icon {
  flex-shrink: 0;
  margin-left: 5px;
  margin-right: 5px;
  fill: currentColor;
  width: 16px;
  height: 16px;
  transition: transform 0.4s ease-in;
}

.login-back-btn:hover {
  transform: translateY(-2px);
  /* box-shadow: 9px 9px 33px rgba(209, 209, 209, 0.75),
    -9px -9px 33px rgba(255, 255, 255, 0.95); */
  color: var(--black);
}

.login-back-btn:hover .login-back-btn__icon {
  transform: translateX(-5px) scale(1.2);
}

.login-back-btn:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
}

.brand-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted-light);
}

/* ——— App shell (student / CRM) ——— */
.app-shell {
  display: flex;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: linear-gradient(180deg, #f6f6f6 0%, #fafafa 28%, #ffffff 100%);
  border-right: 1px solid var(--line-light);
  padding: 1.15rem 0 1rem;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 200;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.04);
}

.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.sidebar .brand {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 1rem 1.15rem;
  margin: 0 0.85rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.brand__mark {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #ffd84a 0%, var(--accent) 55%, #d9a600 100%);
  color: var(--accent-ink);
  font-size: 1.1rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.06);
}

.brand__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  min-width: 0;
}

.sidebar .brand .logo {
  font-size: 0.98rem;
  line-height: 1.25;
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

.sidebar .brand .brand-tag {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted-light);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0 0.75rem;
  flex: 1;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.75rem;
  margin: 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid transparent;
  position: relative;
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease),
    border-color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}

.sidebar-nav a > i {
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.92rem;
  background: rgba(0, 0, 0, 0.04);
  color: var(--muted);
  transition:
    background 0.18s var(--ease),
    color 0.18s var(--ease);
}

.sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.9);
  color: var(--black);
  border-color: var(--line-light);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.sidebar-nav a:hover > i {
  background: rgba(255, 204, 0, 0.2);
  color: var(--black);
}

.sidebar-nav a.active {
  background: var(--black);
  color: var(--white);
  border-color: rgba(0, 0, 0, 0.15);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.sidebar-nav a.active:hover {
  background: #141414;
  color: var(--white);
  border-color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.14);
}

.sidebar-nav a.active::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 1.35rem;
  border-radius: 0 3px 3px 0;
  background: var(--accent);
}

.sidebar-nav a.active > i {
  background: rgba(255, 204, 0, 0.95);
  color: var(--accent-ink);
}

.sidebar-nav a.active:hover > i {
  background: rgba(255, 220, 80, 1);
  color: var(--accent-ink);
}

.sidebar .user-block {
  padding: 1rem 0.85rem;
  margin: 0.75rem 0.85rem 0;
  margin-top: auto;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--line-light);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
}

.user-pill {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffd84a 0%, var(--accent) 60%, #d9a600 100%);
  color: var(--accent-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
  border: 2px solid var(--white);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-meta strong {
  display: block;
  font-size: 0.9rem;
  color: var(--black);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.user-meta span {
  font-size: 0.74rem;
  color: var(--muted);
}

.sidebar .user-block .btn-ghost {
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: 1.5px solid var(--black);
  padding: 0.55rem 0.75rem;
  background: var(--white);
  transition:
    background 0.15s var(--ease),
    color 0.15s var(--ease);
}

.sidebar .user-block .btn-ghost:hover {
  background: var(--black);
  color: var(--white);
  border-color: var(--black);
}

.main-wrap {
  flex: 1;
  margin-left: var(--sidebar-w);
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
}

.topbar {
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--line-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar h1 {
  font-size: 1.2rem;
  margin: 0;
  font-weight: 700;
  color: var(--black);
  background: none;
  -webkit-text-fill-color: currentColor;
}

.page-content {
  padding: 1.5rem;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 150;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.sidebar-backdrop.visible {
  opacity: 1;
}

@media (max-width: 900px) {
  .sidebar-backdrop.visible {
    display: block;
  }

  .sidebar {
    transform: translateX(-102%);
    transition: transform 0.3s var(--ease);
  }

  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
  }

  .main-wrap {
    margin-left: 0;
  }

  .mobile-nav-toggle {
    display: inline-flex !important;
  }
}

.mobile-nav-toggle {
  display: none;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

th,
td {
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line-light);
}

th {
  background: var(--paper);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

tbody tr:hover {
  background: #fafafa;
}

tbody tr:last-child td {
  border-bottom: none;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

/* Badges */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 2px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.badge-new {
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
}

.badge-contacted {
  background: var(--paper);
  color: var(--black);
  border: 1px solid var(--line);
}

.badge-enrolled {
  background: #ecfdf5;
  color: var(--success);
  border: 1px solid #a7f3d0;
}

.badge-lost {
  background: #fef2f2;
  color: var(--danger);
  border: 1px solid #fecaca;
}

/* Stat cards */
.stat-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}

.stat-card::before {
  content: '';
  display: block;
  height: 3px;
  background: var(--accent);
  margin: -1.1rem -1.2rem 0.85rem;
  width: calc(100% + 2.4rem);
  border-radius: var(--radius) var(--radius) 0 0;
}

.stat-card:hover {
  transform: none;
  box-shadow: var(--shadow-elevated);
}

.stat-card .num {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 0;
  color: var(--black);
  -webkit-text-fill-color: currentColor;
  background: none;
}

.stat-card .lbl {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted-light);
}

.course-grid {
  display: grid;
  gap: 1.1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.course-card h4 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 600;
}

.course-card .meta {
  font-size: 0.85rem;
  color: var(--muted);
}

/* Student courses — YouTube modal */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.video-modal[hidden] {
  display: none !important;
}

.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  cursor: pointer;
}

.video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: min(90vh, 100%);
  display: flex;
  flex-direction: column;
  background: #0a0a0a;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.6rem 0.65rem 0.6rem 1rem;
  background: linear-gradient(180deg, #141414 0%, #0d0d0d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.video-modal__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: #fafafa;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.video-modal__file-hint {
  margin: 0;
  padding: 0.65rem 1rem 0.85rem;
  font-size: 0.82rem;
  line-height: 1.5;
  color: #1a1a1a;
  background: linear-gradient(180deg, #fff6cc 0%, #ffe066 35%, #ffcc00 100%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.video-modal__file-hint code {
  font-size: 0.78em;
  padding: 0.1em 0.35em;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
}

.video-modal__file-hint-link {
  display: inline-block;
  margin-top: 0.4rem;
  font-weight: 700;
  color: var(--black);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.video-modal__file-hint-link:hover {
  color: #404040;
}

.video-modal__close {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.15rem;
  cursor: pointer;
  transition: background 0.15s var(--ease);
}

.video-modal__close:hover {
  background: rgba(255, 204, 0, 0.25);
  color: var(--accent);
}

.video-modal__close:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.video-modal__frame-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-modal__iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Promo popup — theme-matched (black/white/amber) */
.enroll-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.enroll-modal.open {
  display: flex;
}

.enroll-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  cursor: pointer;
  z-index: 0;
}

.enroll-modal__dialog {
  position: relative;
  width: min(860px, 100%);
  max-height: min(86vh, 100%);
  overflow: auto;
  z-index: 1;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  transform: none;
  opacity: 0;
  transition: opacity 0.2s var(--ease);
}

.enroll-modal.open .enroll-modal__dialog {
  opacity: 1;
}

.enroll-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.1rem 0.85rem;
  border-bottom: 1px solid var(--line-light);
  background: linear-gradient(
    135deg,
    rgba(255, 204, 0, 0.24) 0%,
    rgba(255, 204, 0, 0.06) 50%,
    rgba(255, 255, 255, 1) 100%
  );
}

.enroll-modal__titles {
  min-width: 0;
}

.enroll-modal__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--black);
  margin-bottom: 0.55rem;
}

.enroll-modal__title {
  margin: 0;
  font-size: clamp(1.25rem, 2.6vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--black);
  line-height: 1.3;
}

.enroll-modal__close {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
  color: var(--black);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  transition: background 0.15s var(--ease), transform 0.15s var(--ease);
}

.enroll-modal__close:hover {
  background: var(--paper);
  transform: translateY(-1px);
}

.enroll-modal__close:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 2px;
}

.enroll-modal__body {
  padding: 1.15rem 1.15rem 1.35rem;
}

.enroll-modal__headline {
  margin: 0;
  text-align: center;
  font-weight: 500;
  font-style: normal;
  letter-spacing: normal;
  color: var(--black);
}

.enroll-modal__sub {
  margin: 0.75rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
}

.enroll-modal__list {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.8;
}

.enroll-modal__cta {
  margin-top: 1.2rem;
  display: flex;
  justify-content: center;
}

.enroll-modal__cta-btn {
  width: min(260px, 100%);
  justify-content: center;
}

@media (max-width: 560px) {
  .enroll-modal__head {
    padding: 1rem 0.9rem 0.8rem;
  }

  .enroll-modal__body {
    padding: 1rem 0.9rem 1.2rem;
  }
}

.progress {
  height: 6px;
  border-radius: 2px;
  background: var(--line-light);
  overflow: hidden;
  margin-top: 0.65rem;
}

.progress__bar {
  height: 100%;
  border-radius: 2px;
  background: var(--black);
  transition: width 0.5s var(--ease);
}

.panel-glow {
  border: 1px solid var(--line-light);
  background: var(--white);
  box-shadow: var(--shadow-card);
}

.announce-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.7;
}

.announce-list strong {
  color: var(--black);
}

.notif-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line-light);
  background: var(--white);
  margin-bottom: 0.65rem;
  box-shadow: var(--shadow-card);
}

.notif-item:hover {
  border-color: var(--line);
  transform: none;
}

.notif-item time {
  font-size: 0.78rem;
  color: var(--muted-light);
  white-space: nowrap;
}

/* ——— Site footer (CLATutor-style: dark band + amber bar) ——— */
.site-footer {
  margin-top: 0;
}

.site-footer__main {
  background: #0a0a0a;
  color: #f5f5f5;
  padding: clamp(2.5rem, 5vw, 3.5rem) 0;
  border-top: 1px solid rgba(255, 204, 0, 0.15);
}

.site-footer__grid {
  display: grid;
  gap: 2rem 2.5rem;
  grid-template-columns: 1fr;
}

/* Keep footer arrangement consistent on phones:
   brand full-width, then 2-column link blocks like the reference layout. */
@media (max-width: 639px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.75rem 1.5rem;
  }

  .site-footer__brand {
    grid-column: 1 / -1;
  }

  .site-footer__col {
    min-width: 0;
  }
}

@media (min-width: 640px) {
  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .site-footer__grid {
    grid-template-columns: 1.15fr repeat(3, minmax(0, 1fr)) 1.2fr;
    align-items: start;
  }
}

.site-footer__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.site-footer__social-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 204, 0, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.88rem;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(255, 204, 0, 0.25);
  transition:
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease;
}

.site-footer__social-link:hover {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
  text-decoration: none;
  animation: site-footer-social-bounce 0.45s ease;
}

.site-footer__social-link--facebook:hover {
  background: linear-gradient(145deg, #1877f2 0%, #0d5dbf 100%);
}

.site-footer__social-link--twitter:hover {
  background: linear-gradient(145deg, #1d9bf0 0%, #0d8ecf 100%);
}

.site-footer__social-link--linkedin:hover {
  background: linear-gradient(145deg, #0a66c2 0%, #084d94 100%);
}

.site-footer__social-link--whatsapp:hover {
  background: linear-gradient(145deg, #25d366 0%, #128c7e 100%);
}

.site-footer__social-link--telegram:hover {
  background: linear-gradient(145deg, #229ed9 0%, #0088cc 100%);
}

.site-footer__social-link--email:hover {
  background: linear-gradient(145deg, #ffcc00 0%, #e6a800 100%);
  color: #0a0a0a;
  box-shadow: 0 6px 18px rgba(255, 204, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .site-footer__social-link:hover {
    animation: none;
  }
}

@keyframes site-footer-social-bounce {
  0% {
    transform: scale(1);
  }

  40% {
    transform: scale(1.18);
  }

  60% {
    transform: scale(0.92);
  }

  80% {
    transform: scale(1.08);
  }

  100% {
    transform: scale(1);
  }
}

.site-footer__social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Clicks land on the <a>, not the icon glyph (fixes “nothing happens” on some browsers) */
.site-footer__social-link > i {
  pointer-events: none;
}

.site-footer__logo-block {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
}

.site-footer__logo-mark {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.site-footer__logo-mark img {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  display: block;
}

.site-footer__logo-word {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.site-footer__logo-accent {
  color: var(--accent);
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: rgba(255, 255, 255, 0.85);
}

.site-footer__heading {
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__links li {
  margin-bottom: 0.55rem;
}

.site-footer__links a {
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s ease;
}

.site-footer__links a:hover {
  color: #ffe066;
  text-decoration: none;
}

.site-footer__contact {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__contact li {
  margin-bottom: 0.65rem;
}

.site-footer__contact a,
.site-footer__contact-note {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--accent);
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: #ffe066;
  text-decoration: none;
}

.site-footer__contact a > i {
  pointer-events: none;
}

.site-footer__contact i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--accent);
}

.site-footer__contact-note {
  color: rgba(255, 204, 0, 0.9);
}

.site-footer__contact-loc {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--accent);
}

.site-footer__contact-loc i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--accent);
}

.site-footer__contact-loc a {
  display: inline;
  margin-left: 0.2rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__contact-loc a:hover {
  color: #ffe066;
}

.site-footer__bar {
  background: var(--accent);
  color: var(--accent-ink);
  padding: 0.65rem 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.site-footer__bar-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.site-footer__copy {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent-ink);
}

.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  justify-content: center;
}

@media (min-width: 720px) {
  .site-footer__bar-inner {
    grid-template-columns: 1fr auto 1fr;
    gap: 0.75rem 1rem;
    justify-items: stretch;
    text-align: initial;
  }

  .site-footer__copy {
    grid-column: 2;
    justify-self: center;
    text-align: center;
  }

  .site-footer__legal {
    grid-column: 3;
    justify-self: end;
    justify-content: flex-end;
  }
}

.site-footer__legal a {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-ink);
  text-decoration: none;
}

.site-footer__legal a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Legacy single-line footer (unused on index; kept for older pages if any) */
.footer-min {
  text-align: center;
  padding: 2rem 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line-light);
  background: var(--paper);
}

.crm-form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

select.stage-select {
  padding: 0.4rem 0.55rem;
  font-size: 0.84rem;
  border-radius: var(--radius);
}

.text-muted {
  color: var(--muted);
}

.mt-0 {
  margin-top: 0;
}

.mb-1 {
  margin-bottom: 1rem;
}

code {
  font-family: ui-monospace, monospace;
  font-size: 0.85em;
  padding: 0.15em 0.4em;
  border-radius: 2px;
  background: var(--paper);
  border: 1px solid var(--line-light);
  color: var(--black);
}

.nav-auth {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--black);
}

.nav-auth a {
  color: var(--black);
  text-decoration: none;
}

.nav-auth a:hover {
  color: var(--link-hover);
  text-decoration: underline;
}

.nav-auth a.hero-btn-animated:hover,
.nav-auth a.hero-btn-animated:focus,
.nav-auth a.hero-btn-animated:visited:hover {
  text-decoration: none;
}

/* Keep header Register / Log In text color unchanged on hover */
.nav-auth a.hero-btn-animated.site-header__login,
.nav-auth a.hero-btn-animated.site-header__login:hover,
.nav-auth a.hero-btn-animated.site-header__login:focus {
  color: var(--black) !important;
}

.nav-auth a.hero-btn-animated.site-header__login .text,
.nav-auth a.hero-btn-animated.site-header__login:hover .text,
.nav-auth a.hero-btn-animated.site-header__login:focus .text {
  color: var(--black) !important;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
