/* ─────────────────────────────────────────────────────────────
   style.css  —  EventPortal
   ───────────────────────────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=Instrument+Sans:ital,wght@0,300;0,400;0,500;0,600;1,400&display=swap');

:root {
    --primary:      #b8c8e8;
    --primary-dim:  rgba(184,200,232,0.12);
    --primary-glow: rgba(184,200,232,0.25);
    --secondary:    #3a4558;
    --accent:       #8899b8;
    --background:   #0d1119;
    --surface:      #141b28;
    --surface-2:    #1a2235;
    --text:         #d0dcf0;
    --snow:         #edf2fa;

    --success:      #5ecb8a;
    --danger:       #f07070;
    --warning:      #e8a84a;
    --info:         #5aaae0;

    --card-bg:      rgba(45,58,82,0.18);
    --border:       rgba(100,120,155,0.2);
    --border-soft:  rgba(100,120,155,0.1);
    --border-glow:  rgba(184,200,232,0.35);

    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    18px;
    --radius-xl:    24px;

    /* Aurora palette */
    --aurora-1: rgba(100,140,220,0.08);
    --aurora-2: rgba(160,110,220,0.06);
    --aurora-3: rgba(80,180,200,0.05);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Instrument Sans', 'Segoe UI', system-ui, sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
    overflow-x: hidden;
    /* Subtle grain */
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.028'/%3E%3C/svg%3E");
}

/* Aurora mesh background — lives behind everything */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 80% 60% at 10% 20%,  var(--aurora-1) 0%, transparent 60%),
        radial-gradient(ellipse 60% 80% at 90% 10%,  var(--aurora-2) 0%, transparent 60%),
        radial-gradient(ellipse 70% 50% at 50% 100%, var(--aurora-3) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 80% 70%,  var(--aurora-1) 0%, transparent 50%);
    animation: auroraDrift 20s ease-in-out infinite alternate;
}

h1, h2, h3, .mono {
    font-family: 'Syne', sans-serif;
    font-weight: 700;
    letter-spacing: -.015em;
}

/* ─────────────────────────────────────────────
   KEYFRAMES
   ───────────────────────────────────────────── */
@keyframes auroraDrift {
    0%   { opacity:.7; transform: scale(1)    rotate(0deg); }
    33%  { opacity:1;  transform: scale(1.04) rotate(.5deg); }
    66%  { opacity:.8; transform: scale(.97)  rotate(-.3deg); }
    100% { opacity:.9; transform: scale(1.02) rotate(.2deg); }
}

@keyframes float {
    0%,100% { transform: translateY(0) rotate(0deg); }
    33%      { transform: translateY(-14px) rotate(.5deg); }
    66%      { transform: translateY(-8px)  rotate(-.3deg); }
}

@keyframes glow {
    0%,100% {
        text-shadow:
            0 0 20px rgba(184,200,232,.15),
            0 0 60px rgba(184,200,232,.05);
    }
    50% {
        text-shadow:
            0 0 30px rgba(184,200,232,.4),
            0 0 80px rgba(184,200,232,.15),
            0 0 120px rgba(184,200,232,.05);
    }
}

