:root {
  --ivory: #f8f3e9;
  --paper: #fffdf8;
  --sand: #e9ddca;
  --gold: #c59a4b;
  --gold-deep: #9b7434;
  --med-blue: #416a96;
  --navy: #102d55;
  --navy-2: #173d6b;
  --sage: #7f8b6b;
  --ink: #253040;
  --muted: #6f7782;
  --line: rgba(16, 45, 85, .14);
  --danger: #a13d3d;
  --success: #3f775e;
  --warning: #a46f25;
  --shadow: 0 18px 50px rgba(16, 45, 85, .10);
  --radius: 22px;
  --radius-sm: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% -10%, rgba(197, 154, 75, .18), transparent 26%),
    radial-gradient(circle at 94% 2%, rgba(65, 106, 150, .14), transparent 28%),
    linear-gradient(180deg, #f9f5ed 0%, #f3ecdf 100%);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(65,106,150,.22);
  outline-offset: 2px;
}

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 4vw, 54px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 253, 248, .90);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand { display: flex; align-items: center; gap: 14px; min-width: 0; }
.brand-logo-only{gap:0}
.brand-mark {
  width: 48px; height: 48px; display: grid; place-items: center;
  border: 1px solid var(--gold); border-radius: 50%; color: var(--navy);
  font: 600 30px/1 "Cormorant Garamond", Georgia, serif;
  background: linear-gradient(145deg, #fffdf8, #f2e6d1);
  box-shadow: inset 0 0 0 5px rgba(197,154,75,.06);
}
.brand-title { color: var(--navy); font: 600 26px/1 "Cormorant Garamond", Georgia, serif; white-space: nowrap; }
.brand-title em { font-weight: 500; }
.brand-subtitle { margin-top: 5px; color: var(--gold-deep); text-transform: uppercase; letter-spacing: .22em; font-size: 10px; font-weight: 700; }

.topbar-actions { display: flex; align-items: center; gap: 10px; }
.event-status { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 5px rgba(197,154,75,.12); }

.button, .icon-button {
  border: 0; border-radius: 999px; transition: .2s ease; font-weight: 700;
}
.button { padding: 11px 17px; }
.button-primary { color: white; background: var(--navy); box-shadow: 0 10px 24px rgba(16,45,85,.16); }
.button-primary:hover { background: var(--navy-2); transform: translateY(-1px); }
.button-ghost { color: var(--navy); background: rgba(16,45,85,.06); }
.button-ghost:hover { background: rgba(16,45,85,.10); }
.button-danger { color: white; background: var(--danger); }
.button-small { padding: 8px 12px; font-size: 12px; }
.icon-button { width: 40px; height: 40px; color: var(--navy); background: transparent; border: 1px solid var(--line); }
.icon-button:hover { background: var(--paper); }

.main-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px clamp(20px, 4vw, 54px);
  background: rgba(248,243,233,.78);
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.nav-item {
  border: 0; background: transparent; color: var(--muted); white-space: nowrap;
  padding: 10px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
}
.nav-item:hover { color: var(--navy); background: rgba(16,45,85,.05); }
.nav-item.active { color: white; background: var(--navy); }

.main-content { width: min(1520px, 100%); margin: 0 auto; padding: 30px clamp(18px, 4vw, 54px) 60px; flex: 1; }
.page-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 22px; }
.eyebrow { color: var(--gold-deep); text-transform: uppercase; letter-spacing: .18em; font-size: 11px; font-weight: 800; margin-bottom: 7px; }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: "Cormorant Garamond", Georgia, serif; }
h1 { font-size: clamp(38px, 5vw, 64px); line-height: .95; font-weight: 600; }
h2 { font-size: 30px; font-weight: 600; }
h3 { font-size: 22px; font-weight: 600; }
.page-subtitle { margin: 10px 0 0; color: var(--muted); max-width: 760px; font-size: 14px; }
.header-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

