/* ============================================================
   PAPAUSA Portal — Global Styles
   ============================================================ */

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

:root {
  --navy:       #1B2B4B;
  --navy-dark:  #111D33;
  --navy-light: #2A3F6F;
  --gold:       #C9A84C;
  --gold-light: #E8C96A;
  --gold-pale:  #FDF6E3;
  --white:      #FFFFFF;
  --bg:         #F4F6FB;
  --card:       #FFFFFF;
  --border:     #DDE3EF;
  --text:       #2D3748;
  --text-muted: #6B7A99;
  --success:    #2E7D52;
  --success-bg: #EAF5EE;
  --error:      #C0392B;
  --error-bg:   #FDECEA;
  --shadow-sm:  0 1px 4px rgba(27,43,75,.08);
  --shadow-md:  0 4px 16px rgba(27,43,75,.12);
  --shadow-lg:  0 8px 32px rgba(27,43,75,.16);
  --radius:     10px;
  --radius-lg:  16px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

/* ── Typography ── */
h1, h2, h3, h4 { font-family: 'Sora', sans-serif; line-height: 1.25; }
h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }
p  { color: var(--text-muted); }

/* ── Layout ── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ── Navbar ── */
.navbar {
  background: var(--navy);
  position: sticky; top: 0; z-index: 100;
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
/* Full-width nav for dashboard pages — logo stays hard-left */
.nav-inner-full {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px; width: 100%; padding: 0 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
}
.nav-logo-icon {
  width: 38px; height: 38px; background: var(--gold);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 1.1rem;
  color: var(--navy); font-weight: 800;
}
.nav-logo-text { color: var(--white); font-weight: 700; font-size: 1rem; font-family: 'Sora', sans-serif; }
.nav-logo-text span { color: var(--gold); }
.nav-links { display: flex; gap: 4px; }
.nav-link {
  color: rgba(255,255,255,.8); text-decoration: none;
  padding: 8px 14px; border-radius: 6px; font-size: .88rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  transition: all .2s;
}
.nav-link:hover, .nav-link.active { background: rgba(255,255,255,.12); color: var(--white); }
.nav-link.btn-gold {
  background: var(--gold); color: var(--navy); font-weight: 600;
}
.nav-link.btn-gold:hover { background: var(--gold-light); }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-size: .92rem;
  font-weight: 700; cursor: pointer; border: none; text-decoration: none;
  transition: all .2s; font-family: 'DM Sans', sans-serif;
  letter-spacing: -.01em;
}
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: var(--gold-light); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-outline-gold { background: transparent; color: var(--gold); border: 2px solid var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: var(--navy); }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: .85rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-danger { background: var(--error); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* ── Cards ── */
.card {
  background: var(--card); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  padding: 28px;
}
.card-header {
  padding-bottom: 20px; margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

/* ── Form Elements ── */
.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label {
  display: block; margin-bottom: 6px;
  font-size: .875rem; font-weight: 600; color: var(--text);
  font-family: 'DM Sans', sans-serif;
}
label .required { color: var(--error); margin-left: 3px; }
input[type="text"], input[type="email"], input[type="tel"],
input[type="password"], input[type="number"], input[type="date"],
select, textarea {
  width: 100%; padding: 11px 14px;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; font-family: 'DM Sans', sans-serif; color: var(--text);
  background: var(--white); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,43,75,.1);
}
select { cursor: pointer; }
textarea { resize: vertical; min-height: 100px; }
.form-hint { font-size: .8rem; color: var(--text-muted); margin-top: 4px; }
.form-error { font-size: .8rem; color: var(--error); margin-top: 4px; }

/* ── Step Wizard ── */
.wizard-header { text-align: center; margin-bottom: 40px; }
.wizard-header h2 { margin-bottom: 8px; }

.steps-bar {
  display: flex; align-items: center; justify-content: center;
  gap: 0; margin: 28px 0 40px;
}
.step-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  position: relative; flex: 1; max-width: 160px;
}
.step-item:not(:last-child)::after {
  content: ''; position: absolute;
  top: 18px; left: calc(50% + 18px);
  width: calc(100% - 36px); height: 2px;
  background: var(--border);
}
.step-item.done:not(:last-child)::after,
.step-item.active:not(:last-child)::after { background: var(--gold); }