@keyframes borderGlow {
    0%,100% { box-shadow: 0 0 0 1px rgba(184,200,232,.15), 0 4px 24px rgba(0,0,0,.3); }
    50%      { box-shadow: 0 0 0 1px rgba(184,200,232,.4),  0 8px 32px rgba(0,0,0,.4), 0 0 40px rgba(184,200,232,.06); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes spinReverse {
    to { transform: rotate(-360deg); }
}

@keyframes fall {
    from { transform: translateY(-10vh) translateX(0) rotate(0deg); opacity:.6; }
    to   { transform: translateY(105vh) translateX(60px) rotate(180deg); opacity:.1; }
}

@keyframes fadeUp {
    from { opacity:0; transform:translateY(28px) scale(.98); }
    to   { opacity:1; transform:translateY(0)    scale(1); }
}

@keyframes fadeIn {
    from { opacity:0; }
    to   { opacity:1; }
}

@keyframes pulse {
    0%,100% { opacity:1; transform: scale(1); }
    50%      { opacity:.5; transform: scale(.96); }
}

@keyframes scrollIndicator {
    0%   { top:8px;  opacity:1; }
    100% { top:30px; opacity:0; }
}

@keyframes shimmerSlide {
    0%   { background-position: -300% 0; }
    100% { background-position:  300% 0; }
}

@keyframes ripple {
    0%   { transform: scale(0); opacity:.5; }
    100% { transform: scale(4); opacity:0; }
}

@keyframes orbPulse {
    0%,100% { transform: translate(-50%,-50%) scale(1);    opacity:.6; }
    50%      { transform: translate(-50%,-50%) scale(1.15); opacity:.9; }
}

@keyframes navGlow {
    0%,100% { opacity:.4; }
    50%      { opacity:.9; }
}

@keyframes badgeShine {
    0%   { background-position: -200% center; }
    100% { background-position:  200% center; }
}

@keyframes slideDown {
    from { opacity:0; transform: translateY(-8px); }
    to   { opacity:1; transform: translateY(0); }
}

@keyframes statCount {
    from { opacity:0; transform: translateY(10px); }
    to   { opacity:1; transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   SNOWFLAKES
   ───────────────────────────────────────────── */
.snowflake {
    position: fixed;
    color: var(--snow);
    opacity: .25;
    user-select: none;
    pointer-events: none;
    z-index: 1;
    animation: fall linear forwards;
    filter: blur(.3px);
}

/* ─────────────────────────────────────────────
   LOADER
   ───────────────────────────────────────────── */
#page-loader {
    position: fixed; inset: 0;
    background: var(--background);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; transition: opacity .6s ease;
}
/* Double-ring loader */
.loader {
    position: relative;
    width: 48px; height: 48px;
}
.loader::before, .loader::after {
    content: '';
    position: absolute; inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
}
.loader::before {
    border-top-color: var(--primary);
    border-right-color: rgba(184,200,232,.3);
    animation: spin .9s linear infinite;
}
.loader::after {
    inset: 8px;
    border-bottom-color: var(--accent);
    border-left-color: rgba(136,153,184,.2);
    animation: spinReverse .7s linear infinite;
}

/* ─────────────────────────────────────────────
   PROGRESS BAR
   ───────────────────────────────────────────── */
#progress-bar {
    position: fixed; top: 0; left: 0;
    width: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary), #c8d8f8, var(--primary));
    background-size: 200% 100%;
    animation: shimmerSlide 2s linear infinite;
    z-index: 9000;
    transition: width .2s ease;
    box-shadow: 0 0 10px var(--primary-glow), 0 0 24px rgba(184,200,232,.12);
}

/* ─────────────────────────────────────────────
   NAVBAR
   ───────────────────────────────────────────── */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 200;
    background: rgba(13,17,25,.82);
    backdrop-filter: blur(24px) saturate(1.6);
    -webkit-backdrop-filter: blur(24px) saturate(1.6);
    border-bottom: 1px solid var(--border-soft);
    padding: .8rem 2rem;
    display: flex; align-items: center; justify-content: space-between;
    transition: background .3s;
}
/* Animated glow line under navbar */
.navbar::after {
    content: '';
    position: absolute; bottom: -1px; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    animation: navGlow 4s ease-in-out infinite;
    pointer-events: none;
}

.nav-logo {
    font-family: 'Syne', sans-serif;
    font-size: .9rem;
    font-weight: 800;
    letter-spacing: .2em;
    color: var(--snow);
    text-decoration: none;
    text-transform: uppercase;
    position: relative;
}
.nav-logo span { color: var(--primary); }
.nav-logo::after {
    content: '';
    position: absolute; bottom: -2px; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--primary), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .3s ease;
}
.nav-logo:hover::after { transform: scaleX(1); }

