/* ===== Design Tokens — LinkedIn Blue ===== */
:root {
  /* Dark blues (navbar / hero / date strip / sidebar / admin) */
  --brown-900: #1d2226;   /* darkest — admin table header */
  --brown-800: #1e3a52;   /* dark — footer / notice header */
  --brown-700: #004182;   /* LinkedIn deep blue — navbar, hero, date strip */
  --brown-600: #1a5998;   /* accent dark blue */
  --brown-500: #2d7dd2;   /* medium blue */
  --brown-400: #6b8ea8;   /* muted blue-gray secondary text */
  --brown-300: #9ab4c8;   /* lighter muted */
  /* Primary action color */
  --orange:    #0a66c2;   /* LinkedIn primary blue */
  --orange-dk: #004182;   /* LinkedIn dark blue — hover */
  --orange-lt: #70b5f9;   /* LinkedIn light blue — on-dark text */
  /* Backgrounds */
  --cream-100: #ffffff;   /* white — cards */
  --cream-200: #f3f2ef;   /* LinkedIn warm gray — page background */
  --cream-300: #e8e8e8;   /* medium gray */
  --cream-400: #b0b8c1;   /* darker muted gray */
  /* Text */
  --text-on-dark: #ffffff;
  --text-muted:   rgba(255,255,255,.72);
  --text-dark:    #1d2226;
  --text-mid:     #555555;
  /* Borders & shadows */
  --border-warm:  rgba(10,102,194,.2);
  --border-light: rgba(0,0,0,.12);
  --shadow-warm:  0 2px 16px rgba(0,0,0,.15);
  --shadow-card:  0 0 0 1px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.06);
  --font-serif: Georgia, 'Times New Roman', serif;
  --font-sans:  -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm:  6px;
  --radius:     10px;
  --radius-lg:  16px;
  --radius-xl:  24px;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-sans); background: var(--cream-200); color: var(--text-dark); line-height: 1.6; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ===== Navbar ===== */
.navbar {
  background: var(--brown-700);
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.navbar-inner {
  max-width: 1120px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; height: 56px; gap: 8px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--cream-100); font-family: var(--font-serif);
  font-size: 18px; font-weight: 700; text-decoration: none;
  letter-spacing: .5px; flex-shrink: 0;
}
.navbar-brand:hover { text-decoration: none; }
.brand-icon {
  width: 36px; height: 36px; border-radius: 8px;
  background: var(--orange); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--cream-100);
  flex-shrink: 0;
}
.navbar-nav {
  display: flex; align-items: center; gap: 2px;
  margin-left: auto; list-style: none;
}
.navbar-nav a {
  display: flex; align-items: center; gap: 6px; padding: 6px 14px;
  color: var(--text-muted); font-size: 14px; border-radius: var(--radius-sm);
  transition: all .15s; text-decoration: none;
}
.navbar-nav a:hover { color: var(--cream-100); background: rgba(255,255,255,.08); }
.navbar-nav a.active { color: var(--cream-100); background: rgba(255,255,255,.1); }
.navbar-nav svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-nav-admin {
  margin-left: 8px; padding: 7px 18px !important;
  background: var(--orange) !important; color: var(--cream-100) !important;
  border-radius: var(--radius-xl) !important; font-weight: 600;
  font-size: 13px !important; letter-spacing: .3px;
}
.btn-nav-admin:hover { background: var(--orange-dk) !important; color: var(--cream-100) !important; }

