/* ─── Coptic Events — Shared Design System ─── */
:root {
  --gold:        #C9A84C;
  --gold-light:  #E8C96A;
  --gold-pale:   #F5E6C0;
  --black:       #0A0A0A;
  --black-soft:  #111111;
  --black-mid:   #1A1A1A;
  --black-card:  #161616;
  --gray:        #888888;
  --gray-light:  #CCCCCC;
  --white:       #FAFAF7;
  --success:     #4CAF8C;
  --error:       #E05555;
  --info:        #5B9BD5;
  --radius:      6px;
  --radius-lg:   12px;
  --nav-h:       72px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h, 80px); }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Typography ─────────────────────────────────────────── */
h1, h2, h3, h4 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 500; line-height: 1.2; }
h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.8rem); }
p  { color: var(--gray-light); font-size: 1rem; line-height: 1.75; }
em { font-style: italic; color: var(--gold); }
a  { color: var(--gold); text-decoration: none; }

/* ─── Nav ────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 48px;
  background: transparent;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
nav.scrolled {
  background: rgba(10,10,10,0.97);
  border-bottom-color: rgba(201,168,76,0.15);
  backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 36px; width: 36px; object-fit: contain; }
.nav-logo-text { font-family: 'Barlow Condensed', sans-serif; font-size: 1.1rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--white); }
.nav-links { display: flex; gap: 36px; list-style: none; align-items: center; }
.nav-links a { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-light); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold); }
.nav-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 22px; border-radius: var(--radius);
  border: 1px solid rgba(201,168,76,0.5);
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); cursor: pointer; background: transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  font-family: 'Barlow', sans-serif; font-weight: 500;
}
.nav-btn:hover { background: var(--gold); color: var(--black); border-color: var(--gold); }
.nav-btn-solid { background: var(--gold); color: var(--black); border-color: var(--gold); }
.nav-btn-solid:hover { background: var(--gold-light); border-color: var(--gold-light); }
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: 0.3s; }

/* ─── Nav auth state ─────────────────────────────────────── */
.nav-user-wrap { display: flex; align-items: center; gap: 10px; }
.nav-avatar {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--gold); color: var(--black);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.05em;
  text-decoration: none; flex-shrink: 0;
}
.nav-btn-dashboard {
  padding: 7px 16px; font-size: 0.72rem;
}
.nav-signout {
  background: none; border: none; cursor: pointer;
  font-family: 'Barlow', sans-serif; font-size: 0.72rem;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gray); transition: color 0.2s; padding: 0;
}
.nav-signout:hover { color: var(--gold); }

/* ─── Page wrapper ───────────────────────────────────────── */
.page-body { padding-top: var(--nav-h); min-height: 100vh; }