.nav-links { display: flex; align-items: center; gap: .35rem; }
.nav-link {
    background: none;
    border: 1px solid transparent;
    color: var(--accent);
    padding: .34rem .92rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
    font-size: .83rem; font-weight: 500;
    transition: color .18s, border-color .18s, background .18s, box-shadow .18s;
    text-decoration: none;
    display: inline-block;
    position: relative;
}
.nav-link:hover {
    color: var(--snow);
    border-color: var(--border);
    background: rgba(100,120,155,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.nav-link.active {
    color: var(--snow);
    border-color: rgba(184,200,232,.28);
    background: rgba(184,200,232,.07);
    box-shadow: 0 0 12px rgba(184,200,232,.08), inset 0 1px 0 rgba(255,255,255,.06);
}
.nav-link.primary {
    background: var(--primary);
    color: var(--background);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 2px 12px rgba(184,200,232,.2);
}
.nav-link.primary:hover {
    background: var(--snow);
    box-shadow: 0 4px 20px rgba(184,200,232,.35);
    transform: translateY(-1px);
}

.nav-role {
    font-size: .6rem; padding: .1rem .4rem;
    border-radius: 4px; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    margin-left: .28rem;
}
.role-superadmin { background:rgba(240,112,112,.15); color:#f07070; border: 1px solid rgba(240,112,112,.25); }
.role-headAdmin  { background:rgba(232,168,74,.15);  color:#e8a84a; border: 1px solid rgba(232,168,74,.25); }
.role-admin      { background:rgba(90,170,224,.15);  color:#5aaae0; border: 1px solid rgba(90,170,224,.25); }
.role-user       { background:rgba(94,203,138,.15);  color:#5ecb8a; border: 1px solid rgba(94,203,138,.25); }

/* ─────────────────────────────────────────────
   HERO
   ───────────────────────────────────────────── */
.hero {
    min-height: 100vh;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; padding: 2rem;
    position: relative; z-index: 2;
    isolation: isolate;
    overflow: hidden;
}

/* Large glowing orbs */
.hero::before, .hero::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.hero::before {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(100,140,220,.12) 0%, transparent 70%);
    top: -100px; left: -100px;
    animation: orbPulse 8s ease-in-out infinite;
}
.hero::after {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(160,110,220,.08) 0%, transparent 70%);
    bottom: -80px; right: -80px;
    animation: orbPulse 10s ease-in-out infinite reverse;
}

.hero-title {
    font-size: 3.8rem;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    color: var(--snow);
    letter-spacing: -.025em;
    line-height: 1.04;
    animation: glow 5s ease-in-out infinite;
    position: relative;
}

/* Gradient text accent on a word via a span if desired */
.hero-title .accent-word {
    background: linear-gradient(135deg, var(--primary) 0%, #c8d8f8 50%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--accent);
    margin: 1.7rem 0 2.8rem;
    max-width: 520px;
    font-weight: 400;
    line-height: 1.78;
    position: relative;
}

/* ─────────────────────────────────────────────
   PAGE WRAPPER
   ───────────────────────────────────────────── */
.page-wrap {
    max-width: 1120px; margin: 0 auto;
    padding: 6rem 2rem 3rem;
    position: relative; z-index: 2;
}
.page-wrap.narrow { max-width: 720px; }
.page-wrap.xs     { max-width: 480px; }

/* ─────────────────────────────────────────────
   BUTTONS
   ───────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; gap: .45rem;
    padding: .65rem 1.65rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
    font-size: .9rem; font-weight: 600;
    letter-spacing: .01em;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    text-decoration: none;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Ripple on click */
.btn::after {
    content: '';
    position: absolute; inset: 50%;
    background: rgba(255,255,255,.18);
    border-radius: 50%;
    transform: scale(0);
    opacity: 0;
}
.btn:active::after {
    animation: ripple .5s ease-out forwards;
}

/* Shimmer sweep on hover */
.btn::before {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%);
    background-size: 200% 100%;
    background-position: -200% 0;
    transition: background-position .4s ease;
}
.btn:hover::before { background-position: 200% 0; }

.btn-primary {
    background: var(--primary);
    color: var(--background);
    border-color: var(--primary);
    box-shadow: 0 2px 16px rgba(184,200,232,.2), 0 1px 3px rgba(0,0,0,.3);
}
.btn-primary:hover {
    background: var(--snow);
    border-color: var(--snow);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(184,200,232,.3), 0 2px 8px rgba(0,0,0,.3);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
    background: transparent;
    border-color: var(--border);
    color: var(--text);
}
.btn-outline:hover {
    border-color: var(--primary);
    color: var(--snow);
    background: var(--primary-dim);
    box-shadow: 0 0 16px rgba(184,200,232,.1);
}

.btn-danger {
    background: rgba(240,112,112,.1);
    border-color: rgba(240,112,112,.35);
    color: #f07070;
}
.btn-danger:hover {
    background: #f07070; color: #fff;
    box-shadow: 0 4px 20px rgba(240,112,112,.25);
    transform: translateY(-1px);
}

.btn-success {
    background: rgba(94,203,138,.1);
    border-color: rgba(94,203,138,.35);
    color: #5ecb8a;
}
.btn-success:hover {
    background: #5ecb8a; color: var(--background);
    box-shadow: 0 4px 20px rgba(94,203,138,.25);
    transform: translateY(-1px);
}

.btn-sm   { padding: .38rem 1rem;  font-size: .8rem; }
.btn-xs   { padding: .2rem  .65rem; font-size: .72rem; }
.btn-block { width: 100%; justify-content: center; }

/* ─────────────────────────────────────────────
   CARDS
   ───────────────────────────────────────────── */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    backdrop-filter: blur(12px) saturate(1.3);
    -webkit-backdrop-filter: blur(12px) saturate(1.3);
    transition: border-color .25s, box-shadow .25s, transform .25s;
    position: relative;
    isolation: isolate;
}

/* Shimmer line at top of card on hover */
.card::before {
    content: '';
    position: absolute; top: 0; left: 10%; right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0;
    transition: opacity .3s;
    border-radius: 1px;
}
.card:hover::before { opacity: 1; }

.card:hover {
    border-color: rgba(184,200,232,.28);
    transform: translateY(-4px);
    box-shadow:
        0 20px 48px rgba(0,0,0,.35),
        0 4px 12px rgba(0,0,0,.2),
        0 0 0 1px rgba(184,200,232,.06) inset;
}

.card-sm   { padding: 1.15rem 1.4rem; }
.card-flat { transform: none !important; box-shadow: none !important; }
.card-flat::before { display: none; }

/* Feature card */
.feature-card {
    background: rgba(40,54,78,.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 2.2rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: all .25s cubic-bezier(.4,0,.2,1);
    display: flex; flex-direction: column; align-items: center; gap: .85rem;
    text-decoration: none; cursor: pointer;
    position: relative; isolation: isolate;
    overflow: hidden;
}
.feature-card::after {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--primary-dim) 0%, transparent 70%);
    opacity: 0; transition: opacity .3s;
}
.feature-card:hover { transform: translateY(-5px); border-color: var(--border-glow); }
.feature-card:hover::after { opacity: 1; }
.feature-card:hover {
    box-shadow: 0 16px 40px rgba(0,0,0,.3), 0 0 0 1px rgba(184,200,232,.1) inset;
}
.feature-icon  { font-size: 1.9rem; margin-bottom: .75rem; position: relative; z-index: 1; }
.feature-card h3 { color: var(--snow); font-size: 1.3rem; margin: 0; position: relative; z-index: 1; }
.feature-card p  { color: var(--accent); margin: .4rem 0 1.2rem; text-align: center; font-size: .9rem; position: relative; z-index: 1; }

/* ─────────────────────────────────────────────
   FORM ELEMENTS
   ───────────────────────────────────────────── */
.form-group  { margin-bottom: 1.35rem; }
.form-label  {
    display: block;
    font-size: .73rem; color: var(--primary);
    margin-bottom: .4rem; letter-spacing: .06em;
    text-transform: uppercase; font-weight: 600;
}
.form-control {
    width: 100%;
    background: rgba(40,54,78,.22);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: .7rem 1rem;
    color: var(--snow);
    font-family: 'Instrument Sans', sans-serif;
    font-size: .93rem;
    transition: border-color .2s, background .2s, box-shadow .2s;
}
.form-control:focus {
    outline: none;
    border-color: rgba(184,200,232,.5);
    background: rgba(40,54,78,.35);
    box-shadow: 0 0 0 3px rgba(184,200,232,.07), 0 0 16px rgba(184,200,232,.06);
}
.form-control::placeholder { color: rgba(136,153,184,.5); }
select.form-control option { background: var(--surface); }
textarea.form-control { resize: vertical; min-height: 80px; }
.form-row  { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-hint { font-size: .74rem; color: var(--accent); margin-top: .28rem; }
.form-check {
    display: flex; align-items: center; gap: .55rem;
    cursor: pointer; margin: .3rem 0;
}
.form-check input { accent-color: var(--primary); width: 15px; height: 15px; }

/* ─────────────────────────────────────────────
   AUTH BOX
   ───────────────────────────────────────────── */
.auth-box {
    max-width: 420px; margin: 0 auto;
    padding-top: 5.5rem;
    animation: fadeUp .4s cubic-bezier(.4,0,.2,1);
}
.auth-divider {
    display: flex; align-items: center; gap: 1rem;
    margin: 1.4rem 0; color: var(--accent); font-size: .82rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.google-btn {
    width: 100%;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--border);
    color: var(--snow);
    padding: .76rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
    font-size: .92rem; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: .65rem;
    transition: all .2s;
}
.google-btn:hover {
    background: rgba(255,255,255,.09);
    border-color: rgba(184,200,232,.3);
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
}

/* ─────────────────────────────────────────────
   STATS CARDS
   ───────────────────────────────────────────── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px,1fr));
    gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
    background: rgba(40,54,78,.2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.3rem 1.5rem;
    transition: border-color .2s, transform .2s, box-shadow .2s;
    animation: statCount .5s ease both;
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0; transition: opacity .25s;
}
.stat-card:hover {
    border-color: rgba(184,200,232,.28);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.stat-card:hover::before { opacity: 1; }

.stat-num {
    font-family: 'Syne', sans-serif;
    font-size: 2.1rem; font-weight: 800;
    color: var(--snow); line-height: 1;
    letter-spacing: -.02em;
}
.stat-label {
    font-size: .7rem; color: var(--accent);
    text-transform: uppercase; letter-spacing: .08em;
    margin-top: .38rem; font-weight: 600;
}

/* ─────────────────────────────────────────────
   TABS
   ───────────────────────────────────────────── */
.tabs {
    display: flex; gap: 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
}
.tab {
    background: none; border: none;
    border-bottom: 2px solid transparent;
    color: var(--accent); cursor: pointer;
    font-family: 'Instrument Sans', sans-serif;
    font-size: .87rem; font-weight: 500;
    padding: .62rem 1.2rem; margin-bottom: -1px;
    transition: color .18s, border-color .18s;
    position: relative;
}
.tab::after {
    content: '';
    position: absolute; bottom: -1px; left: 20%; right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
    opacity: 0; transition: opacity .2s;
}
.tab:hover   { color: var(--text); }
.tab.active  { color: var(--snow); border-bottom-color: var(--primary); }
.tab.active::after { opacity: 1; }
.tab-pane    { display: none; }
.tab-pane.active { display: block; animation: fadeIn .2s ease; }

/* ─────────────────────────────────────────────
   TABLES
   ───────────────────────────────────────────── */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: 0 4px 24px rgba(0,0,0,.2);
}
table  { width: 100%; border-collapse: collapse; }
th {
    background: rgba(40,54,78,.3);
    padding: .78rem 1.1rem; text-align: left;
    font-size: .7rem; text-transform: uppercase; letter-spacing: .07em;
    color: var(--primary);
    font-family: 'Instrument Sans', sans-serif; font-weight: 600;
    white-space: nowrap;
}
td {
    padding: .8rem 1.1rem;
    border-top: 1px solid var(--border-soft);
    font-size: .88rem; vertical-align: middle;
    transition: background .14s;
}
tr:hover td { background: rgba(40,54,78,.15); }

/* ─────────────────────────────────────────────
   BADGES
   ───────────────────────────────────────────── */
.badge {
    display: inline-block;
    padding: .14rem .6rem;
    border-radius: 4px;
    font-size: .66rem; font-weight: 700;
    letter-spacing: .05em; text-transform: uppercase;
    position: relative; overflow: hidden;
}
/* Subtle shine sweep */
.badge::after {
    content: '';
    position: absolute; top: 0; left: -100%; width: 60%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.15), transparent);
    animation: badgeShine 3s ease infinite;
}
.badge-success { background:rgba(94,203,138,.12);  color:#5ecb8a;  border:1px solid rgba(94,203,138,.25); }
.badge-warning { background:rgba(232,168,74,.12);  color:#e8a84a;  border:1px solid rgba(232,168,74,.25); }
.badge-danger  { background:rgba(240,112,112,.12); color:#f07070;  border:1px solid rgba(240,112,112,.25); }
.badge-info    { background:rgba(90,170,224,.12);  color:#5aaae0;  border:1px solid rgba(90,170,224,.25); }
.badge-muted   { background:rgba(100,120,155,.12); color:var(--accent); border:1px solid var(--border); }
.badge-draft   { background:rgba(40,54,78,.3);     color:var(--text);   border:1px solid var(--border); }
.badge-open    { background:rgba(94,203,138,.12);  color:#5ecb8a;  border:1px solid rgba(94,203,138,.25); }
.badge-closed  { background:rgba(240,112,112,.12); color:#f07070;  border:1px solid rgba(240,112,112,.25); }

/* ─────────────────────────────────────────────
   ALERTS
   ───────────────────────────────────────────── */
.alert {
    padding: .85rem 1.15rem;
    border-radius: var(--radius-sm);
    font-size: .87rem; margin-bottom: 1rem;
    border-left-width: 3px; border-left-style: solid;
    animation: fadeUp .25s ease;
}
.alert-success { background:rgba(94,203,138,.07);  border-color: rgba(94,203,138,.6);  color:#5ecb8a; border-top: 1px solid rgba(94,203,138,.15); border-right: 1px solid rgba(94,203,138,.15); border-bottom: 1px solid rgba(94,203,138,.15); }
.alert-danger  { background:rgba(240,112,112,.07); border-color: rgba(240,112,112,.6); color:#f07070; border-top: 1px solid rgba(240,112,112,.15); border-right: 1px solid rgba(240,112,112,.15); border-bottom: 1px solid rgba(240,112,112,.15); }
.alert-info    { background:rgba(90,170,224,.07);  border-color: rgba(90,170,224,.6);  color:#5aaae0; border-top: 1px solid rgba(90,170,224,.15); border-right: 1px solid rgba(90,170,224,.15); border-bottom: 1px solid rgba(90,170,224,.15); }
.alert-warning { background:rgba(232,168,74,.07);  border-color: rgba(232,168,74,.6);  color:#e8a84a; border-top: 1px solid rgba(232,168,74,.15); border-right: 1px solid rgba(232,168,74,.15); border-bottom: 1px solid rgba(232,168,74,.15); }

/* ─────────────────────────────────────────────
   MODAL
   ───────────────────────────────────────────── */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(5,8,16,.75);
    backdrop-filter: blur(8px) saturate(1.2);
    -webkit-backdrop-filter: blur(8px) saturate(1.2);
    z-index: 500; display: none;
    align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; animation: fadeIn .2s ease; }
.modal {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2rem; max-width: 600px;
    width: 100%; max-height: 92vh; overflow-y: auto;
    animation: fadeUp .28s cubic-bezier(.4,0,.2,1);
    box-shadow:
        0 0 0 1px rgba(184,200,232,.06) inset,
        0 32px 80px rgba(0,0,0,.5),
        0 8px 24px rgba(0,0,0,.3);
    position: relative;
}
.modal::before {
    content: '';
    position: absolute; top: 0; left: 15%; right: 15%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,200,232,.4), transparent);
    border-radius: 1px;
}
.modal-header {
    display: flex; align-items: center;
    justify-content: space-between; margin-bottom: 1.5rem;
}
.modal-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.05rem; font-weight: 700; color: var(--snow);
}
.modal-close {
    background: rgba(100,120,155,.1); border: 1px solid var(--border);
    color: var(--accent); cursor: pointer; font-size: 1.2rem; line-height: 1;
    width: 30px; height: 30px; border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    transition: all .18s;
}
.modal-close:hover {
    background: rgba(240,112,112,.1);
    border-color: rgba(240,112,112,.3);
    color: #f07070;
}

/* ─────────────────────────────────────────────
   EVENT GRID
   ───────────────────────────────────────────── */
.event-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px,1fr));
    gap: 1.4rem;
}
.event-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all .25s cubic-bezier(.4,0,.2,1);
    cursor: pointer;
    position: relative;
}
.event-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% -10%, var(--primary-dim) 0%, transparent 60%);
    opacity: 0; transition: opacity .3s;
    pointer-events: none; z-index: 1;
}
.event-card:hover {
    border-color: rgba(184,200,232,.3);
    transform: translateY(-5px) scale(1.005);
    box-shadow:
        0 24px 56px rgba(0,0,0,.38),
        0 4px 16px rgba(0,0,0,.2),
        0 0 0 1px rgba(184,200,232,.08) inset;
}
.event-card:hover::before { opacity: 1; }

