:root {
  --bg: #f5efe4;
  --paper: rgba(255, 252, 245, 0.82);
  --card: rgba(255, 250, 240, 0.94);
  --ink: #1f2a2e;
  --muted: #667479;
  --accent: #cf5c36;
  --teal: #146c78;
  --line: rgba(31, 42, 46, 0.1);
  --success: #2d8f57;
  --warning: #d89216;
  --danger: #ba3d2f;
  --shadow: 0 24px 60px rgba(60, 43, 20, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(20, 108, 120, 0.18), transparent 32%),
    radial-gradient(circle at 85% 10%, rgba(207, 92, 54, 0.18), transparent 28%),
    linear-gradient(135deg, #f6f1e8, #efe2cf 52%, #f3ecdf);
}

button,
input,
select,
textarea {
  font: inherit;
}

.hidden {
  display: none !important;
}

.page-shell {
  display: grid;
  grid-template-columns: 1.02fr 1.4fr;
  gap: 24px;
  padding: 24px;
  min-height: 100vh;
}

.hero-panel {
  display: none;
}

.page-shell {
  grid-template-columns: 1fr;
}

.hero-panel,
.app-panel {
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 40px;
  border-radius: 32px;
  background:
    linear-gradient(160deg, rgba(16, 74, 82, 0.93), rgba(22, 32, 35, 0.96)),
    linear-gradient(120deg, rgba(207, 92, 54, 0.35), transparent 40%);
  color: #f7f3ec;
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: auto -70px -80px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(207, 92, 54, 0.18);
  filter: blur(4px);
}

.hero-badge,
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  letter-spacing: 0.08em;
  font-size: 12px;
  text-transform: uppercase;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.12);
  color: #f8d7c9;
}

.eyebrow {
  background: rgba(20, 108, 120, 0.1);
  color: var(--teal);
  margin-bottom: 10px;
}

.hero-panel h1,
.app-panel h2,
.side-card h3,
.panel-card h3 {
  font-family: "Space Grotesk", "Noto Sans SC", sans-serif;
  margin: 0;
}

.hero-panel h1 {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  margin-top: 20px;
}

.hero-copy {
  margin: 18px 0 28px;
  max-width: 34rem;
  line-height: 1.8;
  color: rgba(247, 243, 236, 0.82);
}

.hero-grid {
  display: grid;
  gap: 14px;
}

.hero-grid article {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 18px 20px;
}

.hero-grid span {
  display: block;
  color: #f6bfaa;
  font-size: 13px;
  margin-bottom: 8px;
}

.hero-grid strong {
  font-size: 16px;
  font-weight: 600;
}

.app-panel {
  background: var(--paper);
  border-radius: 32px;
  padding: 28px;
}

.login-card,
.dashboard {
  animation: rise 0.5s ease;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.quick-login {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.quick-login button,
.tab-nav button,
.ghost-btn,
.primary-btn,
.secondary-btn {
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.quick-login button {
  text-align: left;
  padding: 16px;
  background: #fff7ef;
  border: 1px solid rgba(207, 92, 54, 0.18);
  color: var(--ink);
}

.quick-login button:hover,
.tab-nav button:hover,
.ghost-btn:hover,
.primary-btn:hover,
.secondary-btn:hover {
  transform: translateY(-2px);
}

.quick-login strong,
.quick-login span {
  display: block;
}

.quick-login span {
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.login-form,
.form-grid {
  display: grid;
  gap: 16px;
}

.login-form {
  max-width: 420px;
}

label span {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  padding: 14px 16px;
  color: var(--ink);
}

textarea {
  min-height: 112px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(20, 108, 120, 0.2);
  border-color: rgba(20, 108, 120, 0.4);
}

.primary-btn,
.secondary-btn,
.ghost-btn {
  padding: 12px 18px;
  font-weight: 700;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), #e97e4c);
  color: #fff;
  box-shadow: 0 12px 24px rgba(207, 92, 54, 0.24);
}

.secondary-btn {
  background: rgba(20, 108, 120, 0.12);
  color: var(--teal);
}

.ghost-btn {
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  border: 1px solid var(--line);
}

.topbar,
.topbar-actions,
.tab-nav,
.list-header,
.booking-meta,
.inline-actions {
  display: flex;
  align-items: center;
}

.topbar {
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  gap: 10px;
  flex-wrap: wrap;
}

.status-pill {
  border-radius: 999px;
  padding: 9px 14px;
  background: rgba(45, 143, 87, 0.14);
  color: var(--success);
  font-weight: 700;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.stat-card,
.panel-card,
.side-card,
.table-card,
.booking-card {
  border-radius: 24px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 16px 36px rgba(83, 61, 36, 0.08);
}

.stat-card {
  padding: 20px;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
}

.stat-value {
  display: block;
  font-size: 32px;
  margin: 10px 0 6px;
}

.stat-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.tab-nav {
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 18px;
}

.tab-nav button {
  background: rgba(255, 255, 255, 0.7);
  color: var(--muted);
  padding: 12px 16px;
  white-space: nowrap;
}

.tab-nav button.active {
  background: var(--teal);
  color: #fff;
  box-shadow: 0 12px 24px rgba(20, 108, 120, 0.2);
}

.panel-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.8fr;
  gap: 18px;
}

.panel-content,
.side-panel {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel-card,
.side-card,
.table-card {
  padding: 22px;
}

.panel-card p,
.side-card p {
  color: var(--muted);
}

.form-grid.two-col,
.cards-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-grid.three-col {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cards-grid,
.booking-list,
.table-list {
  display: grid;
  gap: 14px;
}

.booking-card {
  padding: 18px;
}

.booking-card header,
.list-header {
  justify-content: space-between;
  gap: 12px;
}

.booking-card h4,
.table-card h4 {
  margin: 0;
  font-size: 18px;
}

.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}

.tag.pending {
  background: rgba(216, 146, 22, 0.14);
  color: var(--warning);
}

.tag.approved,
.tag.active {
  background: rgba(45, 143, 87, 0.14);
  color: var(--success);
}

.tag.rejected,
.tag.suspended,
.tag.exception {
  background: rgba(186, 61, 47, 0.14);
  color: var(--danger);
}

.tag.cancelled,
.tag.inactive {
  background: rgba(102, 116, 121, 0.16);
  color: var(--muted);
}

.booking-meta,
.inline-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.inline-actions {
  margin-top: 18px;
}

.meta-pill {
  border-radius: 999px;
  padding: 8px 12px;
  background: rgba(20, 108, 120, 0.08);
  color: var(--teal);
  font-size: 13px;
}

.simple-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.simple-list li {
  color: var(--muted);
  line-height: 1.6;
}

.empty-state {
  border: 1px dashed rgba(31, 42, 46, 0.16);
  border-radius: 20px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.table-list .table-card {
  padding: 16px 18px;
}

.table-card p {
  margin: 8px 0 0;
}

.table-card small {
  color: var(--muted);
}

.section-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 16px;
}

.section-head p {
  margin: 8px 0 0;
}

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

@media (max-width: 1080px) {
  .page-shell,
  .panel-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel {
    min-height: auto;
  }
}

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

  .hero-panel,
  .app-panel {
    padding: 20px;
    border-radius: 24px;
  }

  .form-grid.two-col,
  .form-grid.three-col,
  .cards-grid {
    grid-template-columns: 1fr;
  }

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