/* ===================================
   THE SPOKEN LANGUAGE — Global Styles
   =================================== */

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

/* ---- Brand palette ---- */
/* Black | White | Grey | Brown | Purple */

/* ---- Theme tokens (default = purple accent) ---- */
:root {
  /* Switchable theme tokens */
  --theme-nav:          #1a1a1a;
  --theme-nav-text:     rgba(255,255,255,0.85);
  --theme-accent:       #7C4DBC;       /* purple */
  --theme-accent-light: #9B6FD4;
  --theme-accent-text:  #ffffff;
  --theme-hero:         #1a1a1a;
  --theme-footer:       #0d0d0d;
  --theme-tab-active:   #7C4DBC;

  /* Fixed palette */
  --brand-black:   #0d0d0d;
  --brand-white:   #ffffff;
  --brand-grey:    #888888;
  --brand-grey-lt: #e8e8e8;
  --brand-brown:   #7B4B2A;
  --brand-brown-lt:#B87D50;
  --brand-purple:  #7C4DBC;
  --brand-purple-lt:#9B6FD4;

  --color-text:       #2d2d2d;
  --color-text-light: #666;
  --color-bg:         #ffffff;
  --color-bg-alt:     #f5f4f2;
  --color-border:     #e0ddd8;
  --color-white:      #ffffff;

  --font-body:    'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;

  --radius:    8px;
  --radius-lg: 14px;
  --shadow:    0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);

  --container-width:  1120px;
  --container-narrow: 720px;
}

/* ---- SUPER ADMIN theme (deep indigo-black, premium) ---- */
body.mode-super_admin {
  --theme-nav:          #050510;
  --theme-nav-text:     rgba(255,255,255,0.9);
  --theme-accent:       #7c3aed;
  --theme-accent-light: #9d5ff0;
  --theme-accent-text:  #ffffff;
  --theme-hero:         #0d0d1f;
  --theme-footer:       #020208;
  --theme-tab-active:   #7c3aed;
  --logo-light:         #9d5ff0;
  --logo-dark:          #050510;
  --logo-text:          #9d5ff0;
}

/* ---- TEACHER theme (brown) ---- */
body.mode-teacher {
  --theme-nav:          #2C1508;
  --theme-nav-text:     rgba(255,255,255,0.85);
  --theme-accent:       #B87D50;
  --theme-accent-light: #CC9668;
  --theme-accent-text:  #2C1508;
  --theme-hero:         #2C1508;
  --theme-footer:       #1A0B03;
  --theme-tab-active:   #B87D50;

  /* Logo fills */
  --logo-light:    #CC9668;
  --logo-dark:     #2C1508;
  --logo-text:     #CC9668;
}

/* ---- COMPANY theme (black + grey) ---- */
body.mode-company {
  --theme-nav:          #000000;
  --theme-nav-text:     rgba(255,255,255,0.85);
  --theme-accent:       #222222;
  --theme-accent-light: #444444;
  --theme-accent-text:  #ffffff;
  --theme-hero:         #111111;
  --theme-footer:       #000000;
  --theme-tab-active:   #e0e0e0;

  /* Logo fills */
  --logo-light:    #d0d0d0;
  --logo-dark:     #111111;
  --logo-text:     #d0d0d0;
}

/* ---- CONTACT theme (grey) ---- */
body.mode-contact {
  --theme-nav:          #3a3a3a;
  --theme-nav-text:     rgba(255,255,255,0.85);
  --theme-accent:       #888888;
  --theme-accent-light: #aaaaaa;
  --theme-accent-text:  #ffffff;
  --theme-hero:         #3a3a3a;
  --theme-footer:       #222222;
  --theme-tab-active:   #aaaaaa;

  --logo-light:    #cccccc;
  --logo-dark:     #3a3a3a;
  --logo-text:     #cccccc;
}

/* ---- ABOUT theme (purple — default brand colour) ---- */
body.mode-about {
  --theme-nav:          #2E0D6E;
  --theme-nav-text:     rgba(255,255,255,0.85);
  --theme-accent:       #9B6FD4;
  --theme-accent-light: #B48FE0;
  --theme-accent-text:  #ffffff;
  --theme-hero:         #2E0D6E;
  --theme-footer:       #1E0849;
  --theme-tab-active:   #9B6FD4;

}

/* ---- Logo SVG fill classes (used on inline SVG) ---- */
:root {
  /* Default: original cream */
  --logo-light: #ffffff;
  --logo-dark:  #2b2b2b;
  --logo-text:  #ede9df;
}
.logo-fill-light { fill: var(--logo-light);   transition: fill 0.35s; }
.logo-fill-dark  { fill: var(--logo-dark);    transition: fill 0.35s; }
.logo-fill-text  { fill: var(--logo-text);    transition: fill 0.35s; }
.logo-stroke     { stroke: var(--logo-light); transition: stroke 0.35s; }

/* SVG logo sizing (kept for fallback) */
.logo-svg--nav    { height: 46px; width: auto; display: block; }
.logo-svg--footer { height: 54px; width: auto; display: block; opacity: 0.9; margin-bottom: 4px; }

/* Image logo sizing — mix-blend-mode:screen makes the black background invisible on dark headers/footers/sidebars */
.logo-img         { display: block; }
.logo-img--nav    { height: 46px; width: auto; }
.logo-img--footer { height: 54px; width: auto; opacity: 0.92; margin-bottom: 4px; }
.logo-img--sidebar{ height: 38px; width: auto; }

/* About-page large logo: sits on white bg so outlines must be dark */
.about-logo-svg .logo-stroke               { stroke: #2b2b2b; }
.about-logo-svg rect.logo-fill-light       { stroke: #2b2b2b; stroke-width: 1; }
.about-logo-svg rect.logo-fill-dark        { stroke: #2b2b2b; stroke-width: 1; }

/* Nav/footer logos on dark bg: keep cream stroke but also outline dark quads */
.logo-svg--nav  rect.logo-fill-dark,
.logo-svg--footer rect.logo-fill-dark      { stroke: var(--logo-light); stroke-width: 0.75; }
.logo-svg--nav  rect.logo-fill-light,
.logo-svg--footer rect.logo-fill-light     { stroke: rgba(43,43,43,0.35); stroke-width: 0.75; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text);
  transition: background 0.35s;
  background: var(--color-bg);
}

/* ---- Container ---- */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}
.container.narrow { max-width: var(--container-narrow); }

/* ---- Responsive media ---- */
img, svg { max-width: 100%; height: auto; }

/* ---- Typography ---- */
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  color: #1a1a2e;
}
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.2rem); }
h3 { font-size: 1.2rem; font-family: var(--font-body); font-weight: 600; }

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

a { color: var(--theme-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Buttons ---- */
.btn {
  display: inline-block;
  padding: 12px 28px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.15s;
}
.btn-primary {
  background: var(--theme-accent);
  color: var(--theme-accent-text);
  border-color: var(--theme-accent);
}
.btn-primary:hover {
  background: var(--theme-accent-light);
  border-color: var(--theme-accent-light);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: #1a1a2e;
  border-color: #1a1a2e;
}
.btn-outline:hover {
  background: #1a1a2e;
  color: var(--color-white);
  text-decoration: none;
}
/* Outline on dark backgrounds */
.btn-outline-light {
  background: transparent;
  color: var(--color-white);
  border: 2px solid rgba(255,255,255,0.55);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.8);
  text-decoration: none;
}
.btn-lg { padding: 16px 36px; font-size: 1rem; }

/* ---- Logo ---- */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}
.logo:hover { opacity: 0.85; text-decoration: none; }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--theme-nav);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: background 0.3s;
}
.header-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 16px;
}

/* ── Desktop nav: sits inline in the header ── */
.site-nav {
  display: flex;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}
