/* Adreach TikTok Seminar 2026 — public + admin styles */

:root {
  --ink: #101828;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #d0d5dd;
  --line-soft: #e4e7ec;
  --surface: #ffffff;
  --page: #ffffff;
  --blue: #2f80ed;
  --blue-deep: #1a4f9b;
  --blue-cta-from: #2497e8;
  --blue-cta-to: #1456c7;
  --blue-btn: #8eb9e8;
  --blue-btn-hover: #79a9df;
  --blue-btn-text: #ffffff;
  --accent: #2497e8;
  --danger: #b42318;
  --danger-bg: #fef3f2;
  --success: #039855;
  --shadow: 0 14px 40px rgba(16, 24, 40, 0.1);
  --radius: 16px;
  --radius-sm: 10px;
  --font: "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--page);
  line-height: 1.5;
}

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

button,
input {
  font: inherit;
}

a {
  color: var(--blue-deep);
}

.page {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 3.5rem;
}

.site-header {
  margin-bottom: 1.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand--center {
  justify-content: center;
  margin-bottom: 0.75rem;
}

.brand-logo {
  width: 140px;
  height: auto;
  max-height: 96px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.brand-logo--admin {
  width: 100px;
  max-height: 68px;
}

/* Hero */
.hero {
  max-width: 44rem;
  margin-bottom: 2rem;
}

.hero-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.85rem, 4vw, 2.55rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.hero-year {
  color: var(--accent);
  display: inline-block;
}

.hero-subtitle {
  margin: 0 0 0.85rem;
  font-size: clamp(1rem, 2vw, 1.15rem);
  font-weight: 700;
  color: var(--ink);
}

.hero-copy {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 40rem;
}

.hero-copy:last-child {
  margin-bottom: 0;
}

/* Two-column layout */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 1.75rem;
  align-items: start;
}

.form-card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 1.5rem 1.4rem 1.6rem;
}

.section-title {
  margin: 0 0 1.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--ink);
}

.field {
  margin-bottom: 1.05rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.req {
  color: #f04438;
}

.opt {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.78rem;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="password"],
.field input[type="search"],
.admin-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.field input:focus,
.admin-search input:focus {
  border-color: #2497e8;
  box-shadow: 0 0 0 3px rgba(36, 151, 232, 0.1);
}

.field input::placeholder {
  color: #98a2b3;
}

.field-hint,
.field-meta {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.photo-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.photo-label-row label {
  margin-bottom: 0.4rem;
}

.field-error {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--danger);
}

.field-error[hidden] {
  display: none;
}

/* Photo drop — empty (dashed) + ready (solid) states */
.photo-drop {
  width: 100%;
  min-height: 152px;
  border: 1.5px dashed rgba(36, 151, 232, 0.55);
  border-radius: 14px;
  background: #f7fbff;
  cursor: pointer;
  padding: 1.35rem 1rem;
  color: var(--ink-soft);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  text-align: center;
}

.photo-drop:hover,
.photo-drop:focus-visible {
  border-color: #2497e8;
  background: rgba(36, 151, 232, 0.06);
  outline: none;
}

.photo-drop.is-dragover {
  border-color: #2497e8;
  border-style: solid;
  background: rgba(36, 151, 232, 0.08);
  box-shadow: 0 0 0 3px rgba(36, 151, 232, 0.12);
}

.photo-drop.has-photo {
  border-style: solid;
  border-color: #8fd0a8;
  background: #eef9f2;
}

.photo-drop.has-photo:hover,
.photo-drop.has-photo:focus-visible {
  border-color: #5fba83;
  background: #e5f6eb;
}

.photo-upload-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #3db0f5 0%, #1763d0 100%);
  box-shadow: 0 6px 14px rgba(25, 111, 214, 0.28);
}

.photo-drop-inner,
.photo-ready {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  max-width: 100%;
}

.photo-drop-inner[hidden],
.photo-ready[hidden] {
  display: none;
}

.photo-drop-title {
  font-weight: 800;
  color: var(--ink);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.3;
  word-break: break-word;
}

.photo-drop.has-photo .photo-drop-title {
  color: #1a6b45;
}

.photo-drop-sub {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
  max-width: 22rem;
}

.photo-drop.has-photo .photo-drop-sub {
  color: #5a7a6b;
}

