/* =========================================================
   HangTime — styles.css
   Palette: #F1F3E0 · #D2DCB6 · #A1BC98 · #778873
   ========================================================= */

:root {
  --c1: #F1F3E0;
  --c2: #D2DCB6;
  --c3: #A1BC98;
  --c4: #778873;
  --c4-dark: #5f7260;
  --text-dark: #2e3a2e;
  --text-mid:  #4a5a4a;
  --text-light: #7a8a7a;
  --white: #ffffff;
  --danger: #c0695a;
  --danger-dark: #a85549;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(119,136,115,0.10);
  --shadow: 0 4px 24px rgba(119,136,115,0.13);
  --shadow-lg: 0 10px 40px rgba(119,136,115,0.20);
  --nav-h: 62px;
  --transition: 0.18s ease;
}

/* ── RESET ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', sans-serif;
  background: var(--c1);
  color: var(--text-dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: 'Playfair Display', serif; line-height: 1.2; color: var(--text-dark); }

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  background: var(--c1);
  border-bottom: 1.5px solid var(--c2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem;
}

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

.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--text-dark);
  letter-spacing: -0.01em;
}

.nav-right { display: flex; align-items: center; gap: 0.25rem; }

.nav-links { display: flex; gap: 0.2rem; align-items: center; }
.nav-links a {
  font-size: 0.88rem; font-weight: 500;
  color: var(--text-mid);
  padding: 7px 15px;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition);
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a.active { background: var(--c2); color: var(--text-dark); }

.nav-divider {
  width: 1px; height: 22px;
  background: var(--c2);
  margin: 0 0.4rem;
}
.nav-auth-user { display: flex; align-items: center; gap: .65rem; }
.nav-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--c4); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700; text-decoration: none;
  letter-spacing: .03em; flex-shrink: 0;
}
.nav-avatar:hover { background: var(--c4-dark); }
.nav-logout { font-size: .8rem; color: var(--text-mid); text-decoration: none; }
.nav-logout:hover { color: var(--danger); }

/* ── PAGE WRAPPER ── */
.page-wrap { padding-top: var(--nav-h); min-height: 100vh; }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
.site-footer {
  background: var(--c2);
  border-top: 1.5px solid var(--c3);
  padding: 2rem 1.75rem;
  margin-top: 4rem;
}
.footer-inner {
  max-width: 980px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand { display: flex; align-items: center; gap: 8px; }
.footer-brand img { height: 28px; width: auto; }
.footer-brand .logo-fallback { font-size: 1.1rem; display: none; }
.footer-links {
  display: flex; gap: 1.25rem;
  font-size: 0.82rem; color: var(--text-mid);
}
.footer-links a:hover { color: var(--text-dark); }
.footer-copy { font-size: 0.78rem; color: var(--text-light); }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 500;
  border: none;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
  cursor: pointer; white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--c4); color: var(--c1); box-shadow: 0 3px 12px rgba(119,136,115,0.30); }
.btn-primary:hover { background: var(--c4-dark); box-shadow: 0 5px 18px rgba(119,136,115,0.38); }
.btn-outline { background: transparent; color: var(--text-dark); border: 1.5px solid var(--c4); }
.btn-outline:hover { background: var(--c2); }
.btn-ghost { background: var(--c2); color: var(--text-dark); }
.btn-ghost:hover { background: var(--c3); }
.btn-danger { background: var(--danger); color: var(--white); border: none; }
.btn-danger:hover { background: var(--danger-dark); }
.btn-sm { padding: 6px 14px; font-size: 0.8rem; }
.btn-lg { padding: 13px 30px; font-size: 1rem; }
.btn-icon { background: none; border: none; color: var(--text-mid); padding: 6px; border-radius: 50%; transition: background var(--transition), color var(--transition); }
.btn-icon:hover { background: var(--c2); color: var(--text-dark); }

/* ═══════════════════════════════════════
   CARDS
═══════════════════════════════════════ */
.card { background: var(--white); border: 1.5px solid var(--c2); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); }
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card-tag { display: inline-block; background: var(--c2); color: var(--text-mid); font-size: 0.7rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; margin-bottom: 0.55rem; text-transform: uppercase; letter-spacing: 0.05em; }
.card h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; font-weight: 600; margin-bottom: 0.35rem; }
.card p { font-size: 0.85rem; color: var(--text-mid); line-height: 1.55; }
.card-footer { margin-top: 1rem; padding-top: 0.75rem; border-top: 1px solid var(--c2); display: flex; justify-content: space-between; align-items: center; }
.card-meta { font-size: 0.78rem; color: var(--c4); font-weight: 500; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1.2rem; }