.site-nav ul {
  list-style: none;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
}
.site-nav .nav-sep {
  width: 1px;
  height: 18px;
  background: rgba(255,255,255,0.15);
  margin: 0 6px;
}
.site-nav a {
  color: var(--theme-nav-text);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 10px;
  border-radius: var(--radius);
  text-decoration: none;
  transition: color 0.15s;
  white-space: nowrap;
  display: block;
}
.site-nav a:hover,
.site-nav a.active { color: var(--color-white); }
.site-nav a[href*="about"],
.site-nav a[href*="about"]:hover,
.site-nav a[href*="about"].active  { color: rgba(255,255,255,0.85); }
.site-nav a[href*="contact"],
.site-nav a[href*="contact"]:hover { color: rgba(255,255,255,0.85); }
/* Nav CTAs */
.site-nav .btn-nav-teacher {
  padding: 6px 12px; font-size: 0.8rem;
  background: #8B5E3C; color: #ffffff; border-color: #8B5E3C;
  white-space: nowrap;
}
.site-nav .btn-nav-teacher:hover,
.site-nav .btn-nav-teacher.active { background: #A0714A; border-color: #A0714A; text-decoration: none; color: #ffffff; }
.site-nav .btn-nav-company {
  padding: 6px 12px; font-size: 0.8rem;
  background: #ffffff; color: #1a1a1a; border-color: #ffffff;
  white-space: nowrap;
}
.site-nav .btn-nav-company:hover,
.site-nav .btn-nav-company.active { background: rgba(255,255,255,0.85); border-color: rgba(255,255,255,0.85); text-decoration: none; color: #1a1a1a; }
.site-nav .btn-nav-staff {
  padding: 6px 12px; font-size: 0.8rem;
  background: #6b7280; color: #ffffff; border-color: #6b7280;
  white-space: nowrap;
}
.site-nav .btn-nav-staff:hover,
.site-nav .btn-nav-staff.active { background: #4b5563; border-color: #4b5563; color: #ffffff; text-decoration: none; }

/* ── Hamburger — hidden on desktop, shown on mobile ── */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-white);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ---- Role switcher bar (below header) ---- */
.role-bar {
  background: #1a1a1a !important;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: background 0.3s;
  position: sticky;
  top: 68px;
  z-index: 99;
}
.role-bar-inner {
  display: flex;
  align-items: center;
  height: 42px;
  gap: 4px;
}
.role-tab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  color: #ffffff !important;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.role-tab:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
}
.role-tab--staff {
  border-color: transparent !important;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
}
.role-tab--staff:hover {
  background: rgba(107,114,128,0.25) !important;
  color: #fff;
  border-color: transparent !important;
}
.role-tab.is-active {
  background: var(--theme-tab-active);
  color: var(--theme-accent-text);
  border-color: transparent;
}
.role-tab-icon {
  font-size: 0.85rem;
  flex-shrink: 0;
}
/* Nav icons - only show on desktop */
.nav-icon { display: none; }

/* ---- Flash messages ---- */
.flash-messages { padding: 0 24px; }
.flash {
  max-width: var(--container-width);
  margin: 12px auto 0;
  padding: 14px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  font-size: 0.95rem;
}
.flash--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.flash--error   { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section--alt { background: var(--color-bg-alt); transition: background 0.35s; }
.section--cta {
  background: var(--theme-hero);
  color: var(--color-white);
  text-align: center;
  transition: background 0.3s;
}
.section--cta h2 { color: var(--color-white); }
.section--cta p { color: rgba(255,255,255,0.8); margin-bottom: 2rem; }

.section-title { margin-bottom: 48px; text-align: center; }
.section-lead { font-size: 1.1rem; color: var(--color-text-light); margin-bottom: 2.5rem; text-align: center; }
.text-center { text-align: center; }

/* ---- Split hero (homepage — 2 panel) ---- */
.split-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 88vh;
}
/* Ensure only 2 panels show cleanly */
.split-hero .split-panel:nth-child(1),
.split-hero .split-panel:nth-child(2) { min-height: 88vh; }
.split-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px 64px;
  position: relative;
  overflow: hidden;
  transition: flex 0.4s;
}
.split-panel--company {
  background: var(--brand-black);
  color: var(--color-white);
}
.split-panel--teacher {
  background: #ffffff;
  color: #1a1a1a;
}
.split-panel:hover { flex: 1.08; }

/* Real <img> hero backgrounds (CSS background-image is silently skipped by
   some mobile browsers in data-saver mode, so photos use <img> instead) */
.split-panel-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.split-panel-overlay { position: absolute; inset: 0; z-index: 2; }
.split-panel--company .split-panel-overlay { background: linear-gradient(rgba(10,10,10,0.55), rgba(10,10,10,0.72)); }
.split-panel--teacher .split-panel-overlay { background: linear-gradient(rgba(255,255,255,0.75), rgba(255,255,255,0.88)); }
.split-panel > *:not(.split-panel-bg):not(.split-panel-overlay) { position: relative; z-index: 3; }
.split-panel .panel-tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0 0 12px 0;
}
/* Strip browser default margins from panel content — control spacing explicitly */
.split-panel h1 {
  margin: 0 0 12px 0;
}
.split-panel p {
  margin: 0 0 20px 0;
}
/* Company panel (black): white text */
.split-panel--company h1 { color: #ffffff; }
.split-panel--company p  { color: rgba(255,255,255,0.75); }
/* Teacher panel (white): dark text */
.split-panel--teacher h1 { color: #1a1a1a; }
.split-panel--teacher p  { color: #555555; }
.split-panel--teacher .panel-tag { color: #555555; opacity: 1; }

/* Company CTA: white button */
.split-panel--company .btn-primary {
  background: #ffffff;
  color: #111111;
  border-color: #ffffff;
}
.split-panel--company .btn-primary:hover { background: #e8e8e8; border-color: #e8e8e8; }
/* Teacher CTA: black button on white panel */
.split-panel--teacher .btn-primary {
  background: #1a1a1a;
  color: #ffffff;
  border-color: #1a1a1a;
}
.split-panel--teacher .btn-primary:hover { background: #333333; border-color: #333333; }
.split-divider {
  position: absolute;
  right: 0; top: 0; bottom: 0;
  width: 1px;
  background: rgba(255,255,255,0.15);
}

/* ---- Standard hero (inner pages) ---- */
.hero {
  background: var(--theme-hero);
  color: var(--color-white);
  padding: 100px 0 80px;
  transition: background 0.3s;
}
.hero-content { max-width: 720px; }
.hero h1 { color: var(--color-white); margin-bottom: 24px; }
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 40px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---- Page hero ---- */
.page-hero {
  background: var(--theme-hero);
  color: var(--color-white);
  padding: 72px 0 60px;
  transition: background 0.3s;
  position: relative;
  overflow: hidden;
}
.page-hero h1 { color: var(--color-white); margin-bottom: 16px; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; max-width: 600px; }
.page-hero--sm { padding: 48px 0; }

/* Real <img> hero backgrounds (see .split-panel-bg note above) */
.page-hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}
.page-hero-overlay {
  position: absolute; inset: 0;
  z-index: 2;
  background: rgba(10,10,10,0.68);
}
.page-hero > *:not(.page-hero-bg):not(.page-hero-overlay) { position: relative; z-index: 3; }

/* ---- Cards ---- */
.cards-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.cards-grid--4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.12);
}

/* Card icon badge */
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.2rem;
  color: var(--theme-accent);
  transition: background 0.2s, color 0.2s;
}
.card:hover .card-icon {
  background: var(--theme-accent);
  color: #fff;
}

.card-number {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--theme-accent);
  margin-bottom: 12px;
  line-height: 1;
  transition: color 0.3s;
}
.card h3 { margin-bottom: 10px; }
.section--alt .card { background: var(--color-white); }

/* ---- CTA split ---- */
.cta-split { display: grid; grid-template-columns: 1fr 1px 1fr; gap: 48px; align-items: start; }
.cta-divider { background: var(--color-border); }
.cta-panel h2 { margin-bottom: 16px; }
.cta-panel .btn { margin-top: 24px; }

/* ---- Check list ---- */
.check-list { list-style: none; margin: 16px 0; }
.check-list li { padding: 6px 0 6px 28px; position: relative; }
.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--theme-accent);
  font-weight: 700;
  transition: color 0.3s;
}

/* ---- Requirements list ---- */
.req-list { list-style: none; display: flex; flex-direction: column; }
.req-list li { display: flex; flex-direction: column; padding: 20px 0; border-bottom: 1px solid var(--color-border); }
.req-list li:last-child { border-bottom: none; }
.req-list strong { margin-bottom: 2px; }
.req-list span { color: var(--color-text-light); font-size: 0.95rem; }

