:root {
    --nw-bg: #061634;
    --nw-bg-2: #071b49;
    --nw-card: rgba(255,255,255,.96);
    --nw-line: rgba(124,255,91,.38);
    --nw-green: #7cff5b;
    --nw-blue: #1e6bff;
    --nw-text: #10213f;
    --nw-muted: #6b7893;
    --nw-danger: #b3071b;
    --nw-shadow: 0 24px 70px rgba(0,0,0,.28);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; font-family: Inter, Segoe UI, Roboto, Arial, sans-serif; color: var(--nw-text); background: radial-gradient(circle at top left, #123475 0, var(--nw-bg) 42%, #030b1d 100%); }
a { color: #104ed8; text-decoration: none; }
a:hover { text-decoration: underline; }
.nw-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.nw-sidebar { position: sticky; top: 0; height: 100vh; padding: 26px 20px; background: linear-gradient(180deg, rgba(7,27,73,.96), rgba(3,11,29,.98)); border-right: 1px solid rgba(124,255,91,.18); display: flex; flex-direction: column; gap: 24px; }
.nw-brand { display: flex; gap: 14px; align-items: center; color: #fff; }
.nw-brand strong { display: block; font-size: 18px; letter-spacing: -.02em; }
.nw-brand span { display: block; font-size: 12px; color: #dceaff; opacity: .78; }
.nw-brand-mark { width: 40px; height: 40px; border-radius: 14px; background: linear-gradient(135deg, var(--nw-green), #0e65ff); box-shadow: 0 0 34px rgba(124,255,91,.35); }
.nw-nav { display: grid; gap: 8px; }
.nw-nav a { color: #eef5ff; padding: 12px 14px; border-radius: 14px; border: 1px solid transparent; }
.nw-nav a:hover { text-decoration: none; border-color: rgba(124,255,91,.35); background: rgba(255,255,255,.06); }
.nw-userbox { margin-top: auto; color: #fff; border: 1px solid rgba(124,255,91,.2); border-radius: 18px; padding: 14px; background: rgba(255,255,255,.06); }
.nw-userbox span, .nw-userbox small { display: block; }
.nw-userbox small { color: #dceaff; opacity: .72; margin-top: 4px; }
.nw-main { padding: 36px; min-width: 0; }
.nw-page-head { display: flex; justify-content: space-between; gap: 20px; align-items: center; margin-bottom: 24px; color: #fff; }
.nw-page-head h1 { margin: 0 0 6px; font-size: clamp(28px, 3vw, 42px); letter-spacing: -.04em; }
.nw-page-head p { margin: 0; color: #dceaff; opacity: .8; }
.nw-card, .nw-auth-card, .nw-install-card { background: var(--nw-card); border: 1px solid var(--nw-line); border-radius: 28px; padding: 26px; box-shadow: var(--nw-shadow); margin-bottom: 24px; }
.nw-card h2 { margin-top: 0; font-size: 22px; }
.nw-button { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--nw-green); background: #071b49; color: #fff; border-radius: 999px; padding: 12px 20px; font-weight: 700; cursor: pointer; min-height: 44px; box-shadow: 0 12px 30px rgba(7,27,73,.2); transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.nw-button:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 18px 40px rgba(124,255,91,.22); }
.nw-button-secondary { background: #fff; color: #071b49; }
.nw-button-danger { background: var(--nw-danger); border-color: rgba(179,7,27,.4); }
.nw-stats-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; margin-bottom: 24px; }
.nw-stat { background: rgba(255,255,255,.94); border: 1px solid rgba(124,255,91,.28); border-radius: 22px; padding: 20px; box-shadow: 0 14px 38px rgba(0,0,0,.18); }
.nw-stat span { display: block; color: var(--nw-muted); margin-bottom: 8px; }
.nw-stat strong { font-size: 34px; letter-spacing: -.04em; }
.nw-table-wrap { overflow-x: auto; }
.nw-table { width: 100%; border-collapse: collapse; }
.nw-table th, .nw-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid rgba(16,33,63,.08); vertical-align: middle; }
.nw-table th { color: var(--nw-muted); font-size: 13px; font-weight: 700; }
.nw-status { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 12px; font-weight: 800; background: #eef3ff; color: #123475; }
.nw-status-draft { background: #eef0f5; color: #4d586e; }
.nw-status-pending { background: #fff3d7; color: #7b5600; }
.nw-status-approved { background: #e9ffe3; color: #236b11; }
.nw-status-published { background: #dff0ff; color: #073b78; }
.nw-status-rejected { background: #ffe8ec; color: #8b0718; }
.nw-form { display: grid; gap: 16px; }
.nw-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.nw-form label { display: grid; gap: 7px; font-weight: 700; color: #152644; }
.nw-form input, .nw-form select, .nw-form textarea { width: 100%; border: 1px solid rgba(16,33,63,.15); border-radius: 14px; padding: 12px 14px; font: inherit; background: #fff; color: var(--nw-text); }
.nw-form textarea { resize: vertical; }
.nw-form hr { width: 100%; border: 0; border-top: 1px solid rgba(16,33,63,.12); }
.nw-full { grid-column: 1 / -1; }
.nw-check { display: flex !important; grid-template-columns: auto 1fr !important; align-items: center; gap: 10px !important; }
.nw-check input { width: auto; }
.nw-form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; }
.nw-inline-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.nw-alert { padding: 14px 16px; border-radius: 18px; margin-bottom: 18px; border: 1px solid rgba(124,255,91,.3); background: rgba(255,255,255,.9); }
.nw-alert-success { background: rgba(233,255,227,.96); color: #236b11; }
.nw-alert-error { background: rgba(255,232,236,.96); color: #8b0718; }
.nw-alert-warning { background: rgba(255,243,215,.96); color: #7b5600; }
.nw-muted { color: var(--nw-muted); }
pre, code { background: #f5f7fb; border-radius: 10px; padding: 3px 6px; white-space: pre-wrap; word-break: break-word; }
pre { padding: 18px; border: 1px solid rgba(16,33,63,.08); }
.nw-auth-body .nw-sidebar { display: none; }
.nw-auth-body .nw-shell { display: block; min-height: 100vh; }
.nw-auth-body .nw-main { min-height: 100vh; display: grid; place-items: center; }
.nw-auth-card { width: min(480px, calc(100vw - 32px)); }
.nw-auth-card h1, .nw-install-card h1 { margin-top: 0; font-size: 34px; letter-spacing: -.04em; }
.nw-install-body { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.nw-install-card { width: min(760px, 100%); }
.nw-brand-install { margin-bottom: 24px; }
.nw-public-body { background: #f4f7fb; color: var(--nw-text); }
.nw-public-main { width: min(1120px, calc(100vw - 32px)); margin: 0 auto; padding: 34px 0; }
.nw-public-hero { background: linear-gradient(135deg, #071b49, #0e65ff); color: #fff; border-radius: 30px; padding: 42px; margin-bottom: 24px; box-shadow: var(--nw-shadow); }
.nw-public-hero h1 { margin: 0 0 8px; font-size: clamp(34px, 4vw, 56px); letter-spacing: -.05em; }
.nw-public-hero p { margin: 0; color: #dceaff; }
.nw-public-grid { display: grid; gap: 20px; }
.nw-event-card { display: grid; grid-template-columns: 260px 1fr; background: #fff; border: 1px solid rgba(16,33,63,.08); border-radius: 28px; overflow: hidden; box-shadow: 0 16px 46px rgba(16,33,63,.12); }
.nw-event-card img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.nw-event-card div { padding: 24px; }
.nw-event-card span, .nw-kicker { color: #0e65ff; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; }
.nw-event-card h2 { font-size: 28px; letter-spacing: -.04em; margin: 8px 0; }
.nw-public-event { background: #fff; border-radius: 34px; box-shadow: var(--nw-shadow); overflow: hidden; }
.nw-public-cover { width: 100%; max-height: 430px; object-fit: cover; display: block; }
.nw-public-event-content { padding: clamp(24px, 5vw, 54px); }
.nw-public-event h1 { font-size: clamp(38px, 5vw, 66px); letter-spacing: -.06em; line-height: .95; margin: 10px 0 16px; }
.nw-public-date { color: var(--nw-muted); font-weight: 700; }
.nw-richtext { font-size: 18px; line-height: 1.7; color: #263b61; }
.nw-register-card { margin-top: 28px; background: #f7faff; border: 1px solid rgba(16,33,63,.08); border-radius: 26px; padding: 24px; }
.nw-ticket-wrap { display: grid; place-items: center; min-height: calc(100vh - 80px); }
.nw-ticket { width: min(960px, 100%); background: #fff; border-radius: 36px; overflow: hidden; display: grid; grid-template-columns: 1.1fr 1.4fr 260px; box-shadow: var(--nw-shadow); border: 1px solid rgba(124,255,91,.4); }
.nw-ticket-image { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.nw-ticket-body { padding: 34px; }
.nw-ticket-body h1 { margin: 8px 0 12px; font-size: 42px; line-height: 1; letter-spacing: -.05em; }
.nw-ticket-name { margin-top: 24px; font-size: 28px; font-weight: 900; }
.nw-ticket-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 24px; }
.nw-ticket-grid div { background: #f4f7fb; border-radius: 18px; padding: 14px; }
.nw-ticket-grid strong, .nw-ticket-grid span { display: block; }
.nw-ticket-grid strong { font-size: 12px; color: var(--nw-muted); text-transform: uppercase; }
.nw-ticket-qr { display: grid; place-items: center; align-content: center; gap: 12px; padding: 26px; background: linear-gradient(180deg, #071b49, #030b1d); color: #fff; }
.nw-ticket-qr img { width: 190px; height: 190px; background: #fff; padding: 10px; border-radius: 18px; }
@media (max-width: 980px) {
    .nw-shell { grid-template-columns: 1fr; }
    .nw-sidebar { position: relative; height: auto; }
    .nw-main { padding: 22px; }
    .nw-stats-grid, .nw-form-grid { grid-template-columns: 1fr; }
    .nw-page-head { align-items: flex-start; flex-direction: column; }
    .nw-event-card, .nw-ticket { grid-template-columns: 1fr; }
    .nw-ticket-image { min-height: 240px; }
}