.event-banner {
    height: 125px;
    background: linear-gradient(135deg, #182032, #243350);
    display: flex; align-items: center; justify-content: center;
    position: relative; overflow: hidden;
}
.event-banner::after {
    content: '';
    position: absolute; inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(13,17,25,.6) 100%);
}
.event-banner-bg {
    font-family: 'Syne', sans-serif;
    font-size: 2.6rem; font-weight: 800;
    color: rgba(255,255,255,.045);
    letter-spacing: .14em; text-transform: uppercase;
    user-select: none;
}
.event-date-tag {
    position: absolute; top: 10px; right: 10px; z-index: 2;
    background: rgba(13,17,25,.85);
    border: 1px solid var(--border);
    border-radius: 5px; padding: .22rem .55rem;
    font-size: .69rem; color: var(--primary);
    font-weight: 500; backdrop-filter: blur(4px);
}
.event-status-tag { position: absolute; top: 10px; left: 10px; z-index: 2; }
.event-body  { padding: 1.2rem; position: relative; z-index: 2; }
.event-title {
    font-family: 'Syne', sans-serif;
    font-size: .92rem; font-weight: 700;
    color: var(--snow); margin-bottom: .35rem;
}
.event-meta  { font-size: .79rem; color: var(--accent); margin-bottom: .9rem; }
.event-footer {
    display: flex; align-items: center;
    justify-content: space-between; flex-wrap: wrap; gap: .5rem;
}