.linkish {
  background: none;
  border: 0;
  padding: 0;
  color: var(--blue-deep);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  border-radius: 2px;
  transition: color 0.15s ease;
}

.linkish:hover,
.linkish:focus-visible {
  color: #1456c7;
  outline: none;
}

.linkish:focus-visible {
  box-shadow: 0 0 0 3px rgba(36, 151, 232, 0.25);
}

/* Consent */
.consent-field {
  margin-top: 0.25rem;
}

.consent-field[hidden] {
  display: none !important;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--ink-soft);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
  cursor: pointer;
  background: #edf5fd;
  border: 1px solid rgba(47, 128, 237, 0.22);
  border-radius: 12px;
  padding: 0.85rem 1rem;
}

.consent input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  flex-shrink: 0;
  accent-color: var(--blue);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 13px;
  padding: 0.85rem 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  transition:
    background 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.15s ease,
    transform 0.2s ease,
    filter 0.2s ease;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(36, 151, 232, 0.35);
}

.btn-primary {
  background: var(--blue-btn);
  color: var(--blue-btn-text);
}

.btn-primary:hover:not(:disabled) {
  background: var(--blue-btn-hover);
}

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

/* Primary registration CTA */
.btn-cta {
  height: 54px;
  min-height: 54px;
  padding: 0 1.25rem;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #2497e8 0%, #1456c7 100%);
  box-shadow: 0 8px 22px rgba(25, 111, 214, 0.24);
  cursor: pointer;
}

.btn-cta:hover:not(:disabled):not(.is-loading) {
  transform: translateY(-1px);
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(25, 111, 214, 0.32);
}

.btn-cta:active:not(:disabled):not(.is-loading) {
  transform: translateY(0);
  box-shadow: 0 6px 16px rgba(25, 111, 214, 0.2);
}

