
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: light;
  --bg: #f7f8fc;
  --surface: #ffffff;
  --surface-soft: #f0f2f9;
  --text: #17182b;
  --muted: #74778d;
  --border: #e7e8f0;
  --primary: #6558e8;
  --primary-hover: #5145d0;
  --primary-soft: #eeecff;
  --green: #168b68;
  --shadow: 0 18px 55px rgba(35, 32, 83, 0.08);
  --card-shadow: 0 7px 28px rgba(35, 32, 83, 0.055);
  --radius: 22px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #10111b;
  --surface: #191a29;
  --surface-soft: #222337;
  --text: #f4f3ff;
  --muted: #a3a5bc;
  --border: #303149;
  --primary: #9a90ff;
  --primary-hover: #b3acff;
  --primary-soft: #302b52;
  --green: #70d6b1;
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.25);
  --card-shadow: 0 7px 28px rgba(0, 0, 0, 0.17);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  transition: background .25s ease, color .25s ease;
}

body, input, select, button { font-family: "DM Sans", sans-serif; }
button, input, select { font-size: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
}
[hidden] { display: none !important; }

.container { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.section-padding { padding: 100px 0; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: "Manrope", sans-serif; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.15; margin-bottom: 14px; }
.gradient-text { color: var(--primary); }
.section-kicker {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}
.section-description { color: var(--muted); margin-bottom: 0; }

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.navbar { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 24px "Manrope", sans-serif; letter-spacing: -1.3px; }
.brand-mark {
  display: grid; place-items: center; width: 35px; height: 35px;
  border-radius: 12px; color: white; background: linear-gradient(145deg, #8c80ff, #5a4bd6);
  font-size: 23px; line-height: 1;
}
.brand-period { color: var(--primary); }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-link { color: var(--muted); font-size: 13px; font-weight: 600; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 13px; }
.theme-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--border); border-radius: 50%;
  background: var(--surface); color: var(--text); font-size: 20px;
  transition: transform .2s, background .2s;
}
.theme-toggle:hover { transform: rotate(-10deg); background: var(--surface-soft); }
.mobile-menu-button { display: none; }
.button {
  min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  padding: 0 22px; border: 1px solid transparent; border-radius: 13px;
  font-weight: 700; font-size: 13px; transition: transform .2s, background .2s, box-shadow .2s;
}
.button:hover { transform: translateY(-2px); }
.button-primary {
  color: #fff; background: linear-gradient(135deg, #7669f4, #5d50d9);
  box-shadow: 0 8px 18px rgba(101, 88, 232, .19);
}
.button-primary:hover { background: linear-gradient(135deg, #695ce8, #4f43ca); box-shadow: 0 11px 23px rgba(101, 88, 232, .25); }
.button-secondary { background: var(--surface); color: var(--text); border-color: var(--border); }
.button-secondary:hover, .button-quiet:hover { border-color: var(--primary); }
.button-small { min-height: 41px; padding: 0 17px; font-size: 12px; }
.button-quiet { background: var(--surface-soft); color: var(--muted); border-color: var(--border); }
.button-full { width: 100%; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 78px 0 86px; }
.hero-layout { position: relative; display: grid; grid-template-columns: 1.03fr .97fr; align-items: center; gap: 50px; }
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 24px;
  color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .13em;
}
.eyebrow-dot, .live-dot, .results-dot {
  width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #36c99a;
}
.hero h1 { margin-bottom: 22px; font-size: clamp(3.4rem, 6.1vw, 5.6rem); font-weight: 800; line-height: .99; letter-spacing: -.075em; }
.hero h1 .gradient-text { background: linear-gradient(100deg, #8174ff, #5c4bd9 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-description { max-width: 460px; margin-bottom: 29px; color: var(--muted); font-size: 16px; line-height: 1.85; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { display: flex; align-items: center; gap: 13px; margin-top: 36px; }
.proof-avatars { display: flex; padding-left: 5px; }
.proof-avatars span {
  display: grid; place-items: center; width: 34px; height: 34px; margin-left: -5px;
  border: 3px solid var(--bg); border-radius: 50%; background: #e8e4ff; color: #5549b8; font-size: 14px;
}
.proof-avatars span:nth-child(2) { background: #fbe5cf; color: #9e6027; }
.proof-avatars span:nth-child(3) { background: #d9f3e8; color: #23785c; }
.hero-proof p { margin: 0; font-size: 11px; line-height: 1.55; }
.hero-proof strong { font-weight: 700; }
.hero-proof p span { color: var(--muted); }
.hero-glow { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; }
.hero-glow-one { width: 370px; height: 370px; top: -180px; left: -130px; background: radial-gradient(circle, rgba(125, 110, 255, .11), transparent 70%); }
.hero-glow-two { width: 430px; height: 430px; right: -130px; bottom: -220px; background: radial-gradient(circle, rgba(179, 141, 255, .15), transparent 70%); }

/* Hero artwork */
.hero-visual { position: relative; min-width: 0; padding: 18px 12px 28px 18px; }
.visual-card-main {
  position: relative; overflow: hidden; padding: 22px; border: 1px solid rgba(255,255,255,.65);
  border-radius: 27px; background: linear-gradient(145deg, #e7e3ff, #f4e9ff 48%, #d8e8ff);
  box-shadow: 0 30px 75px rgba(85, 70, 165, .18); transform: rotate(1.2deg);
}
.visual-topline { display: flex; align-items: center; justify-content: space-between; color: #55517b; }
.visual-tag { display: inline-flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 99px; background: rgba(255,255,255,.64); font-size: 9px; font-weight: 800; letter-spacing: .1em; }
.visual-sparkle { color: #7661d9; font-size: 25px; }
.visual-art { position: relative; height: 255px; overflow: hidden; margin-top: 12px; border-radius: 19px; background: linear-gradient(145deg, #c8c2ff, #f0c7e7 53%, #ffcfae); }
.art-orbit { position: absolute; left: 50%; top: 52%; border: 1px solid rgba(255,255,255,.68); border-radius: 50%; transform: translate(-50%, -50%) rotate(-25deg); }
.orbit-one { width: 300px; height: 160px; }
.orbit-two { width: 250px; height: 220px; transform: translate(-50%, -50%) rotate(35deg); }
.art-sun { position: absolute; top: 25px; right: 57px; width: 80px; height: 80px; border-radius: 50%; background: linear-gradient(135deg, #ffe5a6, #ff9eac); box-shadow: 0 0 40px rgba(255,255,255,.45); }
.art-shape { position: absolute; bottom: -50px; border-radius: 48% 48% 12% 12%; }
.art-shape-one { left: 20px; width: 145px; height: 205px; background: linear-gradient(140deg, #7770e5, #5046b5); transform: rotate(18deg); }
.art-shape-two { left: 118px; bottom: -75px; width: 170px; height: 245px; background: linear-gradient(150deg, #a29aff, #7663cb); transform: rotate(-13deg); }
.art-shape-three { right: 14px; bottom: -95px; width: 145px; height: 200px; background: linear-gradient(145deg, #f5a8bd, #d775a5); transform: rotate(22deg); }
.art-star { position: absolute; z-index: 2; color: white; }
.star-one { top: 45px; left: 54px; font-size: 25px; }
.star-two { top: 118px; right: 49px; font-size: 22px; }
.visual-caption { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding: 20px 2px 0; color: #30294e; }
.caption-kicker { font-size: 9px; font-weight: 800; letter-spacing: .1em; opacity: .7; }
.visual-caption h3 { margin: 8px 0 0; font-size: 23px; line-height: 1.25; }
.caption-arrow { display: grid; place-items: center; width: 43px; height: 43px; flex: 0 0 auto; border-radius: 50%; background: #fff; font-size: 20px; }
.floating-note { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 12px 15px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface); box-shadow: var(--shadow); }
.floating-note-top { top: 0; right: -8px; }
.floating-note-bottom { left: -12px; bottom: 0; }
.floating-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #e3f7ef; color: #218e68; font-size: 17px; }
.floating-icon-purple { background: var(--primary-soft); color: var(--primary); }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 11px; }
.floating-note small { color: var(--muted); font-size: 9px; }

/* Events and filters */
.events-section { background: var(--surface-soft); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 25px; margin-bottom: 35px; }
.section-heading h2 { margin-bottom: 10px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; color: var(--primary); font-size: 12px; font-weight: 800; }
.text-link:hover { gap: 15px; }
.filter-panel { padding: 17px; border: 1px solid var(--border); border-radius: 20px; background: var(--surface); box-shadow: var(--card-shadow); }
.search-field { display: flex; align-items: center; gap: 12px; padding: 0 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg); }
.field-icon { color: var(--muted); font-size: 27px; line-height: 1; }
.search-field input { width: 100%; height: 48px; border: 0; outline: none; background: transparent; color: var(--text); font-size: 13px; }
.filter-fields { display: grid; grid-template-columns: 1fr 1fr 1fr auto; align-items: end; gap: 12px; margin-top: 13px; }
.filter-control { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.filter-control > span { color: var(--muted); font-size: 10px; font-weight: 700; }
.filter-control select, .filter-control input {
  width: 100%; height: 43px; min-width: 0; padding: 0 11px;
  border: 1px solid var(--border); border-radius: 10px; outline: none;
  background: var(--surface); color: var(--text); font-size: 12px;
}
.filter-control select:focus, .filter-control input:focus { border-color: var(--primary); }
.filter-fields .button { min-height: 43px; padding-inline: 13px; font-size: 11px; white-space: nowrap; }
.results-line { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 27px 0 17px; }
.results-line p { margin: 0; font-size: 13px; font-weight: 800; }
.results-note { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 10px; }
.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.event-card { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 19px; background: var(--surface); box-shadow: var(--card-shadow); transition: transform .23s, box-shadow .23s, border-color .23s; }
.event-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); box-shadow: var(--shadow); }
.event-art { position: relative; display: grid; place-items: center; height: 165px; overflow: hidden; background: linear-gradient(135deg, #dedaff, #f6dced); }
.event-art::before, .event-art::after { position: absolute; content: ""; border: 1px solid rgba(255,255,255,.55); border-radius: 50%; }
.event-art::before { width: 220px; height: 220px; transform: translate(-15%, 23%); }
.event-art::after { width: 160px; height: 160px; transform: translate(40%, -22%); }
.event-art-symbol { position: relative; z-index: 1; display: grid; place-items: center; width: 90px; height: 90px; border: 1px solid rgba(255,255,255,.65); border-radius: 28px; background: rgba(255,255,255,.55); color: #5a4bb8; font-size: 42px; box-shadow: 0 12px 30px rgba(75,62,150,.11); transform: rotate(-7deg); }
.event-art-tag { position: absolute; z-index: 2; top: 13px; left: 13px; padding: 6px 10px; border: 1px solid rgba(255,255,255,.6); border-radius: 99px; background: rgba(255,255,255,.8); color: #4c457d; font-size: 9px; font-weight: 800; }
.event-card-body { padding: 19px; }
.event-meta-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.category-pill { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 99px; background: var(--primary-soft); color: var(--primary); font-size: 9px; font-weight: 800; }
.event-price { color: var(--green); font-size: 11px; font-weight: 800; }
.event-card h3 { min-height: 48px; margin-bottom: 9px; font-size: 17px; line-height: 1.4; letter-spacing: -.035em; }
.event-description { display: -webkit-box; overflow: hidden; min-height: 42px; margin-bottom: 16px; color: var(--muted); font-size: 11px; line-height: 1.7; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.event-info { display: grid; gap: 7px; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.event-info-row { display: flex; align-items: center; gap: 9px; color: var(--muted); font-size: 10px; }
.event-info-icon { display: grid; place-items: center; width: 24px; height: 24px; flex: 0 0 auto; border-radius: 8px; background: var(--surface-soft); color: var(--primary); font-size: 12px; }
.event-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 15px; }
.event-card-footer span { color: var(--muted); font-size: 10px; }
.event-details-button { border: 0; background: transparent; color: var(--primary); font-size: 11px; font-weight: 800; }
.event-details-button:hover { text-decoration: underline; }
.empty-state { padding: 60px 20px; text-align: center; }
.empty-icon { display: inline-grid; place-items: center; width: 58px; height: 58px; margin-bottom: 13px; border-radius: 18px; background: var(--primary-soft); color: var(--primary); font-size: 32px; }
.empty-state h3 { margin-bottom: 6px; font-size: 22px; }
.empty-state p { margin-bottom: 20px; color: var(--muted); font-size: 13px; }

/* About */
.about-panel { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 75px; }
.about-art { position: relative; display: grid; place-items: center; min-height: 330px; overflow: hidden; border-radius: 28px; background: linear-gradient(145deg, #e4dfff, #f6dff0 55%, #f9e5cb); }
.about-orbit { position: absolute; width: 240px; height: 240px; border: 1px solid rgba(255,255,255,.8); border-radius: 50%; }
.about-orbit-one { transform: scaleX(1.4) rotate(30deg); }
.about-orbit-two { transform: scaleX(.65) rotate(-30deg); }
.about-symbol { display: grid; place-items: center; width: 150px; height: 150px; border: 1px solid rgba(255,255,255,.8); border-radius: 42px; background: linear-gradient(145deg, #9689ff, #5d4bd4); box-shadow: 0 25px 45px rgba(92,73,190,.25); color: white; font: 800 82px "Manrope", sans-serif; letter-spacing: -10px; padding-right: 12px; transform: rotate(-9deg); }
.about-spark { position: absolute; color: white; }
.about-spark-one { top: 45px; right: 65px; font-size: 35px; }
.about-spark-two { left: 48px; bottom: 45px; font-size: 28px; }
.about-copy h2 { margin-bottom: 18px; }
.about-copy p { max-width: 460px; margin-bottom: 25px; color: var(--muted); line-height: 1.9; }

/* Account */
.account-section { background: var(--surface-soft); }
.account-section > .container { display: grid; grid-template-columns: .8fr 1.2fr; align-items: start; gap: 80px; }
.account-heading { padding-top: 35px; }
.account-heading h2 { margin-bottom: 17px; }
.account-heading p { max-width: 370px; color: var(--muted); line-height: 1.8; }
.account-card { padding: 28px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: var(--shadow); }
.account-card-top { display: flex; align-items: center; gap: 13px; padding-bottom: 22px; border-bottom: 1px solid var(--border); }
.account-icon { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: linear-gradient(135deg, #8c80ff, #5a4bd6); color: white; font: 800 27px "Manrope", sans-serif; }
.account-card-top h3 { margin: 0 0 3px; font-size: 16px; letter-spacing: -.03em; }
.account-card-top p { margin: 0; color: var(--muted); font-size: 11px; }
.auth-message { margin: 15px 0 0; font-size: 12px; font-weight: 600; }
.auth-forms { display: grid; grid-template-columns: 1fr 25px 1fr; gap: 17px; padding-top: 20px; }
.auth-form { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.auth-form h3 { margin-bottom: 15px; font-size: 16px; }
.auth-form label { margin: 0 0 6px; color: var(--muted); font-size: 10px; font-weight: 700; }
.auth-form input { width: 100%; height: 43px; margin-bottom: 13px; padding: 0 11px; border: 1px solid var(--border); border-radius: 10px; outline: none; background: var(--bg); color: var(--text); font-size: 11px; }
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 13%, transparent); }
.auth-form input::placeholder { color: var(--muted); opacity: .8; }
.auth-form .button { margin-top: 5px; }
.form-divider { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 9px; font-weight: 800; }
.form-divider span { padding: 8px; border-radius: 99px; background: var(--surface-soft); }
.account-footnote { margin: 22px 0 0; color: var(--muted); font-size: 10px; text-align: center; }
.signed-in-panel { padding: 28px 5px 10px; text-align: center; }
.signed-in-check { display: inline-grid; place-items: center; width: 55px; height: 55px; margin-bottom: 10px; border-radius: 50%; background: color-mix(in srgb, var(--green) 15%, transparent); color: var(--green); font-size: 25px; }
.signed-in-panel h3 { margin-bottom: 6px; font-size: 23px; }
.signed-in-panel p { color: var(--muted); font-size: 12px; }
.signed-in-panel .button { max-width: 240px; margin: 10px auto; }

/* Final call to action and footer */
.final-cta { padding: 55px 0; background: linear-gradient(115deg, #6558e8, #806be8 55%, #a180df); color: white; }
.final-cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.final-cta .section-kicker { color: #e3deff; }
.final-cta h2 { max-width: 650px; margin-bottom: 0; font-size: clamp(1.8rem, 3.5vw, 2.7rem); }
.final-cta h2 span { color: #e7dcff; }
.button-light { background: white; color: #5145c3; white-space: nowrap; }
.button-light:hover { background: #f3f0ff; }
.site-footer { padding: 25px 0; border-top: 1px solid var(--border); background: var(--surface); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-size: 20px; }
.footer-brand .brand-mark { width: 30px; height: 30px; border-radius: 10px; font-size: 19px; }
.footer-inner p, .footer-copyright { margin: 0; color: var(--muted); font-size: 10px; }

/* Event details dialog */
.event-dialog { position: relative; width: min(510px, calc(100% - 30px)); max-height: 85vh; overflow-y: auto; padding: 30px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.event-dialog::backdrop { background: rgba(13, 13, 29, .6); backdrop-filter: blur(5px); }
.dialog-close { position: sticky; top: 0; float: right; display: grid; place-items: center; width: 35px; height: 35px; border: 1px solid var(--border); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 23px; }
.dialog-art { display: grid; place-items: center; height: 135px; margin-bottom: 20px; border-radius: 15px; background: linear-gradient(135deg, #dedaff, #f6dced); color: #6254cb; font-size: 53px; }
.event-dialog h2 { margin: 13px 0 10px; font-size: 27px; }
.event-dialog p { color: var(--muted); font-size: 13px; line-height: 1.8; }
.dialog-details { display: grid; gap: 9px; margin: 18px 0; padding: 15px; border-radius: 13px; background: var(--surface-soft); font-size: 12px; }
.dialog-details strong { color: var(--text); }

/* Responsive */
@media (max-width: 1000px) {
  .nav-links { gap: 18px; }
  .hero-layout { gap: 25px; }
  .hero h1 { font-size: clamp(3.2rem, 7vw, 4.6rem); }
  .filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .event-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .account-section > .container { gap: 35px; }
  .auth-forms { grid-template-columns: 1fr; }
  .form-divider { display: none; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 32px, 560px); }
  .section-padding { padding: 70px 0; }
  .navbar { min-height: 68px; gap: 12px; }
  .brand { font-size: 22px; }
  .mobile-menu-button { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; margin-left: auto; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
  .mobile-menu-button span { display: block; width: 17px; height: 2px; margin-inline: auto; border-radius: 3px; background: var(--text); }
  .nav-links { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 10px 20px 16px; border-bottom: 1px solid var(--border); background: var(--surface); box-shadow: var(--shadow); }
  .nav-links.open { display: flex; }
  .nav-link { padding: 12px 4px; }
  .nav-actions { gap: 8px; }
  .nav-actions .button { display: none; }
  .theme-toggle { width: 39px; height: 39px; }
  .hero { padding: 55px 0 65px; }
  .hero-layout { grid-template-columns: 1fr; gap: 25px; }
  .hero h1 { font-size: clamp(3.35rem, 13vw, 4.8rem); }
  .hero-description { font-size: 14px; }
  .hero-visual { width: min(100%, 480px); margin: 0 auto; padding: 15px 8px 25px; }
  .visual-card-main { padding: 15px; border-radius: 22px; }
  .visual-art { height: 220px; }
  .floating-note-top { right: -1px; }
  .floating-note-bottom { left: -2px; }
  .section-heading { align-items: start; flex-direction: column; gap: 15px; margin-bottom: 25px; }
  .filter-panel { padding: 12px; }
  .filter-fields { grid-template-columns: 1fr 1fr; gap: 10px; }
  .filter-fields .button { align-self: end; }
  .event-grid { grid-template-columns: 1fr; gap: 16px; }
  .event-art { height: 185px; }
  .event-card h3 { min-height: auto; }
  .event-description { min-height: auto; }
  .about-panel { grid-template-columns: 1fr; gap: 30px; }
  .about-art { min-height: 260px; }
  .account-section > .container { grid-template-columns: 1fr; gap: 25px; }
  .account-heading { padding-top: 0; }
  .account-card { padding: 20px; }
  .auth-forms { grid-template-columns: 1fr; gap: 25px; }
  .final-cta-inner { align-items: start; flex-direction: column; }
  .footer-inner { flex-wrap: wrap; }
  .footer-inner p { order: 3; width: 100%; }
}
@media (max-width: 390px) {
  .container { width: calc(100% - 24px); }
  .brand { gap: 7px; font-size: 20px; }
  .brand-mark { width: 31px; height: 31px; }
  .eyebrow { font-size: 8px; }
  .hero h1 { font-size: 3.2rem; }
  .hero-actions .button { padding-inline: 15px; }
  .filter-fields { grid-template-columns: 1fr; }
  .results-note { display: none; }
  .floating-note { padding: 9px; }
  .floating-note small { font-size: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}


/* Standalone Gather authentication page */
.auth-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}

.auth-page-main {
  width: min(1160px, calc(100% - 48px));
  min-height: calc(100vh - 160px);
  margin: 0 auto;
  padding: 65px 0 80px;
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  align-items: center;
  gap: 65px;
}

.auth-page-intro {
  position: relative;
  min-width: 0;
}

.auth-page-intro h1 {
  margin: 0 0 18px;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  line-height: 1.06;
  letter-spacing: -.065em;
}

.auth-page-intro > p {
  max-width: 390px;
  color: var(--muted);
  line-height: 1.9;
}

.auth-benefits {
  display: grid;
  gap: 14px;
  margin-top: 28px;
}

.auth-benefits > div {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 12px;
}

.benefit-check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  font-weight: 800;
}

.auth-decoration {
  position: relative;
  display: grid;
  place-items: center;
  width: 190px;
  height: 190px;
  margin: 40px 0 0 20px;
  border-radius: 50%;
  background: linear-gradient(145deg, #e7e2ff, #f7e1f1);
}

.auth-decoration-orbit {
  position: absolute;
  width: 145px;
  height: 185px;
  border: 1px solid rgba(125, 105, 220, .3);
  border-radius: 50%;
}

.orbit-a { transform: rotate(40deg); }
.orbit-b { transform: rotate(-40deg); }

.auth-decoration-symbol {
  display: grid;
  place-items: center;
  width: 90px;
  height: 90px;
  border-radius: 27px;
  background: linear-gradient(145deg, #9184ff, #5a4bd6);
  box-shadow: 0 15px 30px rgba(85, 70, 165, .2);
  color: white;
  font: 800 48px "Manrope", sans-serif;
  transform: rotate(-8deg);
}

.auth-decoration-star {
  position: absolute;
  top: 20px;
  right: 16px;
  color: #6558e8;
  font-size: 27px;
}

.auth-standalone-section {
  min-width: 0;
  padding: 0;
  background: transparent;
}

.auth-standalone-section .account-card {
  width: 100%;
  padding: 30px;
}

.auth-standalone-section .auth-forms {
  grid-template-columns: minmax(0, 1fr) 25px minmax(0, 1fr);
}

.auth-standalone-section .auth-form h3 {
  font-size: 15px;
}

.auth-standalone-section .account-card-top h2 {
  margin: 0 0 3px;
  font-size: 17px;
  letter-spacing: -.03em;
}

.auth-back-link {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
}

.auth-back-link a {
  color: var(--primary);
  font-weight: 700;
}

.auth-back-link a:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .auth-page-main {
    grid-template-columns: 1fr;
    max-width: 620px;
    gap: 35px;
    padding-top: 45px;
  }

  .auth-page-intro { text-align: center; }
  .auth-page-intro > p { margin-inline: auto; }
  .auth-benefits { width: fit-content; margin-inline: auto; text-align: left; }
  .auth-decoration { display: none; }
}

@media (max-width: 720px) {
  .auth-page-main {
    width: calc(100% - 32px);
    padding: 35px 0 55px;
  }

  .auth-page-intro h1 { font-size: clamp(2.7rem, 11vw, 3.6rem); }
  .auth-standalone-section .account-card { padding: 20px; }
  .auth-standalone-section .auth-forms { grid-template-columns: 1fr; gap: 25px; }
  .auth-standalone-section .form-divider { display: flex; }
  .auth-nav-links { gap: 12px; }
}


/* Event registration feedback */
.registration-success,
.registration-error {
  margin: 12px 0;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.registration-success {
  color: #16804a;
  background: #e8f7ee;
}

.registration-error {
  color: #b42318;
  background: #fff0ee;
}

#dialog-register-button:disabled {
  opacity: 0.7;
  cursor: wait;
}


/* Gather profile and registration page */
.profile-main {
  width: min(1000px, calc(100% - 40px));
  min-height: 70vh;
  margin: 0 auto;
  padding: 64px 0 80px;
}

.profile-heading {
  margin-bottom: 32px;
}

.profile-heading h1 {
  margin: 8px 0;
  font-size: clamp(2.5rem, 6vw, 4rem);
  letter-spacing: -0.06em;
}

.profile-heading > p,
.profile-user-details > p,
.registration-card-content > p {
  color: var(--muted);
  line-height: 1.7;
}

.profile-account-card {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 24px;
  margin-bottom: 54px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.profile-user-icon {
  display: grid;
  place-items: center;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  border-radius: 18px;
  color: white;
  background: linear-gradient(135deg, #9184ff, #5a4bd6);
  font-size: 28px;
  font-weight: 800;
}

.profile-user-details {
  flex: 1;
  min-width: 0;
}

.profile-user-details h2 {
  margin: 0 0 4px;
  overflow-wrap: anywhere;
}

.profile-user-details p {
  margin: 3px 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.profile-registrations {
  min-width: 0;
}

.profile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.profile-section-heading h2 {
  margin: 6px 0 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  letter-spacing: -0.04em;
}

.profile-message {
  color: var(--muted);
  line-height: 1.7;
}

.registrations-list {
  display: grid;
  gap: 16px;
}

.registration-card {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.registration-card-content h3 {
  margin: 12px 0 6px;
  overflow-wrap: anywhere;
}

.registration-card-content > p {
  margin: 0 0 14px;
  font-size: 13px;
}

.registration-status {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}

.status-confirmed {
  color: #16804a;
  background: #e8f7ee;
}

.status-cancelled {
  color: #a33a32;
  background: #fff0ee;
}

@media (max-width: 600px) {
  .profile-main {
    width: calc(100% - 32px);
    padding: 40px 0 56px;
  }

  .profile-account-card {
    align-items: flex-start;
    flex-wrap: wrap;
    padding: 18px;
  }

  .profile-user-details {
    flex-basis: calc(100% - 80px);
  }

  .profile-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}


/* Registration cancellation */
.cancel-registration-button {
  margin-top: 16px;
}

.cancel-registration-button:disabled {
  opacity: 0.65;
  cursor: wait;
}


/* Event poster images from private S3 storage */
.event-art:has(.event-poster-image) {
  display: block;
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  padding: 0;
  background: var(--surface-soft);
}

/* Remove decorative rings when an uploaded poster is displayed */
.event-art:has(.event-poster-image)::before,
.event-art:has(.event-poster-image)::after {
  display: none;
}

/* Display the complete poster without stretching or cropping */
.event-art .event-poster-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: inherit;
}

/* Responsive poster height for mobile screens */
@media (max-width: 720px) {
  .event-art:has(.event-poster-image) {
    height: 240px;
  }
}


/* Keep posters inside the View Details dialog */
.dialog-art {
  position: relative;
  width: 100%;
  height: 180px;
  margin-bottom: 20px;
  overflow: hidden;
  border-radius: 15px;
  background: var(--surface-soft);
}


/* View Details popup poster container */
.dialog-art {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: auto;
  min-height: 100px;
  max-height: 45vh;
  margin: 0 0 20px;
  padding: 0;
  overflow: hidden;
  border-radius: 15px;
  background: var(--surface-soft);
}

/* Show the full poster without cropping */
.dialog-art img,
.dialog-art .event-poster-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  max-height: 45vh;
  object-fit: contain;
  object-position: center;
  border-radius: 15px;
}

/* Keep event details visible inside the popup */
.event-dialog {
  width: min(510px, calc(100% - 30px));
  max-height: 85vh;
  overflow-x: hidden;
  overflow-y: auto;
  box-sizing: border-box;
}

/* Fix poster display on event cards */
.event-art:has(img),
.event-art:has(.event-poster-image) {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 100%;
  height: 220px;
  padding: 0;
  overflow: hidden;
  background: #f3f1fa;
}

/* Remove decorative background circles behind the poster */
.event-art:has(img)::before,
.event-art:has(img)::after,
.event-art:has(.event-poster-image)::before,
.event-art:has(.event-poster-image)::after {
  display: none;
}

/* Display the complete poster inside the card */
.event-art img,
.event-art .event-poster-image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  margin: 0;
  padding: 0;
}

/* Keep the poster label visible */
.event-art .event-art-tag {
  z-index: 2;
}

/* Event card poster container */
.event-art:has(.event-poster-image) {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 220px;
  padding: 0;
  overflow: hidden;
  box-sizing: border-box;
  background: #f3f1fa !important;
}


/* Event card poster: remove top and bottom gaps */
.event-art:has(.event-poster-image) {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  padding: 0;
  margin: 0;
  overflow: hidden;
  line-height: 0;
  box-sizing: border-box;
  background: #080808 !important;
  border-radius: 18px 18px 0 0;
}

/* Remove decorative background circles */
.event-art:has(.event-poster-image)::before,
.event-art:has(.event-poster-image)::after {
  display: none;
}

/* Show the full poster with no extra vertical space */
.event-art .event-poster-image {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  margin: 0;
  padding: 0;
  object-fit: contain;
  object-position: center;
  vertical-align: top;
}

/* Keep category label over the image */
.event-art .event-art-tag {
  position: absolute;
  z-index: 2;
  top: 13px;
  left: 13px;
  line-height: normal;
}

/* Signed-in account dashboard */
.signed-in-panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.signed-in-panel[hidden] {
  display: none !important;
}

.signed-in-title {
  margin: 0;
  text-align: center;
}

.signed-in-description {
  margin: 0 0 6px;
  text-align: center;
  overflow-wrap: anywhere;
}

.signed-in-actions,
.dashboard-shortcut-links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.signed-in-panel .button {
  box-sizing: border-box;
  min-height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
}

.dashboard-shortcuts {
  margin-top: 8px;
  padding: 18px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  background: var(--card-secondary-bg, rgba(127, 127, 127, 0.04));
}

.dashboard-shortcuts h4 {
  margin: 0 0 6px;
}

.dashboard-shortcuts > p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.8;
}

.organizer-request-section {
  margin-top: 8px;
  padding: 20px;
  border: 1px solid var(--border-color, #e5e7eb);
  border-radius: 16px;
  background: var(--card-secondary-bg, rgba(127, 127, 127, 0.04));
}

.organizer-request-section hr {
  display: none;
}

.organizer-request-heading .section-kicker {
  display: inline-block;
  margin-bottom: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.organizer-request-heading h3 {
  margin: 0 0 8px;
}

.organizer-request-heading p {
  margin: 0 0 18px;
  font-size: 0.92rem;
  line-height: 1.6;
  opacity: 0.85;
}

.organizer-request-section .auth-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.organizer-request-section textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--border-color, #d1d5db);
  border-radius: 10px;
  background: var(--input-bg, transparent);
  color: inherit;
  font: inherit;
  line-height: 1.5;
  resize: vertical;
}

.organizer-request-section textarea:focus {
  outline: 2px solid var(--primary-color, #7c3aed);
  outline-offset: 2px;
}

.organizer-request-section .auth-message:empty {
  display: none;
}

@media (max-width: 480px) {
  .dashboard-shortcuts,
  .organizer-request-section {
    padding: 15px;
  }
}

/* Center the success tick inside its circle */
.signed-in-check {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  min-width: 52px;
  box-sizing: border-box;
  margin: 0 auto 8px;
  padding: 0;
  line-height: 1;
  text-align: center;
}


/* ===== Gather dark theme: consistent borders ===== */

:root[data-theme="dark"] {
  --border: #303149;
  --border-color: #303149;
  --surface: #191a29;
  --surface-soft: #222337;
  --input-background: #191a29;
  --card-background: #191a29;
}

/* Account and authentication cards */
:root[data-theme="dark"] .auth-card,
:root[data-theme="dark"] .auth-panel,
:root[data-theme="dark"] .auth-box,
:root[data-theme="dark"] .auth-section {
  border-color: var(--border);
}

/* Organizer and admin dashboard panels */
:root[data-theme="dark"] .admin-panel,
:root[data-theme="dark"] .organizer-panel,
:root[data-theme="dark"] .pending-event-card,
:root[data-theme="dark"] .organizer-request-card,
:root[data-theme="dark"] .organizer-event-card {
  border-color: var(--border);
}

/* Form fields */
:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  border-color: var(--border);
}

/* Secondary buttons */
:root[data-theme="dark"] .admin-secondary-button,
:root[data-theme="dark"] .organizer-secondary-button,
:root[data-theme="dark"] .theme-toggle {
  border-color: var(--border);
}

/* Remove bright white borders from nested account sections */
:root[data-theme="dark"] .auth-card section,
:root[data-theme="dark"] .auth-panel section {
  border-color: var(--border);
}