/* ─────────────────────────────────────────────
   REGISTRATION WIZARD
   ───────────────────────────────────────────── */
.step-bar {
    display: flex; gap: 0;
    margin-bottom: 2.5rem; position: relative;
}
.step-bar::before {
    content: ''; position: absolute; top: 12px; left: 14px; right: 14px;
    height: 1px;
    background: linear-gradient(90deg, var(--primary-glow), var(--border), var(--border));
    z-index: 0;
}
.step-item {
    display: flex; flex-direction: column; align-items: center; gap: .3rem;
    flex: 1; position: relative; z-index: 1;
}
.step-circle {
    width: 26px; height: 26px; border-radius: 50%;
    background: var(--surface); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 700; color: var(--accent);
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.step-item.done  .step-circle,
.step-item.active .step-circle {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--background);
    box-shadow: 0 0 0 4px rgba(184,200,232,.15), 0 0 16px rgba(184,200,232,.2);
}
.step-label {
    font-size: .64rem; color: var(--accent); text-align: center;
    font-weight: 500; letter-spacing: .04em; text-transform: uppercase;
}
.step-item.active .step-label { color: var(--primary); }

.option-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(185px,1fr));
    gap: .9rem;
}
.option-card {
    background: rgba(40,54,78,.14);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.1rem; cursor: pointer;
    transition: all .2s cubic-bezier(.4,0,.2,1);
    position: relative; overflow: hidden;
}
.option-card::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 0%, var(--primary-dim) 0%, transparent 70%);
    opacity: 0; transition: opacity .25s;
}
.option-card:hover    { border-color: var(--accent); }
.option-card:hover::before { opacity: 1; }
.option-card.selected {
    border-color: var(--primary);
    background: rgba(184,200,232,.07);
    box-shadow: 0 0 0 3px rgba(184,200,232,.1), 0 4px 16px rgba(0,0,0,.2);
}
.option-check {
    position: absolute; top: .5rem; right: .5rem;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--primary); display: none;
    align-items: center; justify-content: center;
    font-size: .6rem; color: var(--background);
    box-shadow: 0 0 8px rgba(184,200,232,.4);
}
.option-card.selected .option-check { display: flex; }
.option-name  { font-weight: 600; color: var(--snow); font-size: .9rem; position: relative; }
.option-desc  { font-size: .76rem; color: var(--accent); margin-top: .2rem; position: relative; }
.option-price {
    font-family: 'Syne', sans-serif;
    color: var(--primary); font-size: .87rem;
    margin-top: .38rem; font-weight: 700; position: relative;
}

