:root {
  --ink: #24262a;
  --muted: #6f7378;
  --line: #e3e0dc;
  --soft: #f7f5f2;
  --card: #ffffff;
  --brand: #333538;
  --brand-2: #f47721;
  --accent: #ff7a1a;
  --accent-dark: #d85d0c;
  --charcoal: #151617;
  --danger: #b42318;
  --ok: #2f7d52;
  --shadow: 0 24px 70px rgba(21, 22, 23, .12);
  --radius: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fff 0%, #f7f5f2 44%, #eeebe7 100%);
  line-height: 1.55;
}

a { color: inherit; }

.welcome-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
}

.welcome-card {
  width: min(100%, 620px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: var(--shadow);
  padding: clamp(28px, 6vw, 48px);
  text-align: center;
}

.welcome-card .brand-logo {
  width: min(86vw, 460px);
  height: 120px;
  padding: 0;
}

.welcome-brand {
  justify-content: center;
  margin-bottom: 26px;
}

.welcome-text {
  margin: 0 auto 28px;
  max-width: 520px;
  text-align: left;
  color: var(--ink);
}

.welcome-text p {
  margin: 0 0 16px;
}

.schools-title {
  margin: 8px 0 16px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: left;
  font-size: 1.45rem;
  line-height: 1.1;
}

.welcome-contact {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  text-align: left;
}

.welcome-contact p {
  margin: 0 0 12px;
  color: var(--muted);
}

.welcome-contact a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.simple-school-list {
  display: grid;
  gap: 12px;
}

.simple-school-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 58px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, var(--soft));
  text-decoration: none;
  font-weight: 850;
  color: var(--ink);
  text-align: left;
}

.simple-school-list a::after {
  content: "Seç";
  flex: 0 0 auto;
  color: var(--accent-dark);
  font-size: .9rem;
}

.simple-school-list a:hover {
  border-color: #ffbc8b;
  box-shadow: 0 12px 24px rgba(244, 119, 33, .13);
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.contact-phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
  text-decoration: none;
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--ink);
}

.whatsapp-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  color: var(--ink);
}

.whatsapp-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  box-shadow: 0 14px 30px rgba(37, 211, 102, .32);
  font-size: 1.6rem;
  font-weight: 900;
  text-decoration: none;
}

.whatsapp-icon svg {
  width: 34px;
  height: 34px;
}

.whatsapp-float.is-closed .whatsapp-bubble {
  display: none;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(190px, 22vw, 280px);
  height: 70px;
  padding: 0;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand small,
.brand strong {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: .82rem;
}

.brand-context {
  padding-left: 2px;
  white-space: nowrap;
}

.topnav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.topnav a,
.topnav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 8px;
  font: inherit;
  cursor: pointer;
}

.topnav a:hover,
.topnav button:hover {
  background: #fff4ec;
  color: var(--ink);
}

.topnav .nav-cta,
.nav-cta {
  background: var(--charcoal);
  color: #fff;
}

.topnav .nav-cta:hover,
.nav-cta:hover {
  background: var(--accent);
  color: #fff;
}

