/* ============================================================
   StudyWithCzechBridge — global stylesheet
   Palette (from logo): crimson red (#c8102e) + navy (#14315e)
   ============================================================ */

:root {
  --blue-900: #0e2344;
  --blue-800: #14315e;
  --blue-700: #1d4e89;
  --blue-100: #e7eef7;
  --blue-50:  #f4f8fc;
  --red-700: #8c0b1f;
  --red-600: #a30d24;
  --red-500: #c8102e;
  --red-400: #ff5a70;
  --red-100: #fbe7ea;
  --ink:      #1f2a37;
  --ink-soft: #4b5866;
  --line:     #e5dee0;
  --white:    #ffffff;
  --green:    #1e8e5a;
  --red:      #c73838;
  --radius:   12px;
  --shadow:   0 8px 24px rgba(20, 49, 94, 0.10);
  --shadow-sm: 0 2px 8px rgba(20, 49, 94, 0.08);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; display: block; }

a { color: var(--red-500); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ---------- Header / nav ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red-500);
  box-shadow: var(--shadow-sm);
}

.nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  color: var(--blue-800);
  white-space: nowrap;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  width: 54px;
  height: 44px;
  flex-shrink: 0;
}
.brand-mark img { width: 100%; height: 100%; object-fit: contain; }

.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text small {
  font-size: 0.62rem;
  letter-spacing: 0.28em;
  font-weight: 700;
  color: var(--ink-soft);
}
.brand-text .brand-name { font-size: 1.18rem; }
.brand-text .brand-name em { color: var(--red-500); font-style: normal; }

.nav-links-wrapper {
  display: flex;
  align-items: center;
}

.mobile-cta-box {
  display: none;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  list-style: none;
}

.nav-links a {
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover { color: var(--red-500); text-decoration: none; }
.nav-links a.active { color: var(--blue-800); border-bottom-color: var(--red-500); }

.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

.nav-toggle {
  display: none;
  background: var(--blue-50);
  color: var(--blue-900);
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.nav-toggle:hover {
  background: var(--red-100);
  color: var(--red-600);
  border-color: var(--red-400);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  padding: 0.7rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-align: center;
  font-family: var(--font);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--red-500); color: var(--white); }
.btn-primary:hover { background: var(--red-600); color: var(--white); }

.btn-dark { background: var(--blue-800); color: var(--white); }
.btn-dark:hover { background: var(--blue-900); color: var(--white); }

.btn-outline { border-color: var(--red-500); color: var(--red-500); background: transparent; }
.btn-outline:hover { background: var(--red-500); color: var(--white); }

.btn-light-outline { border-color: rgba(255,255,255,0.7); color: var(--white); background: transparent; }
.btn-light-outline:hover { background: var(--white); color: var(--red-600); }

.btn-sm { padding: 0.4rem 1rem; font-size: 0.85rem; }
.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #a52d2d; color: var(--white); }
.btn-block { display: block; width: 100%; }

/* ---------- Hero ---------- */

.hero {
  background:
    radial-gradient(ellipse at 80% -10%, rgba(200, 16, 46, 0.35), transparent 55%),
    radial-gradient(ellipse at 10% 110%, rgba(200, 16, 46, 0.22), transparent 50%),
    linear-gradient(150deg, var(--blue-900) 0%, var(--blue-800) 55%, #1a3f7a 100%);
  color: var(--white);
  padding: 4.5rem 0 4.5rem;
  text-align: center;
}

.hero-logo {
  width: min(250px, 62%);
  margin: 0 auto 1.6rem;
  background: var(--white);
  border-radius: 18px;
  padding: 14px 18px 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

.hero .eyebrow {
  display: inline-block;
  background: rgba(200, 16, 46, 0.30);
  border: 1px solid rgba(255, 90, 112, 0.55);
  color: #ffd9de;
  border-radius: 999px;
  padding: 0.3rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 1.2rem;
}

.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  font-weight: 800;
  margin-bottom: 1rem;
}
.hero h1 em { color: var(--red-400); font-style: normal; }

.hero p.lead {
  max-width: 640px;
  margin: 0 auto 2rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.hero-actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

/* Page hero (inner pages) */
.page-hero {
  background:
    radial-gradient(ellipse at 85% -20%, rgba(200, 16, 46, 0.4), transparent 55%),
    linear-gradient(150deg, var(--blue-900), var(--blue-800));
  color: var(--white);
  padding: 3.5rem 0;
  text-align: center;
  border-bottom: 4px solid var(--red-500);
}
.page-hero h1 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
.page-hero p { color: rgba(255,255,255,0.82); max-width: 620px; margin: 0.6rem auto 0; }

/* ---------- Stats band ---------- */

.stats-band { background: var(--red-500); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
  padding: 2rem 0;
  gap: 1rem;
}

.stat-num { font-size: 2rem; font-weight: 800; color: var(--white); }
.stat-label { color: rgba(255,255,255,0.85); font-size: 0.92rem; font-weight: 600; }

/* ---------- Sections ---------- */

.section { padding: 4.2rem 0; }
.section.alt { background: #fdf6f7; }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 2.6rem; }
.section-head .kicker {
  color: var(--red-500);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.8rem;
}
.section-head h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--blue-900); margin: 0.3rem 0 0.6rem; }
.section-head p { color: var(--ink-soft); }

/* ---------- Cards ---------- */

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red-500);
  border-radius: var(--radius);
  padding: 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.card .icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--red-100);
  display: grid; place-items: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.card h3 { color: var(--blue-900); font-size: 1.08rem; margin-bottom: 0.5rem; }