/* ─────────────────────────────────────────────
   ATTENDEES
   ───────────────────────────────────────────── */
.attendee-item {
    display: flex; align-items: center; gap: .85rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--border-soft);
    transition: padding-left .18s;
}
.attendee-item:hover { padding-left: .4rem; }
.attendee-avatar {
    width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--secondary), var(--accent));
    display: flex; align-items: center; justify-content: center;
    font-size: .68rem; font-weight: 700; color: var(--snow);
    border: 1px solid var(--border);
    box-shadow: 0 0 8px rgba(184,200,232,.08);
    transition: box-shadow .2s;
}
.attendee-item:hover .attendee-avatar {
    box-shadow: 0 0 14px rgba(184,200,232,.2);
}
.attendee-name { font-weight: 500; color: var(--snow); font-size: .86rem; }
.attendee-nick { font-size: .74rem; color: var(--accent); }

/* ─────────────────────────────────────────────
   ADMIN EDITOR
   ───────────────────────────────────────────── */
.ticket-row, .addon-row {
    display: flex; align-items: flex-start; gap: .75rem;
    padding: .95rem; background: rgba(40,54,78,.14);
    border: 1px solid var(--border); border-radius: var(--radius-sm);
    margin-bottom: .7rem;
    transition: border-color .18s;
}
.ticket-row:hover, .addon-row:hover { border-color: rgba(184,200,232,.2); }
.ticket-row input, .addon-row input { flex: 1; }

