/* ========== Design tokens ========== */
:root {
  --cherry: #9b1b3a;
  --cherry-deep: #6e0f28;
  --cherry-soft: #c43d5c;
  --cream: #faf6f1;
  --cream-dark: #f0e8df;
  --ink: #1a1412;
  --ink-muted: #5c524c;
  --gold: #c4a35a;
  --gold-soft: #e8d5a3;
  --white: #ffffff;
  --shadow: 0 12px 40px rgba(26, 20, 18, 0.12);
  --radius: 12px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Outfit", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-h: 76px;
  --term-green: #3ecf8e;
  --term-bg: #0d1117;

  /* Dashboard: cool slate / teal (distinct from restaurant cherry/cream) */
  --dash-bg: #e8eef5;
  --dash-side: #0f172a;
  --dash-side-mid: #1e293b;
  --dash-accent: #0d9488;
  --dash-accent-deep: #0f766e;
  --dash-accent-soft: #5eead4;
  --dash-card: #ffffff;
  --dash-text: #0f172a;
  --dash-muted: #64748b;
  --dash-border: rgba(15, 23, 42, 0.08);
  --dash-font: "DM Sans", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  min-height: 100vh;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

.view {
  display: none;
  min-height: 100vh;
}

.view.active {
  display: block;
}

#dashboard.view.active {
  display: flex;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

/* ========== Buttons ========== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.95rem;
  transition: transform 0.15s, background 0.2s, color 0.2s, border-color 0.2s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--cherry);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--cherry-deep);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
  color: var(--white);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
}

.btn-sm {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--cream-dark);
  background: var(--white);
  color: var(--ink);
}

.btn-sm.btn-primary {
  border-color: var(--cherry);
  background: var(--cherry);
  color: var(--white);
}

.btn-full {
  width: 100%;
}

/* ========== Header ========== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(250, 246, 241, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 20, 18, 0.06);
}

.header-inner {
  width: min(1120px, 92vw);
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 0.25rem;
  border-radius: 8px;
  user-select: none;
  -webkit-user-select: none;
}

.logo:focus-visible {
  outline: 2px solid var(--cherry);
  outline-offset: 2px;
}

.logo-img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 50%;
  background: #0a0a0a;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(155, 27, 58, 0.15);
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.1;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
}

.logo-amp {
  font-size: 0.7rem;
  color: var(--cherry);
  letter-spacing: 0.05em;
  margin: 0.05rem 0;
}

.nav {
  display: flex;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--ink-muted);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--ink);
  background: var(--cream-dark);
}

.header-cta {
  flex-shrink: 0;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  margin-left: auto;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
}

/* ========== Hero ========== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--header-h) + 2rem) 1.5rem 4rem;
  overflow: hidden;
  color: var(--white);
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(160deg, rgba(26, 20, 18, 0.72) 0%, rgba(110, 15, 40, 0.68) 45%, rgba(26, 20, 18, 0.82) 100%),
    radial-gradient(ellipse at 30% 20%, rgba(196, 163, 90, 0.18), transparent 50%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-logo {
  width: 88px;
  height: 88px;
  object-fit: contain;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  background: #0a0a0a;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 0 2px rgba(196, 163, 90, 0.35);
}

.hero-eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 1.25rem;
  font-weight: 500;
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero-sub {
  font-size: 1.1rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 2rem;
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scaleY(0.8);
  }
  50% {
    opacity: 1;
    transform: scaleY(1);
  }
}

/* ========== Sections ========== */
.section {
  padding: 5.5rem 0;
}

.section-label {
  font-size: 0.8rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cherry);
  font-weight: 500;
  margin-bottom: 0.75rem;
}

.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 3rem;
}

.section-header h2,
.about-text h2,
.contact-info h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-desc {
  color: var(--ink-muted);
}

/* About */
.section-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3.5rem;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-photo-stack {
  position: relative;
  min-height: 420px;
}

.about-photo {
  border-radius: var(--radius);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-photo-main {
  width: 100%;
  max-width: 420px;
  height: 480px;
  display: block;
}

.about-photo-float {
  position: absolute;
  right: 0;
  bottom: 2rem;
  width: 220px;
  height: 160px;
  border: 4px solid var(--cream);
  box-shadow: var(--shadow);
}

.about-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  background: var(--white);
  padding: 0.65rem 1rem 0.65rem 0.65rem;
  border-radius: 999px;
  box-shadow: var(--shadow);
  font-size: 0.85rem;
  font-weight: 500;
  max-width: calc(100% - 2rem);
}

