/* =========================================================
   Jejak Digital — form meet up
   Palet: biru awan, permukaan putih, satu aksen biru.
   ========================================================= */

:root {
    --bg: #eef5fc;
    --surface: #ffffff;
    --surface-2: #f7fbff;
    --surface-3: #edf4fc;
    --ink: #12233a;
    --ink-2: #33475f;
    --muted: #5d7087;
    --muted-2: #8798ab;
    --line: #d9e6f4;
    --line-strong: #c2d6ea;
    --accent: #2f6fba;
    --accent-dark: #215a9c;
    --accent-deep: #1b4d87;
    --accent-soft: #e9f2fc;
    --accent-line: #c5dcf4;
    --ok: #12705a;
    --ok-bg: #e6f6f1;
    --ok-line: #b5dfd1;
    --danger: #b42318;
    --danger-dark: #8f1d14;
    --danger-bg: #fdf0ef;
    --danger-line: #efc4bf;
    --warn: #8a5a00;
    --warn-bg: #fff8e8;
    --warn-line: #ead5a3;
    --shadow-sm: 0 1px 2px rgba(18, 35, 58, 0.05);
    --shadow-md: 0 18px 42px -30px rgba(18, 35, 58, 0.38);
    --radius-lg: 18px;
    --radius-md: 12px;
    --radius-sm: 9px;
    --font: "Segoe UI Variable", "Segoe UI", Inter, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background-color: var(--bg);
    background-image: radial-gradient(1200px 480px at 50% -220px, #ffffff 0%, rgba(255, 255, 255, 0) 72%);
    color: var(--ink);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--accent);
    color: #fff;
}

a {
    color: var(--accent);
    text-decoration: none;
    text-underline-offset: 2px;
}

a:hover {
    color: var(--accent-dark);
}

:focus-visible {
    outline: 3px solid rgba(47, 111, 186, 0.32);
    outline-offset: 2px;
}

img,
svg {
    max-width: 100%;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: 8px;
    background: var(--ink);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: top 0.15s ease;
}

.skip-link:focus {
    top: 16px;
    color: #fff;
}

.shell {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

.muted {
    color: var(--muted);
}

.small {
    font-size: 12.5px;
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--accent);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.eyebrow--light {
    color: rgba(255, 255, 255, 0.72);
}

/* ---------------- Topbar ---------------- */

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--ink);
}

.brand:hover {
    color: var(--ink);
}

.brand__mark {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 6px 16px -8px rgba(47, 111, 186, 0.65);
}

.brand__name {
    font-size: 15.5px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.topbar__meta {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 13px;
}

.topbar__link {
    color: var(--muted);
    font-weight: 600;
}

.topbar__link:hover {
    color: var(--ink);
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
    line-height: 1.6;
    white-space: nowrap;
}

.status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ok);
}

.status--closed {
    color: var(--danger);
    border-color: var(--danger-line);
    background: var(--danger-bg);
}

.status--closed .status__dot {
    background: var(--danger);
}

/* ---------------- Hero ---------------- */

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 44px;
    align-items: end;
    padding: 56px 0 38px;
}