.step-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--border); color: var(--text-muted);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem; font-weight: 700; transition: all .3s; z-index: 1;
}
.step-item.done .step-circle { background: var(--gold); color: var(--navy); }
.step-item.active .step-circle {
  background: var(--navy); color: var(--white);
  box-shadow: 0 0 0 4px rgba(27,43,75,.15);
}
.step-label { font-size: .78rem; color: var(--text-muted); font-weight: 500; text-align: center; }
.step-item.active .step-label { color: var(--navy); font-weight: 600; }
.step-item.done .step-label { color: var(--gold); }

.step-panel { display: none; }
.step-panel.active { display: block; }

.wizard-nav {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--border);
}

/* ── Membership Tier Cards ── */
.tier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 8px;
}
.tier-card {
  border: 2px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px 20px; cursor: pointer; text-align: center;
  transition: all .25s; position: relative; background: var(--white);
}
.tier-card:hover { border-color: var(--navy); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.tier-card.selected { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201,168,76,.2); }
.tier-card.popular::before {
  content: 'Most Popular';
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--navy); color: var(--white);
  font-size: .72rem; font-weight: 700; padding: 4px 12px;
  border-radius: 20px; white-space: nowrap;
}
.tier-icon { font-size: 2rem; margin-bottom: 12px; }
.tier-name { font-weight: 800; font-size: 1rem; color: var(--text); margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.tier-price { font-family: 'Sora', sans-serif; font-size: 1.8rem; color: var(--navy); font-weight: 700; }
.tier-price span { font-size: .9rem; font-family: 'Inter', sans-serif; color: var(--text-muted); font-weight: 400; }
.tier-badge { display: inline-block; margin-top: 10px; font-size: .75rem; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.tier-badge.free { background: var(--success-bg); color: var(--success); }
.tier-badge.paid { background: var(--gold-pale); color: #8B6914; }

/* ── Payment Methods ── */
.payment-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.payment-opt {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 18px 16px; cursor: pointer; text-align: center; background: var(--white);
  transition: all .2s;
}
.payment-opt:hover { border-color: var(--navy); }
.payment-opt.selected { border-color: var(--gold); background: var(--gold-pale); }
.payment-opt-icon { font-size: 1.8rem; margin-bottom: 8px; }
.payment-opt-name { font-weight: 600; font-size: .9rem; color: var(--text); }
.payment-opt-sub { font-size: .75rem; color: var(--text-muted); margin-top: 3px; }

/* Sub payment method toggle */
.payment-sub { display: none; margin-top: 16px; }
.payment-sub.active { display: block; }
.sub-opt-row { display: flex; gap: 10px; }
.sub-opt {
  flex: 1; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 12px; cursor: pointer; text-align: center; background: var(--white);
  font-size: .875rem; font-weight: 600; transition: all .2s;
}
.sub-opt:hover { border-color: var(--navy); }
.sub-opt.selected { border-color: var(--navy); background: rgba(27,43,75,.06); color: var(--navy); }

/* Offline payment notice */
.offline-notice {
  background: var(--gold-pale); border: 1.5px solid rgba(201,168,76,.4);
  border-radius: var(--radius); padding: 20px 24px; margin-top: 16px;
}
.offline-notice h4 { color: #8B6914; margin-bottom: 8px; font-family: 'Inter', sans-serif; font-size: .95rem; }
.offline-notice p { color: #7A5C1E; font-size: .9rem; margin: 0; }
.offline-notice .copy-email {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--navy); padding: 6px 14px;
  border-radius: 6px; font-size: .85rem; font-weight: 600;
  cursor: pointer; border: none; margin-top: 10px; font-family: 'Inter', sans-serif;
}

/* ── Event Cards ── */
.event-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .2s, transform .2s;
}
.event-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.event-card-banner {
  height: 140px; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; position: relative;
}
.event-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.event-badge.free { background: var(--success); color: #fff; }
.event-badge.paid { background: var(--gold); color: var(--navy); }
.event-body { padding: 20px; }
.event-title { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 1rem; color: var(--text); margin-bottom: 8px; }
.event-meta { display: flex; flex-direction: column; gap: 4px; margin-bottom: 14px; }
.event-meta-item { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--text-muted); }
.event-price { font-family: 'Sora', sans-serif; font-size: 1.4rem; color: var(--navy); font-weight: 700; }

/* ── Admin/User Dashboard ── */
.dashboard-layout { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 240px; background: var(--navy); padding: 24px 0;
  flex-shrink: 0;
}
.sidebar-logo { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.sidebar-section { padding: 8px 12px 4px; font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.4); text-transform: uppercase; letter-spacing: .08em; }
.sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 20px; color: rgba(255,255,255,.75);
  text-decoration: none; font-size: .88rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border-radius: 0; transition: all .15s; cursor: pointer;
  border-left: 3px solid transparent;
}
.sidebar-link:hover { background: rgba(255,255,255,.08); color: var(--white); }
.sidebar-link.active { background: rgba(201,168,76,.15); color: var(--gold); border-left-color: var(--gold); }
.sidebar-link svg, .sidebar-link .icon { width: 18px; opacity: .85; }

.main-content { flex: 1; padding: 32px; overflow-y: auto; }
.page-header { margin-bottom: 28px; }
.page-header h2 { margin-bottom: 4px; }
.page-header p { font-size: .9rem; }

/* Stats grid */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 22px 24px; border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.stat-icon {
  width: 48px; height: 48px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem;
  flex-shrink: 0;
}
.stat-icon.navy { background: rgba(27,43,75,.1); }
.stat-icon.gold  { background: rgba(201,168,76,.15); }
.stat-icon.green { background: var(--success-bg); }
.stat-icon.red   { background: var(--error-bg); }
.stat-label { font-size: .8rem; color: var(--text-muted); font-weight: 600; margin-bottom: 4px; font-family: 'DM Sans', sans-serif; }
.stat-value { font-size: 1.7rem; font-weight: 800; color: var(--text); font-family: 'Sora', sans-serif; }
.stat-change { font-size: .78rem; color: var(--success); font-weight: 500; }

/* Table */
.table-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; }
.table-header { padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--border); }
.table-header h4 { font-family: 'Inter', sans-serif; font-weight: 700; }
table { width: 100%; border-collapse: collapse; }
th { background: var(--bg); padding: 10px 16px; text-align: left; font-size: .8rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; }
td { padding: 14px 16px; border-top: 1px solid var(--border); font-size: .9rem; vertical-align: middle; }
tr:hover td { background: rgba(244,246,251,.5); }

/* Badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 20px; font-size: .75rem; font-weight: 700;
}
.badge-active  { background: var(--success-bg); color: var(--success); }
.badge-pending { background: rgba(201,168,76,.15); color: #8B6914; }
.badge-expired { background: var(--error-bg); color: var(--error); }
.badge-free    { background: #E8F4FD; color: #1565C0; }

/* ── Thank You Page ── */
.thankyou-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 40px 20px;
}
.thankyou-card {
  background: var(--white); border-radius: 20px; padding: 48px 40px;
  max-width: 540px; width: 100%; text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.25);
}
.thankyou-icon { font-size: 4rem; margin-bottom: 16px; }
.thankyou-card h1 { font-size: 2rem; color: var(--navy); margin-bottom: 12px; font-family: 'Sora', sans-serif; }
.thankyou-card p { color: var(--text-muted); margin-bottom: 8px; }
.thankyou-ref {
  background: var(--bg); border-radius: var(--radius); padding: 14px 20px;
  margin: 24px 0; display: flex; justify-content: space-between; align-items: center;
}
.thankyou-ref span:first-child { font-size: .85rem; color: var(--text-muted); font-weight: 500; }
.thankyou-ref strong { font-size: 1rem; color: var(--navy); font-family: 'Playfair Display', serif; }
.thankyou-steps { text-align: left; margin: 20px 0 28px; }
.thankyou-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.thankyou-step:last-child { border-bottom: 1px solid var(--border); }
.thankyou-step-num {
  width: 24px; height: 24px; border-radius: 50%; background: var(--gold);
  color: var(--navy); font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.thankyou-step p { font-size: .875rem; margin: 0; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 60%, var(--navy-light) 100%);
  padding: 80px 0 60px; text-align: center; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(201,168,76,.2); border: 1px solid rgba(201,168,76,.4);
  color: var(--gold-light); padding: 6px 16px; border-radius: 20px;
  font-size: .82rem; font-weight: 600; margin-bottom: 20px;
}
.hero h1 { color: var(--white); font-size: 3rem; max-width: 640px; margin: 0 auto 16px; font-family: 'Sora', sans-serif; font-weight: 800; }
.hero h1 span { color: var(--gold); }
.hero p { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto 32px; font-size: 1.05rem; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* Quick links section */
.quick-links { padding: 60px 0; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.quick-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 28px 24px;
  text-decoration: none; color: inherit; transition: all .2s;
  display: flex; flex-direction: column; gap: 12px;
}
.quick-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--gold); }
.quick-card-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.quick-card-icon.blue { background: rgba(27,43,75,.08); }
.quick-card-icon.gold { background: rgba(201,168,76,.15); }
.quick-card h3 { font-family: 'Inter', sans-serif; font-size: 1rem; font-weight: 700; }
.quick-card p { font-size: .88rem; }
.quick-card-arrow { color: var(--gold); font-size: 1.2rem; margin-top: auto; }