.hero {
  min-height: calc(100vh - 79px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: clamp(24px, 5vw, 80px);
  padding: clamp(42px, 8vw, 96px) clamp(18px, 6vw, 84px);
  background:
    linear-gradient(115deg, rgba(16, 17, 18, .92), rgba(44, 45, 48, .72) 50%, rgba(244, 119, 33, .54)),
    url("https://images.unsplash.com/photo-1570125909232-eb263c188f7e?auto=format&fit=crop&w=1800&q=82");
  background-size: cover;
  background-position: center;
  color: #fff;
}

.hero-copy {
  max-width: 780px;
  text-shadow: 0 2px 20px rgba(0, 0, 0, .28);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1,
.section-head h1,
.section-head h2,
.form-hero h1,
.success-card h1,
.legal-card h1 {
  margin: 0;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 840px;
  font-size: clamp(2.4rem, 6vw, 5rem);
}

.lead {
  max-width: 680px;
  margin: 22px 0 0;
  font-size: 1.18rem;
  color: rgba(255, 255, 255, .86);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  font: inherit;
}

.button.primary {
  background: linear-gradient(135deg, #ff8a2b, #f06416);
  color: #fff;
  box-shadow: 0 14px 26px rgba(240, 100, 22, .28);
}

.button.primary:hover,
.button.secondary:hover {
  transform: translateY(-1px);
}

.button.secondary {
  background: var(--charcoal);
  color: #fff;
}

.button.danger {
  background: #fff1f2;
  color: var(--danger);
  border-color: #fecaca;
}

.button.ghost {
  border-color: rgba(255, 255, 255, .36);
  color: #fff;
  background: rgba(255, 255, 255, .10);
}

.button.soft {
  background: #fff4ec;
  color: var(--accent-dark);
}

.price-demo {
  background: rgba(255, 255, 255, .96);
  color: var(--ink);
  border-radius: 6px;
  padding: 28px;
  border-top: 5px solid var(--accent);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.price-demo::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 150px;
  height: 150px;
  border: 18px solid rgba(244, 119, 33, .14);
  border-radius: 50%;
}

.price-demo span,
.price-panel span {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: .9rem;
}

.price-demo strong,
.price-panel strong {
  display: block;
  margin-top: 4px;
  font-size: 2.3rem;
}

.section {
  padding: 68px clamp(18px, 6vw, 84px);
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2,
.section-head h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.section-head p {
  color: var(--muted);
  font-size: 1.05rem;
}

.school-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.school-card,
.admin-card,
.legal-card,
.success-card,
.form-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 12px;
  box-shadow: 
    0 4px 6px -1px rgba(0, 0, 0, 0.05),
    0 10px 15px -3px rgba(0, 0, 0, 0.08),
    0 24px 70px rgba(21, 22, 23, 0.08);
}

.school-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-top: 4px solid var(--accent);
}

.school-card h3 {
  margin: 12px 0 8px;
  font-size: 1.35rem;
}

.school-card p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  color: var(--accent-dark);
  background: #fff0e4;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: .8rem;
  font-weight: 800;
}

.process {
  background: #ffffff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.steps div {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: linear-gradient(180deg, #fff, var(--soft));
}

.steps strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  margin-bottom: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 6vw, 84px);
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.form-shell,
.success-shell,
.legal-page {
  max-width: 1040px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}

.form-brand {
  margin-bottom: 18px;
}

.form-card {
  overflow: hidden;
}

.form-hero {
  background:
    linear-gradient(135deg, rgba(21, 22, 23, .94), rgba(52, 53, 56, .86)),
    linear-gradient(90deg, var(--accent), transparent);
  color: #fff;
  padding: clamp(28px, 5vw, 48px);
  border-bottom: 5px solid var(--accent);
}

.form-hero h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
}

.form-hero p {
  max-width: 740px;
  color: rgba(255, 255, 255, .82);
}

.registration-form {
  counter-reset: formStep;
  padding: clamp(22px, 4vw, 38px);
}

.form-section {
  display: none;
  position: relative;
  padding: 0;
  margin: 0;
}