.hero__copy h1 {
    max-width: 15ch;
    margin: 0 0 16px;
    font-size: clamp(40px, 5.2vw, 62px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.hero__copy h1 span {
    color: var(--accent);
}

.hero__lede {
    max-width: 54ch;
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
}

.hero__panel {
    padding: 20px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.hero__panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.hero__panel-label {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero__panel-value {
    margin: 2px 0 0;
    font-size: 34px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.hero__panel-value span {
    color: var(--muted-2);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
}

.seats {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 4px;
    margin: 14px 0 10px;
}

.seat {
    height: 8px;
    border-radius: 4px;
    background: var(--surface-3);
    box-shadow: inset 0 0 0 1px rgba(194, 214, 234, 0.55);
    transition: background 0.2s ease;
}

.seat.is-filled {
    background: var(--accent);
    box-shadow: none;
}

.hero__panel-note {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.hero__panel-note b {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

.hero__panel-top {
    margin: 12px 0 0;
    padding-top: 11px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.hero__panel-top b {
    color: var(--accent-dark);
    font-weight: 700;
}

/* ---------------- Layout & card ---------------- */

.layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    padding-bottom: 12px;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.form-card {
    padding: 30px 32px 32px;
}

.sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* ---------------- Alert ---------------- */

.alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    border: 1px solid;
    border-radius: var(--radius-md);
    font-size: 13.5px;
    line-height: 1.5;
}

.alert__title {
    display: block;
    margin-bottom: 3px;
    font-size: 13.5px;
}

.alert__list {
    margin: 4px 0 0;
    padding-left: 18px;
}

.alert--error {
    border-color: var(--danger-line);
    background: var(--danger-bg);
    color: var(--danger-dark);
}

.alert--ok {
    border-color: var(--ok-line);
    background: var(--ok-bg);
    color: var(--ok);
}

.alert--warn {
    border-color: var(--warn-line);
    background: var(--warn-bg);
    color: var(--warn);
}

.alert code {
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(18, 35, 58, 0.07);
    font-size: 12px;
}

/* ---------------- Form ---------------- */

.form-intro {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 13px;
}

.req {
    color: var(--danger);
}

.optional {
    color: var(--muted);
    font-weight: 400;
}

.fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.fieldset + .fieldset {
    margin-top: 30px;
    padding-top: 28px;
    border-top: 1px solid var(--line);
}

.fieldset__legend {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 18px;
    padding: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.fieldset__step {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.field {
    margin-bottom: 18px;
}

.field:last-child {
    margin-bottom: 0;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field__label {
    display: block;
    margin: 0 0 6px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

.field__hint {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.field__error {
    margin: 5px 0 0;
    color: var(--danger);
    font-size: 12.5px;
    line-height: 1.5;
}

.input {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.input::placeholder {
    color: var(--muted-2);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 186, 0.14);
}

textarea.input {
    min-height: 132px;
    resize: vertical;
    line-height: 1.55;
}

.field--error .input {
    border-color: var(--danger-line);
    background: #fffafa;
}

.field-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 4px;
}

/* ---------------- Pilihan ---------------- */

.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 2px;
}

.choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.35;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.choice:hover {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.choice::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.choice--checkbox::before {
    border-radius: 5px;
}

.choice:has(input:checked) {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.choice:has(input:checked)::before {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 4px #fff;
}

.choice--checkbox:has(input:checked)::before {
    box-shadow: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3 3 7-7' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-size: 12px 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.choice:has(input:focus-visible) {
    outline: 3px solid rgba(47, 111, 186, 0.24);
    outline-offset: 2px;
}

/* ---------------- Tanggal ---------------- */

.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 14px;
}

.date-card {
    position: relative;
    display: block;
    cursor: pointer;
}

.date-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.date-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-height: 98px;
    padding: 13px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.date-card:hover .date-card__body {
    border-color: var(--line-strong);
    background: var(--surface-2);
}

.date-card:has(input:checked) .date-card__body {
    border-color: var(--accent);
    background: var(--accent-soft);
    box-shadow: inset 0 0 0 1px var(--accent);
}

.date-card:has(input:focus-visible) .date-card__body {
    outline: 3px solid rgba(47, 111, 186, 0.24);
    outline-offset: 2px;
}

.date-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.date-card__day {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.date-card__check {
    flex: none;
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
}

.date-card:has(input:checked) .date-card__check {
    border-color: var(--accent);
    background: var(--accent);
    box-shadow: inset 0 0 0 4px #fff;
}

.date-card__date {
    color: var(--ink);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.date-card__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: auto;
    padding-top: 3px;
}

.date-card__count {
    color: var(--muted);
    font-size: 12px;
    font-variant-numeric: tabular-nums;
}

.date-card__count.is-zero {
    color: var(--muted-2);
}

.date-card__tag {
    display: inline-block;
    padding: 1px 7px;
    border: 1px solid var(--accent-line);
    border-radius: 999px;
    background: #fff;
    color: var(--accent-dark);
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1.6;
    white-space: nowrap;
}

.is-hidden {
    display: none !important;
}

/* ---------------- Notice & venue ---------------- */

.notice {
    margin-top: 16px;
    padding: 12px 14px;
    border: 1px solid var(--accent-line);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    background: var(--accent-soft);
}

.notice__label {
    display: block;
    color: var(--accent-dark);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.notice__text {
    margin: 4px 0 0;
    color: var(--ink-2);
    font-size: 13px;
    line-height: 1.5;
}

.notice__text strong {
    color: var(--ink);
    font-weight: 700;
}

.venue {
    margin: 18px 0 4px;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface-2);
}

.venue__name {
    margin: 0;
    font-size: 13.5px;
    font-weight: 600;
}

.venue__address {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 12.5px;
}

.venue__address a {
    font-weight: 600;
    text-decoration: underline;
}

/* ---------------- Tombol ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid transparent;
    border-radius: 10px;
    font: inherit;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn--primary {
    border-color: var(--accent);
    background: var(--accent);
    color: #fff;
    box-shadow: 0 8px 18px -12px rgba(47, 111, 186, 0.8);
}

.btn--primary:hover {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
}

.btn--soft {
    border-color: var(--accent-line);
    background: var(--accent-soft);
    color: var(--accent-dark);
}

.btn--soft:hover {
    border-color: var(--accent);
    background: #fff;
    color: var(--accent-dark);
}

.btn--ghost {
    border-color: var(--line-strong);
    background: #fff;
    color: var(--ink);
}

.btn--ghost:hover {
    border-color: var(--ink-2);
    background: var(--surface-2);
    color: var(--ink);
}

.btn--danger {
    border-color: var(--danger-line);
    background: #fff;
    color: var(--danger);
}

.btn--danger:hover {
    border-color: var(--danger);
    background: var(--danger-bg);
    color: var(--danger-dark);
}

.btn--sm {
    min-height: 36px;
    padding: 7px 12px;
    border-radius: 8px;
    font-size: 13px;
}

.btn--xs {
    min-height: 30px;
    padding: 4px 9px;
    border-radius: 7px;
    font-size: 12px;
}

.btn--lg {
    min-height: 48px;
    padding: 12px 22px;
    font-size: 15px;
}

.btn--block {
    width: 100%;
}

.btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

/* ---------------- Submit ---------------- */

.submit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

.submit-row__note {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.5;
}

.submit-row__note b {
    color: var(--ink);
    font-variant-numeric: tabular-nums;
}

/* ---------------- Form ditutup ---------------- */

.closed {
    padding: 4px 0;
}

.closed__badge {
    display: inline-block;
    padding: 3px 9px;
    border: 1px solid var(--danger-line);
    border-radius: 999px;
    background: var(--danger-bg);
    color: var(--danger);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.closed__title {
    margin: 14px 0 10px;
    font-size: clamp(26px, 4vw, 34px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.closed__text {
    max-width: 52ch;
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.closed__facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 22px 0;
    padding: 16px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.closed__facts dt {
    margin: 0 0 3px;
    color: var(--muted);
    font-size: 11.5px;
}

.closed__facts dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.closed__facts dd span {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 400;
}

.closed__note {
    max-width: 54ch;
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

/* ---------------- Sidebar ---------------- */

.side-card {
    padding: 20px;
}

.side-card__title {
    margin: 5px 0 4px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.side-card__text {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.facts {
    margin: 16px 0;
}

.facts > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 9px 0;
    border-top: 1px solid var(--line);
}

.facts > div:first-child {
    padding-top: 0;
    border-top: 0;
}

.facts dt {
    color: var(--muted);
    font-size: 12px;
}

.facts dd {
    margin: 0;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 600;
    text-align: right;
}

.side-card__note {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.side-card--blue {
    border-color: var(--accent-dark);
    background: var(--accent-dark);
    color: #fff;
    box-shadow: 0 20px 40px -28px rgba(33, 90, 156, 0.8);
}

.side-card--blue .eyebrow {
    margin-bottom: 8px;
}

.side-card__vote {
    margin: 0;
    font-size: 23px;
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.side-card__vote-note {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 12.5px;
}

.side-card__hint {
    margin: 16px 0 0;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    color: rgba(255, 255, 255, 0.62);
    font-size: 11.5px;
}

/* ---------------- Threads ---------------- */

.threads {
    margin-top: 24px;
    padding: 22px 24px;
}

.threads__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.threads__identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.threads__identity .eyebrow {
    margin: 0 0 2px;
}

.threads__icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--ink);
    color: #fff;
}

.threads__handle {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.threads__link {
    font-size: 13px;
    font-weight: 600;
    text-decoration: underline;
}

.threads__text {
    max-width: 62ch;
    margin: 16px 0 18px;
    color: var(--ink-2);
    font-size: 14px;
    line-height: 1.6;
}

.threads__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.threads__note {
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 12.5px;
}

.threads__note a {
    font-weight: 600;
}

.threads__mount {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

.threads__mount iframe {
    max-width: 100%;
    border-radius: 12px;
}

/* ---------------- Footer ---------------- */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 8px;
    padding: 24px 0 42px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 12.5px;
}

.footer p {
    margin: 0;
}

.footer__links {
    display: flex;
    gap: 16px;
}

.footer__links a {
    color: var(--muted);
}

.footer__links a:hover {
    color: var(--ink);
}

.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================================
   ADMIN
   ========================================================= */

.admin-head {
    padding: 38px 0 20px;
}

.admin-head h1 {
    margin: 0;
    font-size: clamp(32px, 4.5vw, 40px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.admin-head__sub {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 13.5px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat {
    padding: 15px 17px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.stat--accent {
    border-top: 3px solid var(--accent);
}

.stat__label {
    display: block;
    color: var(--muted);
    font-size: 11.5px;
    font-weight: 600;
}

.stat__value {
    display: block;
    margin-top: 3px;
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.stat__value small {
    color: var(--muted);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0;
}

.stat__value--text {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.stat__value--text.is-open {
    color: var(--ok);
}

.stat__value--text.is-closed {
    color: var(--danger);
}

.stat__note {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.toolbar__group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.toolbar form {
    margin: 0;
}

.toolbar .muted {
    margin: 0;
    font-size: 12.5px;
}

.search {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
}

.search input[type="search"] {
    width: 220px;
    min-height: 38px;
    padding: 8px 11px;
    border: 1px solid var(--line-strong);
    border-radius: 9px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 13px;
}

.search input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 186, 0.13);
}

.search .muted {
    margin: 0;
    font-size: 12.5px;
}

.panel {
    margin-bottom: 16px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.panel__title {
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.panel__hint {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
}

.panel__empty {
    margin: 0;
    padding: 8px 0;
    color: var(--muted);
    font-size: 14px;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.bars {
    display: grid;
    gap: 9px;
    padding-top: 2px;
}

.bar-row {
    display: grid;
    grid-template-columns: 172px minmax(0, 1fr) 32px;
    gap: 10px;
    align-items: center;
    font-size: 13px;
}

.bar-row__label {
    color: var(--ink-2);
    line-height: 1.35;
}

.bar-row.is-top .bar-row__label {
    color: var(--ink);
    font-weight: 600;
}

.bar {
    display: block;
    height: 8px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--surface-3);
    box-shadow: inset 0 0 0 1px rgba(194, 214, 234, 0.45);
}

.bar span {
    display: block;
    height: 100%;
    border-radius: 999px;
    background: var(--accent);
}

.bar-row.is-top .bar span {
    background: var(--accent-dark);
}

.bar-row__num {
    color: var(--muted);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.chips {
    margin-top: 12px;
}

.chip {
    display: inline-block;
    margin: 2px 3px 2px 0;
    padding: 2px 7px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--surface-2);
    color: var(--ink-2);
    font-size: 11.5px;
    line-height: 1.6;
    white-space: nowrap;
}

.table-wrap {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13.5px;
}

.data-table th,
.data-table td {
    padding: 10px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
}

.data-table tbody tr:hover {
    background: #fafdff;
}

.data-table tr:last-child td {
    border-bottom: 0;
}

.data-table th:first-child,
.data-table td:first-child {
    padding-left: 0;
}

.data-table th:last-child,
.data-table td:last-child {
    padding-right: 0;
}

.data-table .num {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.data-table .sub {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}

.row-actions {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    flex-wrap: wrap;
}

.inline-form {
    display: inline;
    margin: 0;
}

.details {
    display: inline-block;
}

.details summary {
    list-style: none;
}

.details summary::-webkit-details-marker {
    display: none;
}

.details__body {
    max-width: 380px;
    margin-top: 10px;
    color: var(--ink-2);
    font-size: 12.5px;
    line-height: 1.55;
}

.details__body p {
    margin: 0 0 6px;
}

/* ---------------- Login admin ---------------- */

.auth {
    max-width: 440px;
    margin: 0 auto;
    padding: 56px 0 72px;
}

.auth__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.auth__card {
    padding: 28px;
}

.auth__title {
    margin: 0 0 6px;
    font-size: 27px;
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.auth__sub {
    margin: 0 0 22px;
    color: var(--muted);
    font-size: 13.5px;
}

.auth__footer {
    margin: 18px 0 0;
    color: var(--muted);
    font-size: 12.5px;
    text-align: center;
}

/* ---------------- Dialog ---------------- */

.dialog {
    width: min(420px, calc(100vw - 32px));
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: #fff;
    color: var(--ink);
    box-shadow: 0 30px 80px -24px rgba(18, 35, 58, 0.5);
}

.dialog::backdrop {
    background: rgba(18, 35, 58, 0.45);
}

.dialog__form {
    padding: 24px;
}

.dialog__title {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dialog__text {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.dialog__actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 20px;
}

/* ---------------- Link form (logout) ---------------- */

.link-form {
    display: inline;
    margin: 0;
}

.link-button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}

.link-button:hover {
    color: var(--ink);
}

/* =========================================================
   RESPONSIF
   ========================================================= */

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 44px 0 32px;
    }

    .hero__panel {
        max-width: 480px;
    }

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

    .sidebar {
        position: static;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

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

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

@media (max-width: 720px) {
    .shell {
        padding: 0 16px;
    }

    .topbar {
        padding: 14px 0;
    }

    .topbar__meta {
        gap: 12px;
    }

    .hero__copy h1 {
        font-size: 38px;
    }

    .hero__lede {
        font-size: 15.5px;
    }

    .form-card {
        padding: 22px 18px 24px;
    }

    .field-row,
    .choice-grid,
    .date-grid,
    .closed__facts {
        grid-template-columns: 1fr;
    }

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

    .submit-row {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .submit-row .btn {
        width: 100%;
    }

    .threads {
        padding: 18px;
    }

    .threads__head {
        align-items: flex-start;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .admin-head {
        padding-top: 28px;
    }

    .toolbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .toolbar .muted {
        order: 2;
    }

    .panel {
        padding: 16px;
    }

    .bar-row {
        grid-template-columns: 118px minmax(0, 1fr) 28px;
        gap: 8px;
        font-size: 12.5px;
    }

    .search {
        width: 100%;
    }

    .search input[type="search"] {
        flex: 1;
        width: auto;
        min-width: 0;
    }

    .auth {
        padding: 32px 0 48px;
    }

    .auth__card {
        padding: 22px 18px;
    }

    /* Tabel jadi kartu */
    .data-table thead {
        display: none;
    }

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

    .data-table tr {
        margin-bottom: 10px;
        padding: 10px 12px;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: #fff;
    }

    .data-table td {
        padding: 6px 0;
        border: 0;
    }

    .data-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 2px;
        color: var(--muted);
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.06em;
        text-transform: uppercase;
    }

    .data-table td:first-child,
    .data-table td:last-child {
        padding-left: 0;
        padding-right: 0;
    }

    .data-table td:last-child {
        padding-top: 10px;
    }

    .data-table .row-actions {
        margin-top: 2px;
    }
}

@media (max-width: 560px) {
    .topbar__meta .status {
        display: none;
    }

    .topbar__link {
        font-size: 12.5px;
    }

    .hero {
        padding-top: 34px;
    }

    .hero__copy h1 {
        font-size: 33px;
    }

    .hero__panel {
        padding: 16px;
    }

    .hero__panel-value {
        font-size: 30px;
    }

    .seat {
        height: 7px;
    }

    .stats {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .stat {
        padding: 12px 13px;
    }

    .stat__value {
        font-size: 25px;
    }

    .stat__value--text {
        font-size: 14px;
    }

    .date-card__body {
        min-height: 88px;
    }

    .closed__title {
        font-size: 26px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}

/* ---------------- Halaman sukses ---------------- */

.block {
    margin-bottom: 26px;
}

.block:last-of-type {
    margin-bottom: 0;
}

.block__title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.block__text {
    margin: 0;
    color: var(--ink-2);
    font-size: 14.5px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 24px;
    margin: 0;
}

.summary > div {
    padding: 10px 0;
    border-top: 1px solid var(--line);
}

.summary > div:nth-child(-n + 2) {
    padding-top: 0;
    border-top: 0;
}

.summary dt {
    margin: 0 0 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.summary dd {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.success-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 26px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.alert p {
    margin: 0 0 4px;
}

.alert p:last-child {
    margin-bottom: 0;
}

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

    .summary > div:nth-child(-n + 2) {
        padding-top: 10px;
        border-top: 1px solid var(--line);
    }

    .summary > div:first-child {
        padding-top: 0;
        border-top: 0;
    }

    .success-actions .btn {
        width: 100%;
    }
}

/* Cegah fieldset/grid meluber di layar sempit */
.fieldset,
.field,
.form-card,
.sidebar {
    min-width: 0;
}

[hidden] {
    display: none !important;
}

/* ---------------- Peringatan submit ---------------- */

.submit-warning {
    margin: 16px 0 0;
}

.submit-warning__text {
    display: block;
    margin-top: 4px;
}

/* Kolom honeypot: tidak boleh terlihat, tapi tetap bisa dibaca
   autofill-proof dengan atribut di markup. */
.hp input {
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0;
}
