:root {
    --bg: #070b12;
    --bg-alt: #0c1320;
    --panel: rgba(15, 23, 36, 0.82);
    --panel-strong: rgba(16, 24, 39, 0.95);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(92, 225, 230, 0.28);
    --text: #edf3ff;
    --muted: #9eabc0;
    --primary: #49d7ff;
    --primary-2: #7f5cff;
    --accent: #18c28e;
    --danger: #ff6b6b;
    --shadow: 0 18px 60px rgba(0, 0, 0, 0.35);
    --radius: 18px;
    --radius-lg: 28px;
    --container: 1320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body,
h1,
h2,
h3,
p,
ul,
li {
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(73, 215, 255, 0.10), transparent 25%),
        radial-gradient(circle at top right, rgba(127, 92, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #05080e 0%, #09111d 45%, #0a101a 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex-grow: 1;
    width: min(100% - 3.5rem, var(--container));
    margin: 0 auto;
    padding: 2rem 0 4.5rem;
}

h1,
h2,
h3 {
    line-height: 1.05;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.2rem, 5vw, 4.9rem);
    margin-bottom: 1rem;
}

h2 {
    font-size: clamp(1.45rem, 3vw, 2.45rem);
    margin-bottom: 0.85rem;
}

p,
li,
.muted {
    color: var(--muted);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: linear-gradient(180deg, rgba(5, 8, 14, 0.88), rgba(5, 8, 14, 0));
    backdrop-filter: blur(10px);
}

.navbar-container {
    width: min(100% - 3.5rem, var(--container));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(11, 18, 30, 0.72);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
}

.logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.logo {
    width: 132px;
    height: auto;
}

.brand-copy {
    display: flex;
    flex-direction: column;
}

.brand-title {
    font-weight: 800;
    font-size: 1rem;
    color: var(--text);
}

.brand-subtitle {
    font-size: 0.82rem;
    color: var(--muted);
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1rem;
    border-radius: 999px;
    color: var(--text);
    transition: 0.25s ease;
}

.nav-link:hover,
.nav-link.active {
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
}

.page-shell,
.content-card,
.qr-poster,
.auth-card {
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.page-shell {
    width: 100%;
    border-radius: var(--radius-lg);
    padding: clamp(1.4rem, 3vw, 2.4rem);
}

.content-card,
.auth-card {
    border-radius: var(--radius);
    padding: 1.35rem;
}

.hero-intro {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
    align-items: stretch;
}

.hero-copy,
.hero-aside {
    border-radius: var(--radius-lg);
}

.hero-copy {
    padding: clamp(1.6rem, 3vw, 2.6rem);
}

.hero-aside {
    display: grid;
    gap: 1rem;
    padding: 1.2rem;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.45rem 0.8rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    color: var(--primary);
    background: rgba(73, 215, 255, 0.08);
    border: 1px solid rgba(73, 215, 255, 0.14);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lead {
    font-size: clamp(1rem, 1.5vw, 1.16rem);
    max-width: 62ch;
}

.stat-card,
.event-card {
    border-radius: var(--radius);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    padding: 1.15rem;
}

.stat-value {
    display: block;
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 800;
    margin-bottom: 0.2rem;
}

.request-form,
.event-form,
.link-stack {
    display: grid;
    gap: 1rem;
    margin-top: 1.5rem;
}

.field {
    display: grid;
    gap: 0.5rem;
}

.field span,
.link-stack span {
    color: #dfe6f5;
    font-weight: 700;
}

.input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    outline: none;
    padding: 1rem 1.05rem;
    color: var(--text);
    background: rgba(255, 255, 255, 0.08);
}

.input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(73, 215, 255, 0.12);
}

.copy-input {
    color: var(--muted);
    font-size: 0.9rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 52px;
    padding: 0 1.15rem;
    border: 0;
    border-radius: 999px;
    font-weight: 800;
    cursor: pointer;
    transition: 0.25s ease;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    color: #08111b;
    background: linear-gradient(135deg, var(--primary), #b0f5ff);
    box-shadow: 0 12px 30px rgba(73, 215, 255, 0.22);
}

.btn-secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--line);
}