/* ===== Hero ===== */
.hero {
  background: var(--brown-700);
  padding: 80px 20px 72px;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 80% 50%, rgba(10,102,194,.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 10% 80%, rgba(10,102,194,.1) 0%, transparent 60%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: .03;
  background-image: repeating-linear-gradient(
    45deg, #fff 0, #fff 1px, transparent 0, transparent 50%
  );
  background-size: 20px 20px;
}
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 340px;
  gap: 60px; align-items: center; position: relative;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(10,102,194,.2); border: 1px solid rgba(10,102,194,.4);
  border-radius: 20px; padding: 5px 14px;
  color: var(--orange-lt); font-size: 12px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 20px;
}
.hero-eyebrow span { width: 6px; height: 6px; background: var(--orange-lt); border-radius: 50%; }
.hero h1 {
  font-family: var(--font-serif); font-size: clamp(32px, 5vw, 52px);
  font-weight: 700; color: var(--cream-100); line-height: 1.15;
  letter-spacing: -1px; margin-bottom: 20px;
}
.hero h1 em { color: var(--orange-lt); font-style: normal; }
.hero-desc {
  font-size: 17px; color: var(--text-muted); line-height: 1.75;
  max-width: 480px; margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.btn-primary {
  background: var(--orange); color: var(--cream-100);
  border: none; padding: 13px 28px; border-radius: var(--radius-xl);
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px; flex-direction: row;
  transition: all .2s; letter-spacing: .2px;
}
.btn-primary svg, .btn-ghost svg { width: 16px; height: 16px; flex-shrink: 0; }
.btn-primary:hover { background: var(--orange-dk); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(10,102,194,.4); text-decoration: none; color: var(--cream-100); }
.btn-ghost {
  background: rgba(255,255,255,.1); color: var(--cream-100);
  border: 1px solid rgba(255,255,255,.25);
  padding: 13px 28px; border-radius: var(--radius-xl);
  font-size: 15px; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: all .2s; text-decoration: none;
}
.btn-ghost:hover { background: rgba(255,255,255,.15); text-decoration: none; color: var(--cream-100); }
.hero-stats {
  display: flex; gap: 36px; padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat strong {
  display: block; font-family: var(--font-serif);
  font-size: 30px; font-weight: 700; color: var(--cream-100); line-height: 1;
}
.hero-stat span { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }

/* Hero visual */
.hero-visual { position: relative; display: flex; align-items: center; justify-content: center; }
.hero-emblem {
  width: 240px; height: 240px; border-radius: 48px;
  background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 64px rgba(10,102,194,.4), 0 0 0 1px rgba(255,255,255,.1);
  position: relative; z-index: 1;
}
.hero-emblem .glyph {
  font-family: var(--font-serif); font-size: 130px; font-weight: 700;
  color: var(--cream-100); line-height: 1; user-select: none;
}
.hero-ring {
  position: absolute; width: 300px; height: 300px;
  border-radius: 60px; border: 1px solid rgba(10,102,194,.3);
  animation: pulse-ring 3s ease-in-out infinite;
}
.hero-ring-2 {
  width: 350px; height: 350px; border-radius: 70px;
  border-color: rgba(10,102,194,.15);
  animation-delay: .5s;
}
@keyframes pulse-ring {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .6; transform: scale(1.02); }
}

/* ===== Page Container ===== */
.page-container {
  max-width: 1120px; margin: 0 auto;
  padding: 32px 20px;
  display: grid; grid-template-columns: 1fr 308px;
  gap: 24px; align-items: start;
}
.page-container.full-width { grid-template-columns: 1fr; }

/* ===== Cards ===== */
.card {
  background: var(--cream-100); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); border: 1px solid var(--border-light);
  overflow: hidden;
}
.card-header {
  padding: 18px 22px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, var(--cream-100), #faf0e8);
}
.card-header h2 {
  font-family: var(--font-serif); font-size: 17px; font-weight: 700;
  color: var(--text-dark); display: flex; align-items: center; gap: 8px;
}
.card-header h2 svg { color: var(--orange); width: 18px; height: 18px; }
.card-body { padding: 20px 22px; }

/* ===== Section Divider ===== */
.section-title {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  color: var(--brown-800); margin-bottom: 16px;
  display: flex; align-items: center; gap: 10px;
}
.section-title::after {
  content: ''; flex: 1; height: 1px; background: var(--border-light);
}