/* ─── Section ────────────────────────────────────────────── */
section { padding: 100px 0; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section-label {
  font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.section-label::before { content: ''; width: 32px; height: 1px; background: var(--gold); opacity: 0.6; }
.section-title { color: var(--white); margin-bottom: 18px; }
.section-sub { color: var(--gray-light); max-width: 600px; }
.text-center { text-align: center; }
.text-center .section-label { justify-content: center; }
.text-center .section-label::before { display: none; }
.text-center .section-sub { margin: 0 auto; }
.divider { width: 48px; height: 2px; background: linear-gradient(90deg, var(--gold), transparent); margin: 24px 0; }
.divider-center { margin: 24px auto; }

/* ─── Grid ───────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* ─── Cards ──────────────────────────────────────────────── */
.card {
  background: var(--black-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s, transform 0.2s;
}
.card:hover { border-color: rgba(201,168,76,0.3); transform: translateY(-2px); }
.card-icon { font-size: 2rem; margin-bottom: 16px; }
.card-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; color: var(--white); }
.card-desc { font-size: 0.9rem; color: var(--gray); line-height: 1.65; }

/* ─── Buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px; border-radius: var(--radius);
  font-family: 'Barlow', sans-serif; font-size: 0.88rem;
  font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: 0.2s; border: none;
}
.btn-gold { background: var(--gold); color: var(--black); }
.btn-gold:hover { background: var(--gold-light); }
.btn-outline { background: transparent; color: var(--gold); border: 1px solid rgba(201,168,76,0.5); }
.btn-outline:hover { background: rgba(201,168,76,0.08); border-color: var(--gold); }
.btn-danger { background: var(--error); color: var(--white); }
.btn-danger:hover { background: #c94444; }
.btn-success { background: var(--success); color: var(--white); }
.btn-success:hover { background: #3d9a76; }
.btn-sm { padding: 7px 16px; font-size: 0.8rem; }
.btn-lg { padding: 16px 40px; font-size: 0.95rem; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ─── Forms ──────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray); margin-bottom: 8px; }
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--black-mid); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius); color: var(--white);
  font-family: 'Barlow', sans-serif; font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-control:focus { outline: none; border-color: var(--gold); }
.form-control::placeholder { color: var(--gray); }
select.form-control option { background: var(--black-mid); color: var(--white); }
textarea.form-control { resize: vertical; min-height: 100px; }

/* ─── Table ──────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid rgba(255,255,255,0.07); }
table { width: 100%; border-collapse: collapse; }
thead th {
  padding: 14px 18px; text-align: left;
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--gold); background: rgba(201,168,76,0.05);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
tbody td { padding: 14px 18px; font-size: 0.9rem; color: var(--gray-light); border-bottom: 1px solid rgba(255,255,255,0.04); }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,0.02); }

/* ─── Badge ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 3px 10px; border-radius: 20px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.06em;
}
.badge-gold    { background: rgba(201,168,76,0.15); color: var(--gold); }
.badge-success { background: rgba(76,175,140,0.15); color: var(--success); }
.badge-error   { background: rgba(224,85,85,0.15);  color: var(--error); }
.badge-info    { background: rgba(91,155,213,0.15); color: var(--info); }
.badge-gray    { background: rgba(255,255,255,0.06); color: var(--gray-light); }

/* ─── Stats bar ──────────────────────────────────────────── */
.stats-bar { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.stat-box {
  flex: 1; min-width: 120px;
  background: var(--black-card); border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-lg); padding: 20px 24px;
  text-align: center;
}
.stat-num { font-family: 'Cormorant Garamond', serif; font-size: 2.4rem; color: var(--gold); line-height: 1; }
.stat-lbl { font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); margin-top: 6px; }

/* ─── Toast ──────────────────────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(20px);
  padding: 14px 28px; border-radius: var(--radius);
  background: var(--black-mid); border: 1px solid rgba(201,168,76,0.3);
  color: var(--white); font-size: 0.9rem; z-index: 9999;
  opacity: 0; transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.error { border-color: rgba(224,85,85,0.4); }
.toast.success { border-color: rgba(76,175,140,0.4); }

/* ─── Sidebar layout ──────────────────────────────────────── */
.app-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }
.sidebar {
  width: 240px; min-height: 100%; flex-shrink: 0;
  background: var(--black-soft); border-right: 1px solid rgba(255,255,255,0.06);
  padding: 28px 0;
  position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto;
}
.sidebar-section { padding: 0 20px; margin-bottom: 28px; }
.sidebar-label { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); margin-bottom: 10px; padding: 0 8px; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: var(--radius); margin-bottom: 2px;
  font-size: 0.88rem; color: var(--gray-light);
  cursor: pointer; transition: background 0.2s, color 0.2s;
  text-decoration: none;
}
.sidebar-link:hover, .sidebar-link.active { background: rgba(201,168,76,0.1); color: var(--gold); }
.sidebar-link .icon { font-size: 1.1rem; width: 20px; text-align: center; }
.sidebar-link ion-icon { font-size: 1.15rem; width: 20px; flex-shrink: 0; color: inherit; }
.main-content { flex: 1; padding: 40px; min-width: 0; }

/* ─── Page header ────────────────────────────────────────── */
.page-header { margin-bottom: 32px; }
.page-header h1 { font-size: 2rem; color: var(--white); }
.page-header p { color: var(--gray); margin-top: 6px; }
.page-header .toolbar { display: flex; align-items: center; gap: 12px; margin-top: 20px; flex-wrap: wrap; }