/* ── Section Title ── */
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { margin-bottom: 8px; }
.section-title p { font-size: .95rem; }

/* ── Alerts ── */
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 16px; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start; }
.alert-success { background: var(--success-bg); color: var(--success); border: 1px solid rgba(46,125,82,.2); }
.alert-warning { background: var(--gold-pale); color: #8B6914; border: 1px solid rgba(201,168,76,.3); }
.alert-danger  { background: var(--error-bg); color: var(--error); border: 1px solid rgba(192,57,43,.2); }
.alert-info    { background: #E8F4FD; color: #1565C0; border: 1px solid rgba(21,101,192,.2); }

/* ── Summary Box ── */
.summary-box { background: var(--bg); border-radius: var(--radius); padding: 20px; }
.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--border); }
.summary-row:last-child { border-bottom: none; }
.summary-row.total { font-weight: 700; color: var(--navy); font-size: 1.05rem; border-top: 2px solid var(--border); padding-top: 12px; margin-top: 4px; }

/* ── Tabs ── */
.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--border); margin-bottom: 24px; }
.tab-btn {
  padding: 10px 20px; border: none; background: transparent;
  font-size: .9rem; font-weight: 700; color: var(--text-muted);
  cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -2px;
  font-family: 'DM Sans', sans-serif; transition: all .2s;
}
.tab-btn:hover { color: var(--navy); }
.tab-btn.active { color: var(--navy); border-bottom-color: var(--navy); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── User Dashboard ── */
.user-profile-bar {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  padding: 28px 32px; border-radius: var(--radius-lg); color: var(--white);
  display: flex; align-items: center; gap: 20px; margin-bottom: 24px;
}
.user-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Sora', sans-serif; font-size: 1.5rem; color: var(--navy); font-weight: 800;
  flex-shrink: 0;
}
.user-info h3 { font-family: 'DM Sans', sans-serif; font-size: 1.1rem; font-weight: 800; margin-bottom: 4px; }
.user-info p { color: rgba(255,255,255,.7); font-size: .88rem; margin: 0; }
.membership-pill {
  margin-left: auto; background: var(--gold); color: var(--navy);
  padding: 6px 16px; border-radius: 20px; font-size: .82rem; font-weight: 800;
  font-family: 'DM Sans', sans-serif;
}