.btn-success {
    color: #d6ffef;
    background: rgba(24, 194, 142, 0.14);
    border: 1px solid rgba(24, 194, 142, 0.35);
}

.btn-danger {
    color: #ffd7d7;
    background: rgba(255, 107, 107, 0.14);
    border: 1px solid rgba(255, 107, 107, 0.35);
}

.notice {
    margin: 1.2rem 0;
    padding: 0.95rem 1.05rem;
    border-radius: 18px;
    color: var(--text);
    background: rgba(73, 215, 255, 0.10);
    border: 1px solid rgba(73, 215, 255, 0.25);
}

.notice.success {
    background: rgba(24, 194, 142, 0.12);
    border-color: rgba(24, 194, 142, 0.28);
}

.notice.danger {
    background: rgba(255, 107, 107, 0.12);
    border-color: rgba(255, 107, 107, 0.28);
}

.center-stage {
    min-height: 68vh;
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(540px, 100%);
}

.auth-card.compact {
    width: min(520px, 100%);
    box-shadow: none;
}

.section-head,
.admin-head,
.console-head,
.qr-toolbar,
.event-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.section-head {
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    color: var(--muted);
}

.events-list,
.console-grid {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.console-grid {
    grid-template-columns: 1fr 1fr;
}

.event-card {
    display: grid;
    grid-template-columns: minmax(220px, 0.8fr) minmax(280px, 1.3fr) auto;
    align-items: center;
    gap: 1.25rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    color: var(--muted);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    font-weight: 800;
}

.status-pill.is-active {
    color: #d6ffef;
    border-color: rgba(24, 194, 142, 0.35);
    background: rgba(24, 194, 142, 0.12);
}

.table-title {
    margin-bottom: 1rem;
}

.responsive-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px;
}

.responsive-table th {
    padding: 0 0.9rem;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-align: left;
    text-transform: uppercase;
}

