/* ==========================================================================
   Meblax — One Page
   Palette: Dark #052c65 / Light #fefefe
   ========================================================================== */

:root {
  --dark: #052c65;
  --dark-2: #0a3f8f;
  --dark-3: #041f47;
  --light: #fefefe;
  --light-2: #f3f6fb;
  --text: #0c1c33;
  --text-muted: #4c5c73;
  --text-on-dark: #fefefe;
  --text-on-dark-muted: #b9c9e6;
  --border: #e4e9f2;
  --radius: 16px;
  --shadow: 0 20px 45px -20px rgba(5, 44, 101, 0.25);
  --container: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--light);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  margin: 0 0 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); line-height: 1.12; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 16px; color: var(--text-muted); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  margin-bottom: 14px;
}
.eyebrow-dark { color: var(--dark-2); }

.accent-text { color: #7db2ff; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  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, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--light);
  color: var(--dark);
  box-shadow: 0 10px 25px -8px rgba(5,44,101,0.4);
}
.section .btn-primary,
.site-header .btn-primary {
  background: var(--dark);
  color: var(--light);
  box-shadow: 0 10px 25px -8px rgba(5,44,101,0.35);
}
.section-dark .btn-primary {
  background: var(--light);
  color: var(--dark);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(5,44,101,0.5); }

.btn-ghost {
  background: transparent;
  border-color: rgba(254,254,254,0.4);
  color: var(--text-on-dark);
}
.btn-ghost:hover { background: rgba(254,254,254,0.1); }

.btn-sm { padding: 10px 20px; font-size: 0.85rem; }
.btn-block { width: 100%; }