/* ─── Empty state ────────────────────────────────────────── */
.empty-state { text-align: center; padding: 80px 32px; }
.empty-state .icon { font-size: 3.5rem; margin-bottom: 16px; opacity: 0.4; line-height: 1; }
.empty-state .icon ion-icon { font-size: 3.5rem; color: var(--gray); }
.empty-state p { color: var(--gray); }

/* ─── Progress bar ───────────────────────────────────────── */
.progress-bar { height: 6px; background: var(--black-mid); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 3px; transition: width 0.4s; }

/* ─── Tier pricing ───────────────────────────────────────── */
.tier-table { width: 100%; border-collapse: collapse; }
.tier-table th { padding: 22px 18px; text-align: center; font-family: 'Barlow Condensed', sans-serif; font-size: 1.05rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid rgba(255,255,255,0.08); }
.tier-table th:first-child { text-align: left; color: var(--gray); }
.tier-table td { padding: 14px 18px; font-size: 0.88rem; color: var(--gray-light); border-bottom: 1px solid rgba(255,255,255,0.04); text-align: center; }
.tier-table td:first-child { text-align: left; color: var(--white); }
.tier-table .check { color: var(--success); font-size: 1rem; }
.tier-table .dash  { color: var(--gray); }
.tier-table .pro-col { background: rgba(201,168,76,0.04); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item { border-bottom: 1px solid rgba(255,255,255,0.07); }
.faq-q {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 0; font-size: 1rem; color: var(--white);
  cursor: pointer; font-weight: 500;
}
.faq-q .arrow { font-size: 1.2rem; color: var(--gold); transition: transform 0.3s; }
.faq-q.open .arrow { transform: rotate(45deg); }
.faq-a { display: none; padding-bottom: 18px; color: var(--gray-light); font-size: 0.92rem; line-height: 1.75; }
.faq-a.open { display: block; }

/* ─── Drag-drop zone ─────────────────────────────────────── */
.drop-zone {
  border: 2px dashed rgba(201,168,76,0.3); border-radius: var(--radius-lg);
  padding: 60px 32px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--gold); background: rgba(201,168,76,0.04);
}
.drop-zone p { color: var(--gray); font-size: 0.92rem; }

/* ─── Photo grid ─────────────────────────────────────────── */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; margin-top: 24px; }
.photo-thumb { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid rgba(255,255,255,0.07); }

/* ─── Checkin row ────────────────────────────────────────── */
.attendee-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.05);
  transition: background 0.15s;
}
.attendee-row:hover { background: rgba(255,255,255,0.02); }
.attendee-name { font-size: 0.95rem; color: var(--white); font-weight: 500; }
.attendee-meta { font-size: 0.8rem; color: var(--gray); margin-top: 2px; }
.attendee-status { display: flex; align-items: center; gap: 10px; }
.checked-in { color: var(--success); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.05em; }

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: var(--black-soft); border-top: 1px solid rgba(255,255,255,0.06);
  padding: 60px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand-desc { color: var(--gray); font-size: 0.88rem; margin-top: 12px; max-width: 280px; line-height: 1.7; }
.footer-col h4 { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--gray); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { font-size: 0.88rem; color: var(--gray-light); transition: color 0.2s; }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.06); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-copy { font-size: 0.8rem; color: var(--gray); }

/* ─── Print ──────────────────────────────────────────────── */
@media print {
  nav, .sidebar, .btn, .page-header .toolbar, .drop-zone { display: none !important; }
  body { background: #fff; color: #000; }
  table { border: 1px solid #ccc; }
  thead th { background: #f5f5f5 !important; color: #333 !important; }
  tbody td { color: #333 !important; border-bottom: 1px solid #eee !important; }
  .print-only { display: block !important; }
}
.print-only { display: none; }

/* ─── Responsive ─────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 200px; }
}
@media (max-width: 768px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .nav-links.open { display: flex; flex-direction: column; position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0; background: var(--black-soft); padding: 32px 24px; gap: 24px; z-index: 999; }
  section { padding: 64px 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .app-layout { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .main-content { padding: 24px 16px; }
}