.responsive-table td {
    padding: 1rem 0.9rem;
    background: rgba(255, 255, 255, 0.07);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.responsive-table td:first-child {
    border-left: 1px solid var(--line);
    border-radius: 18px 0 0 18px;
}

.responsive-table td:last-child {
    border-right: 1px solid var(--line);
    border-radius: 0 18px 18px 0;
}

.responsive-table td strong,
.responsive-table td span {
    display: block;
}

.request-count {
    color: var(--primary);
    font-size: 1.5rem;
    font-weight: 900;
}

.empty-state {
    padding: 2rem;
    color: var(--muted);
    text-align: center;
}

.qr-sheet {
    max-width: 860px;
    margin: 0 auto;
}

.qr-poster {
    margin-top: 1.25rem;
    padding: clamp(1.5rem, 4vw, 3rem);
    border-radius: var(--radius-lg);
    text-align: center;
}

.qr-poster .lead {
    margin: 0 auto 1.5rem;
}

.qr-box {
    display: grid;
    place-items: center;
    width: min(100%, 460px);
    min-height: 460px;
    margin: 1.6rem auto;
    padding: 1.3rem;
    border-radius: 26px;
    background: #ffffff;
}

.qr-box canvas,
.qr-box img {
    max-width: 100%;
    height: auto;
}

.site-footer {
    width: min(100% - 3.5rem, var(--container));
    margin: auto auto 0;
    padding: 0 0 2rem;
}

.bottom-section {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    padding: 1.35rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
}

.bottom-section h2 {
    font-size: 1.1rem;
}

.copyright {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.92rem;
}

@media (max-width: 980px) {
    .hero-intro,
    .console-grid,
    .event-card,
    .bottom-section {
        grid-template-columns: 1fr;
    }

    .event-card {
        align-items: stretch;
    }
}

@media (max-width: 760px) {
    main,
    .navbar-container,
    .site-footer {
        width: min(100% - 1.4rem, var(--container));
    }

    main {
        padding-top: 0.7rem;
    }

    .navbar-container {
        align-items: flex-start;
        border-radius: 24px;
        flex-direction: column;
    }

    .logo {
        width: 108px;
    }

    .site-nav,
    .nav-link,
    .btn,
    .event-actions > * {
        width: 100%;
    }

    .nav-link {
        justify-content: flex-start;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .responsive-table,
    .responsive-table thead,
    .responsive-table tbody,
    .responsive-table tr,
    .responsive-table td {
        display: block;
        width: 100%;
    }

    .responsive-table thead {
        display: none;
    }

    .responsive-table tr {
        margin-bottom: 1rem;
    }

    .responsive-table td {
        border: 1px solid var(--line) !important;
        border-radius: 0 !important;
    }

    .responsive-table td:first-child {
        border-radius: 20px 20px 0 0 !important;
    }

    .responsive-table td:last-child {
        border-radius: 0 0 20px 20px !important;
    }

    .qr-box {
        min-height: auto;
    }
}

@media print {
    body {
        color: #111111;
        background: #ffffff;
    }

    body::before,
    .no-print,
    .site-footer {
        display: none !important;
    }

    main {
        width: 100%;
        padding: 0;
    }

    .page-shell,
    .qr-poster {
        border: 0;
        box-shadow: none;
        background: #ffffff;
    }

    .qr-poster h1,
    .qr-poster h2 {
        color: #111111;
    }

    .qr-poster p,
    .muted {
        color: #333333;
    }
}


/* DJ fullscreen dashboard */
body.dj-page .site-header,
body.dj-page .site-footer {
    display: none;
}

body.dj-page main {
    width: 100%;
    max-width: none;
    min-height: 100vh;
    padding: 0;
}

body.dj-page .page-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    padding: clamp(1rem, 2vw, 2rem);
    background:
        radial-gradient(circle at 15% 0%, rgba(73, 215, 255, 0.14), transparent 28%),
        radial-gradient(circle at 85% 10%, rgba(127, 92, 255, 0.16), transparent 30%),
        rgba(5, 8, 14, 0.68);
}

body.dj-page .console-head {
    margin-bottom: 1rem;
    padding: 0.9rem 1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(255,255,255,0.045);
}

body.dj-page .console-head h1 {
    margin-bottom: 0.25rem;
    font-size: clamp(2rem, 4vw, 4.2rem);
}

body.dj-page .console-grid {
    height: calc(100vh - 170px);
    min-height: 520px;
    grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.8fr);
    align-items: stretch;
    margin-top: 0;
}

body.dj-page .content-card {
    display: flex;
    min-height: 0;
    flex-direction: column;
    padding: clamp(1rem, 1.5vw, 1.6rem);
}

body.dj-page .live-table {
    min-height: 0;
    overflow: auto;
    padding-right: 0.2rem;
}

body.dj-page .responsive-table {
    border-spacing: 0 12px;
}

body.dj-page .responsive-table td {
    padding: 1.1rem 1rem;
}

body.dj-page .responsive-table td strong {
    color: var(--text);
    font-size: clamp(1.1rem, 1.5vw, 1.55rem);
    line-height: 1.1;
}

body.dj-page .responsive-table td span {
    font-size: clamp(0.9rem, 1vw, 1.05rem);
}

body.dj-page .request-count {
    font-size: clamp(1.9rem, 3vw, 3.4rem);
    line-height: 1;
}

body.dj-page .btn {
    min-height: 56px;
    padding-inline: 1.2rem;
    white-space: nowrap;
}

body.login-page .auth-card .btn[type="submit"] {
    margin-top: 1.2rem;
}

.event-meta {
    margin-top: 0.4rem;
    font-size: 0.9rem;
}

.btn-delete {
    color: #ffd7d7;
    background: rgba(255, 107, 107, 0.10);
    border: 1px solid rgba(255, 107, 107, 0.32);
}

.event-actions form {
    display: inline-flex;
}

@media (max-width: 1100px) {
    body.dj-page .console-grid {
        height: auto;
        min-height: 0;
        grid-template-columns: 1fr;
    }

    body.dj-page .live-table {
        max-height: none;
        overflow: visible;
    }
}