/* ════════════════════════════════════════
   HAMBURGER BUTTON (visible on mobile)
════════════════════════════════════════ */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: rgba(255,255,255,.1);
  border: none; border-radius: 8px;
  cursor: pointer; padding: 8px;
  flex-shrink: 0;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: all .3s;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Sidebar close button ── */
.sidebar-close-btn {
  display: none;
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: none; cursor: pointer;
  color: rgba(255,255,255,.8);
  font-size: 1.1rem; line-height: 1;
  align-items: center; justify-content: center;
  transition: background .2s;
}
.sidebar-close-btn:hover { background: rgba(255,255,255,.22); color: #fff; }

/* ── Sidebar overlay (mobile backdrop) ── */
.sidebar-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 199;
  backdrop-filter: blur(2px);
}
.sidebar-overlay.active { display: block; }

/* ════════════════════════════════════════
   DASHBOARD SIDEBAR — slide-over on mobile
════════════════════════════════════════ */
@media (max-width: 900px) {
  /* Sidebar becomes fixed slide-over panel */
  .sidebar {
    position: fixed !important;
    top: 0; left: 0;
    height: 100vh;
    width: 280px !important;
    z-index: 200;
    transform: translateX(-100%);
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    overflow-y: auto;
    box-shadow: none;
  }
  .sidebar.open {
    transform: translateX(0);
    box-shadow: 4px 0 32px rgba(0,0,0,.35);
  }
  .sidebar-close-btn { display: flex !important; }

  /* Main content takes full width */
  .dashboard-layout { flex-direction: column; }
  .main-content { padding: 20px 16px; width: 100%; }

  /* Hamburger shows in navbar */
  .hamburger { display: flex; }

  /* Hide desktop nav links on small screens for dashboard pages */
  .dashboard-nav-links { display: none; }
}

/* ════════════════════════════════════════
   GLOBAL MOBILE — all pages
════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { gap: 2px; }
  .nav-link  { font-size: .8rem; padding: 7px 10px; }

  /* Typography */
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
  .hero h1 { font-size: 1.9rem; }
  .hero p  { font-size: .95rem; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; gap: 0; }

  /* Grids */
  .tier-grid    { grid-template-columns: 1fr 1fr; }
  .stats-grid   { grid-template-columns: 1fr 1fr; }
  .quick-grid   { grid-template-columns: 1fr; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }

  /* Step wizard */
  .steps-bar  { gap: 0; }
  .step-label { display: none; }
  .step-circle { width: 30px; height: 30px; font-size: .78rem; }

  /* Cards */
  .card { padding: 20px; }
  .main-content { padding: 16px; }

  /* Tables — horizontal scroll */
  .table-card { overflow-x: auto; }
  table { min-width: 540px; }

  /* Payment options */
  .payment-options { grid-template-columns: 1fr 1fr; }

  /* Hero buttons stacked */
  .hero-btns { flex-direction: column; align-items: center; }
  .hero-btns .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* User profile bar */
  .user-profile-bar { flex-wrap: wrap; padding: 20px; }
  .welcome-pill { margin-left: 0; }

  /* Welcome pill moves below on small */
  .membership-pill { margin-left: 0; }

  /* Filter bar */
  .filter-bar { flex-direction: column; align-items: stretch; }
  .filter-bar input[type="text"],
  .filter-bar select { max-width: 100%; }

  /* Wizard nav */
  .wizard-nav { flex-wrap: wrap; gap: 10px; }

  /* Quick actions */
  .quick-card { padding: 20px 16px; }
}