/* ===== Event Cards ===== */
.events-list { display: flex; flex-direction: column; gap: 14px; }
.event-card {
  background: var(--cream-100); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, transform .2s;
}
.event-card:hover {
  box-shadow: 0 4px 24px rgba(0,0,0,.16), 0 1px 6px rgba(0,0,0,.1);
  transform: translateY(-2px);
}
.event-card-inner { display: flex; }
.event-date-strip {
  background: var(--brown-700); color: var(--cream-100);
  padding: 18px 14px; min-width: 78px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  flex-shrink: 0; position: relative;
}
.event-date-strip::after {
  content: ''; position: absolute; right: 0; top: 12px; bottom: 12px;
  width: 1px; background: var(--border-warm);
}
.event-date-strip .mo { font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; opacity: .7; }
.event-date-strip .dy { font-family: var(--font-serif); font-size: 32px; font-weight: 700; line-height: 1; color: var(--orange-lt); }
.event-date-strip .yr { font-size: 11px; opacity: .6; margin-top: 2px; }
.event-content { padding: 18px 20px; flex: 1; min-width: 0; }
.event-content h3 {
  font-family: var(--font-serif); font-size: 17px; font-weight: 700;
  color: var(--text-dark); margin-bottom: 8px; line-height: 1.3;
}
.event-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.event-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 13px; color: var(--brown-400);
}
.event-meta-item svg { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }
.event-desc {
  font-size: 14px; color: var(--text-mid); line-height: 1.65;
  margin-bottom: 14px; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.event-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

/* Status badges */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge-open   { background: #dce8f7; color: var(--orange); border: 1px solid rgba(10,102,194,.3); }
.badge-closed { background: #f0f2f4; color: var(--brown-400); border: 1px solid var(--border-light); }
.badge-full   { background: #fef3e2; color: #92400e; border: 1px solid rgba(146,64,14,.25); }
.badge-dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

/* Register Button */
.btn-register {
  background: var(--orange); color: var(--cream-100);
  border: none; padding: 8px 22px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn-register:hover { background: var(--orange-dk); transform: translateY(-1px); }
.btn-register:disabled { background: var(--cream-300); color: var(--brown-400); cursor: not-allowed; transform: none; }

/* ===== Sidebar ===== */
.sidebar { display: flex; flex-direction: column; gap: 16px; }

.sidebar-community { background: var(--brown-700); border-radius: var(--radius-lg); overflow: hidden; }
.sidebar-community-header {
  background: var(--orange); padding: 24px 20px 20px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.sidebar-emblem {
  width: 60px; height: 60px; border-radius: 14px;
  background: rgba(255,255,255,.2); display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 32px; font-weight: 700;
  color: var(--cream-100); margin-bottom: 10px;
}
.sidebar-community-header h3 {
  font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--cream-100);
}
.sidebar-community-header p { font-size: 12px; color: rgba(255,255,255,.75); margin-top: 4px; }
.sidebar-community-body { padding: 16px 18px; }
.sidebar-stat-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.sidebar-stat-row:last-child { border-bottom: none; }
.sidebar-stat-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.sidebar-stat-icon svg { width: 16px; height: 16px; color: var(--orange-lt); }
.sidebar-stat-info strong { display: block; font-size: 15px; font-weight: 700; color: var(--cream-100); line-height: 1; }
.sidebar-stat-info span { font-size: 12px; color: var(--text-muted); }
.btn-join {
  width: 100%; background: var(--orange); color: var(--cream-100);
  border: none; padding: 10px 16px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .2s; margin-top: 14px;
  display: flex; align-items: center; justify-content: center; gap: 6px;
}
.btn-join:hover { background: var(--orange-dk); }

.card-notice { background: var(--cream-100); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; }
.notice-header {
  background: var(--brown-800); padding: 12px 18px;
  font-family: var(--font-serif); font-size: 14px; font-weight: 700; color: var(--cream-100);
  display: flex; align-items: center; gap: 8px;
}
.notice-header svg { width: 16px; height: 16px; color: var(--orange-lt); }
.notice-list { padding: 14px 18px; }
.notice-list li {
  font-size: 13px; color: var(--text-mid); padding: 5px 0;
  border-bottom: 1px solid var(--border-light); display: flex; align-items: flex-start; gap: 8px;
  line-height: 1.5;
}
.notice-list li:last-child { border-bottom: none; }
.notice-list li::before { content: '·'; color: var(--orange); font-weight: 700; font-size: 16px; line-height: 1.3; flex-shrink: 0; }

/* ===== About Page ===== */
.about-hero {
  background: var(--brown-700); padding: 64px 20px; text-align: center;
  position: relative; overflow: hidden;
}
.about-hero::before {
  content: '聚'; position: absolute;
  font-family: var(--font-serif); font-size: 320px; font-weight: 700;
  color: rgba(10,102,194,.08); line-height: 1;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none; user-select: none;
}
.about-hero-inner { max-width: 640px; margin: 0 auto; position: relative; }
.about-hero h1 {
  font-family: var(--font-serif); font-size: 38px; font-weight: 700;
  color: var(--cream-100); margin-bottom: 14px;
}
.about-hero p { font-size: 16px; color: var(--text-muted); line-height: 1.8; }

.about-section { margin-bottom: 36px; }
.about-section h2 {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  color: var(--brown-800); margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
  display: flex; align-items: center; gap: 10px;
}
.about-section h2 svg { color: var(--orange); width: 20px; height: 20px; }
.about-section p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 10px; }
.about-section ul { padding-left: 0; list-style: none; }
.about-section li {
  font-size: 15px; color: var(--text-mid); line-height: 1.7; margin-bottom: 8px;
  padding-left: 20px; position: relative;
}
.about-section li::before { content: '→'; color: var(--orange); position: absolute; left: 0; font-weight: 700; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 16px; }
.value-card {
  background: var(--cream-200); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border-light);
  border-top: 3px solid var(--orange);
}
.value-card h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--brown-800); margin-bottom: 8px; }
.value-card p { font-size: 13px; color: var(--text-mid); line-height: 1.65; }

.about-cta {
  background: var(--brown-700); border-radius: var(--radius-lg);
  padding: 36px 32px; text-align: center; position: relative; overflow: hidden;
}
.about-cta::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(10,102,194,.3) 0%, transparent 70%);
}
.about-cta h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--cream-100); margin-bottom: 10px; position: relative; }
.about-cta p { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; position: relative; }

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.7);
  z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 16px; opacity: 0; pointer-events: none; transition: opacity .2s;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--cream-100); border-radius: var(--radius-lg);
  width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  transform: translateY(24px) scale(.97); transition: transform .25s;
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-header {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border-light);
  display: flex; align-items: center; justify-content: space-between;
  background: linear-gradient(to bottom, #fdf5ee, var(--cream-100));
}
.modal-header h3 { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--text-dark); }
.modal-close {
  background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brown-400); transition: all .15s;
}
.modal-close:hover { background: var(--cream-200); color: var(--text-dark); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 24px; }

/* ===== Forms ===== */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--brown-600); margin-bottom: 6px; letter-spacing: .2px;
}
.form-label .req { color: var(--orange); }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  font-size: 14px; font-family: var(--font-sans); color: var(--text-dark);
  background: var(--cream-100); transition: border-color .2s, box-shadow .2s;
}
.form-control:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(10,102,194,.15); }
.form-control::placeholder { color: var(--cream-400); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-hint { font-size: 12px; color: var(--brown-400); margin-top: 4px; }
.btn-submit {
  background: var(--orange); color: var(--cream-100);
  border: none; padding: 12px 28px; border-radius: var(--radius-xl);
  font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all .2s; display: inline-flex; align-items: center; gap: 8px;
}
.btn-submit:hover { background: var(--orange-dk); }
.btn-submit:disabled { background: var(--cream-300); color: var(--brown-400); cursor: not-allowed; }
.btn-cancel {
  background: transparent; color: var(--brown-400);
  border: 1px solid var(--border-light); padding: 12px 24px;
  border-radius: var(--radius-xl); font-size: 15px; font-weight: 600;
  cursor: pointer; transition: all .2s;
}
.btn-cancel:hover { background: var(--cream-200); color: var(--text-dark); }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 8px; }

