/* ============================================================
   css/style.css — EventQR Design System
   Aesthetic: Modern SaaS — Indigo/Cyan, clean minimal
   ============================================================ */

/* ── Reset & Variables ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --indigo:    #4F46E5;
  --indigo-d:  #3730A3;
  --indigo-l:  #EEF2FF;
  --indigo-ll: #F5F3FF;
  --cyan:      #06B6D4;
  --cyan-d:    #0891B2;
  --cyan-l:    #ECFEFF;
  --green:     #22C55E;
  --green-l:   #F0FDF4;
  --red:       #EF4444;
  --red-l:     #FEF2F2;
  --orange:    #F97316;
  --orange-l:  #FFF7ED;
  --bg:        #F9FAFB;
  --white:     #FFFFFF;
  --border:    #E5E7EB;
  --border-2:  #D1D5DB;
  --text:      #111827;
  --text-2:    #4B5563;
  --text-3:    #9CA3AF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.04);
  --shadow:    0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -1px rgba(0,0,0,.04);
  --shadow-lg: 0 10px 30px -3px rgba(0,0,0,.1), 0 4px 8px -2px rgba(0,0,0,.04);
  --shadow-xl: 0 25px 50px -12px rgba(0,0,0,.18);
  --r-sm:  8px;
  --r:     12px;
  --r-lg:  18px;
  --r-xl:  24px;
  --font:  'DM Sans', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Syne', 'DM Sans', sans-serif;
  --transition: .2s cubic-bezier(.4,0,.2,1);
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.6; font-size: 15px; min-height: 100vh; }
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: 1.2rem; }
a  { text-decoration: none; color: var(--indigo); transition: color var(--transition); }
a:hover { color: var(--indigo-d); }
p  { color: var(--text-2); line-height: 1.7; }
img { max-width: 100%; display: block; }

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
  background: rgba(255,255,255,.92); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 800;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; height: 64px;
}
.nav-brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; color: var(--indigo); }
.logo-dot  { color: var(--cyan); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 7px 13px; border-radius: var(--r-sm); color: var(--text-2); font-weight: 500; font-size: .9rem; transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { background: var(--indigo-l); color: var(--indigo); }
.nav-links .btn-nav { background: var(--indigo); color: #fff; font-weight: 600; }
.nav-links .btn-nav:hover { background: var(--indigo-d); color: #fff; }
.nav-user { display: flex; align-items: center; gap: 8px; margin-left: 8px; padding: 5px 12px; border-radius: 30px; background: var(--indigo-l); }
.nav-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: .8rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.nav-name { font-size: .85rem; font-weight: 600; color: var(--indigo); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #312E81 0%, var(--indigo) 40%, #7C3AED 70%, var(--cyan) 100%);
  color: #fff; text-align: center; padding: 90px 24px 80px; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.3) 0%, transparent 60%),
              radial-gradient(ellipse at 80% 20%, rgba(6,182,212,.25) 0%, transparent 50%);
}
.hero::after {
  content: ''; position: absolute; inset: 0; opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23fff' fill-rule='evenodd'%3E%3Ccircle cx='20' cy='20' r='1.5'/%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero h1 { color: #fff; margin-bottom: 20px; letter-spacing: -.02em; }
.hero p  { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 36px; }
.hero-pills { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.hero-pill { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); border-radius: 30px; padding: 5px 16px; font-size: .82rem; color: rgba(255,255,255,.9); backdrop-filter: blur(4px); }
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-hero-primary { background: #fff; color: var(--indigo); padding: 14px 32px; border-radius: var(--r-lg); font-weight: 700; font-size: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,.2); transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-hero-primary:hover { color: var(--indigo-d); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.btn-hero-outline { border: 2px solid rgba(255,255,255,.5); color: #fff; padding: 12px 28px; border-radius: var(--r-lg); font-weight: 600; font-size: .95rem; transition: all var(--transition); display: inline-flex; align-items: center; gap: 8px; }
.btn-hero-outline:hover { background: rgba(255,255,255,.15); color: #fff; border-color: rgba(255,255,255,.8); }

/* ── Section ─────────────────────────────────────────────── */
.section { padding: 64px 24px; }
.container { max-width: 1200px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag { display: inline-block; background: var(--indigo-l); color: var(--indigo); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 14px; border-radius: 20px; margin-bottom: 12px; }
.section-header p { margin-top: 10px; font-size: 1rem; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border-radius: var(--r-sm); font-weight: 600; font-size: .9rem; border: 2px solid transparent; cursor: pointer; transition: all var(--transition); line-height: 1; font-family: var(--font); }
.btn-primary { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.btn-primary:hover { background: var(--indigo-d); border-color: var(--indigo-d); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(79,70,229,.4); }
.btn-cyan    { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.btn-cyan:hover { background: var(--cyan-d); border-color: var(--cyan-d); color: #fff; }
.btn-green   { background: var(--green); color: #fff; border-color: var(--green); }
.btn-green:hover { background: #16a34a; border-color: #16a34a; color: #fff; }
.btn-red     { background: var(--red); color: #fff; border-color: var(--red); }
.btn-red:hover { background: #dc2626; color: #fff; }
.btn-outline { background: transparent; color: var(--text-2); border-color: var(--border-2); }
.btn-outline:hover { border-color: var(--indigo); color: var(--indigo); background: var(--indigo-l); }
.btn-ghost   { background: transparent; color: var(--text-2); border-color: transparent; }
.btn-ghost:hover { background: var(--bg); color: var(--text); }
.btn-sm  { padding: 6px 14px; font-size: .82rem; }
.btn-lg  { padding: 13px 30px; font-size: 1rem; border-radius: var(--r); }
.btn-xl  { padding: 15px 36px; font-size: 1.05rem; border-radius: var(--r-lg); }
.btn-block { width: 100%; justify-content: center; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ── Cards ───────────────────────────────────────────────── */
.card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--border); overflow: hidden; transition: all var(--transition); }
.card:hover { box-shadow: var(--shadow-lg); }
.card-body { padding: 24px; }
.card-header { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-footer { padding: 16px 24px; border-top: 1px solid var(--border); background: var(--bg); }

/* ── Event Grid ──────────────────────────────────────────── */
.events-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.event-card { display: flex; flex-direction: column; cursor: default; }
.event-banner { height: 185px; position: relative; overflow: hidden; }
.event-banner-inner { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; font-size: 56px; }
.event-cat-tag { position: absolute; top: 14px; left: 14px; background: rgba(255,255,255,.92); color: var(--indigo); font-size: .73rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; backdrop-filter: blur(4px); }
.event-status-dot { position: absolute; top: 16px; right: 16px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,.2); }
.event-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.event-card-body h3 { font-size: 1rem; margin-bottom: 10px; line-height: 1.4; }
.event-meta { display: flex; flex-direction: column; gap: 5px; margin-bottom: 14px; }
.event-meta-row { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--text-2); }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-top: 1px solid var(--border); background: #FAFAFA; }
.seats-pill { font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 20px; }
.seats-ok   { background: var(--cyan-l); color: var(--cyan-d); }
.seats-low  { background: var(--orange-l); color: #C2410C; }
.seats-full { background: var(--red-l); color: #991B1B; }

/* ── Search bar ──────────────────────────────────────────── */
.search-bar { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 18px 22px; margin-bottom: 32px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.search-bar input, .search-bar select { flex: 1; min-width: 150px; padding: 9px 13px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-family: var(--font); font-size: .9rem; color: var(--text); background: var(--bg); outline: none; transition: border-color var(--transition); }
.search-bar input:focus, .search-bar select:focus { border-color: var(--indigo); }

/* ── Auth ────────────────────────────────────────────────── */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--indigo-ll) 0%, var(--cyan-l) 100%); padding: 40px 16px; }
.auth-card { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); padding: 44px; width: 100%; max-width: 440px; }
.auth-logo { text-align: center; margin-bottom: 28px; font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: var(--indigo); }
.auth-card h2 { text-align: center; margin-bottom: 6px; }
.auth-sub  { text-align: center; margin-bottom: 28px; color: var(--text-2); font-size: .9rem; }

/* ── Forms ───────────────────────────────────────────────── */
.form-group  { margin-bottom: 18px; }
.form-label  { display: block; font-size: .85rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.form-input  { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--r-sm); font-family: var(--font); font-size: .92rem; color: var(--text); background: var(--white); outline: none; transition: all var(--transition); }
.form-input:focus  { border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.1); }
.form-input.is-error { border-color: var(--red); }
.form-input textarea { resize: vertical; min-height: 110px; }
textarea.form-input  { resize: vertical; min-height: 110px; }
.field-err { font-size: .78rem; color: var(--red); margin-top: 5px; display: none; }
.pw-wrap   { position: relative; }
.pw-wrap .form-input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-3); font-size: 17px; }
.pw-toggle:hover { color: var(--indigo); }
.strength-bar  { height: 4px; border-radius: 2px; background: var(--border); margin-top: 6px; overflow: hidden; }
.strength-fill { height: 100%; border-radius: 2px; width: 0; transition: all .4s ease; }
.s-weak   .strength-fill { width: 33%; background: var(--red); }
.s-medium .strength-fill { width: 66%; background: var(--orange); }
.s-strong .strength-fill { width: 100%; background: var(--green); }
.strength-hint { font-size: .74rem; color: var(--text-3); margin-top: 3px; }

/* ── Alerts ──────────────────────────────────────────────── */
.alert { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 18px; font-size: .87rem; font-weight: 500; display: flex; align-items: center; gap: 10px; border: 1px solid transparent; }
.alert-success { background: var(--green-l); color: #166534; border-color: #BBF7D0; }
.alert-error   { background: var(--red-l); color: #991B1B; border-color: #FECACA; }
.alert-info    { background: var(--indigo-l); color: var(--indigo-d); border-color: #C7D2FE; }
.alert-warning { background: var(--orange-l); color: #92400E; border-color: #FCD34D; }

/* ── Badges ──────────────────────────────────────────────── */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .74rem; font-weight: 700; }
.badge-blue   { background: var(--indigo-l); color: var(--indigo-d); }
.badge-green  { background: var(--green-l); color: #166534; }
.badge-red    { background: var(--red-l); color: #991B1B; }
.badge-orange { background: var(--orange-l); color: #C2410C; }
.badge-gray   { background: var(--bg); color: var(--text-2); border: 1px solid var(--border); }

/* ── Dashboard ───────────────────────────────────────────── */
.dash-layout { display: grid; grid-template-columns: 230px 1fr; min-height: calc(100vh - 64px); }
.sidebar { background: var(--white); border-right: 1px solid var(--border); padding: 24px 14px; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto; }
.sidebar-user { background: var(--indigo-l); border-radius: var(--r); padding: 18px; margin-bottom: 24px; text-align: center; }
.sidebar-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--indigo); color: #fff; font-size: 1.2rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 10px; }
.sidebar-uname { font-weight: 700; font-size: .95rem; }
.sidebar-email { font-size: .75rem; color: var(--text-2); margin-top: 2px; }
.sidebar-section { margin-bottom: 24px; }
.sidebar-section-title { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); margin-bottom: 6px; padding: 0 8px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text-2); font-size: .88rem; font-weight: 500; transition: all var(--transition); }
.sidebar a:hover { background: var(--indigo-l); color: var(--indigo); }
.sidebar a.active { background: var(--indigo-l); color: var(--indigo); font-weight: 600; }
.dash-main { padding: 36px; }
.page-title { margin-bottom: 28px; }
.page-title p { margin-top: 6px; font-size: .9rem; }
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 18px; margin-bottom: 28px; }
.stat-card { background: var(--white); border-radius: var(--r); box-shadow: var(--shadow); border: 1px solid var(--border); padding: 22px; }
.stat-icon { font-size: 26px; margin-bottom: 12px; }
.stat-num  { font-size: 2.1rem; font-weight: 800; color: var(--text); line-height: 1; }
.stat-lbl  { font-size: .82rem; color: var(--text-2); margin-top: 5px; }

/* ── Table ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: .87rem; }
thead th { padding: 11px 16px; background: var(--bg); color: var(--text-2); font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; border-bottom: 1px solid var(--border); text-align: left; white-space: nowrap; }
tbody td { padding: 13px 16px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: middle; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: #FAFAFA; }

/* ── Modal ───────────────────────────────────────────────── */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.55); backdrop-filter: blur(4px); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px; opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); width: 100%; max-width: 500px; transform: scale(.95); transition: transform .25s; max-height: 90vh; overflow-y: auto; }
.modal-overlay.open .modal { transform: scale(1); }
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 22px 28px; border-bottom: 1px solid var(--border); }
.modal-body { padding: 28px; }
.modal-close { background: none; border: none; cursor: pointer; font-size: 20px; color: var(--text-3); transition: color var(--transition); line-height: 1; }
.modal-close:hover { color: var(--red); }