/* ═══════════════════════════════════════
   SECTION / CONTAINER
═══════════════════════════════════════ */
.container { max-width: 980px; margin: 0 auto; padding: 0 1.75rem; }
.section { padding: 3rem 0; }
.section-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; font-weight: 600; margin-bottom: 1.4rem; }

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--c2) 0%, var(--c3) 100%);
  padding: 5.5rem 1.75rem 4.5rem;
  text-align: center;
}
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); font-weight: 700; line-height: 1.1; margin-bottom: 1rem; }
.hero p { font-size: 1rem; color: var(--text-mid); max-width: 500px; margin: 0 auto 2.2rem; line-height: 1.65; }
.hero-actions { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }

/* ═══════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.how-it-works { background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0;
  position: relative;
}

.step {
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}

/* arrow connectors between steps */
.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.6rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.2rem;
  color: var(--c3);
  z-index: 1;
}

.step-num {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c3);
  color: var(--white);
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
  box-shadow: 0 4px 14px rgba(161,188,152,0.4);
}

.step-icon { font-size: 2rem; margin-bottom: 0.6rem; }
.step h4 { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; }
.step p { font-size: 0.84rem; color: var(--text-mid); line-height: 1.55; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.feature-card {
  background: var(--c1);
  border: 1.5px solid var(--c2);
  border-radius: var(--radius);
  padding: 1.4rem;
}
.feature-card .f-icon { font-size: 1.8rem; margin-bottom: 0.65rem; }
.feature-card h4 { font-family: 'Playfair Display', serif; font-size: 0.98rem; font-weight: 600; margin-bottom: 0.35rem; }
.feature-card p { font-size: 0.82rem; color: var(--text-mid); line-height: 1.55; }

/* ═══════════════════════════════════════
   BADGE
═══════════════════════════════════════ */
.badge { display: inline-flex; align-items: center; justify-content: center; background: var(--c4); color: var(--c1); border-radius: 20px; padding: 2px 9px; font-size: 0.7rem; font-weight: 700; vertical-align: middle; }

/* ═══════════════════════════════════════
   TABS
═══════════════════════════════════════ */
.tabs { display: flex; gap: 3px; background: var(--c2); border-radius: var(--radius-sm); padding: 4px; width: fit-content; margin-bottom: 1.5rem; }
.tab-btn { padding: 7px 20px; border-radius: 6px; font-size: 0.85rem; font-weight: 500; border: none; background: transparent; color: var(--text-mid); transition: background var(--transition), color var(--transition); cursor: pointer; }
.tab-btn.active { background: var(--white); color: var(--text-dark); box-shadow: var(--shadow-sm); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ═══════════════════════════════════════
   FORMS
═══════════════════════════════════════ */
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--text-mid); margin-bottom: 5px; text-transform: uppercase; letter-spacing: 0.05em; }
.form-control { width: 100%; padding: 10px 13px; border: 1.5px solid var(--c2); border-radius: var(--radius-sm); background: var(--white); font-size: 0.9rem; color: var(--text-dark); outline: none; transition: border-color var(--transition), box-shadow var(--transition); }
.form-control:focus { border-color: var(--c3); box-shadow: 0 0 0 3px rgba(161,188,152,0.22); }
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.form-hint { font-size: 0.78rem; color: var(--text-light); margin-top: 4px; }
.auth-error { display:none; background:#f3d9d2; color:var(--danger-dark); border:1.5px solid var(--danger); border-radius:var(--radius-sm); padding:8px 12px; font-size:0.85rem; margin-bottom:0.9rem; }
.auth-error.show { display:block; }

/* Toggle */
.toggle-row { display: flex; justify-content: space-between; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid var(--c1); font-size: 0.88rem; }
.toggle-row:last-child { border-bottom: none; }
.toggle-row label.label-text { color: var(--text-mid); font-weight: 500; font-size: 0.85rem; }
.toggle { position: relative; width: 40px; height: 22px; display: inline-block; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--c2); border-radius: 22px; cursor: pointer; transition: background var(--transition); }
.toggle-slider::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; border-radius: 50%; background: var(--white); transition: transform var(--transition); }
.toggle input:checked + .toggle-slider { background: var(--c4); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ═══════════════════════════════════════
   MODAL
═══════════════════════════════════════ */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(46,58,46,0.42); backdrop-filter: blur(5px); align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--c1); border-radius: var(--radius-lg); padding: 2rem; width: 100%; max-width: 430px; box-shadow: 0 24px 72px rgba(46,58,46,0.28); animation: modalIn 0.2s ease; max-height: 90vh; overflow-y: auto; }
.modal-lg { max-width: 560px; }
@keyframes modalIn { from { opacity:0; transform:translateY(16px) scale(0.98); } to { opacity:1; transform:translateY(0) scale(1); } }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; }
.modal-header h3 { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; }
.modal-close { width: 28px; height: 28px; border-radius: 50%; border: none; background: var(--c2); color: var(--text-mid); display: flex; align-items: center; justify-content: center; font-size: 0.95rem; cursor: pointer; transition: background var(--transition); }
.modal-close:hover { background: var(--c3); }
.modal-footer { display: flex; justify-content: flex-end; gap: 0.6rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--c2); }