/* ---- Timeline ---- */
.timeline { display: flex; flex-direction: column; gap: 48px; }
.timeline-week-label {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--theme-accent);
  margin-bottom: 24px;
  transition: color 0.3s;
}
.timeline-steps { display: flex; flex-direction: column; }
.timeline-step {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.timeline-step:last-child { border-bottom: none; }
.step-days { font-weight: 600; color: var(--color-text-light); padding-top: 2px; font-size: 0.9rem; }
.step-detail strong { display: block; margin-bottom: 4px; }
.step-detail p { margin: 0; color: var(--color-text-light); font-size: 0.95rem; }

/* ---- Two column ---- */
.two-col { display: grid; grid-template-columns: 1fr 380px; gap: 48px; align-items: start; }
.two-col h2 { margin-bottom: 16px; }
.two-col p { color: var(--color-text-light); }

.callout-box {
  background: var(--theme-hero);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: background 0.3s;
}
.callout-box h3 { color: var(--theme-accent); margin-bottom: 16px; font-family: var(--font-display); font-size: 1.3rem; transition: color 0.3s; }
.callout-box p { color: rgba(255,255,255,0.8); margin-bottom: 12px; }
.callout-box .btn-primary { margin-top: 8px; }
/* Force white text in callout box when company theme makes accent dark */
.callout-box--white-text h3 { color: #ffffff; }
.callout-box--white-text p  { color: rgba(255,255,255,0.85); }

/* ---- Process list ---- */
.process-list { display: flex; flex-direction: column; }
.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}
.process-step:last-child { border-bottom: none; }
.process-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--theme-accent);
  color: var(--theme-accent-text);
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 2px;
  transition: background 0.3s, color 0.3s;
}
.process-step strong { display: block; margin-bottom: 4px; }
.process-step p { margin: 0; color: var(--color-text-light); font-size: 0.95rem; }

/* ---- Contact layout ---- */
.contact-layout { display: grid; grid-template-columns: 380px 1fr; gap: 64px; align-items: start; }
.contact-info h2 { margin-bottom: 16px; }
.contact-info p { color: var(--color-text-light); margin-bottom: 20px; }
.contact-info h3 { margin: 24px 0 8px; }
.contact-item { display: flex; flex-direction: column; margin-bottom: 16px; }
.contact-item strong { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--color-text-light); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-size: 1rem; color: var(--color-text); }
.contact-item a { color: var(--theme-accent); }
.contact-info hr { border: none; border-top: 1px solid var(--color-border); margin: 28px 0; }
/* Contact item with icon */
.contact-item--row {
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
}
.contact-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--theme-accent);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  line-height: 1;
  color: #fff;
  flex-shrink: 0;
  margin-top: 0;
}
.contact-icon i { margin: 0; padding: 0; line-height: 1; }
.contact-item--row > div { display: flex; flex-direction: column; }

/* ---- Forms ---- */
fieldset { border: none; margin-bottom: 36px; }
legend {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--color-text-light);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}
.form-row { display: flex; gap: 20px; }
.form-row--2 > * { flex: 1; }
.form-group { display: flex; flex-direction: column; margin-bottom: 20px; }
.form-group label { font-size: 0.9rem; font-weight: 600; margin-bottom: 6px; color: var(--color-text); }
.req { color: var(--theme-accent); transition: color 0.3s; }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body); font-size: 16px;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color 0.15s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--theme-accent); }
.form-group textarea { resize: vertical; }
.form-hint { font-size: 0.85rem; color: var(--color-text-light); margin-top: 6px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; margin-top: 8px; }
.checkbox-label { display: flex; align-items: center; gap: 8px; font-size: 0.9rem; cursor: pointer; }
.checkbox-label input[type="checkbox"] {
  width: 16px; height: 16px;
  border: 1.5px solid var(--color-border);
  border-radius: 3px;
  accent-color: var(--theme-accent);
  cursor: pointer; padding: 0;
}
.form-footer { border-top: 1px solid var(--color-border); padding-top: 28px; margin-top: 12px; }
.form-footer .form-hint { margin-bottom: 20px; }
.contact-form .form-group { margin-bottom: 20px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--theme-footer);
  color: rgba(255,255,255,0.6);
  padding: 48px 0;
  transition: background 0.3s;
}
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.footer-tagline { font-size: 0.9rem; margin: 0; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; justify-content: center; margin: 8px 0; }
.footer-nav a { color: rgba(255,255,255,0.7); font-size: 0.9rem; text-decoration: none; }
.footer-nav a:hover { color: var(--color-white); }
.footer-copy { font-size: 0.8rem; margin: 0; }

/* ---- Auth pages ---- */
.auth-form { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 36px 32px; box-shadow: var(--shadow); }
.auth-switch { text-align: center; margin-top: 20px; color: var(--color-text-light); font-size: 0.9rem; }
.auth-switch a { color: var(--theme-accent); font-weight: 600; }
.portal-signout { color: rgba(255,255,255,0.5) !important; font-size: 0.85rem !important; }

/* ---- Portal ---- */
.portal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.portal-badge { display: inline-block; background: var(--theme-accent); color: var(--theme-accent-text); font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 20px; margin-bottom: 12px; }
.portal-user { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; padding-top: 4px; }
.portal-user span { font-size: 0.85rem; color: rgba(255,255,255,0.7); }

/* Teacher card grid */
.teacher-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.teacher-card { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow 0.2s, transform 0.2s; }
.teacher-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.teacher-avatar { height: 120px; display: flex; align-items: center; justify-content: center; }
.teacher-avatar span { font-size: 2.5rem; font-weight: 700; color: rgba(255,255,255,0.9); font-family: var(--font-display); }
.teacher-card-body { padding: 20px 24px 24px; }
.teacher-meta { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.teacher-location { font-size: 0.8rem; color: var(--color-text-light); }
.teacher-exp { font-size: 0.8rem; font-weight: 600; color: var(--theme-accent); background: rgba(0,0,0,0.04); padding: 2px 8px; border-radius: 10px; }
.teacher-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 12px; }
.teacher-specs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.teacher-specs--lg .spec-tag { font-size: 0.9rem; padding: 5px 14px; }
.spec-tag { display: inline-block; background: var(--color-bg-alt); color: var(--color-text); font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--color-border); }
.spec-tag--more { background: var(--theme-accent); color: var(--theme-accent-text); border-color: transparent; }
.teacher-certs { display: flex; flex-wrap: wrap; gap: 5px; }
.cert-badge { font-size: 0.72rem; font-weight: 600; color: var(--color-text-light); border: 1px solid var(--color-border); padding: 2px 8px; border-radius: 4px; }

/* Teacher profile page */
.back-link { color: rgba(255,255,255,0.7); font-size: 0.9rem; text-decoration: none; }
.back-link:hover { color: #fff; }
.profile-layout { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: start; }
.profile-sidebar { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px 28px; box-shadow: var(--shadow); }
.profile-avatar { width: 100px; height: 100px; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.profile-avatar span { font-size: 2rem; font-weight: 700; color: rgba(255,255,255,0.9); font-family: var(--font-display); }
.profile-name { font-size: 1.4rem; text-align: center; margin-bottom: 4px; }
.profile-location { text-align: center; color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 20px; }
.profile-stat-row { display: flex; gap: 0; border: 1px solid var(--color-border); border-radius: var(--radius); overflow: hidden; margin-bottom: 24px; }
.profile-stat { flex: 1; padding: 12px 8px; text-align: center; }
.profile-stat:first-child { border-right: 1px solid var(--color-border); }
.profile-stat strong { display: block; font-size: 1.4rem; color: var(--theme-accent); }
.profile-stat span { font-size: 0.75rem; color: var(--color-text-light); text-transform: uppercase; letter-spacing: 0.05em; }
.sidebar-section { margin-bottom: 20px; }
.sidebar-section h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-light); margin-bottom: 8px; }
.cert-list, .avail-list { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cert-list li, .avail-list li { font-size: 0.9rem; color: var(--color-text); padding-left: 12px; position: relative; }
.cert-list li::before, .avail-list li::before { content: "–"; position: absolute; left: 0; color: var(--theme-accent); }
.sidebar-text { font-size: 0.9rem; color: var(--color-text-light); }
.profile-main { display: flex; flex-direction: column; gap: 0; }
.profile-section { padding: 28px 0; border-bottom: 1px solid var(--color-border); }
.profile-section:last-child { border-bottom: none; }
.profile-section h3 { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-light); margin-bottom: 12px; }
.profile-section p { color: var(--color-text); line-height: 1.7; }
.video-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.video-placeholder { background: var(--color-bg-alt); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: 32px 24px; text-align: center; }
.video-icon { font-size: 2.5rem; color: var(--theme-accent); margin-bottom: 12px; }
.video-placeholder strong { display: block; margin-bottom: 6px; }
.video-placeholder p { font-size: 0.85rem; color: var(--color-text-light); margin: 0; }

/* ---- Section slim ---- */
.section--slim { padding: 24px 0; }