.btn-outline {
  background: transparent;
  border-color: var(--dark);
  color: var(--dark);
}
.btn-outline:hover { background: var(--dark); color: var(--light); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(254,254,254,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 16px;
  padding-bottom: 16px;
}
.logo { display: flex; align-items: center; }
.logo-img { height: 32px; width: auto; display: block; }
.footer-brand .logo-img { height: 30px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}
.main-nav a:not(.nav-cta) {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 0.15s ease;
}
.main-nav a:not(.nav-cta):hover { color: var(--dark); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  border: none;
  background: none;
  cursor: pointer;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 20% -10%, #0a3f8f 0%, var(--dark) 45%, var(--dark-3) 100%);
  color: var(--text-on-dark);
  padding: 90px 0 110px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 { color: var(--text-on-dark); }
.hero-sub {
  color: var(--text-on-dark-muted);
  font-size: 1.08rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 8px;
}

/* Hero mock dashboard */
.hero-visual { display: flex; justify-content: center; }
.mock-window {
  width: 100%;
  max-width: 460px;
  background: var(--light);
  border-radius: 18px;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: rotate(1.2deg);
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--light-2);
  border-bottom: 1px solid var(--border);
}
.mock-bar span {
  width: 9px; height: 9px; border-radius: 50%;
  background: #d7dee8;
}
.mock-bar span:nth-child(1) { background: #ff6a5f; }
.mock-bar span:nth-child(2) { background: #ffc542; }
.mock-bar span:nth-child(3) { background: #35c759; }
.mock-bar-title {
  margin-left: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
}
.mock-body { padding: 20px; }
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
}
.mock-kpi {
  background: var(--light-2);
  border-radius: 12px;
  padding: 12px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.mock-kpi-label { font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }
.mock-kpi-value { font-size: 1rem; font-weight: 800; color: var(--dark); }
.mock-kpi-trend { font-size: 0.68rem; color: var(--text-muted); font-weight: 700; }
.mock-kpi-trend.up { color: #1e9e56; }

.mock-chart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 90px;
  padding: 10px 4px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 14px;
}
.mock-bar-col {
  flex: 1;
  height: var(--h);
  background: linear-gradient(180deg, #7db2ff, var(--dark));
  border-radius: 6px 6px 0 0;
}

.mock-rows { display: flex; flex-direction: column; gap: 10px; }
.mock-row {
  font-size: 0.78rem;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.dot-green { background: #1e9e56; }
.dot-amber { background: #e0a415; }
.dot-blue { background: #2f6fdb; }

/* Value strip */
.value-strip {
  background: var(--light-2);
  border-bottom: 1px solid var(--border);
}
.value-strip-inner {
  padding: 22px 24px;
  text-align: center;
}
.value-strip-inner p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* Sections */
.section { padding: 100px 0; }
.section-light-2 { background: var(--light-2); }
.section-dark {
  background: var(--dark);
  color: var(--text-on-dark);
}
.section-dark p { color: var(--text-on-dark-muted); }
.section-dark h2 { color: var(--text-on-dark); }

.section-head {
  max-width: 640px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p { font-size: 1.05rem; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--light-2);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card p { margin: 0; font-size: 0.94rem; }

/* Security section */
.security-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.security-inner-top { align-items: start; }
.security-badges {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.badge-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(254,254,254,0.06);
  border: 1px solid rgba(254,254,254,0.14);
  border-radius: 14px;
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.95rem;
}
.badge-item svg { width: 26px; height: 26px; color: #7db2ff; flex-shrink: 0; }

/* Audience grid */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.audience-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  position: relative;
}
.audience-num {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--light-2);
  -webkit-text-stroke: 1.5px var(--dark);
  margin-bottom: 12px;
}
.audience-card p { margin: 0; font-weight: 600; color: var(--text); font-size: 0.95rem; }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pricing-card-popular {
  border-color: var(--dark);
  box-shadow: var(--shadow);
}
.pricing-badge {
  position: absolute;
  top: -13px;
  right: 28px;
  background: var(--dark);
  color: var(--light);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 6px 14px;
  border-radius: 999px;
}
.pricing-desc { font-size: 0.9rem; margin-bottom: 18px; }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.pricing-amount { font-size: 2rem; font-weight: 800; color: var(--dark); }
.pricing-period { font-size: 0.95rem; color: var(--text-muted); font-weight: 600; }
.pricing-limit {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--dark-2);
  background: var(--light-2);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 22px;
  width: fit-content;
}
.pricing-features {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
}
.pricing-features svg {
  width: 18px; height: 18px;
  color: #1e9e56;
  flex-shrink: 0;
  margin-top: 2px;
}

/* FAQ */
.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 24px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: inherit;
}
.faq-icon {
  flex-shrink: 0;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--light-2);
  color: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.faq-item.open .faq-icon { transform: rotate(45deg); background: var(--dark); color: var(--light); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}
.faq-answer p {
  margin: 0;
  padding: 0 24px 20px;
  font-size: 0.92rem;
}

/* Legal content (used inside modal) */
.legal-content { max-width: 720px; margin: 0 auto; }
.legal-content h3 { font-size: 1.1rem; margin-top: 32px; }
.legal-content p { font-size: 0.96rem; }
.legal-updated { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 28px; }
.legal-content a { color: var(--dark); text-decoration: underline; font-weight: 600; }

/* Yasal / kurumsal sayfalar (hakkımızda, sözleşmeler) */
.legal-page { padding: 140px 0 72px; }
.legal-page .legal-content { max-width: 860px; }
.legal-page h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 8px; }
.legal-page .legal-content h3 { font-size: 1.15rem; margin-top: 36px; }
.legal-page .legal-content ul, .legal-page .legal-content ol { padding-left: 22px; margin: 0 0 16px; }
.legal-page .legal-content li { font-size: 0.96rem; margin-bottom: 6px; }
.legal-table-wrap { overflow-x: auto; margin: 12px 0 20px; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.legal-table th, .legal-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-table th { background: var(--light-2); width: 34%; }
.legal-table.legal-table-list th { width: auto; }

/* Fiyatlandırma altı güvenli ödeme satırı */
.pricing-secure {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 22px; margin-top: 36px; font-size: 0.9rem; color: var(--text-muted);
}
.pricing-secure img { max-width: 100%; height: auto; }
.pricing-secure a { color: var(--dark); text-decoration: underline; }

/* Footer */
.site-footer {
  background: var(--dark-3);
  color: var(--text-on-dark-muted);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 0.9fr 1.3fr 1.2fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(254,254,254,0.1);
}
.footer-brand p { max-width: 300px; margin-top: 12px; color: var(--light); }
.footer-col h4 {
  color: var(--text-on-dark);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 16px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 0.92rem; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--text-on-dark); }
.footer-col span { line-height: 1.4; }

/* Ödeme yöntemleri (iyzico ile Öde + kart markaları) */
.footer-payments {
  padding: 28px 24px 0;
  display: flex;
  justify-content: center;
}
.footer-payments img { max-width: 100%; height: auto; }

.footer-bottom {
  padding: 22px 24px;
  text-align: center;
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-bottom p { margin: 0; }
.footer-legal-link {
  color: var(--text-on-dark-muted);
  text-decoration: underline;
  transition: color 0.15s ease;
}
.footer-legal-link:hover { color: var(--text-on-dark); }

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 999;
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--dark);
  color: var(--text-on-dark);
  border-radius: 999px;
  padding: 14px 14px 14px 22px;
  box-shadow: 0 20px 45px -12px rgba(0,0,0,0.45);
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.cookie-banner.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.cookie-banner p {
  margin: 0;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-on-dark);
  line-height: 1.4;
  white-space: nowrap;
}
.cookie-banner a {
  color: #7db2ff;
  text-decoration: underline;
  font-weight: 700;
}
.cookie-banner-close {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(254,254,254,0.15);
  color: var(--text-on-dark);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.cookie-banner-close:hover { background: rgba(254,254,254,0.28); }

@media (max-width: 540px) {
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; width: auto; }
  .cookie-banner p { white-space: normal; }
}

/* Help widget */
.help-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 998;
}
.help-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--dark);
  color: var(--text-on-dark);
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  box-shadow: 0 16px 32px -10px rgba(0,0,0,0.4);
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease, background 0.15s ease;
}
.help-toggle.is-visible { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.help-toggle:hover { background: var(--dark-2); }
.help-toggle-icon { width: 20px; height: 20px; flex-shrink: 0; }

.help-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  width: 300px;
  max-width: calc(100vw - 48px);
  background: var(--light);
  border-radius: 18px;
  box-shadow: 0 30px 60px -15px rgba(5,44,101,0.35);
  padding: 20px;
  opacity: 0;
  transform: translateY(12px) scale(0.96);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.help-panel.is-open { opacity: 1; transform: none; pointer-events: auto; }

.help-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.help-panel-header h3 { margin: 0; font-size: 1rem; font-weight: 700; color: var(--text); }
.help-panel-close {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: var(--light-2);
  color: var(--text-muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.help-panel-close:hover { background: var(--border); }

.help-panel-body { display: flex; flex-direction: column; gap: 10px; }
.help-option {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color 0.15s ease, background 0.15s ease;
}
.help-option:hover { border-color: var(--dark); background: var(--light-2); }
.help-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--light-2);
  color: var(--dark);
}
.help-option-icon svg { width: 18px; height: 18px; }
.help-option-whatsapp .help-option-icon { background: #e7f9ee; color: #25d366; }

@media (max-width: 540px) {
  .help-widget { right: 16px; bottom: 16px; }
  .help-panel { width: calc(100vw - 32px); }
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin: 0 auto; }
  .security-inner { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .main-nav {
    position: fixed;
    top: 68px;
    left: 0; right: 0;
    background: var(--light);
    flex-direction: column;
    align-items: stretch;
    padding: 20px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
  }
  .main-nav.open { transform: translateY(0); opacity: 1; }
  .nav-toggle { display: flex; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .feature-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .section { padding: 70px 0; }
  .hero { padding: 60px 0 70px; }
}

/* Cookie policy modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(5,44,101,0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--light);
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 40px 80px -20px rgba(0,0,0,0.5);
  transform: translateY(20px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal { transform: translateY(0) scale(1); }

.modal-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: var(--light);
  border-bottom: 1px solid var(--border);
}
.modal-header h2 { margin: 0; font-size: 1.25rem; }
.modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--light-2);
  color: var(--text-muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
}
.modal-close:hover { background: var(--border); }

.modal-body { padding: 24px 28px 32px; }

@media (max-width: 540px) {
  .modal-overlay { padding: 12px; }
  .modal { max-height: 92vh; }
  .modal-header { padding: 18px 20px; }
  .modal-body { padding: 20px 20px 28px; }
}