/* ===== Alerts ===== */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 14px; margin-bottom: 16px; display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.alert svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 1px; }
.alert-success { background: #f0f9f0; color: #1a5c1a; border: 1px solid #b8ddb8; }
.alert-error   { background: #fef2f2; color: #b91c1c; border: 1px solid rgba(220,38,38,.4); }
.alert-info    { background: #eef3fb; color: var(--brown-600); border: 1px solid var(--border-light); }

/* ===== Loading ===== */
.loading { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 48px; color: var(--brown-400); font-size: 14px; }
.spinner { width: 22px; height: 22px; border: 2.5px solid var(--cream-300); border-top-color: var(--orange); border-radius: 50%; animation: spin .6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { text-align: center; padding: 60px 20px; color: var(--brown-400); }
.empty-state .empty-icon { font-size: 48px; margin-bottom: 14px; opacity: .4; }
.empty-state p { font-size: 15px; }

/* ===== Success ===== */
.success-wrap { text-align: center; padding: 48px 20px; }
.success-icon { width: 72px; height: 72px; background: #f0f9f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.success-icon svg { width: 36px; height: 36px; color: #2e7d32; }
.success-wrap h2 { font-family: var(--font-serif); font-size: 24px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.success-wrap p { font-size: 15px; color: var(--text-mid); max-width: 340px; margin: 0 auto 24px; line-height: 1.7; }

/* ===== Footer ===== */
.footer {
  background: var(--brown-800); color: var(--text-muted);
  padding: 36px 20px; margin-top: 60px; text-align: center;
}
.footer-brand { font-family: var(--font-serif); font-size: 18px; color: var(--cream-100); font-weight: 700; margin-bottom: 12px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.footer-links a { color: var(--text-muted); font-size: 13px; transition: color .15s; }
.footer-links a:hover { color: var(--cream-100); text-decoration: none; }
.footer p { font-size: 12px; opacity: .5; }

/* ===== Admin ===== */
.admin-login { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--brown-900); }
.login-card {
  background: var(--cream-100); border-radius: var(--radius-lg);
  padding: 40px; width: 100%; max-width: 400px; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
}
.login-logo {
  width: 68px; height: 68px; border-radius: 16px; background: var(--orange);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 36px; font-weight: 700;
  color: var(--cream-100); margin: 0 auto 18px;
}
.login-card h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 6px; }
.login-card p { font-size: 14px; color: var(--text-mid); margin-bottom: 28px; }
.btn-login {
  width: 100%; background: var(--orange); color: var(--cream-100);
  border: none; padding: 12px; border-radius: var(--radius-xl);
  font-size: 15px; font-weight: 600; cursor: pointer; transition: all .2s;
}
.btn-login:hover { background: var(--orange-dk); }

.admin-layout { min-height: 100vh; display: flex; flex-direction: column; background: var(--cream-200); }
.admin-topbar {
  background: var(--brown-700); color: var(--cream-100);
  padding: 0 24px; height: 56px; display: flex; align-items: center; gap: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08); flex-shrink: 0;
}
.admin-topbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-serif); font-size: 16px; font-weight: 700; color: var(--cream-100);
}
.admin-topbar-brand .brand-icon { width: 30px; height: 30px; font-size: 16px; border-radius: 6px; }
.admin-topbar .spacer { flex: 1; }
.admin-topbar a { color: var(--text-muted); font-size: 13px; transition: color .15s; }
.admin-topbar a:hover { color: var(--cream-100); text-decoration: none; }
.admin-topbar .sep { opacity: .3; margin: 0 4px; }

.admin-body { display: flex; flex: 1; overflow: hidden; }
.admin-sidebar {
  width: 220px; background: var(--cream-100); flex-shrink: 0;
  border-right: 1px solid var(--border-light); padding: 16px 0;
  overflow-y: auto;
}
.admin-nav-section { padding: 8px 14px 4px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--brown-400); }
.admin-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 18px; font-size: 14px; color: var(--text-mid);
  cursor: pointer; transition: all .15s; border-left: 3px solid transparent;
  margin: 1px 0;
}
.admin-nav-item:hover { background: var(--cream-200); color: var(--text-dark); }
.admin-nav-item.active {
  background: rgba(10,102,194,.08); color: var(--orange);
  border-left-color: var(--orange); font-weight: 600;
}
.admin-nav-item svg { width: 17px; height: 17px; flex-shrink: 0; }

.admin-content { flex: 1; overflow-y: auto; padding: 28px; }
.admin-page { display: none; }
.admin-page.active { display: block; }
.admin-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.admin-page-header h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--text-dark); }