@media (max-width: 480px) {
  /* Nav — hide some links */
  .nav-link:not(.btn-gold):not(.active) { display: none; }
  .nav-links { gap: 4px; }

  /* Tier grids */
  .tier-grid         { grid-template-columns: 1fr; }
  .tier-grid-expanded { grid-template-columns: 1fr; }
  .stats-grid        { grid-template-columns: 1fr; }

  /* Payment */
  .payment-options { grid-template-columns: 1fr; }
  .sub-opt-row     { flex-direction: column; }

  /* Table */
  table { min-width: 420px; }
  td, th { padding: 10px 12px; font-size: .82rem; }

  /* Buttons */
  .btn-lg { padding: 12px 20px; font-size: .92rem; }
  .hero h1 { font-size: 1.6rem; }

  /* Form */
  .card { padding: 16px; }
  .card-header { padding-bottom: 14px; margin-bottom: 16px; }

  /* Confirm grid */
  .confirm-grid { grid-template-columns: 1fr !important; }

  /* Thank you card */
  .thankyou-card { padding: 32px 20px; }

  /* Event hero */
  .event-hero-inner  { grid-template-columns: 1fr; }
  .event-detail-grid { grid-template-columns: 1fr; }
  .event-reg-card    { position: static; }
}

/* ── Utilities ── */
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.text-navy { color: var(--navy); }
.text-gold { color: var(--gold); }
.text-success { color: var(--success); }
.text-danger { color: var(--error); }
.mb-0 { margin-bottom: 0; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.hidden { display: none !important; }
.divider { border: none; border-top: 1px solid var(--border); margin: 24px 0; }

/* Search/Filter bar */
.filter-bar {
  display: flex; gap: 12px; align-items: center;
  margin-bottom: 20px; flex-wrap: wrap;
}
.filter-bar input[type="text"] { max-width: 280px; }
.filter-bar select { max-width: 180px; }

/* ════════════════════════════════════════
   PUBLIC PAGE MOBILE NAV DRAWER
════════════════════════════════════════ */
.mobile-nav-drawer {
  display: none;
  position: fixed;
  top: 64px; left: 0; right: 0;
  background: var(--navy-dark);
  z-index: 150;
  padding: 8px 0 16px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  border-top: 1px solid rgba(255,255,255,.08);
  animation: slideDown .2s ease;
}
.mobile-nav-drawer.open { display: block; }
.mobile-nav-drawer a {
  display: block; padding: 13px 24px;
  color: rgba(255,255,255,.85); text-decoration: none;
  font-size: .95rem; font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: background .15s;
}
.mobile-nav-drawer a:last-child { border-bottom: none; }
.mobile-nav-drawer a:hover  { background: rgba(255,255,255,.07); color: #fff; }
.mobile-nav-drawer a.active { color: var(--gold); }
.mobile-nav-drawer .btn-mobile-gold {
  margin: 12px 16px 0;
  background: var(--gold) !important; color: var(--navy) !important;
  border-radius: 10px; border-bottom: none !important;
  text-align: center; font-weight: 800 !important;
  display: block;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 768px) {
  .nav-links { display: none !important; }
  .hamburger { display: flex !important; }
}
@media (min-width: 769px) {
  .mobile-nav-drawer { display: none !important; }
  .hamburger { display: none !important; }
}

/* ════════════════════════════════════════
   AUTH / LOGIN PAGE MOBILE
════════════════════════════════════════ */
@media (max-width: 480px) {
  .auth-card { border-radius: 16px; }
  .auth-header { padding: 24px 20px 20px; }
  .auth-body   { padding: 24px 20px 28px; }
  .auth-header h2 { font-size: 1.3rem; }
}

/* ════════════════════════════════════════
   MEMBERSHIP TIER GRID MOBILE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .tier-grid-expanded { grid-template-columns: 1fr 1fr; gap: 14px; }
  #step-1 .card { padding: 24px 20px; }
  #step-1 .card-header { margin-bottom: 20px; }
  .trust-bar { gap: 16px; }
}
@media (max-width: 560px) {
  .tier-grid-expanded { grid-template-columns: 1fr; }
  .tier-card-exp { padding: 24px 18px 20px; }
  .tier-price-big { font-size: 2rem; }
  .tier-features { gap: 7px; }
}

/* ════════════════════════════════════════
   EVENT DETAIL PAGE MOBILE
════════════════════════════════════════ */
@media (max-width: 900px) {
  .event-hero { padding: 36px 0 28px; }
  .event-hero-inner  { grid-template-columns: 1fr; gap: 24px; }
  .event-detail-grid { grid-template-columns: 1fr; gap: 24px; }
  .event-hero h1 { font-size: 1.65rem; }
  .sticky-reg { position: static; }
  .event-reg-card { padding: 20px; }
  .speaker-card { flex-wrap: wrap; }
}

/* ════════════════════════════════════════
   STATS GRID MOBILE
════════════════════════════════════════ */
@media (max-width: 600px) {
  .stats-grid { grid-template-columns: 1fr; gap: 12px; }
  .stat-card  { padding: 16px 18px; }
  .stat-value { font-size: 1.4rem; }
}

/* ════════════════════════════════════════
   TABLE OVERFLOW MOBILE
════════════════════════════════════════ */
@media (max-width: 768px) {
  .table-card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table { min-width: 560px; }
  th, td { white-space: nowrap; padding: 10px 14px; }
}

/* ════════════════════════════════════════
   WIZARD STEPS MOBILE
════════════════════════════════════════ */
@media (max-width: 480px) {
  .steps-bar { justify-content: center; gap: 0; }
  .step-item { max-width: 56px; }
  .step-item:not(:last-child)::after { width: calc(100% - 30px); left: calc(50% + 15px); }
  .step-circle { width: 28px; height: 28px; font-size: .75rem; }
  .step-label  { display: none; }
  .wizard-nav  { flex-direction: row; }
}

/* ════════════════════════════════════════
   HERO SECTION MOBILE
════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero { padding: 52px 0 40px; }
  .hero-tag { font-size: .75rem; }
  .hero h1  { font-size: 1.55rem; max-width: 100%; }
  .hero p   { font-size: .88rem; }
  .hero-btns .btn { font-size: .88rem; padding: 11px 20px; }
  .quick-card { flex-direction: row; gap: 14px; }
  .quick-card-icon { flex-shrink: 0; }
  .quick-card-arrow { display: none; }
}

/* ════════════════════════════════════════
   FOOTER MOBILE
════════════════════════════════════════ */
@media (max-width: 480px) {
  footer { padding: 18px 16px; }
  footer p { font-size: .8rem; }
}

/* ════════════════════════════════════════
   MODAL MOBILE
════════════════════════════════════════ */
@media (max-width: 560px) {
  .modal-box {
    padding: 24px 18px;
    border-radius: 14px;
    max-height: 96vh;
  }
  .modal-overlay { padding: 8px; align-items: flex-end; }
  .modal-box { border-radius: 18px 18px 0 0; max-height: 94vh; }
}

/* ════════════════════════════════════════
   ADMIN DASHBOARD MOBILE SPECIFICS
════════════════════════════════════════ */
@media (max-width: 900px) {
  .main-content { padding: 16px; }
  .page-header { margin-bottom: 16px; }
  .page-header h2 { font-size: 1.4rem; }
  .flex-between { flex-wrap: wrap; gap: 10px; }
  .admin-grid-2 { grid-template-columns: 1fr !important; }
  /* Panel header action buttons stack */
  .table-header { flex-wrap: wrap; gap: 8px; }
}

/* ════════════════════════════════════════
   SUMMARY BOX MOBILE
════════════════════════════════════════ */
@media (max-width: 480px) {
  .summary-row { font-size: .85rem; padding: 7px 0; }
  .summary-row.total { font-size: .95rem; }
  .offline-notice { padding: 14px 16px; }
  .offline-notice h4 { font-size: .88rem; }
}