/* ── Ticket ──────────────────────────────────────────────── */
.ticket { background: var(--white); border-radius: var(--r-xl); box-shadow: var(--shadow-xl); overflow: hidden; max-width: 460px; margin: 0 auto; }
.ticket-head { background: linear-gradient(135deg, var(--indigo), #6D28D9, var(--cyan)); color: #fff; padding: 30px 32px; }
.ticket-head h2 { color: #fff; font-size: 1.25rem; margin-bottom: 4px; }
.ticket-head p { color: rgba(255,255,255,.8); font-size: .85rem; }
.ticket-dash { height: 0; border-top: 2px dashed var(--border); margin: 0; position: relative; background: var(--bg); }
.ticket-dash::before, .ticket-dash::after { content: ''; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--border); position: absolute; top: 50%; transform: translateY(-50%); }
.ticket-dash::before { left: -12px; }
.ticket-dash::after  { right: -12px; }
.ticket-body { padding: 24px 32px; }
.ticket-row  { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 13px; gap: 12px; }
.ticket-key  { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); flex-shrink: 0; }
.ticket-val  { font-size: .88rem; font-weight: 600; color: var(--text); text-align: right; }
.ticket-qr   { text-align: center; padding: 20px 32px 28px; border-top: 1px solid var(--border); background: var(--bg); }
.ticket-qr img { width: 160px; height: 160px; margin: 0 auto; border-radius: var(--r-sm); border: 3px solid var(--indigo-l); }
.ticket-token { font-family: monospace; font-size: .72rem; color: var(--text-3); margin-top: 10px; word-break: break-all; }

/* ── Scanner ─────────────────────────────────────────────── */
.scanner-box { border: 2px dashed var(--border-2); border-radius: var(--r-lg); padding: 28px; text-align: center; background: var(--bg); }
#qr-video { width: 100%; max-width: 380px; border-radius: var(--r); display: block; margin: 0 auto; background: #000; }
.scan-result { margin-top: 20px; padding: 22px; border-radius: var(--r); display: none; text-align: center; }
.scan-result.show { display: block; }
.scan-success-box { background: var(--green-l); border: 1px solid #BBF7D0; }
.scan-error-box   { background: var(--red-l); border: 1px solid #FECACA; }
.scan-warn-box    { background: var(--orange-l); border: 1px solid #FCD34D; }
.scan-big-icon    { font-size: 48px; margin-bottom: 10px; }

/* ── Loader ──────────────────────────────────────────────── */
.loader-overlay { position: fixed; inset: 0; background: rgba(255,255,255,.8); backdrop-filter: blur(2px); z-index: 9998; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .2s; }
.loader-overlay.show { opacity: 1; pointer-events: all; }
.spinner { width: 42px; height: 42px; border: 4px solid var(--indigo-l); border-top-color: var(--indigo); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Event Detail ────────────────────────────────────────── */
.event-detail-banner { height: 320px; border-radius: var(--r-lg); overflow: hidden; margin-bottom: 28px; display: flex; align-items: center; justify-content: center; font-size: 80px; }
.event-detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; }
.event-sidebar-card  { position: sticky; top: 80px; }
.capacity-bar { height: 7px; background: var(--border); border-radius: 4px; overflow: hidden; margin: 8px 0; }
.capacity-fill { height: 100%; border-radius: 4px; transition: width .4s ease; }

/* ── Form Grid ───────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .form-group.full { grid-column: 1 / -1; }

/* ── Lucky Draw Animation ────────────────────────────────── */
.winner-pop { animation: winnerBounce .6s cubic-bezier(.34,1.56,.64,1); }
@keyframes winnerBounce { 0%{transform:scale(.4);opacity:0} 100%{transform:scale(1);opacity:1} }

/* ── Empty State ─────────────────────────────────────────── */
.empty-state { text-align: center; padding: 60px 24px; }
.empty-icon  { font-size: 52px; margin-bottom: 14px; }
.empty-state h3 { margin-bottom: 8px; }

/* ── Footer ──────────────────────────────────────────────── */
.footer { background: var(--text); color: rgba(255,255,255,.65); padding: 36px 24px 24px; }
.footer-inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 1.1rem; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer small { font-size: .8rem; }

/* ── Utils ───────────────────────────────────────────────── */
.flex { display: flex; } .items-center { align-items: center; } .justify-between { justify-content: space-between; } .flex-wrap { flex-wrap: wrap; } .gap-2{gap:8px} .gap-3{gap:14px}
.mt-1{margin-top:4px}.mt-2{margin-top:8px}.mt-3{margin-top:14px}.mt-4{margin-top:22px}.mt-5{margin-top:32px}
.mb-2{margin-bottom:8px}.mb-3{margin-bottom:14px}.mb-4{margin-bottom:22px}
.text-center{text-align:center} .text-right{text-align:right}
.font-bold{font-weight:700} .font-semibold{font-weight:600}
.text-sm{font-size:.85rem} .text-xs{font-size:.75rem}
.text-gray{color:var(--text-2)} .text-indigo{color:var(--indigo)} .text-green{color:var(--green)} .text-red{color:var(--red)}
.hidden{display:none!important}
.divider{height:1px;background:var(--border);margin:20px 0}

/* ── Responsive ──────────────────────────────────────────── */
@media(max-width:900px) {
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { position:static; height:auto; border-right:none; border-bottom:1px solid var(--border); }
  .event-detail-layout { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .event-sidebar-card { position: static; }
}
@media(max-width:640px) {
  .nav-links { display:none; flex-direction:column; position:absolute; top:64px; left:0; right:0; background:var(--white); padding:14px; border-bottom:1px solid var(--border); box-shadow:var(--shadow-lg); z-index:700; }
  .nav-links.open { display:flex; }
  .nav-toggle { display:flex; }
  .hero { padding:60px 16px 48px; }
  .section { padding:44px 16px; }
  .auth-card { padding:28px 22px; }
  .dash-main { padding:20px 14px; }
  .stats-grid { grid-template-columns:1fr 1fr; }
  .events-grid { grid-template-columns:1fr; }
  .search-bar { flex-direction:column; }
  .ticket-head,.ticket-body,.ticket-qr { padding-left:22px; padding-right:22px; }
}
