/* =============================================
   VENTA MUDANZA — Facebook Marketplace Style
   MOBILE FIRST — base = mobile, breakpoints up
   De Martini Rosselot 🇲🇽
   ============================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ─── Variables ─── */
:root {
  --fb-blue: #1877F2;
  --fb-blue-light: #e7f0fd;

  --bg: #F0F2F5;
  --bg-card: #FFFFFF;
  --bg-sidebar: #FFFFFF;
  --bg-nav: #FFFFFF;

  --border: #E4E6EB;

  --text-primary: #050505;
  --text-secondary: #65676B;
  --text-muted: #8A8D91;

  --green: #00A400;
  --orange: #e67e22;
  --red: #FA3E3E;

  --shadow-card: 0 1px 2px rgba(0,0,0,0.1);
  --shadow-card-hover: 0 4px 12px rgba(0,0,0,0.15);
  --shadow-nav: 0 2px 4px rgba(0,0,0,0.08);

  --radius-md: 8px;
  --radius-lg: 12px;

  --nav-height: 52px;
  --sidebar-width: 340px;
  --transition: 0.15s ease;
  --whatsapp: #25D366;
  --whatsapp-dark: #128C7E;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
button { cursor: pointer; border: none; font-family: inherit; background: none; }
input { font-family: inherit; outline: none; }
a { text-decoration: none; color: inherit; }

/* ═══════════════════════════════════════
   TOP NAV — mobile base
═══════════════════════════════════════ */
.top-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-height);
  background: var(--bg-nav);
  box-shadow: var(--shadow-nav);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
}

.top-nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.nav-logo {
  width: 34px;
  height: 34px;
  background: var(--fb-blue);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nav-title {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 52vw;
}

.nav-admin-btn {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: 20px;
  background: var(--bg);
  transition: var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-admin-btn:hover { background: var(--border); color: var(--text-primary); }

/* ═══════════════════════════════════════
   LAYOUT — mobile: single column
═══════════════════════════════════════ */
.fb-layout {
  display: flex;
  margin-top: var(--nav-height);
  min-height: calc(100vh - var(--nav-height));
}

/* Sidebar — hidden on mobile */
.fb-sidebar { display: none; }

/* ═══════════════════════════════════════
   CONTENT — mobile base
═══════════════════════════════════════ */
.fb-content {
  flex: 1;
  padding: 10px 10px 0;
  min-width: 0;
}

/* ─── Mobile Search ─── */
.mobile-search-wrap {
  position: relative;
  margin-bottom: 10px;
}

.mobile-search-input {
  width: 100%;
  padding: 11px 16px 11px 40px;
  border: none;
  border-radius: 22px;
  background: var(--bg-card);
  font-size: 0.9rem;
  color: var(--text-primary);
  box-shadow: var(--shadow-card);
  -webkit-appearance: none;
}

.mobile-search-input::placeholder { color: var(--text-secondary); }
.mobile-search-input:focus { box-shadow: 0 0 0 2px var(--fb-blue); }

.mobile-search-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.9rem;
  pointer-events: none;
}

/* ─── Mobile Category Pills ─── */
.mobile-cats-scroll {
  display: flex;
  overflow-x: auto;
  gap: 7px;
  padding-bottom: 6px;
  margin-bottom: 10px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.mobile-cats-scroll::-webkit-scrollbar { display: none; }

.mobile-cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  border-radius: 22px;
  font-size: 0.82rem;
  font-weight: 600;
  background: var(--bg-card);
  color: var(--text-primary);
  white-space: nowrap;
  box-shadow: var(--shadow-card);
  transition: var(--transition);
  flex-shrink: 0;
  min-height: 36px;
}

.mobile-cat-pill:hover { background: var(--border); }
.mobile-cat-pill.active { background: var(--fb-blue); color: #fff; }

/* ─── Mobile How It Works ─── */
.mobile-how {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-card);
}

.mobile-how-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3px;
  flex: 1;
  font-size: 0.68rem;
  color: var(--text-secondary);
  font-weight: 600;
  line-height: 1.3;
}

.mobile-how-step span:first-child { font-size: 1.1rem; }

.mobile-how-arrow {
  color: var(--text-muted);
  font-size: 1.2rem;
  flex-shrink: 0;
}

/* ─── Results Bar ─── */
.fb-results-bar {
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-primary);
  padding: 0 2px;
}

/* ═══════════════════════════════════════
   PRODUCT GRID — mobile: 2 columns
═══════════════════════════════════════ */
.fb-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding-bottom: 130px;
}

