:root {
  --bg: #f5f0e8;
  --surface: #ffffff;
  --text: #263227;
  --muted: #708071;
  --olive: #667b5b;
  --olive-dark: #40523b;
  --gold: #c4a96a;
  --line: #e8e3d9;
  --danger: #8f403b;
  --shadow: 0 18px 50px rgba(35, 47, 36, 0.10);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 10%, rgba(196, 169, 106, 0.18), transparent 32%),
    radial-gradient(circle at 12% 25%, rgba(102, 123, 91, 0.13), transparent 30%),
    var(--bg);
}

button, input { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }

.admin-shell {
  width: min(1440px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 72px;
}

.login-card {
  width: min(520px, 100%);
  margin: 8vh auto 0;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(102,123,91,0.12);
  border-radius: 24px;
  box-shadow: var(--shadow);
  padding: 38px;
}

.brand-kicker {
  margin-top: 22px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h1, h2 {
  font-family: 'Playfair Display', serif;
  margin: 0;
}

h1 {
  margin-top: 8px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
}

.login-copy, .muted {
  color: var(--muted);
}

.login-copy { margin: 12px 0 26px; }
.back-link {
  color: var(--olive-dark);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}

.login-form { display: grid; gap: 18px; }
.login-form label { display: grid; gap: 8px; }
.login-form label span { font-size: 13px; font-weight: 600; }

input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fcfbf8;
  color: var(--text);
  padding: 13px 14px;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

input:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(102,123,91,0.12);
}

.primary-btn, .secondary-btn, .danger-btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
}