.form-section.active {
  display: block;
  animation: slideNext 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-section.active.slide-prev {
  animation: slidePrev 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideNext {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes slidePrev {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* Admin Chart Styles */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.chart-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  box-shadow: var(--shadow);
}

.chart-card h3 {
  margin: 0 0 16px;
  font-size: 1rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.step-indicator {
  display: flex;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 0 10px;
  position: relative;
}

.step-indicator::before {
  content: "";
  position: absolute;
  top: 15px;
  left: 40px;
  right: 40px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.step-number {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.step-item.active .step-number {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(244, 119, 33, 0.15);
}

.step-item.completed .step-number {
  background: var(--ok);
  border-color: var(--ok);
  color: #fff;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 750;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.step-item.active .step-label {
  color: var(--ink);
}

.wizard-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.form-section h2 {
  display: none; /* Wizard başlığı artık göstergeden takip edilecek */
}

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 13px 14px;
  font: inherit;
  font-size: 16px;
}

select {
  min-height: 56px;
  font-weight: 800;
  cursor: pointer;
}

select option {
  min-height: 44px;
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.6;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(244, 119, 33, .18);
  border-color: var(--brand-2);
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.price-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid #ffd3b5;
  background: linear-gradient(135deg, #fff8f2, #ffffff);
  border-radius: 6px;
  padding: 22px;
  margin: 6px 0 22px;
  border-left: 5px solid var(--accent);
  box-shadow: 0 16px 36px rgba(244, 119, 33, .10);
}

.price-panel.unavailable {
  border-color: #fecaca;
  background: #fff1f2;
}

.price-panel.muted {
  border-color: var(--line);
  background: var(--soft);
}

.price-panel strong {
  color: var(--accent-dark);
}

.price-panel.unavailable strong {
  color: var(--danger);
}

.price-panel p {
  margin: 8px 0 0;
  color: var(--muted);
}

.price-panel em,
.price-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  white-space: nowrap;
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--accent-dark);
  background: #fff0e4;
  font-style: normal;
  font-weight: 850;
  text-decoration: none;
}

.check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  font-weight: 650;
}

.check input {
  margin-top: 4px;
}

.form-error {
  display: none;
  color: var(--danger);
  background: #fff1f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px 14px;
  margin-bottom: 16px;
}

.submit {
  width: 100%;
}

.honeypot {
  position: absolute;
  left: -9999px;
}

.success-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.success-card,
.legal-card {
  width: 100%;
  padding: clamp(26px, 5vw, 44px);
}

.success-card {
  max-width: 720px;
  border-top: 5px solid var(--accent);
}

.success-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: #fff0e4;
  color: var(--accent-dark);
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 18px;
}

.summary-box {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 16px;
  margin: 20px 0;
}

.summary-item {
  display: grid;
  gap: 4px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.summary-item span {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 750;
}

.summary-item.highlight {
  grid-column: 1 / -1;
  border-color: #ffc99e;
  background: #fff8f2;
}

.success-copy {
  color: var(--muted);
}

.success-card .button.ghost {
  border-color: var(--line);
  color: var(--ink);
  background: #fff;
}

.legal-page {
  max-width: 840px;
}

.legal-card {
  margin-top: 18px;
}

.legal-card h2 {
  margin-top: 28px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 22px;
  padding: 42px clamp(18px, 6vw, 84px) 72px;
}

.admin-sidebar {
  position: sticky;
  top: 96px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 16px;
  background: var(--charcoal);
  color: #fff;
  border-radius: 6px;
  box-shadow: var(--shadow);
}

.admin-sidebar strong {
  margin-bottom: 6px;
}

.admin-sidebar a {
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  padding: 10px 12px;
  border-radius: 6px;
}

.admin-sidebar a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .1);
}

.admin-head {
  margin-bottom: 22px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  border-top: 4px solid var(--accent);
}

.stat span {
  color: var(--muted);
  font-weight: 700;
}

.stat strong {
  display: block;
  font-size: 2rem;
}

.admin-card {
  padding: 20px;
  border-top: 5px solid var(--accent);
  margin-bottom: 22px;
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.toolbar label {
  min-width: 220px;
  margin: 0;
}

.file-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  min-width: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 16px;
  background: #fff4ec;
  color: var(--accent-dark);
  font-weight: 850;
  cursor: pointer;
}

.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.admin-section-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-section-title h2 {
  margin: 0;
  font-size: 1.6rem;
}

.admin-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.area-manager {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) max-content minmax(180px, 1fr) max-content;
  gap: 12px;
  align-items: end;
  margin-bottom: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--soft);
}

.area-manager label {
  margin: 0;
}

.save-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  margin-top: 16px;
}