/* ═══════════════════════════════════════
   AVATAR
═══════════════════════════════════════ */
.avatar { border-radius: 50%; background: var(--c3); display: flex; align-items: center; justify-content: center; font-family: 'Playfair Display', serif; font-weight: 700; color: var(--white); flex-shrink: 0; }
.avatar-sm { width: 38px; height: 38px; font-size: 0.9rem; }
.avatar-md { width: 48px; height: 48px; font-size: 1.1rem; }
.avatar-lg { width: 68px; height: 68px; font-size: 1.6rem; }

/* ═══════════════════════════════════════
   PANEL
═══════════════════════════════════════ */
.panel { background: var(--white); border: 1.5px solid var(--c2); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); margin-bottom: 1.2rem; }
.panel-title { font-family: 'Playfair Display', serif; font-size: 0.98rem; font-weight: 600; margin-bottom: 0.9rem; padding-bottom: 0.65rem; border-bottom: 1px solid var(--c2); }
.info-row { display: flex; justify-content: space-between; align-items: flex-start; padding: 0.5rem 0; border-bottom: 1px solid var(--c1); font-size: 0.875rem; gap: 1rem; }
.info-row:last-child { border-bottom: none; }
.info-row .label { color: var(--c4); font-weight: 500; white-space: nowrap; }
.info-row .value { color: var(--text-dark); text-align: right; }
.info-detail-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--text-mid); margin-bottom: 0.7rem; }
.info-detail-row .icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }

/* ═══════════════════════════════════════
   MISC
═══════════════════════════════════════ */
.divider { border: none; border-top: 1.5px solid var(--c2); margin: 2rem 0; }
.breadcrumb { font-size: 0.82rem; color: rgba(255,255,255,0.75); margin-bottom: 0.9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; transition: color var(--transition); }
.breadcrumb:hover { color: rgba(255,255,255,0.95); }
.chip-list { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chip { background: var(--c2); border-radius: 20px; padding: 4px 12px; font-size: 0.78rem; color: var(--text-dark); }

/* ═══════════════════════════════════════
   CALENDAR SYNC WIDGET
═══════════════════════════════════════ */
.cal-sync-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 0.75rem; margin-top: 0.75rem; }
.cal-option { border: 1.5px solid var(--c2); border-radius: var(--radius); padding: 1rem; text-align: center; cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition), background var(--transition); background: var(--white); }
.cal-option:hover { border-color: var(--c3); box-shadow: var(--shadow-sm); }
.cal-option.connected { border-color: var(--c4); background: var(--c1); }
.cal-option .cal-icon { font-size: 1.6rem; margin-bottom: 0.4rem; }
.cal-option .cal-name { font-size: 0.8rem; font-weight: 600; color: var(--text-dark); }
.cal-option .cal-status { font-size: 0.72rem; color: var(--c4); margin-top: 2px; }
.cal-option .connected-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #5a9e6a; margin-right: 3px; vertical-align: middle; }

/* ═══════════════════════════════════════
   AVAILABILITY GRID
   — no-response: lightest earth tone, not white
   — best time: darkest (c4-dark)
═══════════════════════════════════════ */
.availability-section { margin-bottom: 2rem; }
.avail-legend { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; font-size: 0.82rem; color: var(--text-mid); flex-wrap: wrap; }
.avail-legend-swatch { display: flex; align-items: center; gap: 5px; }
.swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(0,0,0,0.06); }

.avail-grid-wrapper { overflow-x: auto; border-radius: var(--radius); border: 1.5px solid var(--c2); background: var(--c1); box-shadow: var(--shadow-sm); }
.avail-grid { display: grid; min-width: 100%; }

.avail-col-label { padding: 0.6rem 0.4rem; text-align: center; font-size: 0.72rem; font-weight: 600; color: var(--text-mid); background: var(--c1); border-bottom: 1.5px solid var(--c2); border-right: 1px solid var(--c2); position: sticky; top: 0; z-index: 2; white-space: nowrap; }
.avail-col-label:first-child { text-align: right; min-width: 64px; }
.avail-col-label:last-child { border-right: none; }

.avail-time-label { padding: 0 0.6rem; text-align: right; font-size: 0.68rem; font-weight: 500; color: var(--text-light); background: var(--c1); border-right: 1.5px solid var(--c2); display: flex; align-items: center; justify-content: flex-end; min-height: 28px; white-space: nowrap; min-width: 64px; }
.avail-time-label.hour { font-weight: 600; color: var(--text-mid); }