.primary-btn {
  background: var(--olive);
  color: #fff;
  margin-top: 4px;
}
.primary-btn:hover { background: var(--olive-dark); }
.secondary-btn { background: #fff; color: var(--olive-dark); border: 1px solid var(--line); }
.danger-btn { background: #fff0ef; color: var(--danger); border: 1px solid #edd1ce; }

.form-message {
  min-height: 20px;
  margin: 0;
  color: var(--danger);
  font-size: 13px;
}

.dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.dashboard-header .brand-kicker { margin-top: 16px; }
.dashboard-header h1 { font-size: clamp(36px, 5vw, 64px); }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

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

.stat-card {
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(102,123,91,0.10);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(35,47,36,0.05);
}
.stat-card span { display: block; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.stat-card strong { font-size: 28px; line-height: 1.1; }
.stat-wide { grid-column: span 2; }

.table-card {
  background: rgba(255,255,255,0.97);
  border: 1px solid rgba(102,123,91,0.10);
  border-radius: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.table-toolbar {
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}
.table-toolbar h2 { font-size: 25px; }
.table-toolbar p { margin: 4px 0 0; font-size: 13px; }
.search-box { width: min(420px, 100%); }

.status-line {
  padding: 12px 24px;
  font-size: 13px;
  color: var(--muted);
  background: #fbfaf7;
  border-bottom: 1px solid var(--line);
}

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 950px; }
th, td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: #fff; }
td { font-size: 14px; }
tbody tr:hover { background: #fbfaf7; }

.person-name { font-weight: 700; }
.contact-link { color: var(--olive-dark); text-decoration: none; }
.contact-link:hover { text-decoration: underline; }
.seat-list { display: flex; flex-wrap: wrap; gap: 6px; }
.seat-chip {
  display: inline-flex;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef2ea;
  color: var(--olive-dark);
  font-size: 12px;
  white-space: nowrap;
}

.empty-state { padding: 50px 24px; text-align: center; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

@media (max-width: 900px) {
  .dashboard-header { align-items: flex-start; flex-direction: column; }
  .header-actions { justify-content: flex-start; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stat-wide { grid-column: span 2; }
  .table-toolbar { flex-direction: column; align-items: stretch; }
  .search-box { width: 100%; }
}

@media (max-width: 560px) {
  .admin-shell { width: min(100% - 20px, 1440px); padding-top: 18px; }
  .login-card { padding: 24px 18px; border-radius: 18px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-wide { grid-column: span 1; }
  .header-actions { width: 100%; }
  .header-actions button { flex: 1; min-width: 130px; }
}

/* Dark event identity for organizer dashboard */
:root { --bg:#100c0a; --surface:#211813; --text:#fff0d9; --muted:#c5ad8c; --olive:#ffc361; --olive-dark:#f3a934; --gold:#ffcf75; --line:#57402b; --danger:#e27b68; --shadow:0 22px 65px rgba(0,0,0,.35); }
body { color:var(--text); background:radial-gradient(ellipse at 85% 0%,rgba(158,91,25,.2),transparent 45%),linear-gradient(145deg,#1d1410,#0e0b09 75%); }
.login-card,.stat-card,.table-card { background:linear-gradient(145deg,rgba(43,30,22,.98),rgba(26,20,16,.99)); border:1px solid rgba(255,193,93,.21); box-shadow:var(--shadow); }
h1,h2 { color:#ffdf9c; }
.brand-kicker { color:#ffbc51; }
.login-copy,.muted { color:#cdb89d; }
.back-link { color:#ffcd79; }
input { background:#19130f; border:1px solid #685039; color:#fff0d9; }
input::placeholder { color:#a38d75; }
input:focus { border-color:#ffbd56; box-shadow:0 0 0 3px rgba(255,188,80,.16); }
.primary-btn { background:linear-gradient(120deg,#ffce69,#df8b1b); color:#241407; border-color:#f4b95b; }
.secondary-btn { background:#33251a; color:#ffe3b0; border-color:#705136; }
.danger-btn { background:#44251f; color:#ffb5a6; border-color:#855045; }
.stat-card strong { color:#ffd079; }
.table-wrap { scrollbar-color:#7d532c #211813; }
table { color:#f5e6d0; }
th { color:#ffcf7c; background:#302116; }
td { border-bottom-color:rgba(255,193,93,.13); }
tr:hover td { background:rgba(255,192,90,.06); }
.status-line,.empty-state { color:#d3b995; }

.invitation-admin{margin:24px 0;padding:24px}.invite-form{display:grid;gap:14px;max-width:650px;margin:20px 0}.invite-form label{display:grid;gap:7px}.invite-form input,.invite-form textarea,#inviteLink{width:100%;padding:12px;border-radius:9px;border:1px solid #92703b;background:#211a15;color:#f9e9d0;font:inherit}.invite-entry{border-bottom:1px solid #6b5136;padding:9px 0;overflow-wrap:anywhere}#inviteLinkBox{margin:15px 0;max-width:700px}#inviteLinkBox label{display:grid;gap:8px}#inviteCopy{margin-top:8px}.message-entry{padding:14px 0;border-bottom:1px solid #ddd}.message-entry p{white-space:pre-wrap;margin-top:6px}.delete-booking{font-size:12px;padding:7px 9px}


/* DaBro Style 01 — matching admin dashboard */
:root{--bg:#fbf5e9;--surface:#fffdf8;--text:#352416;--muted:#76614b;--olive:#b47b31;--olive-dark:#86511e;--gold:#b98238;--line:#e7d5b7;--danger:#b92b37;--shadow:0 16px 42px rgba(93,56,23,.09)}
body{color:#352416!important;background:radial-gradient(circle at 90% 0%,#f5e2bd 0%,transparent 34%),#fbf5e9!important}.login-card,.stat-card,.table-card,.invitation-admin{background:#fffdf8!important;color:#352416!important;border:1px solid #e8d7bc!important;box-shadow:var(--shadow)!important;border-radius:20px!important}.brand-kicker{color:#a36b2b!important}.login-copy,.muted,.status-line,.empty-state{color:#75614b!important}.back-link,.contact-link{color:#87521f!important}h1,h2{color:#704018!important}.dashboard-header{border-color:#e8d7bc!important}.stat-card strong{color:#815020!important}.primary-btn{background:linear-gradient(120deg,#c48c40,#956020)!important;color:white!important;border:1px solid #ae7a3d!important}.secondary-btn{background:#fffaf0!important;color:#80501f!important;border:1px solid #d8b98b!important}.danger-btn{background:#fff0ee!important;color:#a82532!important;border:1px solid #e5b5b8!important}input,textarea,select,.invite-form input,.invite-form textarea,#inviteLink{background:#fff!important;color:#352416!important;border:1px solid #d9c3a1!important;border-radius:11px!important}input::placeholder,textarea::placeholder{color:#a3937e!important}input:focus,textarea:focus{border-color:#bd8c4b!important;box-shadow:0 0 0 3px rgba(189,140,75,.15)!important}table{color:#382719!important}th{background:#f9efdd!important;color:#76512e!important}td{border-color:#ecdfcc!important}tr:hover td{background:#fff8eb!important}.table-wrap{scrollbar-color:#c7a477 #f5ead7}.seat-chip{background:#f5e7cf!important;color:#664320!important;border:1px solid #e3c9a3!important}.message-entry,.invite-entry{border-bottom:1px solid #ead9bc!important}.form-message{color:#b92b37}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #b98443;outline-offset:3px}
@media(max-width:700px){.admin-shell{width:min(100% - 24px,1440px);padding:24px 0 50px}.login-card,.stat-card,.table-card,.invitation-admin{border-radius:15px!important}.login-card{padding:25px 18px}.dashboard-header{gap:18px}.header-actions{justify-content:flex-start}.stats-grid{gap:10px}.table-toolbar{gap:12px}.table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch}}

/* Visual invitation seat selector */
.invite-seat-picker{margin:18px 0;padding:20px;background:#fffaf0;border:1px solid #e6d2b0;border-radius:18px}
.invite-seat-picker-heading{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;color:#593c23}
.invite-seat-picker-heading span{font-size:12px;color:#78634d}
.invite-sector-switch{display:flex;gap:8px;margin:14px 0}
.invite-sector-switch .is-active{background:#95662d!important;color:white!important;border-color:#95662d!important}
.invite-hall-scroll{overflow-x:auto;overscroll-behavior-inline:contain;border-radius:12px;background:#f5ebdc;padding:14px}
.invite-seat-map{min-width:820px;width:max-content;margin:0 auto;text-align:center}
.invite-stage{background:linear-gradient(90deg,#9e713a,#d1a866,#9e713a);color:white;padding:10px;border-radius:9px;margin-bottom:18px;letter-spacing:.16em;font-weight:700}
.invite-seat-map h3{margin:10px 0;color:#68482a}
.invite-map-row{display:flex;justify-content:center;align-items:center;gap:8px;margin:5px 0}
.invite-map-bank{display:flex;gap:3px;min-width:365px;justify-content:flex-end}
.invite-map-bank:last-child{justify-content:flex-start}
.invite-map-row-number{width:24px;flex:none;font-size:12px;color:#795b3c;font-weight:700}
.invite-map-seat{width:22px;height:25px;padding:0;border:1px solid #b99a70;border-radius:4px;background:#f8ead0;color:#4a3724;font-size:10px;cursor:pointer}
.invite-map-seat.is-selected{background:#bf283b!important;border-color:#bf283b!important;color:#fff!important}
.invite-map-seat.is-occupied{background:#929292!important;color:#fff!important;border-color:#929292!important;cursor:not-allowed}
.invite-map-seat:focus-visible{outline:3px solid #ba792b;outline-offset:2px}
#inviteSeatSummary{margin:12px 0 0;overflow-wrap:anywhere}