.btn-cta:disabled,
.btn-cta.is-loading {
  background: linear-gradient(135deg, #b7d4ef 0%, #9bb8d8 100%);
  box-shadow: none;
  filter: none;
  transform: none;
  cursor: not-allowed;
  opacity: 0.6;
  pointer-events: none;
}

.btn-cta.is-loading {
  opacity: 0.85;
  color: #fff;
  background: linear-gradient(135deg, #2497e8 0%, #1456c7 100%);
  cursor: wait;
}

.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  flex-shrink: 0;
  animation: btn-spin 0.7s linear infinite;
}

.btn-spinner[hidden] {
  display: none;
}

.btn-cta.is-loading .btn-lock-icon {
  display: none;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Download result CTA — muted until unlocked */
.btn-download {
  height: 54px;
  min-height: 54px;
  border-radius: 13px;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: #c5daf3;
  color: #fff;
  box-shadow: none;
  cursor: not-allowed;
}

.btn-download:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: #c5daf3;
  color: #fff;
}

.btn-download:not(:disabled),
.btn-download.is-ready {
  color: #fff;
  cursor: pointer;
  background: linear-gradient(135deg, #2497e8 0%, #1456c7 100%);
  box-shadow: 0 8px 22px rgba(25, 111, 214, 0.22);
  opacity: 1;
}

.btn-download:not(:disabled):hover,
.btn-download.is-ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(25, 111, 214, 0.32);
  filter: brightness(1.04);
}

.btn-download:not(:disabled):active {
  transform: translateY(0);
}

.btn-download.pulse-once {
  animation: download-pulse 0.9s ease-out 1;
}

@keyframes download-pulse {
  0% {
    box-shadow: 0 8px 22px rgba(25, 111, 214, 0.22);
  }
  40% {
    box-shadow: 0 0 0 0 rgba(36, 151, 232, 0.45), 0 10px 28px rgba(25, 111, 214, 0.35);
  }
  100% {
    box-shadow: 0 8px 22px rgba(25, 111, 214, 0.22);
  }
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: #f2f4f7;
  color: var(--ink-soft);
}

.btn-ghost:hover {
  background: #e4e7ec;
}

.btn-icon {
  flex-shrink: 0;
}

/* Admin form alert (login errors) */
.form-alert {
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  background: var(--danger-bg);
  color: var(--danger);
  font-size: 0.9rem;
  border: 1px solid #fecdca;
}

.form-alert[hidden] {
  display: none;
}

.form-alert-visible {
  display: block;
}

/* Lightweight toast popups */
.app-toast {
  position: fixed;
  top: 1.25rem;
  left: 50%;
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  width: min(calc(100% - 2rem), 380px);
  padding: 0.9rem 1rem;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 40px rgba(16, 24, 40, 0.16);
  border: 1px solid var(--line-soft);
  transform: translate(-50%, -12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
  pointer-events: auto;
}

.app-toast .toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

.app-toast--success .toast-icon {
  background: #dcfae6;
  color: var(--success);
}

.app-toast--error .toast-icon {
  background: #fecdca;
  color: var(--danger);
}

.app-toast--success {
  border-left: 3px solid var(--success);
}

.app-toast--error {
  border-left: 3px solid var(--danger);
}

.app-toast strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.app-toast span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.35;
}

/* Preview / result column */
.preview-col {
  position: sticky;
  top: 1rem;
}

.preview-col.is-unlocked .event-card {
  box-shadow: 0 20px 52px rgba(8, 20, 48, 0.28);
}

.event-card {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(8, 20, 48, 0.25);
  margin-bottom: 0.85rem;
  color: #fff;
}

.event-card-bg {
  position: absolute;
  inset: 0;
  background-color: #040c1c;
  background-image: url("../images/card-bg.jpeg");
  background-size: cover;
  background-position: center;
}

.event-card-content {
  position: relative;
  z-index: 1;
  height: 100%;
  padding: 5.5% 6%;
  display: flex;
  flex-direction: column;
}

.event-badge {
  align-self: flex-start;
  background: rgba(90, 168, 230, 0.95);
  color: #fff;
  font-size: clamp(0.55rem, 1.5vw, 0.72rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 0.85em;
  border-radius: 999px;
  margin-bottom: 4.5%;
  margin-left: -0.35em;
}

.event-title-block {
  font-family: "Montserrat", var(--font);
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: -0.01em;
  font-size: clamp(1.25rem, 3.8vw, 1.95rem);
  color: #6eb8ef;
  margin-bottom: 0.15em;
}

.event-line.accent,
.event-line.title-second {
  color: #6eb8ef;
}

.title-main {
  display: block;
}

.title-second {
  display: block;
  margin-top: 0.12em;
}

.title-second-words {
  position: relative;
  display: inline-block;
  padding-top: 0.42em;
}

.event-year {
  position: absolute;
  right: 0;
  top: 0;
  font-size: 0.38em;
  line-height: 1;
  color: #6eb8ef;
  letter-spacing: 0.02em;
  font-weight: 800;
}

.event-tagline {
  margin: 0.65em 0 0;
  font-family: "Montserrat", var(--font);
  font-size: clamp(0.55rem, 1.5vw, 0.78rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.95);
}

.event-person {
  margin-top: auto;
  display: grid;
  grid-template-columns: minmax(72px, 28%) 1fr;
  gap: 4%;
  align-items: center;
  padding: 5% 0 4%;
}

.event-photo {
  aspect-ratio: 327 / 351;
  border-radius: 14%;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(140, 190, 240, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: "Montserrat", var(--font);
  font-size: clamp(0.55rem, 1.4vw, 0.75rem);
  color: rgba(220, 230, 245, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

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

.event-identity {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85em;
  font-family: "Montserrat", var(--font);
}

.event-name,
.event-desig {
  font-family: "Montserrat", var(--font);
  font-size: clamp(0.78rem, 2.2vw, 1.15rem);
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.2;
  word-break: break-word;
  padding-bottom: 0.28em;
  border-bottom: 1.5px solid rgba(100, 175, 235, 0.9);
  color: #fff;
}

.event-desig {
  font-size: clamp(0.68rem, 1.85vw, 0.95rem);
  font-weight: 300;
  letter-spacing: 0.07em;
}

.event-desig[hidden] {
  display: none !important;
}

.event-desig.is-placeholder {
  opacity: 0.9;
}

.event-meta {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1.15fr;
  gap: 0;
  border: 1.5px solid rgba(100, 175, 235, 0.55);
  border-radius: 14px;
  padding: 3.5% 2%;
  background: rgba(10, 35, 75, 0.45);
}

.event-meta > div {
  padding: 0 3%;
  border-right: 1px solid rgba(100, 175, 235, 0.4);
}

.event-meta > div:last-child {
  border-right: 0;
}

.meta-label {
  font-size: clamp(0.5rem, 1.2vw, 0.68rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(150, 185, 220, 0.95);
  font-weight: 700;
  margin-bottom: 0.25em;
}

.meta-value {
  font-size: clamp(0.58rem, 1.45vw, 0.84rem);
  font-weight: 700;
  line-height: 1.25;
  text-transform: uppercase;
}

.meta-value sup {
  font-size: 0.62em;
  line-height: 0;
}

.meta-sub {
  margin-top: 0.15em;
  font-size: clamp(0.48rem, 1.1vw, 0.68rem);
  color: rgba(190, 205, 225, 0.9);
}

.download-hint {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.84rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.download-hint.is-ready {
  color: var(--blue-deep);
  font-weight: 600;
}

/* Honeypot */
.hp {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Crop modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 16, 28, 0.55);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
  padding: 1rem 1rem 1.1rem;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
}

.modal-close {
  border: 0;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0.15rem 0.4rem;
}

.crop-stage {
  background: #0b1220;
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
}

#crop-canvas {
  width: 100%;
  height: 100%;
  display: block;
  cursor: grab;
  max-width: 100%;
}

#crop-canvas:active {
  cursor: grabbing;
}

.crop-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.9rem 0;
}

.zoom-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

#crop-zoom {
  flex: 1;
}

.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
}

/* Admin */
.admin-body {
  background: #f7f9fc;
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.admin-login-card {
  width: min(100%, 400px);
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
}

.admin-login-card h1 {
  margin: 1rem 0 0.35rem;
  font-size: 1.4rem;
}

.admin-login-sub {
  margin: 0 0 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.admin-back {
  margin: 1rem 0 0;
  text-align: center;
  font-size: 0.9rem;
}

.admin-bar {
  background: #fff;
  border-bottom: 1px solid var(--line-soft);
}

.admin-bar-inner {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
  padding: 0.85rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #e8f1fb;
  color: var(--blue-deep);
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
}

.admin-main {
  width: min(100% - 2rem, 1100px);
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.admin-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.admin-heading h1 {
  margin: 0;
  font-size: 1.6rem;
}

.admin-count {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

.admin-search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.admin-search input {
  min-width: min(100%, 260px);
}

.table-wrap {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: auto;
  box-shadow: var(--shadow);
}

.admin-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.admin-page-meta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
  cursor: not-allowed;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

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

.admin-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: #fafbfc;
  white-space: nowrap;
}

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

.empty-row {
  text-align: center;
  color: var(--muted);
  padding: 2rem 1rem !important;
}

.admin-notice {
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.admin-notice--success {
  background: #ecfdf3;
  border: 1px solid #a6f4c5;
  color: #027a48;
}

.admin-notice--error {
  background: var(--danger-bg);
  border: 1px solid #fecdca;
  color: var(--danger);
}

.admin-settings {
  margin-top: 1.5rem;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 1rem 1.25rem;
}

.admin-settings summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
}

.admin-password-form {
  max-width: 380px;
  margin-top: 1rem;
}

.admin-password-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.7rem 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.admin-password-form input:focus {
  border-color: #2497e8;
  box-shadow: 0 0 0 3px rgba(36, 151, 232, 0.1);
}

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

/* Responsive */
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .preview-col {
    position: static;
    order: 2;
  }

  .form-card {
    order: 1;
  }

  .event-card {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 640px) {
  .page {
    width: min(100% - 1.25rem, var(--max));
    padding-top: 1.1rem;
  }

  .brand-logo {
    width: 92px;
    max-height: 64px;
  }

  .brand-logo--admin {
    width: 72px;
    max-height: 48px;
  }

  .form-card {
    padding: 1.15rem 1rem 1.25rem;
  }

  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    display: block;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .admin-table td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border: 0;
    padding: 0.3rem 1rem;
  }

  .admin-table td::before {
    content: attr(data-label);
    font-weight: 700;
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
  }

  .empty-row {
    display: block !important;
  }

  .modal-actions {
    justify-content: stretch;
  }

  .modal-actions .btn {
    flex: 1 1 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }

  .btn-cta:hover:not(:disabled):not(.is-loading),
  .btn-download:not(:disabled):hover {
    transform: none;
  }

  .app-toast {
    transform: translate(-50%, 0);
  }
}
