:root {
    --ink: #17142d;
    --ink-soft: #5e5a74;
    --paper: #fbfaf7;
    --surface: #ffffff;
    --surface-soft: #f1effa;
    --line: #e6e2ef;
    --violet: #6750e8;
    --violet-dark: #4937be;
    --coral: #ff7657;
    --mint: #9de2ca;
    --success: #157a55;
    --error: #b42318;
    --warning: #a15c00;
    --shadow-sm: 0 10px 30px rgba(31, 23, 69, 0.08);
    --shadow-lg: 0 28px 80px rgba(31, 23, 69, 0.16);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --content: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: "DM Sans", Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: radial-gradient(rgba(103, 80, 232, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
    content: "";
    pointer-events: none;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    left: 18px;
    top: -100px;
    z-index: 1000;
    padding: 11px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    text-decoration: none;
}

.skip-link:focus { top: 18px; }

:focus-visible {
    outline: 3px solid var(--coral);
    outline-offset: 3px;
}

h1, h2, h3, .brand {
    font-family: "Manrope", Arial, sans-serif;
    line-height: 1.12;
}

h1, h2, h3, p { margin-top: 0; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(230, 226, 239, 0.78);
    background: rgba(251, 250, 247, 0.9);
    backdrop-filter: blur(18px);
}

.nav-shell {
    width: var(--content);
    min-height: 78px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    font-size: 1.25rem;
    font-weight: 800;
    text-decoration: none;
    letter-spacing: -0.04em;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px 12px 12px 4px;
    background: var(--violet);
    color: white;
    font-size: 1rem;
    box-shadow: 0 8px 18px rgba(103, 80, 232, 0.25);
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.primary-nav > a,
.nav-link-button,
.nav-user {
    border: 0;
    background: transparent;
    color: var(--ink-soft);
    font-size: 0.94rem;
    font-weight: 600;
    text-decoration: none;
}

.primary-nav > a,
.nav-link-button { padding: 10px 12px; border-radius: 10px; }
.primary-nav > a:hover,
.primary-nav > a.active,
.nav-link-button:hover { background: var(--surface-soft); color: var(--ink); }
.nav-user { padding: 0 6px 0 12px; }
.nav-form { margin: 0; }

.menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
}

.menu-toggle > span:not(.sr-only) {
    display: block;
    width: 20px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    background: var(--ink);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: var(--violet);
    color: white !important;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    box-shadow: 0 10px 22px rgba(103, 80, 232, 0.2);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover { transform: translateY(-2px); background: var(--violet-dark); box-shadow: 0 14px 28px rgba(103, 80, 232, 0.26); }
.button-small { min-height: 40px; padding: 9px 14px !important; }
.button-secondary { border-color: var(--line); background: var(--surface); color: var(--ink) !important; box-shadow: none; }
.button-secondary:hover { background: var(--surface-soft); }
.button-danger { background: #fff2f0; color: var(--error) !important; box-shadow: none; }
.button-danger:hover { background: #ffe6e1; }
.button-compact { min-height: 36px; padding: 8px 12px; border-radius: 10px; font-size: 0.86rem; }
.button[aria-disabled="true"], .button:disabled { opacity: 0.52; pointer-events: none; }

.hero {
    position: relative;
    overflow: hidden;
    background: var(--ink);
    color: white;
}

.hero::before,
.hero::after {
    position: absolute;
    border-radius: 999px;
    content: "";
    filter: blur(2px);
}

.hero::before {
    width: 460px;
    height: 460px;
    right: -120px;
    top: -180px;
    background: rgba(103, 80, 232, 0.7);
}

.hero::after {
    width: 260px;
    height: 260px;
    right: 28%;
    bottom: -190px;
    background: rgba(255, 118, 87, 0.6);
}

.hero-grid {
    position: relative;
    z-index: 1;
    width: var(--content);
    min-height: 590px;
    margin: 0 auto;
    padding: 90px 0 82px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
    align-items: center;
    gap: 72px;
}

.eyebrow {
    margin-bottom: 18px;
    color: var(--violet);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hero .eyebrow { color: var(--mint); }
.hero h1 { max-width: 720px; margin-bottom: 24px; font-size: clamp(3.2rem, 7vw, 6.7rem); letter-spacing: -0.075em; }
.hero-copy > p:not(.eyebrow) { max-width: 620px; margin-bottom: 32px; color: #dcd8ee; font-size: 1.16rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .button-secondary { border-color: rgba(255,255,255,0.22); background: rgba(255,255,255,0.08); color: white !important; }
.hero .button-secondary:hover { background: rgba(255,255,255,0.16); }

.hero-visual {
    position: relative;
    min-height: 450px;
}

.hero-photo {
    position: absolute;
    inset: 0 0 46px 54px;
    overflow: hidden;
    border-radius: 120px 24px 120px 24px;
    box-shadow: var(--shadow-lg);
}

.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-stat {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 210px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 18px;
    background: rgba(255,255,255,0.94);
    color: var(--ink);
    box-shadow: var(--shadow-lg);
}

.hero-stat strong { display: block; font-family: "Manrope", sans-serif; font-size: 2rem; line-height: 1; }
.hero-stat span { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.88rem; }

.content-section { width: var(--content); margin: 0 auto; padding: 88px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.section-heading h2 { max-width: 690px; margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.6rem); letter-spacing: -0.055em; }
.section-heading p { max-width: 480px; margin-bottom: 4px; color: var(--ink-soft); }

.search-panel {
    margin: -42px auto 0;
    position: relative;
    z-index: 3;
    width: var(--content);
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.search-form { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(170px, 0.36fr) auto; gap: 12px; align-items: end; }
.field label, .label { display: block; margin-bottom: 7px; color: var(--ink); font-size: 0.83rem; font-weight: 700; }

input, select, textarea {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #d8d3e2;
    border-radius: 12px;
    background: var(--surface);
    color: var(--ink);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

textarea { min-height: 140px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(103,80,232,0.12); outline: 0; }
.input-hint { display: block; margin-top: 6px; color: var(--ink-soft); font-size: 0.78rem; }
.input-error { border-color: var(--error); }

.event-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.event-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 8px 28px rgba(31,23,69,0.06); transition: transform 180ms ease, box-shadow 180ms ease; }
.event-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-sm); }
.event-image { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-soft); }
.event-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 400ms ease; }
.event-card:hover .event-image img { transform: scale(1.04); }
.event-badge { position: absolute; top: 14px; left: 14px; padding: 7px 10px; border-radius: 999px; background: rgba(23,20,45,0.86); color: white; font-size: 0.75rem; font-weight: 700; backdrop-filter: blur(8px); }
.event-body { padding: 22px; }
.event-kicker { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; color: var(--violet); font-size: 0.76rem; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; }
.event-body h3 { margin-bottom: 12px; font-size: 1.35rem; letter-spacing: -0.035em; }
.event-body h3 a { text-decoration: none; }
.event-body h3 a:hover { color: var(--violet); }
.event-meta { display: grid; gap: 8px; margin: 0 0 18px; padding: 0; list-style: none; color: var(--ink-soft); font-size: 0.91rem; }
.event-meta li { display: flex; align-items: flex-start; gap: 9px; }
.meta-icon { width: 20px; color: var(--violet); font-weight: 800; }
.event-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.event-price { font-family: "Manrope", sans-serif; font-weight: 800; }
.text-link { color: var(--violet); font-weight: 700; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }

.empty-state { grid-column: 1 / -1; padding: 70px 28px; border: 1px dashed #cfc9dd; border-radius: var(--radius-md); background: rgba(255,255,255,0.58); text-align: center; }
.empty-state h3 { margin-bottom: 8px; font-size: 1.5rem; }
.empty-state p { color: var(--ink-soft); }

.value-strip { background: var(--mint); }
.value-grid { width: var(--content); margin: 0 auto; padding: 64px 0; display: grid; grid-template-columns: 1.25fr repeat(3, 1fr); gap: 34px; align-items: start; }
.value-grid h2 { margin-bottom: 0; font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.05em; }
.value-item { padding-left: 18px; border-left: 2px solid rgba(23,20,45,0.2); }
.value-item strong { display: block; margin-bottom: 6px; font-family: "Manrope", sans-serif; }
.value-item p { margin-bottom: 0; color: #3b544b; font-size: 0.9rem; }

.page-hero { width: var(--content); margin: 0 auto; padding: 76px 0 34px; }
.page-hero h1 { max-width: 820px; margin-bottom: 14px; font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -0.065em; }
.page-hero p { max-width: 700px; color: var(--ink-soft); font-size: 1.06rem; }

.detail-layout { width: var(--content); margin: 0 auto; padding: 30px 0 90px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr); gap: 38px; align-items: start; }
.detail-image { overflow: hidden; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); background: var(--surface-soft); box-shadow: var(--shadow-sm); }
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-copy { padding: 34px 0 0; }
.detail-copy h2 { font-size: 1.7rem; letter-spacing: -0.035em; }
.detail-copy p { color: var(--ink-soft); }
.info-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; margin: 28px 0; }
.info-card { padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.info-card span { display: block; color: var(--ink-soft); font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.info-card strong { display: block; margin-top: 4px; }

.booking-card { position: sticky; top: 106px; padding: 26px; border-radius: var(--radius-md); background: var(--ink); color: white; box-shadow: var(--shadow-lg); }
.booking-card h2 { margin-bottom: 8px; font-size: 1.55rem; }
.booking-price { margin: 22px 0; font-family: "Manrope", sans-serif; font-size: 2.35rem; font-weight: 800; }
.booking-card .muted { color: #cfcbe0; }
.availability { margin: 20px 0; }
.availability-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 7px; font-size: 0.82rem; }
.availability-bar { height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,0.16); }
.availability-bar span { display: block; height: 100%; border-radius: inherit; background: var(--coral); }
.booking-card .button { width: 100%; background: var(--coral); box-shadow: none; }
.booking-card .button:hover { background: #ec5f40; }
.coursework-note { margin: 16px 0 0; color: #bbb6d0; font-size: 0.76rem; text-align: center; }

.form-page { width: var(--content); margin: 0 auto; padding: 74px 0 100px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(420px, 1.2fr); gap: 74px; align-items: center; }
.form-intro h1 { margin-bottom: 18px; font-size: clamp(2.6rem, 5vw, 5.2rem); letter-spacing: -0.07em; }
.form-intro p { color: var(--ink-soft); font-size: 1.05rem; }
.form-points { margin: 30px 0 0; padding: 0; list-style: none; }
.form-points li { position: relative; padding: 10px 0 10px 34px; font-weight: 600; }
.form-points li::before { position: absolute; left: 0; top: 12px; display: grid; width: 22px; height: 22px; place-items: center; border-radius: 50%; background: var(--mint); color: var(--ink); content: "✓"; font-size: 0.75rem; }
.form-card { padding: 34px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
.form-card h2 { margin-bottom: 6px; font-size: 1.8rem; }
.form-card > p { color: var(--ink-soft); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.form-error { margin-bottom: 20px; padding: 14px 16px; border-left: 4px solid var(--error); border-radius: 8px; background: #fff2f0; color: var(--error); }
.form-success { border-left-color: var(--success); background: #ecfbf5; color: var(--success); }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; }
.checkbox-row input { flex: 0 0 auto; width: 18px; min-height: 18px; margin-top: 3px; }
.checkbox-row label { font-size: 0.9rem; }

.dashboard-shell { width: var(--content); margin: 0 auto; padding: 62px 0 100px; }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.dashboard-head h1 { margin-bottom: 6px; font-size: clamp(2.4rem, 5vw, 4.5rem); letter-spacing: -0.06em; }
.dashboard-head p { margin-bottom: 0; color: var(--ink-soft); }
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; margin: 28px 0 34px; }
.stat-card { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.stat-card span { color: var(--ink-soft); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-card strong { display: block; margin-top: 4px; font-family: "Manrope", sans-serif; font-size: 2rem; }

.panel { margin-top: 24px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: 0 8px 26px rgba(31,23,69,0.05); }
.panel-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 24px; border-bottom: 1px solid var(--line); }
.panel-header h2 { margin: 0; font-size: 1.25rem; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
th { background: #f7f5fb; color: var(--ink-soft); font-size: 0.75rem; letter-spacing: 0.05em; text-transform: uppercase; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #fcfbfe; }
.table-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.inline-form { display: inline; margin: 0; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 999px; background: #eff2f6; color: #4d5563; font-size: 0.76rem; font-weight: 700; text-transform: capitalize; }
.status-confirmed, .status-published, .status-paid { background: #e7f8f1; color: var(--success); }
.status-cancelled { background: #fff0ed; color: var(--error); }
.status-pending, .status-draft { background: #fff6e6; color: var(--warning); }

.admin-form { width: var(--content); margin: 0 auto; padding: 54px 0 100px; }
.admin-form .form-card { max-width: 900px; }
.subtle-note { padding: 15px 18px; border-radius: 12px; background: var(--surface-soft); color: var(--ink-soft); font-size: 0.88rem; }

.flash-stack { position: fixed; right: 22px; top: 96px; z-index: 120; width: min(400px, calc(100% - 44px)); display: grid; gap: 10px; }
.flash { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; padding: 15px 16px; border: 1px solid var(--line); border-left: 4px solid var(--violet); border-radius: 12px; background: white; box-shadow: var(--shadow-sm); }
.flash-success { border-left-color: var(--success); }
.flash-error { border-left-color: var(--error); }
.flash-info { border-left-color: var(--violet); }
.flash-close { border: 0; background: transparent; color: var(--ink-soft); font-size: 1.2rem; line-height: 1; }

.site-footer { background: var(--ink); color: white; }
.footer-grid { width: var(--content); margin: 0 auto; padding: 62px 0 44px; display: grid; grid-template-columns: 1.6fr 0.7fr 0.7fr; gap: 60px; }
.footer-brand { color: white; margin-bottom: 16px; }
.footer-grid p { max-width: 420px; color: #bdb8cf; }
.footer-grid h2 { margin-bottom: 14px; font-size: 0.88rem; color: var(--mint); text-transform: uppercase; letter-spacing: 0.08em; }
.footer-grid > div:nth-child(n+2) { display: flex; flex-direction: column; gap: 9px; }
.footer-grid a:not(.brand), .footer-grid span { color: #d6d2e2; font-size: 0.9rem; text-decoration: none; }
.footer-grid a:not(.brand):hover { color: white; }
.footer-bottom { width: var(--content); margin: 0 auto; padding: 20px 0 30px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,0.12); color: #9c96b1; font-size: 0.82rem; }

@media (max-width: 980px) {
    .menu-toggle { display: block; }
    .primary-nav { display: none; position: absolute; top: 70px; left: 20px; right: 20px; padding: 16px; flex-direction: column; align-items: stretch; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow-lg); }
    .primary-nav.open { display: flex; }
    .primary-nav > a, .nav-link-button, .nav-user { width: 100%; text-align: left; }
    .nav-user { padding: 10px 12px; }
    .hero-grid { min-height: auto; grid-template-columns: 1fr; gap: 44px; padding: 74px 0 90px; }
    .hero-visual { min-height: 420px; width: min(620px, 100%); }
    .event-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
    .value-grid { grid-template-columns: repeat(3, 1fr); }
    .value-grid h2 { grid-column: 1 / -1; }
    .detail-layout { grid-template-columns: 1fr; }
    .booking-card { position: static; }
    .form-page { grid-template-columns: 1fr; gap: 42px; }
    .form-intro { max-width: 700px; }
    .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 680px) {
    :root { --content: min(100% - 28px, 1180px); }
    .nav-shell { min-height: 68px; }
    .hero h1 { font-size: clamp(3rem, 17vw, 4.8rem); }
    .hero-grid { padding-top: 58px; }
    .hero-visual { min-height: 330px; }
    .hero-photo { inset: 0 0 38px 28px; border-radius: 80px 18px 80px 18px; }
    .hero-stat { width: 180px; padding: 16px; }
    .search-panel { margin-top: -28px; }
    .search-form { grid-template-columns: 1fr; }
    .content-section { padding: 68px 0; }
    .section-heading { display: block; }
    .section-heading h2 { margin-bottom: 14px; }
    .event-grid { grid-template-columns: 1fr; }
    .value-grid { grid-template-columns: 1fr; gap: 24px; padding: 50px 0; }
    .value-grid h2 { grid-column: auto; }
    .info-grid, .form-grid { grid-template-columns: 1fr; }
    .form-grid .full { grid-column: auto; }
    .form-card { padding: 24px; }
    .dashboard-head { display: block; }
    .dashboard-head .button { margin-top: 18px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    th, td { padding: 13px 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 34px; }
    .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