.btn-add {
  background: var(--orange); color: var(--cream-100); border: none;
  padding: 9px 20px; border-radius: var(--radius-xl); font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .2s; display: inline-flex; align-items: center; gap: 7px;
}
.btn-add:hover { background: var(--orange-dk); }
.btn-add svg { width: 16px; height: 16px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; margin-bottom: 24px; }
.stat-card {
  background: var(--cream-100); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--border-light);
  border-left: 4px solid var(--orange);
}
.stat-card .stat-val { font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--orange); line-height: 1; }
.stat-card .stat-lbl { font-size: 13px; color: var(--text-mid); margin-top: 6px; }

.table-card { background: var(--cream-100); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th {
  background: var(--brown-900); color: var(--cream-200);
  padding: 10px 14px; text-align: left;
  font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
}
.admin-table td { padding: 12px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; color: var(--text-dark); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #faf5f0; }
.table-actions { display: flex; gap: 6px; }
.btn-icon {
  background: none; border: 1px solid var(--border-light); border-radius: var(--radius-sm);
  padding: 5px 10px; cursor: pointer; font-size: 12px; color: var(--text-mid);
  display: inline-flex; align-items: center; gap: 4px; transition: all .15s;
}
.btn-icon:hover { border-color: var(--orange); color: var(--orange); background: rgba(10,102,194,.06); }
.btn-icon.del:hover { border-color: #c62828; color: #c62828; background: #fdf0f0; }
.btn-icon svg { width: 13px; height: 13px; }

.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* ===== Founder Card (about page) ===== */
.founder-card {
  display: flex; gap: 28px; align-items: flex-start;
  background: var(--cream-200); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border-light);
}
.founder-avatar {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  border: 3px solid var(--orange); flex-shrink: 0;
}
.founder-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-info { min-width: 0; }
.founder-info h3 {
  font-family: var(--font-serif); font-size: 22px; font-weight: 700;
  color: var(--brown-800); display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.founder-info h3 span {
  font-family: var(--font-sans); font-size: 13px; font-weight: 600;
  color: var(--orange); background: rgba(10,102,194,.1); padding: 3px 12px;
  border-radius: 20px;
}
.founder-title { font-size: 13px; color: var(--brown-400); font-weight: 600; margin: 6px 0 14px; }
.founder-info p { font-size: 14px; color: var(--text-mid); line-height: 1.8; margin-bottom: 10px; }
.btn-linkedin {
  display: inline-flex; align-items: center; gap: 7px;
  background: #0a66c2; color: #fff; padding: 9px 20px; border-radius: var(--radius-xl);
  font-size: 14px; font-weight: 600; text-decoration: none; transition: all .2s; margin-top: 4px;
}
.btn-linkedin:hover { background: #004182; color: #fff; text-decoration: none; transform: translateY(-1px); }

/* ===== Events Group Label ===== */
.events-group-label {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--brown-400);
  padding-bottom: 8px; border-bottom: 1px solid var(--border-light);
  margin-bottom: 12px;
}

/* ===== Events Timeline (about page) ===== */
.events-timeline { position: relative; padding-left: 24px; margin-top: 8px; }
.events-timeline::before {
  content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: var(--border-light);
}
.timeline-item { position: relative; padding: 0 0 18px 20px; }
.timeline-item::before {
  content: ''; position: absolute; left: -6px; top: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--orange); border: 2px solid var(--cream-100);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-item.upcoming::before { background: var(--cream-400); box-shadow: 0 0 0 2px var(--cream-400); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-date { font-size: 11px; color: var(--brown-400); font-weight: 600; margin-bottom: 5px; letter-spacing: .3px; }
.timeline-content {
  background: var(--cream-100); border-radius: var(--radius);
  border: 1px solid var(--border-light); padding: 11px 15px;
}
.timeline-item.upcoming .timeline-content {
  border-style: dashed; background: #fdf6ef;
}
.timeline-title {
  font-size: 13px; font-weight: 700; color: var(--text-dark);
  line-height: 1.45; display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px;
}
.timeline-seq {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--orange); color: var(--cream-100);
  min-width: 22px; height: 22px; border-radius: 50%;
  font-size: 11px; font-weight: 700; flex-shrink: 0;
}
.timeline-item.upcoming .timeline-seq { background: var(--brown-400); }
.timeline-speakers { font-size: 12px; color: var(--brown-400); }
.timeline-upcoming-badge {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(10,102,194,.12); color: var(--orange);
  font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 12px;
  margin-left: 6px; vertical-align: middle;
}

/* ===== Archive Grid (index page past events) ===== */
.archive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.archive-card {
  background: var(--cream-200); border: 1px solid var(--border-light);
  border-radius: var(--radius); overflow: hidden;
  transition: transform .2s, box-shadow .2s;
}
.archive-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-warm); }
.archive-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--brown-700);
}
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.archive-seq {
  position: absolute; top: 8px; left: 8px;
  background: var(--orange); color: var(--cream-100);
  font-size: 11px; font-weight: 700; padding: 3px 10px;
  border-radius: 12px; letter-spacing: .3px;
}
.archive-info { padding: 11px 13px; }
.archive-date { font-size: 11px; color: var(--brown-400); font-weight: 600; margin-bottom: 4px; }
.archive-info h4 {
  font-family: var(--font-serif); font-size: 13px; font-weight: 700;
  color: var(--text-dark); line-height: 1.4; margin-bottom: 5px;
}
.archive-info p { font-size: 12px; color: var(--brown-400); line-height: 1.4; }