.about-badge img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0a0a0a;
  flex-shrink: 0;
}

.about-text p {
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.about-stats {
  list-style: none;
  display: flex;
  gap: 2rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--cream-dark);
}

.about-stats li {
  display: flex;
  flex-direction: column;
}

.about-stats strong {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--cherry);
  line-height: 1.2;
}

.about-stats span {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

/* Menu */
.menu-section {
  background: var(--white);
}

.menu-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.menu-tab {
  padding: 0.55rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--cream-dark);
  background: transparent;
  cursor: pointer;
  color: var(--ink-muted);
  font-weight: 500;
  transition: all 0.15s;
}

.menu-tab:hover {
  border-color: var(--cherry-soft);
  color: var(--ink);
}

.menu-tab.active {
  background: var(--cherry);
  border-color: var(--cherry);
  color: var(--white);
}

.menu-panel {
  display: none;
  max-width: 640px;
  margin: 0 auto;
}

.menu-panel.active {
  display: block;
}

.menu-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  padding: 1.25rem 0;
  border-bottom: 1px dashed rgba(26, 20, 18, 0.12);
}

.menu-item:last-child {
  border-bottom: none;
}

.menu-item h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.menu-item p {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.menu-price {
  font-weight: 500;
  color: var(--cherry);
  white-space: nowrap;
  font-size: 0.95rem;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 180px);
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--ink);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  display: block;
  min-height: 180px;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(26, 20, 18, 0.75), transparent 55%);
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  left: 1.15rem;
  bottom: 1rem;
  z-index: 1;
  color: var(--white);
  font-weight: 500;
  font-size: 0.95rem;
}

.g1 {
  grid-row: span 2;
  min-height: 100%;
}

.g1 img {
  min-height: 100%;
  height: 100%;
}

/* Contact */
.contact-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: start;
}

.contact-list {
  list-style: none;
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-list strong {
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cherry);
}

.contact-list a:hover {
  color: var(--cherry);
}

.reserve-form {
  background: var(--white);
  border-radius: calc(var(--radius) + 4px);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(26, 20, 18, 0.05);
}

.reserve-form h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.reserve-form label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--ink-muted);
  margin-bottom: 1rem;
}

.reserve-form input,
.reserve-form select,
.reserve-form textarea {
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--cream-dark);
  border-radius: 8px;
  background: var(--cream);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.reserve-form input:focus,
.reserve-form select:focus,
.reserve-form textarea:focus {
  outline: none;
  border-color: var(--cherry-soft);
  box-shadow: 0 0 0 3px rgba(155, 27, 58, 0.12);
}

.form-success {
  margin-top: 1rem;
  color: var(--cherry);
  font-weight: 500;
  text-align: center;
}

/* Footer */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.7);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: contain;
  background: #0a0a0a;
}

.footer-copy {
  font-size: 0.85rem;
}

/* ========== Terminal ========== */
#terminal {
  background: #050608;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1.5rem;
}

#terminal.active {
  display: flex;
}

.term-window {
  width: min(720px, 100%);
  background: var(--term-bg);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
}

.term-titlebar {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1rem;
  background: #161b22;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.term-dots {
  display: flex;
  gap: 0.4rem;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot.red {
  background: #ff5f57;
}

.dot.yellow {
  background: #febc2e;
}

.dot.green {
  background: #28c840;
}

.term-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.term-body {
  padding: 1.25rem 1.25rem 0.5rem;
  min-height: 280px;
  max-height: 50vh;
  overflow-y: auto;
  color: #c9d1d9;
  font-size: 0.9rem;
  line-height: 1.55;
}

.term-line {
  white-space: pre-wrap;
  word-break: break-word;
}

.term-sys {
  color: rgba(201, 209, 217, 0.65);
}

.term-cmd {
  color: var(--term-green);
}

.term-out {
  color: #c9d1d9;
}

.term-err {
  color: #ff7b72;
}

.term-ok {
  color: var(--term-green);
}

.term-blank {
  height: 0.6rem;
}

.term-input-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 1.25rem 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.term-prompt {
  color: var(--term-green);
  font-size: 0.9rem;
  flex-shrink: 0;
}

.term-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #e6edf3;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  caret-color: var(--term-green);
}

.term-back {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: color 0.15s, border-color 0.15s;
}

.term-back:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.35);
}

/* ========== Dashboard (cool slate / teal — English ops UI) ========== */
#dashboard {
  background: var(--dash-bg);
  font-family: var(--dash-font);
  color: var(--dash-text);
}