/* ═══════════════════════════════════════
   PRODUCT CARD — mobile base
═══════════════════════════════════════ */
.fb-card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  box-shadow: var(--shadow-card);
  transition: box-shadow var(--transition);
  -webkit-tap-highlight-color: transparent;
}

.fb-card.selected { outline: 3px solid var(--fb-blue); outline-offset: -1px; }
.fb-card.sold { opacity: 0.6; cursor: default; }

/* Checkbox */
.fb-card-check-wrap {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 10;
  width: 26px;
  height: 26px;
}

.fb-card-check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  background: rgba(255,255,255,0.9);
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  transition: var(--transition);
  position: relative;
}

.fb-card-check:checked {
  background: var(--fb-blue);
  border-color: var(--fb-blue);
}

.fb-card-check:checked::after {
  content: '';
  position: absolute;
  left: 8px;
  top: 4px;
  width: 5px;
  height: 10px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

/* Image */
.fb-card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #E4E6EB;
  position: relative;
}

.fb-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fb-card-img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  background: #E4E6EB;
}

/* Status badge */
.fb-status-badge {
  position: absolute;
  bottom: 6px;
  left: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.fb-status-badge.disponible { background: var(--green); color: #fff; }
.fb-status-badge.reservado  { background: var(--orange); color: #fff; }
.fb-status-badge.vendido    { background: var(--red); color: #fff; }

/* Card body */
.fb-card-body { padding: 7px 9px 10px; }

.fb-card-price {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.fb-card-name {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
}

.fb-card-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fb-card-qty  { font-size: 0.68rem; color: var(--text-muted); }
.fb-card-date { font-size: 0.68rem; color: var(--fb-blue); font-weight: 600; }

/* ─── Empty State ─── */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 20px;
  color: var(--text-muted);
}
.empty-state-icon { font-size: 2.8rem; margin-bottom: 10px; }
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 4px; }

/* ═══════════════════════════════════════
   WHATSAPP FOOTER — mobile base
═══════════════════════════════════════ */
.wsp-footer {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 300;
  transform: translateY(100%);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.wsp-footer.visible { transform: translateY(0); }

.wsp-footer-inner {
  background: #fff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wsp-summary { flex: 1; min-width: 0; }
.wsp-count { font-size: 0.78rem; color: var(--text-secondary); font-weight: 500; }
.wsp-total { font-size: 1.1rem; font-weight: 700; color: var(--text-primary); }

.wsp-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--whatsapp);
  color: #fff;
  padding: 13px 18px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 700;
  white-space: nowrap;
  transition: var(--transition);
  box-shadow: 0 4px 12px rgba(37,211,102,0.4);
  -webkit-tap-highlight-color: transparent;
}
.wsp-btn:active { transform: scale(0.97); }

/* ─── Toasts ─── */
.toast-container {
  position: fixed;
  bottom: 90px;
  right: 12px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #1c1e21;
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  animation: slideIn 0.25s ease, fadeOut 0.3s ease 2.5s forwards;
  max-width: 260px;
}
.toast.success { border-left: 4px solid var(--green); }
.toast.error   { border-left: 4px solid var(--red); }

@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; transform: translateY(-4px); }
}

/* ═══════════════════════════════════════
   TABLET — 640px+
═══════════════════════════════════════ */
@media (min-width: 640px) {
  .fb-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .fb-content { padding: 14px 14px 0; }
  .fb-card-price { font-size: 1rem; }
  .fb-card-name  { font-size: 0.82rem; }
  .wsp-btn span:last-child { display: inline; }
}

/* ═══════════════════════════════════════
   DESKTOP — 900px+: show sidebar
═══════════════════════════════════════ */
@media (min-width: 900px) {

  :root { --nav-height: 56px; }

  .nav-title { font-size: 0.9rem; max-width: none; }
  .top-nav { padding: 0 16px; }

  /* Show sidebar, hide mobile elements */
  .fb-sidebar {
    display: block;
    width: var(--sidebar-width);
    min-width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border);
    height: calc(100vh - var(--nav-height));
    position: sticky;
    top: var(--nav-height);
    overflow-y: auto;
    padding: 16px 12px 120px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
  }

  .mobile-search-wrap,
  .mobile-cats-scroll,
  .mobile-how { display: none; }

  /* Content */
  .fb-content { padding: 16px 16px 0; }

  .fb-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }

  /* Card hover effects for desktop */
  .fb-card { transition: box-shadow var(--transition), transform var(--transition); }
  .fb-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
  .fb-card.sold:hover { transform: none; box-shadow: var(--shadow-card); }
  .fb-card-img { transition: transform 0.3s ease; }
  .fb-card:hover .fb-card-img { transform: scale(1.03); }

  /* Sidebar elements */
  .sidebar-header { padding: 4px 8px 14px; }
  .sidebar-title { font-size: 1.5rem; font-weight: 800; color: var(--text-primary); line-height: 1; margin-bottom: 2px; }
  .sidebar-sub { font-size: 0.82rem; color: var(--text-secondary); font-weight: 500; }

  .sidebar-search { position: relative; margin-bottom: 12px; }
  .sidebar-search-input {
    width: 100%;
    padding: 10px 14px 10px 38px;
    border: none;
    border-radius: 22px;
    background: var(--bg);
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition);
  }
  .sidebar-search-input::placeholder { color: var(--text-secondary); }
  .sidebar-search-input:focus { box-shadow: 0 0 0 2px var(--fb-blue); background: #fff; }
  .sidebar-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; font-size: 0.85rem; }

  .sidebar-how { margin-bottom: 12px; }
  .sidebar-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 4px 8px 8px;
  }

  .how-list { display: flex; flex-direction: column; gap: 3px; }
  .how-list-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 10px;
    border-radius: var(--radius-md);
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.4;
  }
  .how-list-icon { flex-shrink: 0; margin-top: 1px; }

  .sidebar-divider { height: 1px; background: var(--border); margin: 12px 8px; }

  .sidebar-cats { display: flex; flex-direction: column; gap: 2px; }
  .sidebar-cat-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    text-align: left;
    transition: var(--transition);
    width: 100%;
  }
  .sidebar-cat-btn:hover { background: var(--bg); }
  .sidebar-cat-btn.active { background: var(--fb-blue-light); color: var(--fb-blue); font-weight: 700; }

  .sidebar-cat-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: var(--bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
  }
  .sidebar-cat-btn.active .sidebar-cat-icon { background: var(--fb-blue-light); }
}