/* ─────────────────────────────────────────────
   SEC HEADER
   ───────────────────────────────────────────── */
.sec-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 1.75rem; flex-wrap: wrap; gap: 1rem;
}
.sec-title {
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem; font-weight: 700; color: var(--snow);
    position: relative; display: inline-block;
}
.sec-title::after {
    content: '';
    position: absolute; bottom: -4px; left: 0;
    width: 32px; height: 2px;
    background: linear-gradient(90deg, var(--primary), transparent);
    border-radius: 1px;
}

/* ─────────────────────────────────────────────
   DROPDOWN
   ───────────────────────────────────────────── */
.dropdown { position: relative; display: inline-block; }
.dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: .35rem; min-width: 172px;
    z-index: 300; display: none;
    box-shadow:
        0 16px 40px rgba(0,0,0,.4),
        0 4px 12px rgba(0,0,0,.2),
        0 0 0 1px rgba(184,200,232,.04) inset;
}
.dropdown.open .dropdown-menu { display: block; animation: slideDown .18s ease; }
.dropdown-item {
    display: block; width: 100%; background: none; border: none;
    color: var(--text); padding: .54rem .88rem; border-radius: var(--radius-sm);
    cursor: pointer; font-family: 'Instrument Sans', sans-serif;
    font-size: .84rem; text-align: left;
    transition: background .14s, color .14s, padding-left .14s;
    text-decoration: none;
}
.dropdown-item:hover {
    background: rgba(40,54,78,.5); color: var(--snow);
    padding-left: 1.1rem;
}
.dropdown-item.danger { color: var(--danger); }
.dropdown-item.danger:hover { background: rgba(240,112,112,.1); }

/* ─────────────────────────────────────────────
   UTILITIES
   ───────────────────────────────────────────── */
.floating { animation: float 7s ease-in-out infinite; }
.glowing  { animation: glow  4s ease-in-out infinite; }
.fade-up  { animation: fadeUp .4s cubic-bezier(.4,0,.2,1) forwards; }

/* Staggered fade-up for lists */
.fade-up:nth-child(1) { animation-delay: .05s; }
.fade-up:nth-child(2) { animation-delay: .1s; }
.fade-up:nth-child(3) { animation-delay: .15s; }
.fade-up:nth-child(4) { animation-delay: .2s; }
.fade-up:nth-child(5) { animation-delay: .25s; }

/* Pulsing dot indicator */
.pulse-dot {
    display: inline-block;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 rgba(94,203,138,.4);
    animation: pulse 2s infinite;
}