/* ---- Auth bar ---- */
.auth-bar {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 14px 20px;
  font-size: 0.9rem;
}
.auth-bar p { margin: 0; color: var(--color-text-light); }
.auth-bar a { color: var(--theme-accent); font-weight: 600; }

/* ---- Service pricing tag on card ---- */
.card-price-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--theme-accent);
  margin-bottom: 10px;
  transition: color 0.3s;
}
.card-price-tag span { font-size: 0.78rem; font-weight: 500; color: var(--color-text-light); }
.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.services-cta-note { margin-top: 32px; text-align: center; font-size: 0.95rem; color: var(--color-text-light); }

/* ---- Fieldset note ---- */
.fieldset-note { font-size: 0.88rem; color: var(--color-text-light); margin-bottom: 18px; margin-top: -8px; }

/* ---- About page ---- */
.about-block {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 60px;
  align-items: center;
  margin-bottom: 0;
}
.about-block--reverse { direction: rtl; }
.about-block--reverse > * { direction: ltr; }
.about-text h2 { margin-bottom: 20px; }
.about-text p  { color: var(--color-text-light); }
.about-images { display: flex; gap: 16px; }
.about-images--single { justify-content: center; }
.about-img-placeholder { margin: 0; flex: 1; }
.img-placeholder-block {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--color-text-light);
  font-size: 0.8rem;
  line-height: 1.4;
}
.img-placeholder-block--portrait  { width: 100%; padding-top: 130%; position: relative; }
.img-placeholder-block--portrait span { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); padding: 12px; }
.img-placeholder-block--landscape { width: 100%; height: 240px; }

/* About CTA buttons */
.about-cta-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}

/* ---- Services page ---- */
.service-block {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 48px;
  align-items: start;
}
.service-price-badge {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: baseline;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--theme-accent);
  margin-bottom: 14px;
  transition: color 0.3s;
}
.service-price-badge span { font-size: 0.82rem; font-weight: 500; color: var(--color-text-light); }
.service-info h2 { margin-bottom: 14px; }
.service-info h3 { margin-top: 20px; margin-bottom: 6px; }
.service-action {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: sticky;
  top: 120px;
  text-align: center;
  box-shadow: var(--shadow);
}
.service-action .btn { width: 100%; }
.service-action-note { font-size: 0.85rem; color: var(--color-text-light); margin-top: 12px; }

/* ---- Dashboard ---- */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  align-items: start;
}
.dashboard-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.dashboard-card h3 { margin-bottom: 10px; }
.dashboard-card p  { color: var(--color-text-light); margin-bottom: 20px; }
.dashboard-links { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.dashboard-links .btn { text-align: left; }

/* ---- Report list ---- */
.report-list { display: flex; flex-direction: column; gap: 16px; }
.report-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.report-platform { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; color: var(--theme-accent); transition: color 0.3s; }
.report-card p { color: var(--color-text-light); font-size: 0.95rem; margin-bottom: 4px; }
.report-meta { font-size: 0.8rem; color: var(--color-text-light); margin-top: 8px; }

/* ---- Apply gate (step 1 → sign up wall) ---- */
.apply-gate {
  margin: 8px 0 32px;
  border: 2px solid var(--theme-accent);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  text-align: center;
  background: var(--color-bg-alt);
  transition: border-color 0.3s;
}
.apply-gate h3 { margin-bottom: 10px; }
.apply-gate p  { color: var(--color-text-light); margin-bottom: 24px; }
.apply-gate-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Partner portal layout ---- */
.portal-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  align-items: start;
}
.portal-profile-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow);
}
.portal-profile-card h2 { margin-bottom: 6px; }
.portal-profile-sub { color: var(--color-text-light); font-size: 0.9rem; margin-bottom: 28px; }
.portal-actions { display: flex; flex-direction: column; gap: 16px; }
.portal-action-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow);
}
.portal-action-card h3 { margin-bottom: 6px; font-size: 1rem; }
.portal-action-card p  { font-size: 0.85rem; color: var(--color-text-light); margin-bottom: 14px; }
.portal-action-card--signout { border-color: rgba(0,0,0,0.08); }

/* ---- Nav separator ---- */
.nav-sep {
  display: block;
  width: 1px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  margin: 0 4px;
  align-self: center;
}
.nav-login-link {
  color: rgba(255,255,255,0.7) !important;
  font-size: 0.82rem !important;
  white-space: nowrap;
}
.nav-login-link:hover { color: #fff !important; }

/* ---- About logo display ---- */
.about-logo-display {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.about-logo-svg {
  width: 220px;
  height: auto;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.12));
}

/* ---- About photos ---- */
.about-photo {
  width: 100%;
  height: 320px;
  object-fit: cover;
  border-radius: var(--radius-lg);
  display: block;
}
.about-photo--wide {
  height: 280px;
  width: 100%;
}

/* ---- Teacher welcome page ---- */
.welcome-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}
.welcome-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  box-shadow: var(--shadow);
}
.welcome-card:hover {
  border-color: var(--theme-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  text-decoration: none;
  color: inherit;
}
.welcome-card--full {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 24px;
}
.welcome-card--full .welcome-icon { flex-shrink: 0; }
.welcome-card--full .welcome-btn  { margin-top: 0; margin-left: auto; white-space: nowrap; }
.welcome-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.4rem;
  color: var(--theme-accent);
  transition: background 0.2s, color 0.2s;
}
.welcome-card:hover .welcome-icon {
  background: var(--theme-accent);
  color: #fff;
}
.welcome-card h2 { font-size: 1.3rem; margin-bottom: 8px; }
.welcome-card p  { color: var(--color-text-light); font-size: 0.95rem; flex: 1; }
.welcome-btn {
  display: inline-block;
  margin-top: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--theme-accent);
  transition: color 0.2s;
}
.welcome-signout { text-align: center; font-size: 0.9rem; color: var(--color-text-light); }
.welcome-signout a { color: var(--theme-accent); }