#dashboard .btn-sm {
  border-radius: 8px;
  border: 1px solid var(--dash-border);
  background: var(--dash-card);
  color: var(--dash-text);
  font-family: var(--dash-font);
}

#dashboard .btn-sm.btn-primary,
#dashboard .btn-primary {
  background: var(--dash-accent);
  border-color: var(--dash-accent);
  color: #fff;
}

#dashboard .btn-sm.btn-primary:hover,
#dashboard .btn-primary:hover {
  background: var(--dash-accent-deep);
  border-color: var(--dash-accent-deep);
}

.dash-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--dash-side) 0%, var(--dash-side-mid) 100%);
  color: rgba(255, 255, 255, 0.88);
  display: flex;
  flex-direction: column;
  padding: 1.5rem 1rem;
  min-height: 100vh;
  border-right: 1px solid rgba(94, 234, 212, 0.08);
}

.dash-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 1rem;
}

.dash-brand-mark {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--dash-accent), #0369a1);
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.dash-brand strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
}

.dash-brand small {
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.dash-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 0.85rem;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(203, 213, 225, 0.85);
  cursor: pointer;
  text-align: left;
  font-size: 0.9rem;
  font-family: var(--dash-font);
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.dash-nav-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.dash-nav-btn.active {
  background: rgba(13, 148, 136, 0.22);
  color: var(--dash-accent-soft);
  box-shadow: inset 0 0 0 1px rgba(94, 234, 212, 0.25);
}

.dash-ico {
  font-size: 1rem;
  width: 1.4rem;
  text-align: center;
}

.dash-logout {
  margin-top: auto;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  background: transparent;
  color: rgba(203, 213, 225, 0.7);
  cursor: pointer;
  font-size: 0.85rem;
  font-family: var(--dash-font);
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.dash-logout:hover {
  color: #fff;
  border-color: rgba(94, 234, 212, 0.4);
  background: rgba(13, 148, 136, 0.12);
}

.dash-force-exit {
  border-color: rgba(248, 113, 113, 0.35);
  color: #fca5a5;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.dash-force-exit:hover {
  color: #fff;
  border-color: rgba(248, 113, 113, 0.7);
  background: rgba(220, 38, 38, 0.25);
}

.dash-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100vh;
}

.dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.35rem 2rem;
  background: var(--dash-card);
  border-bottom: 1px solid var(--dash-border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.03);
}

.dash-header h1 {
  font-family: var(--dash-font);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dash-text);
}

.dash-sub {
  font-size: 0.85rem;
  color: var(--dash-muted);
  margin-top: 0.15rem;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--dash-text);
}

.dash-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--dash-accent), #0284c7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.dash-content {
  padding: 1.5rem 2rem 2.5rem;
  flex: 1;
}

.dash-panel {
  display: none;
}

.dash-panel.active {
  display: block;
}

/* Calendar */
.cal-toolbar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.cal-toolbar h2 {
  font-family: var(--dash-font);
  font-size: 1.15rem;
  font-weight: 600;
  min-width: 220px;
  color: var(--dash-text);
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.65rem;
}

.cal-day {
  background: var(--dash-card);
  border-radius: 12px;
  border: 1px solid var(--dash-border);
  min-height: 200px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.cal-day.today {
  border-color: var(--dash-accent);
  box-shadow: 0 0 0 1px var(--dash-accent), 0 4px 12px rgba(13, 148, 136, 0.12);
}

.cal-day-head {
  padding: 0.65rem 0.75rem;
  background: #f1f5f9;
  border-bottom: 1px solid var(--dash-border);
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.cal-day-name {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--dash-muted);
  font-weight: 600;
}

.cal-day-num {
  font-family: var(--dash-font);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dash-text);
}

.cal-day.today .cal-day-num {
  color: var(--dash-accent-deep);
}

.cal-events {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
}

.cal-event {
  font-size: 0.72rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  line-height: 1.3;
  background: rgba(13, 148, 136, 0.12);
  color: #115e59;
  border-left: 3px solid var(--dash-accent);
  font-weight: 500;
}

.cal-event .cal-time {
  display: block;
  font-weight: 700;
  font-size: 0.68rem;
  opacity: 0.9;
}

.cal-legend {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--dash-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.cal-dot.physio {
  background: var(--dash-accent);
}

/* Notes */
.notes-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1rem;
  min-height: 420px;
}

.notes-list {
  background: var(--dash-card);
  border-radius: 12px;
  border: 1px solid var(--dash-border);
  overflow: auto;
  max-height: 520px;
}