/* ===== Sidebar Founder Card ===== */
.sidebar-founder {
  background: var(--cream-100); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); padding: 16px 18px;
  display: flex; gap: 12px; align-items: center;
}
.sidebar-founder img {
  width: 52px; height: 52px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--orange); flex-shrink: 0;
}
.sidebar-founder-info { min-width: 0; }
.sidebar-founder-info strong { display: block; font-size: 13px; font-weight: 700; color: var(--text-dark); }
.sidebar-founder-info span { display: block; font-size: 11px; color: var(--brown-400); margin: 2px 0 5px; }
.sidebar-founder-info a { font-size: 12px; color: var(--orange); font-weight: 600; }
.sidebar-founder-info a:hover { text-decoration: underline; }

/* ===== Responsive (legacy) ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .page-container { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
}
@media (max-width: 640px) {
  .hero { padding: 52px 16px 48px; }
  .hero h1 { font-size: 28px; }
  .hero-stats { gap: 20px; }
  .admin-sidebar { display: none; }
  .event-card-inner { flex-direction: column; }
  .event-date-strip { flex-direction: row; gap: 10px; padding: 12px 16px; min-width: unset; }
  .event-date-strip::after { display: none; }
  .founder-card { flex-direction: column; align-items: center; text-align: center; }
  .founder-avatar { width: 96px; height: 96px; }
  .founder-info h3 { justify-content: center; }
  .archive-grid { grid-template-columns: 1fr 1fr; }
}

/* =====================================================
   SPA LAYOUT — New component styles for React SPA
   ===================================================== */

/* Layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.section { padding: 72px 0; }
.section.tight { padding: 48px 0; }
.section-alt { background: var(--cream-200); }
.section-head { margin-bottom: 48px; }
.section-head.center { text-align: center; }
.section-head h2 { font-family: var(--font-serif); font-size: clamp(24px,3vw,36px); font-weight: 700; color: var(--brown-800); margin-bottom: 12px; line-height: 1.25; }
.section-head p { font-size: 16px; color: var(--text-mid); line-height: 1.75; max-width: 560px; }
.section-head.center p { margin: 0 auto; }
.center-cta { text-align: center; margin-top: 36px; }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .18em;
  text-transform: uppercase; color: var(--brown-400); margin-bottom: 12px;
}
.eyebrow::before { content: ''; display: block; width: 24px; height: 2px; background: var(--orange); flex-shrink: 0; }

/* Nav toggle (mobile hamburger) */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--text-muted); padding: 6px; border-radius: var(--radius-sm);
  transition: color .15s; margin-left: auto; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle:hover { color: var(--cream-100); }
.navbar-nav a { cursor: pointer; }
.nav-cta {
  background: var(--orange) !important; color: var(--cream-100) !important;
  padding: 8px 20px !important; border-radius: var(--radius-xl) !important; font-weight: 600 !important;
}
.nav-cta:hover { background: var(--orange-dk) !important; }

/* Homepage hero card (next event) */
.hero-inner-spa { max-width: 1180px; margin: 0 auto; padding: 0 26px; display: grid; grid-template-columns: 1fr 360px; gap: 60px; align-items: center; position: relative; }
.hero-card {
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 24px; backdrop-filter: blur(8px);
}
.hero-card-label { font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; color: var(--orange-lt); margin-bottom: 12px; }
.hero-card-title { font-family: var(--font-serif); font-size: 18px; font-weight: 700; color: var(--cream-100); margin-bottom: 8px; line-height: 1.35; }
.hero-card-theme { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 16px; line-height: 1.6; }
.hero-card-meta { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.hero-card-meta-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: rgba(255,255,255,.75); }
.hero-card-meta-item svg { width: 14px; height: 14px; color: var(--orange-lt); flex-shrink: 0; }
.hero-no-event { text-align: center; padding: 40px 20px; color: rgba(255,255,255,.5); font-size: 14px; }

/* Hero meta (stats) */
.hero-meta { display: flex; gap: 36px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.12); }
.hero-meta-item strong { display: block; font-family: var(--font-serif); font-size: 30px; font-weight: 700; color: var(--cream-100); line-height: 1; }
.hero-meta-item span { font-size: 12px; color: var(--text-muted); margin-top: 4px; display: block; }

/* Events grid */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }

/* Event Card (SPA) */
.ev-card { background: var(--cream-100); border-radius: var(--radius-lg); border: 1px solid var(--border-light); overflow: hidden; box-shadow: var(--shadow-card); display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s; }
.ev-card:hover { box-shadow: 0 4px 24px rgba(0,0,0,.16); transform: translateY(-2px); }
.ev-date-chip { background: var(--brown-700); color: var(--cream-100); padding: 12px 16px; display: flex; align-items: baseline; gap: 8px; }
.ev-day { font-family: var(--font-serif); font-size: 36px; font-weight: 700; color: var(--orange-lt); line-height: 1; }
.ev-month { font-size: 13px; opacity: .8; }
.ev-theme { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--orange); background: rgba(10,102,194,.1); padding: 4px 12px; margin: 14px 16px 0; border-radius: 12px; width: fit-content; }
.ev-title { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--text-dark); margin: 10px 16px 0; line-height: 1.4; }
.ev-meta { display: flex; flex-direction: column; gap: 6px; padding: 10px 16px 0; }
.ev-meta span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brown-400); }
.ev-meta svg { width: 14px; height: 14px; color: var(--orange); flex-shrink: 0; }
.ev-desc { font-size: 14px; color: var(--text-mid); line-height: 1.6; padding: 10px 16px 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-speakers { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.speaker-tag { display: inline-flex; align-items: center; gap: 5px; background: var(--cream-200); border: 1px solid var(--border-light); border-radius: 12px; padding: 3px 10px; font-size: 12px; color: var(--text-mid); }
.speaker-tag svg { width: 12px; height: 12px; color: var(--brown-400); }
.ev-actions { display: flex; gap: 8px; align-items: center; padding: 16px; margin-top: auto; border-top: 1px solid var(--border-light); }
.ev-detail-btn { background: transparent; color: var(--brown-400); border: 1px solid var(--border-light); padding: 8px 16px; border-radius: var(--radius-xl); font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s; }
.ev-detail-btn:hover { border-color: var(--orange); color: var(--orange); background: rgba(10,102,194,.05); }
.badge-past { font-size: 12px; font-weight: 600; color: var(--brown-400); background: var(--cream-200); padding: 6px 14px; border-radius: 20px; border: 1px solid var(--border-light); }

/* CTA Band */
.cta-band { background: var(--brown-700); border-radius: var(--radius-lg); padding: 64px 48px; text-align: center; position: relative; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 70% 50%, rgba(10,102,194,.3) 0%, transparent 70%); }
.cta-band h2 { font-family: var(--font-serif); font-size: clamp(24px,3.5vw,38px); font-weight: 700; color: var(--cream-100); margin-bottom: 12px; position: relative; }
.cta-band p { font-size: 16px; color: var(--text-muted); margin-bottom: 32px; position: relative; }
.cta-band-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; position: relative; }

/* About founder */
.founder-layout { display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: start; }
.founder-photo { width: 100%; aspect-ratio: 3/4; background: var(--cream-200); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border-light); display: flex; align-items: center; justify-content: center; }
.founder-photo img { width: 100%; height: 100%; object-fit: cover; }
.founder-photo-placeholder { font-family: var(--font-serif); font-size: 80px; font-weight: 700; color: var(--brown-300); }
.founder-name { font-family: var(--font-serif); font-size: 26px; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.founder-role-tag { font-size: 14px; color: var(--orange); font-weight: 600; margin-bottom: 20px; }
.prose p { font-size: 15px; color: var(--text-mid); line-height: 1.8; margin-bottom: 14px; }
.prose p:last-child { margin-bottom: 0; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { padding: 24px; }
.step-num { font-family: var(--font-serif); font-size: 40px; font-weight: 700; color: var(--orange); opacity: .2; line-height: 1; margin-bottom: 10px; }
.step h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--text-mid); line-height: 1.65; }

/* Filter tabs (events page) */
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 20px; }
.filter-tab { padding: 8px 18px; border-radius: var(--radius-xl); border: 1px solid var(--border-light); font-size: 14px; font-weight: 500; color: var(--text-mid); cursor: pointer; background: var(--cream-100); transition: all .15s; }
.filter-tab:hover { border-color: var(--orange); color: var(--orange); }
.filter-tab.active { background: var(--orange); color: var(--cream-100); border-color: var(--orange); }

/* Admin SPA */
.admin-shell { display: flex; flex-direction: column; min-height: 100vh; background: var(--cream-200); }
.admin-top { background: var(--brown-700); border-bottom: 1px solid rgba(255,255,255,.08); position: sticky; top: 0; z-index: 50; }
.admin-top-inner { max-width: 1180px; margin: 0 auto; padding: 0 24px; display: flex; align-items: center; gap: 16px; height: 56px; }
.admin-tabs { display: flex; gap: 2px; }
.admin-tab { padding: 8px 18px; border-radius: var(--radius-sm); font-size: 14px; font-weight: 500; color: var(--text-muted); cursor: pointer; border: none; background: none; transition: all .15s; }
.admin-tab:hover { color: var(--cream-100); background: rgba(255,255,255,.08); }
.admin-tab.active { color: var(--cream-100); background: rgba(255,255,255,.12); font-weight: 600; }
.admin-top-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.admin-top-actions button { font-size: 13px; color: var(--text-muted); cursor: pointer; background: none; border: none; transition: color .15s; display: flex; align-items: center; gap: 5px; }
.admin-top-actions button:hover { color: var(--cream-100); }
.admin-top-actions svg { width: 14px; height: 14px; }
.admin-main { max-width: 1180px; margin: 0 auto; width: 100%; padding: 32px 24px; }