.save-row span {
  color: var(--muted);
  font-weight: 750;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

.price-table {
  width: auto;
  min-width: 1800px;
  table-layout: fixed;
}

.price-table th:nth-child(1),
.price-table td:nth-child(1) { width: 150px; }

.price-table th:nth-child(2),
.price-table td:nth-child(2) { width: 190px; }

.price-table th:nth-child(3),
.price-table td:nth-child(3) { width: 150px; }

.price-table th:nth-child(4),
.price-table td:nth-child(4) { width: 160px; }

.price-table th:nth-child(5),
.price-table td:nth-child(5) { width: 70px; }

/* Compact Table for Price Management */
.compact-table {
  width: 100%;
  table-layout: fixed;
}

.compact-table th:nth-child(1),
.compact-table td:nth-child(1) { width: 20%; } /* İlçe */
.compact-table th:nth-child(2),
.compact-table td:nth-child(2) { width: 25%; } /* Mahalle */
.compact-table th:nth-child(3),
.compact-table td:nth-child(3) { width: 15%; } /* Aylık Ücret */
.compact-table th:nth-child(4),
.compact-table td:nth-child(4) { width: 25%; } /* Servis Durumu */
.compact-table th:nth-child(5),
.compact-table td:nth-child(5) { width: 15%; } /* İşlem */

.price-table th,
.price-table td {
  padding-right: 18px;
}

th,
td {
  text-align: left;
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: .82rem;
}

.status-select {
  min-width: 145px;
  padding: 8px;
}

.note-input {
  min-width: 180px;
  min-height: 42px;
  padding: 9px 10px;
}

.price-input {
  max-width: 150px;
  min-height: 42px;
  padding: 9px 10px;
  font-weight: 850;
}

.availability-select {
  min-width: 140px;
  min-height: 42px;
  padding: 8px 10px;
}

.contact-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.contact-links a {
  color: var(--accent-dark);
  font-weight: 800;
}

.mini-danger {
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 8px 10px;
  background: #fff1f2;
  color: var(--danger);
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.report-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: linear-gradient(180deg, #fff, var(--soft));
}

.report-card span {
  color: var(--muted);
  font-weight: 750;
}

.report-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.45rem;
}

.mini-title {
  margin: 24px 0 10px;
}

.report-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

@media (max-width: 820px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: min(74vw, 280px);
    height: 70px;
  }

  .brand-context {
    display: none;
  }

  .topnav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .school-grid,
  .steps,
  .field-row,
  .stats,
  .report-grid,
  .summary-box,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .school-card {
    flex-direction: column;
  }

  .form-shell {
    padding: 14px 10px 44px;
  }

  .form-hero {
    padding: 24px 18px;
  }

  .form-hero h1 {
    font-size: clamp(1.65rem, 8vw, 2.25rem);
  }

  .registration-form {
    padding: 20px 14px 24px;
  }

  .form-section {
    padding-top: 22px;
    margin-top: 22px;
  }

  input,
  textarea,
  select {
    min-height: 56px;
    padding: 14px 15px;
  }

  .price-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar {
    padding: 0 16px;
    height: auto;
    min-height: 70px;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-context {
    display: none;
  }

  .admin-sidebar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    overflow-x: auto;
    padding: 10px;
    background: #fff;
    border-right: none;
    border-bottom: 1px solid var(--line);
    gap: 8px;
  }

  .admin-sidebar a {
    white-space: nowrap;
    padding: 8px 12px;
    font-size: 0.9rem;
  }

  .admin-sidebar strong {
    display: none;
  }

  .chart-grid {
    grid-template-columns: 1fr !important;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .admin-section-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .admin-layout {
    gap: 14px;
    padding: 18px 10px 48px;
  }

  .admin-card {
    padding: 14px;
  }

  .toolbar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .area-manager {
    grid-template-columns: 1fr;
  }

  .save-row {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar label,
  .toolbar .button,
  .file-button {
    width: 100%;
    min-width: 0;
  }

  .table-wrap {
    margin: 0 -8px;
    padding: 0 8px 10px;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 1360px;
  }

  th,
  td {
    padding: 10px 8px;
    font-size: .88rem;
  }

  .note-input {
    min-width: 140px;
  }

  select {
    min-height: 58px;
    font-size: 16px;
  }

  select option {
    font-size: 16px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 16px;
  }

  .whatsapp-bubble {
    max-width: calc(100vw - 96px);
    white-space: normal;
    font-size: .9rem;
  }
}

@media (max-width: 520px) {
  .welcome-page {
    display: block;
    min-height: auto;
    padding: 12px 8px 88px;
  }

  .welcome-card {
    width: 100%;
    padding: 22px 16px;
  }

  .welcome-card .brand-logo {
    width: 100%;
    height: 116px;
  }

  .welcome-brand {
    margin-bottom: 18px;
  }

  .welcome-text {
    margin-bottom: 24px;
    font-size: .98rem;
  }

  .schools-title {
    font-size: 1.35rem;
    margin-bottom: 14px;
  }

  .simple-school-list a {
    align-items: center;
    min-height: 60px;
    padding: 14px 12px;
    font-size: .98rem;
  }

  .simple-school-list a::after {
    margin-left: 8px;
  }

  .welcome-contact {
    padding-bottom: 20px;
  }

  .whatsapp-float {
    right: 14px;
    bottom: 14px;
  }

  .whatsapp-bubble {
    max-width: min(245px, calc(100vw - 92px));
    padding: 11px 12px;
    font-size: .86rem;
  }

  .whatsapp-icon {
    width: 54px;
    height: 54px;
  }
}