/* ═══════════════════════════════════════
   LARGE DESKTOP — 1200px+
═══════════════════════════════════════ */
@media (min-width: 1200px) {
  .fb-grid { grid-template-columns: repeat(4, 1fr); }
  .wsp-footer-inner { max-width: 1400px; margin: 0 auto; }
}

/* ═══════════════════════════════════════
   ADMIN STYLES
═══════════════════════════════════════ */
.admin-body { background: #f8f9fb; }

.admin-header {
  background: #0d3f7a;
  color: #fff;
  padding: 0 16px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.admin-header h1 { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.admin-nav-links { display: flex; align-items: center; gap: 10px; }
.admin-link { color: rgba(255,255,255,0.8); font-size: 0.82rem; padding: 6px 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3); transition: 0.15s ease; }
.admin-link:hover { color: #fff; background: rgba(255,255,255,0.15); }

.admin-content { max-width: 1100px; margin: 0 auto; padding: 20px 14px 40px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; gap: 12px; flex-wrap: wrap; }
.admin-topbar h2 { font-size: 1.3rem; font-weight: 700; }

.btn-primary { display: flex; align-items: center; gap: 6px; background: #1a5ca8; color: #fff; padding: 10px 18px; border-radius: 8px; font-size: 0.88rem; font-weight: 600; border: none; cursor: pointer; box-shadow: 0 2px 8px rgba(26,92,168,0.3); transition: 0.15s ease; }
.btn-primary:hover { background: #0d3f7a; }

.btn-secondary { background: #f0f4f8; color: #6b7280; padding: 8px 14px; border-radius: 6px; font-size: 0.84rem; font-weight: 500; border: 1px solid #dde3ea; cursor: pointer; transition: 0.15s ease; }
.btn-secondary:hover { background: #e2e8f0; color: #1a1f36; }

.btn-danger { background: transparent; color: #e53935; padding: 6px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; border: 1px solid rgba(229,57,53,0.3); cursor: pointer; transition: 0.15s ease; }
.btn-danger:hover { background: #ffebee; }

.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.stat-card { background: #fff; border-radius: 10px; padding: 14px; border: 1px solid #dde3ea; text-align: center; }
.stat-number { font-size: 1.8rem; font-weight: 800; color: #1a5ca8; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.72rem; color: #9ca3af; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }

.table-wrap { background: #fff; border-radius: 10px; border: 1px solid #dde3ea; overflow: hidden; }
.table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table thead tr { background: #f8f9fb; border-bottom: 2px solid #dde3ea; }
.admin-table th { padding: 11px 12px; text-align: left; font-weight: 600; color: #6b7280; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap; }
.admin-table td { padding: 11px 12px; border-bottom: 1px solid #dde3ea; vertical-align: middle; }
.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: #f8fbff; }
.table-img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid #dde3ea; background: #f0f4f8; }
.table-img-placeholder { width: 44px; height: 44px; border-radius: 6px; border: 1px solid #dde3ea; background: #f0f4f8; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.table-name { font-weight: 600; color: #1a1f36; }
.table-actions { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.btn-edit { background: transparent; color: #1a5ca8; padding: 5px 10px; border-radius: 6px; font-size: 0.8rem; font-weight: 500; border: 1px solid rgba(26,92,168,0.3); cursor: pointer; transition: 0.15s ease; }
.btn-edit:hover { background: rgba(26,92,168,0.08); }
.status-select { padding: 4px 8px; border-radius: 20px; font-size: 0.73rem; font-weight: 600; border: none; cursor: pointer; appearance: none; -webkit-appearance: none; text-align: center; }
.status-select.disponible { background: #e6f7ee; color: #00a650; }
.status-select.reservado  { background: #fff3e0; color: #f5a623; }
.status-select.vendido    { background: #ffebee; color: #e53935; }

/* Login */
.login-screen { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0d3f7a, #1a5ca8); padding: 20px; }
.login-card { background: #fff; border-radius: 16px; padding: 36px 28px; width: 100%; max-width: 360px; box-shadow: 0 8px 24px rgba(0,0,0,0.12); text-align: center; }
.login-logo { width: 56px; height: 56px; background: #ffe600; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 18px; }
.login-card h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.login-card p { color: #9ca3af; font-size: 0.85rem; margin-bottom: 24px; }
.login-error { color: #e53935; font-size: 0.84rem; margin-bottom: 10px; display: none; }
.form-group { margin-bottom: 14px; text-align: left; }
.form-label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 5px; color: #6b7280; }
.form-input { width: 100%; padding: 11px 13px; border: 1.5px solid #dde3ea; border-radius: 6px; font-size: 0.92rem; background: #fafbfc; font-family: inherit; transition: 0.15s ease; }
.form-input:focus { border-color: #2e78d6; background: #fff; box-shadow: 0 0 0 3px rgba(46,120,214,0.15); outline: none; }
.form-select { width: 100%; padding: 11px 13px; border: 1.5px solid #dde3ea; border-radius: 6px; font-size: 0.92rem; background: #fafbfc; font-family: inherit; cursor: pointer; transition: 0.15s ease; }
.form-select:focus { border-color: #2e78d6; background: #fff; box-shadow: 0 0 0 3px rgba(46,120,214,0.15); outline: none; }
.btn-login { width: 100%; background: #1a5ca8; color: #fff; padding: 12px; border-radius: 6px; font-size: 0.98rem; font-weight: 600; border: none; cursor: pointer; font-family: inherit; transition: 0.15s ease; margin-top: 4px; }
.btn-login:hover { background: #0d3f7a; }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 1000; display: flex; align-items: flex-end; justify-content: center; padding: 0; backdrop-filter: blur(3px); opacity: 0; visibility: hidden; transition: 0.2s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { background: #fff; border-radius: 16px 16px 0 0; width: 100%; max-height: 92vh; overflow-y: auto; box-shadow: 0 -8px 30px rgba(0,0,0,0.15); transform: translateY(100%); transition: 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { padding: 16px 18px 14px; border-bottom: 1px solid #dde3ea; display: flex; align-items: center; justify-content: space-between; }
.modal-header h3 { font-size: 1.05rem; font-weight: 700; }
.modal-close { font-size: 1.3rem; color: #9ca3af; cursor: pointer; padding: 4px; border-radius: 6px; transition: 0.15s ease; line-height: 1; border: none; background: none; }
.modal-close:hover { color: #e53935; background: #ffebee; }
.modal-body { padding: 16px 18px; }
.modal-footer { padding: 14px 18px; border-top: 1px solid #dde3ea; display: flex; justify-content: flex-end; gap: 10px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

@media (min-width: 600px) {
  .modal-overlay { align-items: center; padding: 16px; }
  .modal { border-radius: 16px; max-width: 520px; transform: scale(0.95) translateY(10px); }
  .modal-overlay.open .modal { transform: scale(1) translateY(0); }
}