.note-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.9rem 1rem;
  border: none;
  border-bottom: 1px solid var(--dash-border);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s;
  font-family: var(--dash-font);
  color: var(--dash-text);
}

.note-item:hover {
  background: #f1f5f9;
}

.note-item.active {
  background: rgba(13, 148, 136, 0.1);
  border-left: 3px solid var(--dash-accent);
}

.note-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.2rem;
}

.note-item span {
  font-size: 0.75rem;
  color: var(--dash-muted);
}

.notes-editor {
  background: var(--dash-card);
  border-radius: 12px;
  border: 1px solid var(--dash-border);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.notes-editor input {
  border: none;
  border-bottom: 1px solid #e2e8f0;
  padding: 0.5rem 0;
  font-family: var(--dash-font);
  font-size: 1.25rem;
  font-weight: 700;
  background: transparent;
  color: var(--dash-text);
}

.notes-editor input:focus,
.notes-editor textarea:focus {
  outline: none;
}

.notes-editor textarea {
  flex: 1;
  min-height: 280px;
  border: none;
  resize: vertical;
  color: var(--dash-text);
  line-height: 1.6;
  background: transparent;
  font-family: var(--dash-font);
}

.notes-actions {
  display: flex;
  gap: 0.5rem;
}

/* Documents */
.docs-toolbar {
  margin-bottom: 1rem;
}

.docs-toolbar input {
  width: min(320px, 100%);
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--dash-border);
  border-radius: 10px;
  background: var(--dash-card);
  font-family: var(--dash-font);
  color: var(--dash-text);
}

.docs-table-wrap {
  background: var(--dash-card);
  border-radius: 12px;
  border: 1px solid var(--dash-border);
  overflow: auto;
}

.docs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.docs-table th,
.docs-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--dash-border);
}

.docs-table th {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--dash-muted);
  font-weight: 600;
  background: #f1f5f9;
}

.docs-table tr:last-child td {
  border-bottom: none;
}

.docs-table tbody tr:hover {
  background: rgba(13, 148, 136, 0.04);
}

.docs-empty-hint {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: var(--dash-muted);
}

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

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.team-card {
  background: var(--dash-card);
  border-radius: 12px;
  border: 1px solid var(--dash-border);
  padding: 1.5rem;
  text-align: center;
}

.team-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--dash-accent), #0284c7);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  margin: 0 auto 0.85rem;
}

.team-card h3 {
  font-size: 1rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
}

.team-card p {
  font-size: 0.85rem;
  color: var(--dash-muted);
}

.empty-card {
  border-style: dashed;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  color: var(--dash-muted);
  cursor: default;
}

/* Settings */
.settings-card {
  background: var(--dash-card);
  border-radius: 12px;
  border: 1px solid var(--dash-border);
  padding: 1.75rem;
  max-width: 480px;
}

.settings-card h3 {
  font-family: var(--dash-font);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--dash-text);
}

.settings-card p {
  font-size: 0.9rem;
  color: var(--dash-muted);
  margin-bottom: 0.5rem;
}

.settings-card hr {
  border: none;
  border-top: 1px solid #e2e8f0;
  margin: 1.25rem 0;
}

.settings-card .btn {
  margin-top: 0.75rem;
}

/* ========== Responsive ========== */
@media (max-width: 900px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--cream);
    padding: 1rem;
    border-bottom: 1px solid var(--cream-dark);
    margin: 0;
  }

  .nav.open {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .header-cta {
    display: none;
  }

  .section-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .about-photo-main {
    max-width: 100%;
    height: 360px;
  }

  .about-photo-float {
    width: 160px;
    height: 120px;
    bottom: 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto;
  }

  .g1 {
    grid-row: auto;
    min-height: 200px;
  }

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

  .cal-day {
    min-height: auto;
  }

  .cal-events {
    flex-direction: row;
    flex-wrap: wrap;
  }

  #dashboard.active {
    flex-direction: column;
  }

  .dash-sidebar {
    width: 100%;
    min-height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
  }

  .dash-brand {
    border: none;
    margin: 0;
    padding: 0.25rem 0.5rem;
  }

  .dash-nav {
    flex-direction: row;
    flex-wrap: wrap;
    flex: 1;
  }

  .dash-logout {
    margin: 0;
  }

  .dash-header,
  .dash-content {
    padding: 1rem;
  }

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

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

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

  .about-stats {
    flex-wrap: wrap;
    gap: 1.25rem;
  }
}