/* ---- Application progress card ---- */
.progress-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.progress-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}
.progress-date { font-size: 0.82rem; color: var(--color-text-light); display: block; margin-top: 2px; }
.progress-badge {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 12px;
  border-radius: 20px;
  white-space: nowrap;
  flex-shrink: 0;
}
.progress-badge--received  { background: #e0f2fe; color: #0369a1; }
.progress-badge--reviewing { background: #fef9c3; color: #854d0e; }
.progress-badge--shortlisted{ background: #d1fae5; color: #065f46; }
.progress-badge--placed    { background: #7C4DBC; color: #ffffff; }
.progress-details {
  display: flex;
  gap: 20px;
  font-size: 0.85rem;
  color: var(--color-text-light);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.progress-track {
  display: flex;
  align-items: center;
  gap: 0;
}
.progress-step {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 20px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  transition: all 0.2s;
}
.progress-step.is-done {
  background: var(--theme-accent);
  color: var(--theme-accent-text);
  border-color: var(--theme-accent);
}
.progress-line {
  flex: 1;
  height: 2px;
  background: var(--color-border);
  min-width: 20px;
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--color-text-light);
}
.empty-state p { margin-bottom: 20px; }

/* ---- Why SA layout (homepage) ---- */
.why-sa-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 64px;
  align-items: center;
}
.why-sa-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.stat-badge {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.stat-badge:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.1);
}
.stat-badge-icon {
  font-size: 1.1rem;
  color: var(--theme-accent);
  margin-bottom: 6px;
}
.stat-badge strong {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a2e;
  line-height: 1.2;
}
.stat-badge span {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.4;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .cta-split { grid-template-columns: 1fr; gap: 40px; }
  .cta-divider { display: none; }
  .two-col { grid-template-columns: 1fr; }
  .why-sa-layout { grid-template-columns: 1fr; gap: 40px; }
  .contact-layout { grid-template-columns: 1fr; gap: 40px; }
  .split-hero { grid-template-columns: 1fr; min-height: auto; }
  .split-hero .split-panel:nth-child(1),
  .split-hero .split-panel:nth-child(2) { min-height: auto; }
  .split-panel { padding: 40px 32px; min-height: auto; justify-content: flex-start; }
  .split-divider { display: none; }
  /* Panel headings: same style as desktop, scaled for tablet */
  .split-panel h1 {
    font-size: clamp(2rem, 5.5vw, 3rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
  }
  .split-panel .panel-tag {
    font-size: 0.78rem;
    letter-spacing: 0.14em;
    margin-bottom: 18px;
  }
  .split-panel p {
    font-size: 1rem;
    max-width: 520px;
    line-height: 1.65;
  }
  .about-block { grid-template-columns: 1fr; gap: 32px; }
  .about-block--reverse { direction: ltr; }
  .service-block { grid-template-columns: 1fr; }
  .service-action { position: static; }
  .welcome-choices { grid-template-columns: 1fr; }
  .welcome-card--full { flex-direction: column; }
  .welcome-card--full .welcome-btn { margin-left: 0; margin-top: 16px; }
  /* ── Mobile nav: collapse to hamburger ── */
  .nav-toggle { display: flex; }

  /* Space the logo and hamburger to opposite ends with breathing room */
  .header-inner { justify-content: space-between; gap: 0; padding: 0 20px; }
  .logo { margin-right: auto; flex-shrink: 1; min-width: 0; }
  /* Cap logo image width on mobile so it doesn't crowd the hamburger */
  .logo-img--nav { height: 34px; max-width: 140px; object-fit: contain; object-position: left center; }

  .site-nav {
    display: none;
    position: fixed;
    /* Start below the header so the hamburger stays visible and clickable */
    top: 68px; left: 0; right: 0;
    background: var(--theme-nav);
    border-bottom: 1px solid rgba(255,255,255,0.12);
    padding: 16px 24px 28px;
    z-index: 200;
    flex-direction: column;
    justify-content: flex-start;
    max-height: calc(100vh - 68px);
    overflow-y: auto;
  }
  .site-nav.site-nav--open { display: flex; }
  .site-nav ul {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    width: 100%;
  }
  .site-nav .nav-sep {
    width: 100%;
    height: 1px;
    background: rgba(255,255,255,0.1);
    margin: 8px 0;
  }
  .site-nav a { padding: 11px 8px; font-size: 0.95rem; width: 100%; }
  .site-nav li:has(.btn-nav-teacher),
  .site-nav li:has(.btn-nav-company),
  .site-nav li:has(.btn-nav-staff) { width: 100%; }
  .site-nav .btn-nav-teacher,
  .site-nav .btn-nav-company,
  .site-nav .btn-nav-staff { width: 100%; text-align: center; padding: 11px 12px; font-size: 0.9rem; }

  .progress-track { flex-wrap: wrap; gap: 6px; }
  .progress-line { display: none; }
  .portal-layout { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .section { padding: 56px 0; }
  .hero { padding: 72px 0 60px; }
  .page-hero { padding: 52px 0 44px; }
  .form-row { flex-direction: column; gap: 0; }
  .timeline-step { grid-template-columns: 1fr; gap: 4px; }
  .step-days { color: var(--theme-accent); }
  .process-step { gap: 14px; }
  .cards-grid--4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; }
  .split-panel { padding: 32px 28px; min-height: auto; justify-content: flex-start; }
  /* Panel headings: same style as desktop, scaled for small tablet / large phone */
  .split-panel h1 {
    font-size: clamp(1.9rem, 6.5vw, 2.6rem);
    font-weight: 800;
    line-height: 1.17;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
  }
  .split-panel p { font-size: 0.97rem; }
  /* Keep labels on tablet, icon stays alongside */
  .role-tab { font-size: 0.78rem; padding: 5px 12px; gap: 6px; }
  .role-tab-icon { font-size: 0.8rem; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .logo-svg--nav { height: 36px; }
  .logo-img--nav { height: 30px; max-width: 120px; }
  .header-inner { height: 58px; padding: 0 16px; }
  .site-nav { top: 58px; max-height: calc(100vh - 58px); }
  .role-bar { top: auto; }
  .role-bar-inner { height: 44px; gap: 6px; }
  /* Small phones: always show icon + label, no click required */
  .role-tab { padding: 5px 14px; font-size: 0.72rem; gap: 5px; border-radius: 20px; width: auto; height: auto; }
  .role-tab .label { display: inline !important; font-size: 0.72rem; color: #ffffff !important; }
  .btn { padding: 11px 20px; font-size: 0.9rem; }
  .split-panel { padding: 24px 20px; min-height: auto; justify-content: flex-start; }
  /* Panel h1 stays bold and readable on small phones — override global h1 shrink */
  .split-panel h1 {
    font-size: clamp(1.75rem, 7.5vw, 2.2rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.018em;
    margin-bottom: 12px;
  }
  .split-panel p { font-size: 0.93rem; }
  h1 { font-size: clamp(1.6rem, 8vw, 2.4rem); }
  .flash-messages { padding: 0 16px; }
}

/* Hamburger open state animation */
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }


/* =====================================================
   APP SHELL — logged-in layout (sidebar + main)
   ===================================================== */

body.has-sidebar {
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

body.has-sidebar .site-header {
  flex-shrink: 0;
  z-index: 200;
}

body.has-sidebar .flash-messages {
  flex-shrink: 0;
}

.app-shell {
  display: flex;
  flex: 1;
  overflow: hidden;
}

/* ---- Sidebar ---- */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: #1e1e2e;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.35);
  color: rgba(255,255,255,0.85);
  overflow-y: auto;
  overflow-x: hidden;
  transition: transform 0.25s ease;
  z-index: 150;
}

.sidebar-inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding-bottom: 24px;
}

.sidebar-logo {
  padding: 20px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 12px;
}

.logo-svg--sidebar {
  height: 36px;
  width: auto;
}

.sidebar-section-label {
  padding: 16px 20px 4px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}

.sidebar-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px;
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  border-left: 3px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.sidebar-link:hover {
  background: rgba(255,255,255,0.07);
  color: #fff;
}

.sidebar-link.active {
  background: rgba(124,77,188,0.25);
  color: #fff;
  border-left-color: var(--theme-accent);
}

.sidebar-link--danger { color: rgba(255,100,100,0.8); }
.sidebar-link--danger:hover { background: rgba(220,38,38,0.15); color: #ff6b6b; }

.sidebar-icon {
  width: 16px;
  text-align: center;
  flex-shrink: 0;
  opacity: 0.8;
}

.sidebar-divider {
  height: 1px;
  background: rgba(255,255,255,0.08);
  margin: 12px 20px;
}

/* Sidebar open — all screen sizes */
.sidebar.sidebar--open {
  transform: translateX(0);
}

/* Dim overlay when sidebar is open */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.45);
  z-index: 149;
}
.sidebar-overlay.active { display: block; }

/* ---- App main content ---- */
.app-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  background: #f5f5f7;
}

/* ---- Header: logged-in state ---- */
.has-sidebar .header-inner {
  display: flex;
  align-items: center;
  gap: 16px;
}

.sidebar-toggle {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--theme-nav-text);
  font-size: 1.1rem;
  padding: 6px 8px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  transition: background 0.15s;
}

.sidebar-toggle:hover { background: rgba(255,255,255,0.1); }

.header-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ---- Profile dropdown ---- */
.profile-dropdown {
  position: relative;
}

.profile-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 40px;
  padding: 5px 14px 5px 5px;
  cursor: pointer;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  transition: background 0.15s;
}

.profile-btn:hover { background: rgba(255,255,255,0.18); }

.profile-initials {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--theme-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-name {
  max-width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 480px) { .profile-name { display: none; } }

.profile-chevron {
  font-size: 0.65rem;
  opacity: 0.7;
  transition: transform 0.2s;
}

.profile-btn[aria-expanded="true"] .profile-chevron { transform: rotate(180deg); }

.profile-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  z-index: 300;
  overflow: hidden;
  animation: menuSlide 0.15s ease;
}

.profile-menu--open { display: block; }

@keyframes menuSlide {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f8fb;
}

.profile-menu-initials {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--theme-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  flex-shrink: 0;
}

.profile-menu-name {
  font-weight: 600;
  font-size: 0.875rem;
  color: #1a1a1a;
}

.profile-menu-role {
  font-size: 0.75rem;
  color: var(--brand-grey);
  text-transform: capitalize;
}

.profile-menu-divider {
  height: 1px;
  background: #efefef;
  margin: 2px 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #333;
  text-decoration: none;
  font-size: 0.875rem;
  transition: background 0.12s;
}