/* DJ login layout fix */
body.dj-page .auth-card.compact {
    width: min(520px, calc(100vw - 2rem));
    margin: clamp(2rem, 12vh, 8rem) auto 0;
}

body.dj-page .auth-card.compact .btn[type="submit"] {
    margin-top: 1.35rem;
}

body.dj-page .auth-card.compact .field {
    display: grid;
    gap: 0.55rem;
}


/* BML legal/footer links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.footer-links a,
.site-footer a {
    color: var(--text);
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-links a:hover,
.site-footer a:hover {
    color: var(--primary);
}

.request-form .btn[type="submit"],
.auth-card .btn[type="submit"],
.event-form .btn[type="submit"] {
    margin-top: 1.1rem;
}


/* Integrated Admin Features */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(140px, 1fr));
    gap: 18px;
    margin: 24px 0;
}

.stat-tile {
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 22px;
    padding: 24px;
    background: rgba(255,255,255,.06);
}

.stat-tile strong {
    display: block;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1;
}

.stat-tile span {
    display: block;
    margin-top: 8px;
    color: var(--muted, #a9b0bc);
}

.event-detail-grid {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 22px;
    align-items: center;
}

.event-brand-logo {
    display: block;

    margin:
        1.75rem auto 0;

    max-width: 240px;
    max-height: 120px;

    width: auto;
    height: auto;

    object-fit: contain;
}

textarea.input {
    min-height: 120px;
    resize: vertical;
}

@media (max-width: 900px) {
    .stats-grid,
    .event-detail-grid {
        grid-template-columns: 1fr;
    }
}

/* Logo / Branding Updates */
.event-logo-preview {
    display: inline-grid;
    gap: 10px;
    margin: 12px 0 20px;
    padding: 14px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 18px;
    background: rgba(255,255,255,.06);
    max-width: 320px;
}

.event-logo-preview span {
    color: rgba(255,255,255,.68);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.event-logo-preview img {
    max-width: 240px;
    max-height: 120px;
    object-fit: contain;
}

/* Final refinements */
.inline-password-form {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    gap: 12px;
    margin-top: 12px;
    width: 100%;
}

.danger-zone {
    border-color: rgba(255,77,94,.28);
}

.danger-zone h2 {
    color: #ff8a96;
}

@media (max-width: 760px) {
    .inline-password-form {
        grid-template-columns: 1fr;
    }
}

.site-footer {
    width: min(100% - 3.5rem, var(--container));
    margin: 2rem auto 2rem;
    padding: 0;
}

.footer-shell {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr .8fr .8fr .8fr;
    gap: clamp(1.5rem, 3vw, 3rem);
    padding: clamp(1.4rem, 3vw, 2.4rem);
}

.footer-grid h3 {
    margin: .8rem 0 .9rem;
    font-size: clamp(2rem, 3.5vw, 3rem);
    letter-spacing: -.05em;
}

.footer-grid h4 {
    margin: 0 0 1rem;
    font-size: .92rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: rgba(255,255,255,.72);
}

.footer-grid p {
    max-width: 420px;
    color: var(--muted);
}

.footer-eyebrow {
    display: inline-flex;
    padding: .45rem .8rem;
    border-radius: 999px;
    background: rgba(73, 215, 255, .08);
    border: 1px solid rgba(73, 215, 255, .14);
    color: var(--primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: .8rem;
}

.footer-links a {
    color: rgba(255,255,255,.78);
    transition: color .2s ease, transform .2s ease;
}

.footer-links a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-bottom {
    display: flex;
    justify-content: center;
    padding: 1rem clamp(1.4rem, 3vw, 2.4rem);
    border-top: 1px solid var(--line);
    background: rgba(0,0,0,.18);
    color: var(--muted);
    text-align: center;
    font-size: .92rem;
}

@media (max-width: 980px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .site-footer {
        width: min(100% - 1.4rem, var(--container));
        margin-top: 1.4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

.copy-input {
    cursor: pointer;
}

.copy-input.copied {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(24, 194, 142, .18);
}