.hero {
  position: relative;
  overflow: hidden;
  min-height: 345px;
  border-radius: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(197,154,75,.25);
  background:
    linear-gradient(90deg, rgba(9,31,61,.88) 0%, rgba(9,31,61,.60) 42%, rgba(9,31,61,.10) 76%, rgba(9,31,61,.02) 100%),
    url('assets/dashboard-hero-background.png') center 68% / cover no-repeat;
  display: flex;
  align-items: center;
  margin-bottom: 22px;
}
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgba(9,31,61,.18)); pointer-events: none; }
.hero-content { position: relative; z-index: 1; max-width: 620px; padding: clamp(28px, 5vw, 62px); color: white; }
.hero-kicker { color: #ead1a0; text-transform: uppercase; letter-spacing: .26em; font-size: 11px; font-weight: 800; }
.hero-title { color: white; margin-top: 10px; font-size: clamp(48px, 7vw, 82px); line-height: .82; }
.hero-title em { display: block; font-weight: 500; }
.hero-copy { max-width: 560px; margin: 20px 0; color: rgba(255,255,255,.82); line-height: 1.7; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-pill { padding: 9px 12px; border-radius: 999px; background: rgba(255,255,255,.11); border: 1px solid rgba(255,255,255,.20); font-size: 12px; font-weight: 700; }

.grid { display: grid; gap: 18px; }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.card {
  background: rgba(255,253,248,.91);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 34px rgba(16,45,85,.06);
  padding: 20px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
.card-title { font-family: "Manrope", sans-serif; color: var(--navy); font-size: 14px; font-weight: 800; }
.card-subtitle { color: var(--muted); font-size: 12px; margin-top: 4px; }
.card-link { color: var(--med-blue); border: 0; background: none; font-size: 12px; font-weight: 800; }

.stat-card { position: relative; overflow: hidden; min-height: 126px; }
.stat-card::after { content: ""; position: absolute; width: 100px; height: 100px; border-radius: 50%; right: -34px; top: -34px; background: radial-gradient(circle, rgba(197,154,75,.18), transparent 66%); }
.stat-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.stat-value { margin-top: 13px; color: var(--navy); font: 600 34px/1 "Cormorant Garamond", Georgia, serif; }
.stat-note { margin-top: 9px; color: var(--muted); font-size: 11px; }
.stat-progress { height: 6px; margin-top: 15px; background: rgba(16,45,85,.08); border-radius: 999px; overflow: hidden; }
.stat-progress > span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--med-blue)); }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown-unit { padding: 13px 8px; text-align: center; border-radius: 14px; background: rgba(16,45,85,.05); }
.countdown-number { color: var(--navy); font: 600 30px/1 "Cormorant Garamond", Georgia, serif; }
.countdown-label { margin-top: 5px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 800; }

.split-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(300px, .75fr); gap: 18px; margin-top: 18px; }
.list { display: grid; gap: 10px; }
.list-item { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: rgba(255,255,255,.55); }
.list-primary { min-width: 0; }
.list-title { color: var(--navy); font-size: 13px; font-weight: 800; }
.list-meta { color: var(--muted); font-size: 11px; margin-top: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.badge { display: inline-flex; align-items: center; justify-content: center; min-height: 26px; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.badge-confirmed, .badge-completed, .badge-paid, .badge-contracted { color: var(--success); background: rgba(63,119,94,.11); }
.badge-pending, .badge-open, .badge-planning, .badge-partial { color: var(--warning); background: rgba(164,111,37,.11); }
.badge-declined, .badge-overdue, .badge-cancelled { color: var(--danger); background: rgba(161,61,61,.10); }
.badge-draft, .badge-not-started, .badge-invited { color: var(--med-blue); background: rgba(65,106,150,.11); }
.badge-high { color: var(--danger); background: rgba(161,61,61,.10); }
.badge-medium { color: var(--warning); background: rgba(164,111,37,.11); }
.badge-low { color: var(--success); background: rgba(63,119,94,.10); }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 15px; }
.toolbar-left, .toolbar-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.search-box { min-width: 250px; }
.input, .select, .textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.88); color: var(--ink); padding: 11px 12px;
}
.input::placeholder, .textarea::placeholder { color: #9ba0a8; }
.textarea { min-height: 100px; resize: vertical; }
.select { appearance: auto; }

.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
table { width: 100%; border-collapse: collapse; min-width: 980px; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: middle; }
th { color: var(--muted); text-transform: uppercase; letter-spacing: .08em; font-size: 9px; font-weight: 800; background: rgba(16,45,85,.035); position: sticky; top: 0; z-index: 1; }
tbody tr:hover { background: rgba(65,106,150,.04); }
tbody tr:last-child td { border-bottom: 0; }
.row-actions { display: flex; justify-content: flex-end; gap: 6px; }
.action-button { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--navy); font-weight: 800; }
.action-button:hover { background: var(--ivory); }
.action-button.danger { color: var(--danger); }

.empty-state { text-align: center; padding: 50px 22px; }
.empty-symbol { width: 60px; height: 60px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid rgba(197,154,75,.35); border-radius: 50%; color: var(--gold-deep); font: 600 28px/1 "Cormorant Garamond", serif; }
.empty-title { color: var(--navy); font-weight: 800; }
.empty-copy { max-width: 480px; margin: 7px auto 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }

.timeline-list { position: relative; display: grid; gap: 14px; }
.timeline-list::before { content: ""; position: absolute; left: 64px; top: 10px; bottom: 10px; width: 1px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 50px 1fr auto; gap: 26px; align-items: start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,255,255,.62); }
.timeline-time { color: var(--gold-deep); font-weight: 800; font-size: 12px; }
.timeline-item::before { content: ""; position: absolute; left: 59px; top: 21px; width: 11px; height: 11px; border-radius: 50%; background: var(--paper); border: 3px solid var(--gold); }
.timeline-title { color: var(--navy); font-weight: 800; font-size: 13px; }
.timeline-meta { margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.5; }

.progress-ring { --value: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold) calc(var(--value) * 1%), rgba(16,45,85,.08) 0); position: relative; }
.progress-ring::before { content: ""; width: 70px; height: 70px; border-radius: 50%; background: var(--paper); position: absolute; }
.progress-ring span { position: relative; z-index: 1; color: var(--navy); font-weight: 800; font-size: 13px; }