.profile-menu-item:hover { background: #f4f4f7; }
.profile-menu-item i { width: 14px; text-align: center; color: var(--brand-grey); }
.profile-menu-item--danger { color: #dc2626; }
.profile-menu-item--danger i { color: #dc2626; }
.profile-menu-item--danger:hover { background: #fef2f2; }

/* ---- Dashboard page layout ---- */
.dash-page {
  padding: 28px 32px 48px;
  max-width: 1200px;
}

@media (max-width: 768px) {
  .dash-page { padding: 20px 16px 40px; }
}

.dash-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.dash-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #111;
  margin: 0 0 4px;
}

.dash-sub {
  font-size: 0.875rem;
  color: var(--brand-grey);
  margin: 0;
}

/* ---- Stat cards ---- */
.dash-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}

.dash-stats--wide {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.stat-card {
  background: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid #ebebef;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(124,77,188,0.12);
  color: var(--theme-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.stat-icon--green  { background: rgba(16,185,129,0.12); color: #059669; }
.stat-icon--amber  { background: rgba(245,158,11,0.12);  color: #d97706; }
.stat-icon--red    { background: rgba(220,38,38,0.12);   color: #dc2626; }
.stat-icon--blue   { background: rgba(59,130,246,0.12);  color: #2563eb; }
.stat-icon--purple { background: rgba(124,77,188,0.12);  color: #7C4DBC; }
.stat-icon--teal   { background: rgba(20,184,166,0.12);  color: #0d9488; }
.stat-icon--orange { background: rgba(249,115,22,0.12);  color: #ea580c; }

.stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111;
  line-height: 1;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--brand-grey);
  margin-top: 2px;
}

/* ---- Dash grid ---- */
.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.dash-grid--2col {
  grid-template-columns: 3fr 2fr;
}

@media (max-width: 900px) {
  .dash-grid, .dash-grid--2col { grid-template-columns: 1fr; }
}

/* ---- Panels ---- */
.dash-panel {
  background: #fff;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.07);
  border: 1px solid #ebebef;
}

.dash-panel-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.dash-panel-head i {
  color: var(--theme-accent);
  font-size: 1rem;
}

.dash-panel-head h2 {
  font-size: 1rem;
  font-weight: 700;
  color: #111;
  margin: 0;
  flex: 1;
}

.dash-panel-link {
  font-size: 0.8rem;
  color: var(--theme-accent);
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

.dash-panel-link:hover { text-decoration: underline; }
.dash-panel-sub { font-size: 0.85rem; color: var(--brand-grey); margin: -10px 0 16px; }

/* ---- Application status tracker ---- */
.app-status-track {
  border: 1px solid #ebebef;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}

.app-status-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.app-status-detail {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--brand-grey);
  margin-bottom: 14px;
}

.app-status-detail i { margin-right: 4px; }

.progress-track {
  display: flex;
  align-items: center;
  gap: 0;
}

.progress-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: 2px solid #d1d5db;
  transition: background 0.2s;
}

.progress-step.is-done .step-dot {
  background: var(--theme-accent);
  border-color: var(--theme-accent);
}

.step-label {
  font-size: 0.65rem;
  color: var(--brand-grey);
  white-space: nowrap;
}

.progress-step.is-done .step-label { color: var(--theme-accent); font-weight: 600; }

.progress-line {
  flex: 1;
  height: 2px;
  background: #e5e7eb;
  margin-bottom: 16px;
}

/* ---- Status badges ---- */
.status-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-badge--received    { background: #eff6ff; color: #2563eb; }
.status-badge--reviewing   { background: #fffbeb; color: #d97706; }
.status-badge--shortlisted { background: #f0fdf4; color: #16a34a; }
.status-badge--placed      { background: #f5f3ff; color: #7C4DBC; }
.status-badge--rejected    { background: #fef2f2; color: #dc2626; }
.status-badge--no_application { background: #f3f4f6; color: #6b7280; }

/* ---- Portfolio completion ---- */
.completion-bar-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.completion-bar-track {
  flex: 1;
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.completion-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--theme-accent), var(--theme-accent-light));
  border-radius: 999px;
  transition: width 0.5s ease;
}

.completion-pct {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--theme-accent);
  min-width: 40px;
  text-align: right;
}

.completion-sub {
  font-size: 0.8rem;
  color: var(--brand-grey);
  margin-bottom: 16px;
}

.completion-missing {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
}

.completion-missing-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #92400e;
  margin-bottom: 6px;
}

.completion-missing ul {
  list-style: disc;
  padding-left: 18px;
  font-size: 0.8rem;
  color: #78350f;
  line-height: 1.7;
}

/* ---- Mini bar (admin teachers table) ---- */
.mini-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mini-bar-track {
  flex: 1;
  height: 6px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  min-width: 60px;
}

.mini-bar-fill {
  height: 100%;
  background: var(--theme-accent);
  border-radius: 999px;
}

.mini-bar-pct {
  font-size: 0.75rem;
  color: var(--brand-grey);
  min-width: 32px;
}

/* ---- Quick actions ---- */
.quick-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.quick-action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 12px;
  background: #f8f8fb;
  border: 1px solid #e8e8ef;
  border-radius: 10px;
  text-decoration: none;
  color: #333;
  font-size: 0.78rem;
  font-weight: 500;
  text-align: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}

.quick-action-btn:hover {
  background: #fff;
  border-color: var(--theme-accent);
  transform: translateY(-2px);
}

.quick-action-btn i {
  font-size: 1.3rem;
  color: var(--theme-accent);
}

/* ---- Admin table ---- */
.admin-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th {
  text-align: left;
  padding: 10px 12px;
  background: #f5f5f8;
  font-weight: 600;
  color: #555;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 12px;
  border-bottom: 1px solid #f0f0f4;
  color: #333;
  vertical-align: middle;
}

.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #fafafa; }

.td-email {
  color: var(--brand-grey);
  font-size: 0.8rem;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 6px;
}

.status-select {
  padding: 4px 8px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.78rem;
  color: #333;
  background: #fff;
  cursor: pointer;
}

.btn-icon-sm {
  background: none;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 8px;
  cursor: pointer;
  color: var(--theme-accent);
  transition: background 0.15s;
}

.btn-icon-sm:hover { background: #f0edf8; }

.count-badge {
  display: inline-block;
  padding: 2px 10px;
  background: #f0edf8;
  color: var(--theme-accent);
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
}

/* ---- Detail list ---- */
.detail-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  font-size: 0.875rem;
}

.detail-list dt {
  font-weight: 600;
  color: #555;
}

.detail-list dd {
  color: #111;
}

/* ---- Dash actions ---- */
.dash-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--brand-grey);
}

.empty-icon {
  font-size: 2.5rem;
  color: #d1d5db;
  margin-bottom: 12px;
  display: block;
}

/* ---- Error / 403 page ---- */
.error-icon {
  font-size: 4rem;
  color: #dc2626;
  margin-bottom: 8px;
}

/* ---- Auth card ---- */
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 36px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
  border: 1px solid #ebebef;
  text-align: center;
}

.auth-card-icon {
  font-size: 2.5rem;
  color: var(--theme-accent);
  margin-bottom: 12px;
}

.auth-card h2 {
  font-size: 1.4rem;
  margin-bottom: 24px;
  color: #111;
}

/* ---- Admin theme ---- */
body.mode-admin {
  --theme-nav:          #0f172a;
  --theme-nav-text:     rgba(255,255,255,0.85);
  --theme-accent:       #4f46e5;
  --theme-accent-light: #7c3aed;
  --theme-accent-text:  #ffffff;
}

/* ---- Form row (two columns) ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

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

/* ---- Danger outline button ---- */
.btn-danger-outline {
  border-color: #dc2626;
  color: #dc2626;
}

.btn-danger-outline:hover {
  background: #fef2f2;
}

/* ---- Page hero admin variant ---- */
.page-hero--admin {
  background: #0f172a;
}

/* ---- Flash icon spacing ---- */
.flash i { margin-right: 8px; }

/* =====================================================
   EMPLOYEE / STAFF PORTAL
   ===================================================== */

:root {
  --employee-accent:       #0e7490;
  --employee-accent-light: #22d3ee;
  --employee-accent-text:  #ffffff;
}

body.mode-employee {
  --theme-nav:          #0c1a20;
  --theme-nav-text:     rgba(255,255,255,0.85);
  --theme-accent:       #0e7490;
  --theme-accent-light: #22d3ee;
  --theme-accent-text:  #ffffff;
}

/* Employee split panel */
.split-panel--employee {
  background: #0c1a20;
}

/* Employee button variants */
.btn-employee {
  background: var(--employee-accent);
  color: #fff;
  border: 2px solid var(--employee-accent);
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s, transform 0.15s;
}

.btn-employee:hover { background: #0a6380; transform: translateY(-1px); }

.btn-employee-hero {
  background: #0e7490;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.3);
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s;
}

.btn-employee-hero:hover { background: #0a6380; }

.btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* Employee page hero */
.page-hero--employee {
  background: linear-gradient(135deg, #0c1a20 0%, #0e7490 100%);
}

.auth-card-icon--employee { color: #0e7490; }

/* ---- Pipeline snapshot (dashboard) ---- */
.pipeline-snapshot {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 12px;
}

.pipeline-stage-card {
  text-decoration: none;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  background: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.pipeline-stage-card:hover {
  border-color: var(--employee-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(14,116,144,0.12);
}

.pipeline-stage-count {
  font-size: 2rem;
  font-weight: 800;
  color: #111;
  line-height: 1;
}

.pipeline-stage-label {
  font-size: 0.72rem;
  color: var(--brand-grey);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pipeline-stage-bar {
  width: 100%;
  height: 4px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}

.pipeline-stage-fill {
  height: 100%;
  background: var(--employee-accent);
  border-radius: 999px;
}

/* Stage card colours */
.pipeline-stage-card--received .pipeline-stage-count { color: #2563eb; }
.pipeline-stage-card--received .pipeline-stage-fill   { background: #2563eb; }
.pipeline-stage-card--screening .pipeline-stage-count { color: #d97706; }
.pipeline-stage-card--screening .pipeline-stage-fill  { background: #d97706; }
.pipeline-stage-card--interview_scheduled .pipeline-stage-count { color: #0e7490; }
.pipeline-stage-card--interview_scheduled .pipeline-stage-fill  { background: #0e7490; }
.pipeline-stage-card--interview_done .pipeline-stage-count { color: #7c3aed; }
.pipeline-stage-card--interview_done .pipeline-stage-fill  { background: #7c3aed; }
.pipeline-stage-card--shortlisted .pipeline-stage-count { color: #16a34a; }
.pipeline-stage-card--shortlisted .pipeline-stage-fill  { background: #16a34a; }
.pipeline-stage-card--placed .pipeline-stage-count { color: #7C4DBC; }
.pipeline-stage-card--placed .pipeline-stage-fill  { background: #7C4DBC; }

/* ---- Pipeline page ---- */
.pipeline-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0;
}

.pipeline-tab {
  text-decoration: none;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-grey);
  border-radius: 6px 6px 0 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s, border-color 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
}

.pipeline-tab:hover { color: #333; }
.pipeline-tab.active { color: var(--employee-accent); border-color: var(--employee-accent); }

.pipeline-tab-count {
  background: #f0f0f5;
  color: #555;
  border-radius: 20px;
  padding: 1px 8px;
  font-size: 0.7rem;
  font-weight: 700;
}

.pipeline-tab.active .pipeline-tab-count {
  background: rgba(14,116,144,0.12);
  color: var(--employee-accent);
}

/* Stage tab colours */
.pipeline-tab--received.active   { color: #2563eb; border-color: #2563eb; }
.pipeline-tab--screening.active  { color: #d97706; border-color: #d97706; }
.pipeline-tab--shortlisted.active{ color: #16a34a; border-color: #16a34a; }
.pipeline-tab--placed.active     { color: #7C4DBC; border-color: #7C4DBC; }
.pipeline-tab--rejected.active   { color: #dc2626; border-color: #dc2626; }

/* Pipeline search */
.pipeline-search-form {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.pipeline-search-wrap {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.pipeline-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-grey);
  font-size: 0.85rem;
}

.pipeline-search-input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9rem;
  background: #fff;
}

.pipeline-search-input:focus { outline: none; border-color: var(--employee-accent); }

.pipeline-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand-grey);
  text-decoration: none;
  font-size: 0.9rem;
}

/* Candidate grid */
.candidate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}

.candidate-card {
  background: #fff;
  border: 1px solid #ebebef;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
  transition: box-shadow 0.15s, transform 0.15s;
}

.candidate-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.candidate-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.candidate-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--employee-accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.candidate-avatar--lg {
  width: 44px;
  height: 44px;
  font-size: 1.1rem;
}

.candidate-card-name {
  font-weight: 700;
  color: #111;
  text-decoration: none;
  font-size: 0.95rem;
  display: block;
}

.candidate-card-name:hover { color: var(--employee-accent); }

.candidate-card-email {
  font-size: 0.75rem;
  color: var(--brand-grey);
}

.candidate-card-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--brand-grey);
}

.candidate-card-meta i { margin-right: 3px; }

.candidate-card-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

/* Recent candidate row (dashboard) */
.recent-candidate-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f4;
}

.recent-candidate-row:last-child { border-bottom: none; }

.candidate-info { flex: 1; min-width: 0; }

.candidate-name {
  font-weight: 600;
  color: #111;
  text-decoration: none;
  font-size: 0.875rem;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.candidate-name:hover { color: var(--employee-accent); }

.candidate-meta {
  font-size: 0.72rem;
  color: var(--brand-grey);
}

/* ---- Candidate detail ---- */
.candidate-detail-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 20px;
  align-items: start;
}

@media (max-width: 900px) {
  .candidate-detail-grid { grid-template-columns: 1fr; }
}

.back-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: #f0f0f5;
  border-radius: 8px;
  color: #555;
  text-decoration: none;
  flex-shrink: 0;
  transition: background 0.15s;
}

.back-btn:hover { background: #e0e0ea; }

.detail-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  margin-bottom: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-item-full {
  grid-column: 1 / -1;
}

.detail-key {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--brand-grey);
}

.detail-val {
  font-size: 0.875rem;
  color: #222;
}

/* ---- Interview type badges ---- */
.interview-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
}

.interview-type-badge--video    { background: #eff6ff; color: #2563eb; }
.interview-type-badge--phone    { background: #f0fdf4; color: #16a34a; }
.interview-type-badge--in-person{ background: #fdf4ff; color: #9333ea; }

/* ---- Interview rows ---- */
.interview-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f4;
  flex-wrap: wrap;
}

.interview-row:last-child { border-bottom: none; }

.interview-time {
  font-size: 0.8rem;
  color: var(--employee-accent);
  font-weight: 600;
  min-width: 70px;
}

.interview-info { flex: 1; min-width: 0; }

/* Interview blocks (interviews page) */
.interview-block {
  display: flex;
  gap: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  margin-bottom: 12px;
}

.interview-block--today { border-color: var(--employee-accent); background: rgba(14,116,144,0.04); }

.interview-block-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  background: var(--employee-accent);
  color: #fff;
  border-radius: 8px;
  padding: 8px 6px;
  text-align: center;
  flex-shrink: 0;
}

.interview-day { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.interview-month { font-size: 0.65rem; font-weight: 700; text-transform: uppercase; margin-top: 2px; }

.interview-block-info { flex: 1; }
.interview-block-meta { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 4px; font-size: 0.8rem; color: var(--brand-grey); }
.interview-notes { font-size: 0.8rem; color: #555; margin-top: 6px; }

.today-badge {
  background: #fffbeb;
  color: #d97706;
  padding: 2px 8px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ---- Notes ---- */
.notes-list { display: flex; flex-direction: column; gap: 10px; }

.note-item {
  border-radius: 8px;
  padding: 10px 12px;
  border-left: 3px solid #d1d5db;
  background: #f9f9fb;
}

.note-item--concern  { border-color: #dc2626; background: #fef2f2; }
.note-item--positive { border-color: #16a34a; background: #f0fdf4; }
.note-item--interview_feedback { border-color: #7C4DBC; background: #faf5ff; }
.note-item--status_change { border-color: #0e7490; background: #f0fbff; }

.note-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
  gap: 8px;
  flex-wrap: wrap;
}

.note-type-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #555;
}

.note-item--concern .note-type-badge  { color: #dc2626; }
.note-item--positive .note-type-badge { color: #16a34a; }
.note-item--interview_feedback .note-type-badge { color: #7C4DBC; }
.note-item--status_change .note-type-badge { color: #0e7490; }

.note-meta { font-size: 0.7rem; color: var(--brand-grey); }
.note-text { font-size: 0.85rem; color: #333; line-height: 1.5; }

/* ---- Enquiry snippet ---- */
.enquiry-snippet {
  font-size: 0.8rem;
  color: #555;
  cursor: default;
}

/* ---- Status badge for interview status ---- */
.status-badge--scheduled  { background: #eff6ff; color: #2563eb; }
.status-badge--completed  { background: #f0fdf4; color: #16a34a; }
.status-badge--cancelled  { background: #fef2f2; color: #dc2626; }

/* ---- Interview complete form ---- */
.interview-complete-form { background: #f8f8fb; border-radius: 8px; padding: 12px; margin-top: 8px; }

/* ============================================================
   ROLE RADIO GROUP (forgot_password)
   ============================================================ */
.role-radio-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.role-radio { cursor: pointer; }
.role-radio input[type="radio"] { display: none; }
.role-radio-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 20px;
  border: 2px solid #e0ddd8;
  border-radius: 10px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #555;
  background: #fafaf8;
  min-width: 88px;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.role-radio-box i {
  font-size: 1.4rem;
  color: #aaa;
  transition: color 0.15s;
}
.role-radio input[type="radio"]:checked + .role-radio-box {
  border-color: var(--theme-accent);
  background: rgba(124,77,188,0.06);
  color: var(--theme-accent);
}
.role-radio input[type="radio"]:checked + .role-radio-box i {
  color: var(--theme-accent);
}

/* ============================================================
   APPLY TRACK CARDS (apply_landing, company_apply_landing)
   ============================================================ */
.apply-track-card {
  display: flex;
  flex-direction: column;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e8e5f4;
  background: #fff;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 16px rgba(0,0,0,0.07);
  transition: transform 0.18s, box-shadow 0.18s;
}
.apply-track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.14);
}
.track-card-img {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.track-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.apply-track-card:hover .track-card-img img {
  transform: scale(1.04);
}
.track-card-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}
.track-card-badge--kids {
  background: rgba(20,83,45,0.85);
  color: #86efac;
  backdrop-filter: blur(4px);
}
.track-card-badge--adults {
  background: rgba(30,27,75,0.85);
  color: #a5b4fc;
  backdrop-filter: blur(4px);
}
.apply-track-card-badge--both {
  background: rgba(120,60,10,0.85);
  color: #fde68a;
  backdrop-filter: blur(4px);
}
.track-card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.track-card-body h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}
.track-card-body p {
  font-size: 0.875rem;
  color: #666;
  line-height: 1.6;
  margin: 0;
}
.track-highlights {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.track-highlights li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.82rem;
  color: #555;
  line-height: 1.4;
}
.track-highlights li i { color: #22c55e; flex-shrink: 0; margin-top: 2px; }
.track-card-cta {
  margin-top: auto;
  padding: 12px 16px;
  background: rgba(124,77,188,0.07);
  border: 1px solid rgba(124,77,188,0.18);
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--theme-accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.15s;
}
.apply-track-card:hover .track-card-cta {
  background: rgba(124,77,188,0.12);
}

/* ============================================================
   APPLICATION FORM SECTIONS (apply_kids/adults, company_apply_*)
   ============================================================ */
.form-section {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
  border: 1px solid #e8e5f4;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.form-section-header {
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid #f0eef8;
  border-left: 4px solid var(--theme-accent);
  padding-left: 12px;
}
.form-section-header i { color: var(--theme-accent); }
.form-hint {
  font-size: 0.82rem;
  color: #888;
  margin-bottom: 12px;
  margin-top: -8px;
}
.form-hint-inline {
  font-size: 0.78rem;
  color: #aaa;
  font-weight: 400;
}
.req { color: #dc2626; }

/* FORM ROWS */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* CHECKBOX GRID */
.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 4px;
}
.checkbox-grid--sm {
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 8px;
}

/* CHECKBOX CARD (age groups) */
.checkbox-card { cursor: pointer; }
.checkbox-card input[type="checkbox"] { display: none; }
.checkbox-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 16px 12px;
  border: 2px solid #e0ddd8;
  border-radius: 10px;
  font-size: 0.82rem;
  background: #fafaf8;
  transition: border-color 0.15s, background 0.15s;
  text-align: center;
}
.checkbox-card-body i { font-size: 1.4rem; color: #aaa; }
.checkbox-card-body strong { color: #1a1a1a; font-size: 0.875rem; }
.checkbox-card-body em { font-style: normal; color: #888; font-size: 0.75rem; }
.checkbox-card input:checked + .checkbox-card-body {
  border-color: var(--theme-accent);
  background: rgba(124,77,188,0.06);
}
.checkbox-card input:checked + .checkbox-card-body i { color: var(--theme-accent); }

/* CHECKBOX TAG (curricula, platforms) */
.checkbox-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1.5px solid #e0ddd8;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.825rem;
  color: #555;
  background: #fafaf8;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  user-select: none;
}
.checkbox-tag input { accent-color: var(--theme-accent); }
.checkbox-tag:has(input:checked) {
  border-color: var(--theme-accent);
  background: rgba(124,77,188,0.06);
  color: var(--theme-accent);
  font-weight: 500;
}

/* ── Equipment cards ── */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
  margin-bottom: 4px;
}
.equip-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #fff;
  border: 1px solid #e8e5f4;
  border-radius: 12px;
  padding: 14px 16px;
}
.equip-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; flex-shrink: 0;
}
.equip-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.equip-info strong { font-size: 0.87rem; color: #1a1a1a; }
.equip-info span { font-size: 0.78rem; color: #666; line-height: 1.5; }
@media (max-width: 600px) {
  .equip-grid { grid-template-columns: 1fr; }
}

/* RADIO ROW */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1.5px solid #e0ddd8;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  color: #555;
  background: #fafaf8;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
  user-select: none;
}
.radio-pill input { accent-color: var(--theme-accent); }
.radio-pill:has(input:checked) {
  border-color: var(--theme-accent);
  background: rgba(124,77,188,0.06);
  color: var(--theme-accent);
  font-weight: 500;
}

/* CHECKBOX INLINE (terms) */
.checkbox-inline {
  display: block;
  cursor: pointer;
  font-size: 0.875rem;
  color: #555;
  line-height: 1.6;
}
.checkbox-inline input {
  display: inline;
  vertical-align: middle;
  margin-right: 8px;
  accent-color: var(--theme-accent);
  flex-shrink: 0;
}

/* BACK LINK */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: color 0.15s;
}
.back-link:hover { color: #fff; }

/* WHY CARDS */
.why-card {
  padding: 24px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #ebe8f8;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.why-card h4 { font-size: 1rem; margin: 0 0 6px; color: #1a1a1a; }
.why-card p  { font-size: 0.82rem; color: #777; line-height: 1.5; margin: 0; }

/* AUTH CARD (login, verify-otp, forgot-password) */
.auth-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px;
  border: 1px solid #e8e5f4;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

/* ============================================================
   SITE-WIDE SUPPORT CHAT BUBBLE
   Fixed bottom-right on every page. z-index sits above the sticky
   header (100) and mobile nav dropdown so it's always reachable.
   ============================================================ */
#tsl-chat-widget {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 999;
  font-family: var(--font-body);
}
#tsl-chat-bubble {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #7C4DBC, #9B6FD4);
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(124,77,188,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s;
}
#tsl-chat-bubble:hover { transform: scale(1.06); }

#tsl-chat-panel {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: 340px;
  max-width: calc(100vw - 40px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border: 1px solid #ececf3;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  transition: transform 0.15s, opacity 0.15s;
}
#tsl-chat-panel.tsl-chat-hidden {
  opacity: 0;
  transform: scale(0.95) translateY(8px);
  pointer-events: none;
  visibility: hidden;
}
#tsl-chat-header {
  background: linear-gradient(135deg, #1a1a1a, #2b1a42);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 700;
  font-size: 0.95rem;
}
#tsl-chat-header span { display: flex; align-items: center; gap: 8px; }
#tsl-chat-close {
  background: none;
  border: none;
  color: rgba(255,255,255,0.7);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
#tsl-chat-close:hover { color: #fff; }

#tsl-chat-messages {
  padding: 16px;
  max-height: 260px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #faf9fd;
}
.tsl-chat-msg {
  font-size: 0.85rem;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 12px;
  max-width: 88%;
  word-break: break-word;
}
.tsl-chat-msg--bot {
  background: #eee7fb;
  color: #333;
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.tsl-chat-msg--user {
  background: #7C4DBC;
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

#tsl-chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px 16px;
  border-top: 1px solid #ececf3;
}
#tsl-chat-form input,
#tsl-chat-form textarea {
  font-family: var(--font-body);
  font-size: 0.85rem;
  padding: 9px 12px;
  border: 1.5px solid var(--color-border);
  border-radius: 8px;
  resize: vertical;
  outline: none;
}
#tsl-chat-form input:focus,
#tsl-chat-form textarea:focus { border-color: #7C4DBC; }
#tsl-chat-form button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #7C4DBC, #9B6FD4);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}
#tsl-chat-form button:disabled { opacity: 0.6; cursor: default; }

@media (max-width: 480px) {
  #tsl-chat-widget { right: 14px; bottom: 14px; }
  #tsl-chat-panel { width: calc(100vw - 28px); bottom: 68px; }
  #tsl-chat-bubble { width: 52px; height: 52px; font-size: 1.15rem; }
}