.card p { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Process steps ---------- */

.steps { counter-reset: step; display: grid; gap: 1rem; max-width: 760px; margin: 0 auto; }

.step {
  counter-increment: step;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-500);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow-sm);
}
.step::before {
  content: counter(step);
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--red-500);
  color: var(--white);
  font-weight: 800;
  font-size: 1.1rem;
  display: grid; place-items: center;
}
.step h3 { color: var(--blue-900); font-size: 1.02rem; margin-bottom: 0.2rem; }
.step p { color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Testimonials ---------- */

.testimonial { display: flex; flex-direction: column; gap: 0.8rem; }
.testimonial .starline { color: var(--red-500); font-size: 1rem; letter-spacing: 2px; }
.testimonial blockquote { color: var(--ink-soft); font-size: 0.95rem; font-style: italic; }
.testimonial .who { font-weight: 700; color: var(--blue-900); font-size: 0.92rem; }
.testimonial .who small { display: block; color: var(--ink-soft); font-weight: 500; }

/* ---------- CTA band ---------- */

.cta-band {
  background:
    radial-gradient(ellipse at 90% 0%, rgba(255,255,255,0.14), transparent 50%),
    linear-gradient(135deg, var(--red-700), var(--red-500));
  color: var(--white);
  border-radius: var(--radius);
  padding: 2.8rem 2rem;
  text-align: center;
}
.cta-band h2 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.85); margin-bottom: 1.4rem; }
.cta-band .btn-primary { background: var(--white); color: var(--red-600); }
.cta-band .btn-primary:hover { background: var(--blue-900); color: var(--white); }

/* ---------- Forms ---------- */

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 4px solid var(--red-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  max-width: 460px;
  margin: 0 auto;
}
.form-card.wide { max-width: 760px; }

.form-card h2 { color: var(--blue-900); margin-bottom: 0.3rem; }
.form-card .sub { color: var(--ink-soft); font-size: 0.93rem; margin-bottom: 1.4rem; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; color: var(--ink); margin-bottom: 0.35rem; }
.field .hint { font-size: 0.8rem; color: var(--ink-soft); margin-top: 0.25rem; }