/* Admin events list */
.admin-pagehead { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-pagehead h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--text-dark); }
.admin-ev-list { display: flex; flex-direction: column; gap: 10px; }
.admin-ev { background: var(--cream-100); border: 1px solid var(--border-light); border-radius: var(--radius); padding: 14px 18px; display: flex; align-items: center; gap: 14px; }
.admin-ev-date { background: var(--brown-700); color: var(--cream-100); border-radius: var(--radius-sm); padding: 8px 12px; text-align: center; min-width: 52px; flex-shrink: 0; }
.admin-ev-date .day { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--orange-lt); line-height: 1; }
.admin-ev-date .mo { font-size: 10px; opacity: .7; }
.admin-ev-info { flex: 1; min-width: 0; }
.admin-ev-info h3 { font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-ev-info .meta { font-size: 12px; color: var(--brown-400); display: flex; gap: 12px; flex-wrap: wrap; }
.admin-ev-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* Admin stats row */
.stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }

/* Admin regs table */
.reg-toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.reg-toolbar label { font-size: 13px; font-weight: 600; color: var(--brown-600); }
.table-wrap { overflow-x: auto; }
table.reg { width: 100%; border-collapse: collapse; font-size: 14px; }
table.reg th { background: var(--brown-900); color: var(--cream-200); padding: 10px 14px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase; }
table.reg td { padding: 11px 14px; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
table.reg tr:last-child td { border-bottom: none; }
table.reg tr:hover td { background: rgba(10,102,194,.03); }

/* Admin content editor */
.editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.editor-panel h3 { font-family: var(--font-serif); font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--border-light); }
.notice { background: rgba(10,102,194,.08); border: 1px solid rgba(10,102,194,.2); border-radius: var(--radius-sm); padding: 12px 16px; margin-bottom: 20px; font-size: 13px; color: var(--brown-600); line-height: 1.5; }

/* Toast */
.toast-container { position: fixed; bottom: 24px; right: 24px; z-index: 9999; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--brown-900); color: var(--cream-100); padding: 12px 18px; border-radius: var(--radius); font-size: 14px; box-shadow: 0 8px 24px rgba(0,0,0,.2); display: flex; align-items: center; gap: 10px; max-width: 320px; animation: toastIn .25s ease; }
.toast.ok { border-left: 3px solid #4caf50; }
.toast.err { border-left: 3px solid #f44336; }
.toast svg { width: 16px; height: 16px; flex-shrink: 0; }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }



/* Modal additions */
.modal.wide { max-width: 700px; }
.modal-head { padding: 20px 24px 16px; border-bottom: 1px solid var(--border-light); display: flex; align-items: flex-start; gap: 12px; }
.modal-head-text { flex: 1; }
.modal-head-theme { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); margin-bottom: 4px; }
.modal-head h2 { font-family: var(--font-serif); font-size: 20px; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.modal-foot { padding: 16px 24px; border-top: 1px solid var(--border-light); display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.modal-foot-hint { font-size: 12px; color: var(--brown-400); flex: 1; }
.radio-group { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
.radio-option { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-dark); cursor: pointer; padding: 10px 14px; border: 1px solid var(--border-light); border-radius: var(--radius); background: var(--cream-100); transition: border-color .15s, background .15s; }
.radio-option:hover { border-color: var(--orange); background: #f0f7ff; }
.radio-option input[type="radio"] { accent-color: var(--orange); width: 16px; height: 16px; flex-shrink: 0; cursor: pointer; }
.radio-option:has(input:checked) { border-color: var(--orange); background: #e8f3ff; font-weight: 500; }
.modal-success { text-align: center; padding: 40px 32px; }
.modal-success-icon { width: 64px; height: 64px; background: #f0f9f0; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 18px; }
.modal-success-icon svg { width: 32px; height: 32px; color: #2e7d32; }
.modal-success h2 { font-family: var(--font-serif); font-size: 22px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.modal-success p { font-size: 15px; color: var(--text-mid); max-width: 320px; margin: 0 auto 24px; line-height: 1.7; }

/* Admin login */
.login-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--brown-900); }
.brand-mark { width: 68px; height: 68px; border-radius: 16px; background: var(--orange); display: flex; align-items: center; justify-content: center; font-family: var(--font-serif); font-size: 36px; font-weight: 700; color: var(--cream-100); margin: 0 auto 18px; }

/* Footer SPA layout */
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding: 48px 0 36px; }
.footer-brand-row { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.footer-spa-brand { font-family: var(--font-serif); font-size: 18px; color: var(--cream-100); font-weight: 700; }
.footer-lead { font-size: 13px; color: var(--text-muted); line-height: 1.7; max-width: 260px; }
.footer-col-title { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.4); margin-bottom: 14px; }
.footer-nav-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-nav-links a { font-size: 13px; color: var(--text-muted); cursor: pointer; transition: color .15s; text-decoration: none; }
.footer-nav-links a:hover { color: var(--cream-100); }
.footer-bottom-spa { border-top: 1px solid rgba(255,255,255,.08); padding: 20px 0; text-align: center; }
.footer-bottom-spa p { font-size: 12px; color: rgba(255,255,255,.3); }

/* SPA responsive */
@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .navbar { position: relative; }
  .navbar-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: var(--brown-700); flex-direction: column; padding: 12px 16px 20px; gap: 4px; border-bottom: 1px solid rgba(255,255,255,.08); z-index: 100; }
  .navbar-nav.open { display: flex; }
  .hero-inner-spa { grid-template-columns: 1fr; }
  .hero-card { display: none; }
  .founder-layout { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .editor-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 48px 0; }
  .events-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 40px 24px; }
.hero-meta { gap: 20px; }
}