.seating-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.table-card { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: rgba(255,255,255,.65); }
.table-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.table-name { color: var(--navy); font-weight: 800; }
.table-count { color: var(--muted); font-size: 11px; }
.seat-dots { display: grid; grid-template-columns: repeat(5, 1fr); gap: 7px; margin: 14px 0; }
.seat-dot { aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); background: rgba(16,45,85,.04); }
.seat-dot.filled { background: var(--gold); border-color: var(--gold); }
.table-guest-list { display: grid; gap: 5px; color: var(--muted); font-size: 10px; max-height: 86px; overflow: auto; }

.asset-layout { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 22px; }
.flyer-frame { background: #e8dcc9; border-radius: 22px; padding: 13px; box-shadow: var(--shadow); }
.flyer-frame img { width: 100%; display: block; border-radius: 14px; }
.brand-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.swatch { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: white; }
.swatch-color { height: 72px; }
.swatch-label { padding: 10px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.download-link { display: inline-flex; text-decoration: none; }

.settings-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.form-group { display: grid; gap: 7px; }
.form-label { color: var(--navy); font-size: 11px; font-weight: 800; }
.form-hint { color: var(--muted); font-size: 10px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.form-row-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.form-section { grid-column: 1 / -1; margin-top: 7px; padding-top: 15px; border-top: 1px solid var(--line); color: var(--gold-deep); text-transform: uppercase; letter-spacing: .14em; font-size: 10px; font-weight: 800; }

.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; background: rgba(8,23,42,.56); backdrop-filter: blur(8px); }
.modal-backdrop[hidden] { display: none; }
.modal { width: min(760px, 100%); max-height: min(90vh, 900px); display: flex; flex-direction: column; border-radius: 24px; background: var(--paper); box-shadow: 0 26px 100px rgba(8,23,42,.30); overflow: hidden; }
.modal-header, .modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 18px 22px; }
.modal-header { border-bottom: 1px solid var(--line); }
.modal-footer { border-top: 1px solid var(--line); justify-content: flex-end; }
.modal-body { padding: 22px; overflow-y: auto; display: grid; gap: 14px; }

.toast { position: fixed; right: 24px; bottom: 24px; z-index: 80; max-width: 380px; padding: 13px 16px; border-radius: 14px; color: white; background: var(--navy); box-shadow: 0 14px 36px rgba(8,23,42,.24); font-size: 12px; font-weight: 700; }
.toast[hidden] { display: none; }

.footer { display: flex; justify-content: space-between; gap: 20px; padding: 16px clamp(20px, 4vw, 54px); border-top: 1px solid var(--line); color: var(--muted); background: rgba(255,253,248,.66); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }

@media (max-width: 1120px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split-layout, .asset-layout { grid-template-columns: 1fr; }
  .seating-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .topbar { align-items: flex-start; padding: 14px 16px; }
  .brand-mark { width: 42px; height: 42px; }
  .brand-title { font-size: 21px; }
  .brand-subtitle { font-size: 8px; }
  .event-status, #openGuestPortal { display: none; }
  .main-nav { padding-left: 14px; padding-right: 14px; }
  .main-content { padding: 22px 14px 48px; }
  .page-header { align-items: flex-start; flex-direction: column; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .hero { min-height: 430px; background-position: 62% 35%; }
  .hero-content { align-self: flex-end; padding: 28px; }
  .grid-4, .grid-3, .grid-2, .settings-grid, .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(4, 1fr); }
  .seating-grid { grid-template-columns: 1fr; }
  .search-box { min-width: 100%; }
  .toolbar-left, .toolbar-right { width: 100%; }
  .toolbar .input, .toolbar .select { flex: 1; }
  .timeline-item { grid-template-columns: 42px 1fr; gap: 20px; }
  .timeline-item > .row-actions { grid-column: 2; justify-content: flex-start; }
  .timeline-list::before { left: 56px; }
  .timeline-item::before { left: 51px; }
  .footer { flex-direction: column; gap: 6px; }
}

@media print {
  .topbar, .main-nav, .footer, .header-actions, .toolbar, .row-actions { display: none !important; }
  body { background: white; }
  .main-content { padding: 0; }
  .card, .hero { box-shadow: none; break-inside: avoid; }
}

.brand-logo{width:190px;max-height:78px;object-fit:contain;object-position:left center;display:block}.brand-mark{display:none}@media(max-width:720px){.brand-logo{width:145px;max-height:58px}.brand-copy{display:none}}


/* v1.1.9 refinements */
.hero{background-position:center 68%;}

/* v1.2.0 official-brand refinements */
.hero-brand-logo{display:block;width:min(470px,85%);max-height:175px;object-fit:contain;object-position:left center;filter:brightness(0) invert(1);margin:10px 0 16px;background:transparent;border:0;box-shadow:none}
.footer-brand{display:inline-flex;align-items:center;gap:12px}.footer-brand img{width:125px;max-height:42px;object-fit:contain}.footer-brand strong{color:var(--navy);font-weight:700;white-space:nowrap}
@media(max-width:720px){.hero-brand-logo{width:min(330px,92%)}.footer-brand img{width:96px}.footer-brand strong{font-size:11px}}