input[type="text"], input[type="email"], input[type="password"], input[type="tel"],
input[type="date"], input[type="number"], input[type="file"], select, textarea {
  width: 100%;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--line);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(200, 16, 46, 0.12);
}
textarea { resize: vertical; min-height: 110px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem 0.6rem;
  margin-bottom: 1.4rem;
}
legend { font-weight: 800; color: var(--red-600); padding: 0 0.5rem; font-size: 0.95rem; }

/* ---------- Alerts / notices ---------- */

.notice {
  padding: 0.8rem 1rem;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 1rem;
  display: none;
}
.notice.show { display: block; }
.notice.success { background: #e6f6ee; color: var(--green); border: 1px solid #bfe6d2; }
.notice.error { background: #fdecec; color: var(--red); border: 1px solid #f3c6c6; }
.notice.info { background: var(--blue-100); color: var(--blue-800); border: 1px solid #c6d8ec; }

/* ---------- Status badges ---------- */

.badge {
  display: inline-block;
  padding: 0.22rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.badge.st-pending      { background: #fdf3e0; color: #a06a10; }
.badge.st-docs         { background: #fbe7ea; color: var(--red-600); }
.badge.st-review       { background: #e7eef7; color: var(--blue-700); }
.badge.st-applied      { background: #e4ecfb; color: #3455a4; }
.badge.st-offer        { background: #eef7e6; color: #4c7a1e; }
.badge.st-visa         { background: #f2e9fb; color: #6b3fa0; }
.badge.st-approved     { background: #e6f6ee; color: var(--green); }
.badge.st-rejected     { background: #fdecec; color: var(--red); }
.badge.st-received     { background: #e0f2fe; color: #0369a1; }
.badge.st-evaluated    { background: #e0f2fe; color: #0369a1; }
.badge.st-legal        { background: #f3e8ff; color: #6b21a8; }
.badge.st-super        { background: #f3e8ff; color: #6b21a8; }
.badge.st-nostrif      { background: #fae8ff; color: #86198f; }
.badge.st-univ-sel     { background: #ecfdf5; color: #047857; }
.badge.st-prog-sel     { background: #ecfdf5; color: #047857; }
.badge.st-waiting-exam { background: #fff7ed; color: #c2410c; }
.badge.st-conditional  { background: #fef3c7; color: #b45309; }
.badge.st-fees-paid    { background: #d1fae5; color: #065f46; }
.badge.st-visa-docs    { background: #f5f3ff; color: #5b21b6; }
.badge.st-appt         { background: #fdf2f8; color: #be185d; }
.badge.st-interview    { background: #fffbeb; color: #a16207; }
.badge.st-dropped      { background: #f1f5f9; color: #475569; }

/* ---------- Status tracker (dashboard) ---------- */

.tracker {
  display: flex;
  overflow-x: auto;
  gap: 0;
  margin: 1.5rem 0;
  padding: 1.5rem 0.5rem;
  background: #fdfdfd;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  -webkit-overflow-scrolling: touch;
}
.tracker::-webkit-scrollbar {
  height: 6px;
}
.tracker::-webkit-scrollbar-track {
  background: var(--blue-50);
  border-radius: 999px;
}
.tracker::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}
.tracker::-webkit-scrollbar-thumb:hover {
  background: var(--ink-soft);
}

.tracker .t-step {
  flex: 0 0 140px;
  text-align: center;
  position: relative;
  font-size: 0.75rem;
  color: var(--ink-soft);
  padding-top: 30px;
  white-space: normal;
  word-wrap: break-word;
}
.tracker .t-step::before {
  content: "";
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--line);
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}
.tracker .t-step::after {
  content: "";
  position: absolute;
  top: 9px; left: -50%;
  width: 100%; height: 3px;
  background: var(--line);
  z-index: 1;
}
.tracker .t-step:first-child::after { display: none; }
.tracker .t-step.done { color: var(--blue-800); font-weight: 600; }
.tracker .t-step.done::before { background: var(--green); }
.tracker .t-step.done::after { background: var(--green); }
.tracker .t-step.current { color: var(--blue-900); font-weight: 800; }
.tracker .t-step.current::before { background: var(--red-500); box-shadow: 0 0 0 4px var(--red-100); }
.tracker .t-step.rejected::before { background: var(--red); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }

table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 640px;
}
table.data th, table.data td { padding: 0.75rem 0.9rem; text-align: left; }
table.data th {
  background: var(--blue-800);
  color: var(--white);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 2px solid var(--red-500);
  white-space: nowrap;
}
table.data tr + tr td { border-top: 1px solid var(--line); }
table.data tbody tr:hover { background: #fdf6f7; }

/* ---------- Dashboard / admin layout ---------- */

.app-page { background: #faf6f6; min-height: calc(100vh - 70px); padding: 2.2rem 0 3.5rem; }

.app-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.app-head h1 { color: var(--blue-900); font-size: 1.5rem; }
.app-head p { color: var(--ink-soft); font-size: 0.93rem; }

.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--red-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem;
  margin-bottom: 1.5rem;
}
.panel > h2 { color: var(--blue-900); font-size: 1.12rem; margin-bottom: 1rem; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-left: 4px solid var(--red-500);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.stat-card .n { font-size: 1.7rem; font-weight: 800; color: var(--red-500); }
.stat-card .l { font-size: 0.83rem; color: var(--ink-soft); font-weight: 600; }

.filter-bar { display: flex; gap: 0.8rem; flex-wrap: wrap; margin-bottom: 1rem; }
.filter-bar input, .filter-bar select { width: auto; flex: 1 1 180px; }

/* Upload dropzone */
.dropzone {
  border: 2px dashed var(--red-500);
  border-radius: var(--radius);
  background: #fdf6f7;
  padding: 2rem 1rem;
  text-align: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.dropzone:hover, .dropzone.drag { background: var(--red-100); border-color: var(--red-600); }
.dropzone .dz-icon { font-size: 2rem; margin-bottom: 0.4rem; }
.dropzone strong { color: var(--red-600); }

.doc-list { list-style: none; }
.doc-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.7rem 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  flex-wrap: wrap;
}
.doc-list li:last-child { border-bottom: none; }
.doc-list .doc-meta { color: var(--ink-soft); font-size: 0.8rem; }
.doc-list .doc-actions { display: flex; gap: 0.5rem; }

/* Modal */
.modal-back {
  position: fixed; inset: 0;
  background: rgba(14, 35, 68, 0.6);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 3rem 1rem;
  z-index: 200;
  overflow-y: auto;
}
.modal-back.show { display: flex; }
.modal {
  background: var(--white);
  border-top: 4px solid var(--red-500);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: min(760px, 100%);
  padding: 1.8rem;
  position: relative;
}
.modal .modal-close {
  position: absolute; top: 0.8rem; right: 1rem;
  background: none; border: none;
  font-size: 1.5rem; color: var(--ink-soft);
  cursor: pointer;
}
.modal h2 { color: var(--blue-900); margin-bottom: 1rem; }

.kv { display: grid; grid-template-columns: 200px 1fr; gap: 0.35rem 1rem; font-size: 0.92rem; }
.kv dt { font-weight: 700; color: var(--ink-soft); }
.kv dd { color: var(--ink); word-break: break-word; }

/* ---------- Contact page ---------- */

.contact-cols { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: start; }
.contact-item { display: flex; gap: 0.9rem; align-items: flex-start; margin-bottom: 1.3rem; }
.contact-item .ci-icon {
  width: 44px; height: 44px; flex-shrink: 0;
  border-radius: 10px;
  background: var(--red-100);
  display: grid; place-items: center;
  font-size: 1.2rem;
}
.contact-item h3 { font-size: 0.98rem; color: var(--blue-900); }
.contact-item p, .contact-item a { font-size: 0.92rem; color: var(--ink-soft); }

/* ---------- Footer & Map Integration ---------- */

.site-footer {
  position: relative;
  background: var(--blue-900);
  color: rgba(255, 255, 255, 0.9);
  padding: 3rem 0 2rem;
  margin-top: 0;
  font-size: 0.92rem;
  border-top: 4px solid var(--red-500);
  overflow: hidden;
  min-height: 480px;
}

.site-footer-map {
  display: flex;
  align-items: center;
}

.footer-map-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.footer-map-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  filter: contrast(1.05) saturate(1.1) brightness(0.85);
  pointer-events: auto;
}

.footer-map-overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(14, 35, 68, 0.45) 0%, rgba(14, 35, 68, 0.75) 100%);
  pointer-events: none;
}

.footer-glass-card {
  position: relative;
  z-index: 2;
  background: rgba(14, 35, 68, 0.88);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  padding: 2.2rem 2.4rem 1.4rem;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5), inset 0 1px 1px rgba(255, 255, 255, 0.2);
  color: #ffffff;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.footer-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.2rem;
  margin-bottom: 1.6rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.footer-location-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(200, 16, 46, 0.25);
  border: 1px solid rgba(255, 90, 112, 0.5);
  padding: 0.45rem 1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  color: #ffffff;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.pulse-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.8s infinite;
  display: inline-block;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.btn-map-direct {
  background: linear-gradient(135deg, var(--red-500) 0%, var(--red-600) 100%);
  color: #ffffff !important;
  border: 1px solid rgba(255,255,255,0.3);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(200, 16, 46, 0.4);
  transition: all 0.2s ease;
  font-size: 0.85rem;
  padding: 0.45rem 1rem;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
}

.btn-map-direct:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(200, 16, 46, 0.6);
  background: var(--red-600);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.site-footer h4, .footer-glass-card h4 {
  color: var(--white);
  margin-bottom: 0.8rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.site-footer ul, .footer-glass-card ul { list-style: none; padding: 0; margin: 0; }
.site-footer li, .footer-glass-card li { margin-bottom: 0.5rem; font-size: 0.92rem; }
.site-footer a, .footer-glass-card a { color: rgba(255, 255, 255, 0.92); font-weight: 500; }
.site-footer a:hover, .footer-glass-card a:hover { color: #ff99a4; text-decoration: underline; }

.footer-logo {
  width: 74px;
  background: var(--white);
  border-radius: 10px;
  padding: 5px;
  margin-bottom: 0.7rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 1.2rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
}

/* ---------- Utility ---------- */

.center { text-align: center; }
.mt-1 { margin-top: 0.6rem; } .mt-2 { margin-top: 1.2rem; } .mt-3 { margin-top: 2rem; }
.mb-2 { margin-bottom: 1.2rem; }
.muted { color: var(--ink-soft); }
.hidden { display: none !important; }

.spinner {
  display: inline-block;
  width: 18px; height: 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}
.spinner.dark { border-color: rgba(200,16,46,0.25); border-top-color: var(--red-500); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .contact-cols { grid-template-columns: 1fr; }
  .kv { grid-template-columns: 140px 1fr; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav-btn-desktop { display: none; }

  .brand-mark { width: 44px; height: 36px; }
  .brand-text .brand-name { font-size: 1.05rem; }

  .nav-links-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    border-bottom: 3px solid var(--red-500);
    box-shadow: 0 12px 28px rgba(14, 35, 68, 0.18);
    padding: 1rem 1.25rem;
    z-index: 999;
  }
  .nav-links-wrapper.open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: block;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border-bottom: 1px solid var(--blue-50);
    border-radius: 6px;
  }
  .nav-links a.active {
    background: var(--blue-50);
    color: var(--blue-900);
    font-weight: 700;
    border-bottom-color: var(--blue-50);
    border-left: 4px solid var(--red-500);
  }

  .mobile-cta-box {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .brand-text small { display: none; }
  .brand-text .brand-name { font-size: 0.98rem; }
  .nav-cta .btn { padding: 0.4rem 0.75rem; font-size: 0.8rem; }
}

/* ---------- Admin Tabs ---------- */
.admin-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 2px solid var(--line);
  padding-bottom: 0.25rem;
}
.admin-tab {
  padding: 0.6rem 1.2rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  font-size: 0.95rem;
  transition: all 0.15s ease;
}
.admin-tab:hover {
  color: var(--red-500);
}
.admin-tab.active {
  color: var(--blue-800);
  border-bottom-color: var(--red-500);
}

/* ---------- Task Board Columns ---------- */
.task-stages {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (min-width: 992px) {
  .task-stages {
    grid-template-columns: 1fr 1fr;
  }
}
.stage-col {
  background: var(--blue-50);
  border-radius: var(--radius);
  padding: 1.2rem;
  border: 1px solid var(--line);
}
.stage-col h3 {
  color: var(--blue-800);
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid rgba(20, 49, 94, 0.1);
  padding-bottom: 0.5rem;
}
.task-card-list {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-height: 100px;
}
.task-card {
  background: var(--white);
  border-radius: 8px;
  padding: 1rem;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: transform 0.15s ease;
}
.task-card:hover {
  transform: translateY(-2px);
}
.task-card.todo { border-left-color: var(--red-500); }
.task-card.in_progress { border-left-color: #f59e0b; }
.task-card.done { border-left-color: var(--green); opacity: 0.85; }

.task-card h4 {
  font-size: 0.95rem;
  color: var(--blue-900);
  margin-bottom: 0.2rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.task-card .task-desc {
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.4;
}
.task-card .task-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 0.2rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.4rem;
}
.task-badge {
  font-size: 0.7rem;
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: uppercase;
}
.task-badge.todo { background: var(--red-100); color: var(--red-700); }
.task-badge.in_progress { background: #fef3c7; color: #92400e; }
.task-badge.done { background: #d1fae5; color: #065f46; }

/* ---------- Role Management Styling ---------- */
.badge-role {
  display: inline-block;
  font-size: 0.75rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-weight: 700;
  text-transform: capitalize;
}
.badge-role.super_admin { background: #f3e8ff; color: #6b21a8; border: 1px solid #d8b4fe; }
.badge-role.admin { background: #dbeafe; color: #1e40af; border: 1px solid #93c5fd; }
.badge-role.agent, .badge-role.counselor, .badge-role.councilor { background: #e0f2fe; color: #0369a1; border: 1px solid #7dd3fc; }
.badge-role.admission_officer, .badge-role.officer { background: #f3e8ff; color: #5b21b6; border: 1px solid #c084fc; }
.badge-role.finance_manager, .badge-role.finance { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }
.badge-role.student, .badge-role.user { background: #f1f5f9; color: #475569; border: 1px solid #cbd5e1; }

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

/* ============================================================
   Floating WhatsApp Button & Badges
   ============================================================ */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: inline-flex;
  align-items: center;
  background: #25D366;
  color: #ffffff !important;
  text-decoration: none;
  border-radius: 50px;
  padding: 10px 18px 10px 14px;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.4), 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.2px;
}

.floating-whatsapp:hover {
  background: #20ba5a;
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.5), 0 4px 10px rgba(0, 0, 0, 0.2);
}

.floating-whatsapp-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.floating-whatsapp-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.floating-whatsapp-label {
  white-space: nowrap;
  font-weight: 700;
}

@media (max-width: 640px) {
  .floating-whatsapp {
    bottom: 20px;
    right: 18px;
    padding: 10px 14px;
    font-size: 0.85rem;
  }
}