/* ── Cell color scale (none → best, all earth tones) ── */
/* Level 0: no responses yet — light c2 tint so grid is always visible */
.avail-cell {
  background: #e8edd0;          /* slightly darker than c1, clearly a cell */
  border-right: 1px solid rgba(210,220,182,0.5);
  border-bottom: 1px solid rgba(210,220,182,0.35);
  min-height: 28px;
  cursor: pointer;
  transition: filter 0.07s;
  user-select: none;
  position: relative;
}
.avail-cell:last-child { border-right: none; }
.avail-cell.hour-start { border-top: 1px solid rgba(119,136,115,0.3); }

/* Others available — 4 increasing levels */
.avail-cell.others-1 { background: #cdd9aa; }   /* lightest green */
.avail-cell.others-2 { background: #b5cb90; }
.avail-cell.others-3 { background: #9ab876; }
.avail-cell.others-4 { background: var(--c4); } /* full group */

/* User selected their own slot — medium green */
.avail-cell.mine { background: var(--c3); }

/* Best time = user + most others = darkest */
.avail-cell.best { background: var(--c4-dark) !important; }

.avail-cell:hover { filter: brightness(0.88); }

/* Tooltip */
.avail-tooltip { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); background: var(--text-dark); color: var(--c1); font-size: 0.72rem; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; opacity: 0; z-index: 10; transition: opacity 0.12s; }
.avail-cell:hover .avail-tooltip { opacity: 1; }

.avail-instructions { font-size: 0.82rem; color: var(--text-mid); margin-top: 0.75rem; display: flex; align-items: center; gap: 6px; }

/* ═══════════════════════════════════════
   FRIENDS
═══════════════════════════════════════ */
.friends-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.friend-card { background: var(--white); border: 1.5px solid var(--c2); border-radius: var(--radius); padding: 1.1rem 1.2rem; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); transition: transform var(--transition), box-shadow var(--transition); }
.friend-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.friend-info { flex: 1; min-width: 0; }
.friend-info strong { display: block; font-size: 0.9rem; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-info span { font-size: 0.78rem; color: var(--c4); }
.request-card { background: var(--white); border: 1.5px solid var(--c2); border-radius: var(--radius); padding: 0.9rem 1.2rem; display: flex; align-items: center; gap: 12px; box-shadow: var(--shadow-sm); margin-bottom: 0.75rem; }
.request-actions { margin-left: auto; display: flex; gap: 0.4rem; flex-shrink: 0; }

/* ═══════════════════════════════════════
   ACCOUNT HERO
═══════════════════════════════════════ */
.account-hero { background: linear-gradient(135deg, var(--c2) 0%, var(--c3) 100%); padding: 3rem 1.75rem; display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap; }
.account-hero-info h2 { font-size: 1.8rem; font-weight: 700; }
.account-hero-info p { font-size: 0.88rem; color: var(--text-mid); margin-top: 0.2rem; }
.account-hero-info .sub { font-size: 0.8rem; color: var(--c4); margin-top: 0.3rem; }

/* ═══════════════════════════════════════
   EVENT PAGE
═══════════════════════════════════════ */
.event-hero { background: linear-gradient(135deg, var(--c3) 0%, var(--c4) 100%); padding: 3rem 1.75rem 2.5rem; color: var(--white); }
.event-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.event-hero .sub { font-size: 0.95rem; opacity: 0.85; max-width: 560px; line-height: 1.6; }
.event-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }

/* ═══════════════════════════════════════
   UTILITIES
═══════════════════════════════════════ */
.flex { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-sm { gap: 0.5rem; }
.gap-md { gap: 1rem; }
.mt-sm { margin-top: 0.5rem; }
.mt-md { margin-top: 1rem; }
.mt-lg { margin-top: 1.5rem; }
.mb-sm { margin-bottom: 0.5rem; }
.mb-md { margin-bottom: 1rem; }
.mb-lg { margin-bottom: 1.5rem; }
.wrap { flex-wrap: wrap; }
.text-sm { font-size: 0.82rem; }
.text-muted { color: var(--text-light); }
.text-mid { color: var(--text-mid); }
.text-accent { color: var(--c4); }
.w-full { width: 100%; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 720px) {
  .nav { padding: 0 1rem; }
  .nav-links a { padding: 6px 10px; font-size: 0.82rem; }
  .event-layout { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }
  .friends-grid { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .steps-grid { gap: 0.5rem; }
}
@media (max-width: 480px) {
  .hero { padding: 3.5rem 1rem 3rem; }
  .modal { padding: 1.5rem; }
  .tabs { flex-wrap: wrap; width: 100%; }
}