.text-muted   { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-snow    { color: var(--snow); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-gradient {
    background: linear-gradient(135deg, var(--snow) 0%, var(--primary) 60%, var(--accent) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.w-100 { width: 100%; }

.mt-05{margin-top:.25rem;}.mt-1{margin-top:.5rem;}.mt-2{margin-top:1rem;}
.mt-3{margin-top:1.5rem;}.mt-4{margin-top:2rem;}
.mb-1{margin-bottom:.5rem;}.mb-2{margin-bottom:1rem;}.mb-3{margin-bottom:1.5rem;}

.flex        { display:flex; }
.flex-center { display:flex; align-items:center; }
.flex-between{ display:flex; align-items:center; justify-content:space-between; }
.flex-wrap   { flex-wrap:wrap; }
.gap-1{gap:.5rem;}.gap-2{gap:1rem;}.gap-3{gap:1.5rem;}

.divider {
    border: none; border-top: 1px solid var(--border);
    margin: 1.4rem 0; position: relative;
}
.divider::after {
    content: '';
    position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
    width: 60px; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-glow), transparent);
}

.scrollable { max-height: 360px; overflow-y: auto; padding-right: .3rem; }
.scrollable::-webkit-scrollbar { width: 3px; }
.scrollable::-webkit-scrollbar-track { background: transparent; }
.scrollable::-webkit-scrollbar-thumb {
    background: var(--secondary); border-radius: 3px;
    transition: background .2s;
}
.scrollable::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.tag {
    display: inline-block;
    background: rgba(100,120,155,.1);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: .1rem .48rem;
    font-size: .68rem; color: var(--accent);
    font-weight: 500; letter-spacing: .04em;
    transition: border-color .18s, color .18s;
}
.tag:hover { border-color: rgba(184,200,232,.3); color: var(--primary); }

.empty-state {
    text-align: center; padding: 3.8rem 2rem; color: var(--accent);
}
.empty-state h3 { color: var(--text); margin-bottom: .5rem; font-family: 'Syne', sans-serif; }

/* Glowing card variant */
.card-glow {
    border-color: rgba(184,200,232,.2);
    box-shadow: 0 0 0 1px rgba(184,200,232,.06) inset, 0 0 40px rgba(184,200,232,.04);
    animation: borderGlow 5s ease-in-out infinite;
}

/* ─────────────────────────────────────────────
   EMAIL PREVIEW
   ───────────────────────────────────────────── */
.email-preview {
    background: rgba(40,54,78,.1);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    font-size: .86rem; line-height: 1.88;
    white-space: pre-wrap;
    position: relative;
}
.email-preview::before {
    content: '';
    position: absolute; top: 0; left: 0; bottom: 0; width: 3px;
    background: linear-gradient(180deg, var(--primary), transparent);
    border-radius: 3px 0 0 3px;
}

/* ─────────────────────────────────────────────
   SCROLL INDICATOR
   ───────────────────────────────────────────── */
.scroll-indicator {
    position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
    width: 26px; height: 44px;
    border: 1px solid rgba(184,200,232,.25);
    border-radius: 13px; cursor: pointer;
    box-shadow: 0 0 12px rgba(184,200,232,.08);
}
.scroll-indicator::before {
    content: ''; position: absolute; top: 8px; left: 50%;
    width: 5px; height: 5px;
    background: var(--primary);
    border-radius: 50%; transform: translateX(-50%);
    animation: scrollIndicator 2s ease-in-out infinite;
    box-shadow: 0 0 6px var(--primary);
}

/* ─────────────────────────────────────────────
   FOOTER
   ───────────────────────────────────────────── */
footer {
    background: rgba(10,14,22,.95);
    text-align: center; padding: 2rem;
    position: relative; z-index: 2;
    border-top: 1px solid var(--border-soft);
    margin-top: 4rem;
}
footer::before {
    content: '';
    position: absolute; top: -1px; left: 20%; right: 20%; height: 1px;
    background: linear-gradient(90deg, transparent, rgba(184,200,232,.25), transparent);
}
footer p { color: var(--accent); font-size: .8rem; }

/* ─────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero-title      { font-size: 2.3rem; }
    .hero::before    { width: 300px; height: 300px; }
    .hero::after     { width: 250px; height: 250px; }
    .page-wrap       { padding: 5rem 1.2rem 2rem; }
    .form-row        { grid-template-columns: 1fr; }
    .event-grid      { grid-template-columns: 1fr; }
    .option-grid     { grid-template-columns: 1fr 1fr; }
    .navbar          { padding: .65rem 1rem; }
    .stats-grid      { grid-template-columns: 1fr 1fr; }
    table th, table td { padding: .58rem .75rem; }
}
@media (max-width: 480px) {
    .option-grid  { grid-template-columns: 1fr; }
    .stats-grid   { grid-template-columns: 1fr 1fr; }
    .modal        { padding: 1.4rem; border-radius: var(--radius-lg); }
    .hero-title   { font-size: 1.85rem; letter-spacing: -.015em; }
    body::before  { display: none; } /* perf on small screens */
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
    }
}
