:root {
  --navy: #031a2d;
  --navy-2: #062943;
  --navy-3: #0a3855;
  --gold: #d6aa4b;
  --gold-light: #f1d98f;
  --gold-dark: #9d6e1d;
  --ivory: #f8f3e8;
  --paper: #fffdf8;
  --ink: #142c3e;
  --muted: #77848c;
  --danger: #9d3434;
  --success: #237b4b;
  --shadow: 0 24px 70px rgba(15, 38, 54, 0.12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
[hidden] { display: none !important; }

.opening-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; align-content: center; color: white; background: radial-gradient(circle at 50% 44%, #0b4769 0, #041e33 38%, #020f1c 100%); transition: opacity .65s ease, visibility .65s; overflow: hidden; }
.opening-screen.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.opening-screen::before, .opening-screen::after { content: ""; position: absolute; inset: 24px; border: 1px solid rgba(214, 170, 75, .35); }
.opening-screen::after { inset: 35px; border-color: rgba(255, 255, 255, .08); }
.opening-aura { position: absolute; width: 430px; height: 430px; border: 1px solid rgba(214,170,75,.14); border-radius: 50%; box-shadow: 0 0 100px rgba(214,170,75,.08), inset 0 0 80px rgba(214,170,75,.06); animation: aura 2.4s ease-in-out infinite; }
.opening-screen p { position: relative; margin: 20px 0 0; color: #d7c28d; font-size: 10px; letter-spacing: .42em; animation: fadeUp .8s .35s both; }
.opening-rule { position: relative; width: 230px; height: 1px; margin-top: 30px; background: rgba(255,255,255,.08); overflow: hidden; }
.opening-rule i { display: block; height: 100%; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); animation: lineSweep 1.4s .2s both; }

.brand { display: inline-flex; align-items: center; color: var(--gold-light); }
.brand > div:last-child { display: flex; flex-direction: column; }
.brand strong { font: 700 24px/1 Georgia, "Times New Roman", serif; letter-spacing: .24em; text-indent: .24em; }
.brand small { margin-top: 6px; color: #d7c99e; font-size: 7px; font-weight: 700; letter-spacing: .36em; text-indent: .36em; }
.monogram { position: relative; flex: 0 0 auto; width: 48px; height: 48px; margin-right: 12px; display: grid; place-items: center; border: 1px solid rgba(214,170,75,.6); border-radius: 55% 55% 45% 45%; box-shadow: inset 0 0 20px rgba(214,170,75,.08); font: italic 35px/1 Georgia, serif; }
.monogram span { position: absolute; text-shadow: 0 1px 0 #fff2ad; }
.monogram span:last-child { transform: translateX(7px) scaleX(-1); opacity: .72; }
.brand--opening { position: relative; flex-direction: column; animation: logoRise .9s both; }
.brand--opening .monogram { width: 88px; height: 88px; margin: 0 0 18px; font-size: 64px; }
.brand--opening strong { font-size: 42px; }
.brand--opening small { margin-top: 10px; font-size: 9px; }
.brand--compact .monogram { width: 38px; height: 38px; font-size: 27px; }
.brand--compact strong { font-size: 17px; }
.brand--compact small { font-size: 6px; }

.topbar { position: sticky; top: 0; z-index: 30; height: 78px; padding: 0 clamp(16px, 5vw, 72px); display: flex; align-items: center; justify-content: space-between; background: rgba(3, 26, 45, .96); border-bottom: 1px solid rgba(214,170,75,.25); backdrop-filter: blur(16px); }
.topbar nav { display: flex; gap: 8px; }
.topbar nav a { padding: 10px 14px; color: #e8dfc9; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; font-size: 13px; transition: .2s; }
.topbar nav a:hover { color: var(--gold-light); border-color: rgba(214,170,75,.5); background: rgba(255,255,255,.05); }

.hero { position: relative; min-height: 660px; padding: 112px 24px 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: white; background: radial-gradient(circle at 50% 32%, rgba(20,85,117,.85), transparent 38%), linear-gradient(155deg, #021422, #062d47 58%, #031a2d); overflow: hidden; }
.hero::before, .hero::after { content: ""; position: absolute; width: 260px; height: 260px; border: 1px solid rgba(214,170,75,.25); transform: rotate(45deg); }
.hero::before { left: -190px; top: 90px; }
.hero::after { right: -190px; bottom: 90px; }
.hero-frame { position: absolute; inset: 22px; border: 1px solid rgba(214,170,75,.3); pointer-events: none; }
.hero-frame::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,.06); }
.eyebrow { position: relative; color: var(--gold-light); font-size: 11px; font-weight: 700; letter-spacing: .28em; }
.hero h1 { position: relative; max-width: 920px; margin: 34px 0 22px; font: 500 clamp(50px, 8vw, 98px)/.98 Georgia, "Times New Roman", serif; letter-spacing: -.04em; }
.hero h1 em { color: var(--gold-light); font-weight: 400; }
.hero > p { position: relative; max-width: 640px; margin: 0; color: #d5e0e6; font: 18px/1.75 Georgia, serif; }
.primary-button { position: relative; margin-top: 35px; padding: 15px 24px; display: inline-flex; gap: 12px; align-items: center; color: #091f2f; border: 1px solid #f0d58b; border-radius: 999px; background: linear-gradient(135deg, #f3db96, #c89434); box-shadow: 0 18px 48px rgba(0,0,0,.32); font-size: 14px; font-weight: 800; transition: transform .2s, box-shadow .2s; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 23px 58px rgba(0,0,0,.42); }
.hero-stats { position: relative; margin-top: 62px; display: flex; align-items: center; gap: 27px; color: #c9d3d8; text-transform: uppercase; }
.hero-stats span { display: flex; flex-direction: column; gap: 4px; }
.hero-stats b { color: white; font: 20px Georgia, serif; text-transform: none; }
.hero-stats small { font-size: 9px; letter-spacing: .16em; }
.hero-stats i { width: 1px; height: 34px; background: rgba(214,170,75,.34); }

.menu-section { max-width: 1500px; margin: auto; padding: 92px clamp(12px, 4vw, 60px) 108px; }
.section-heading { margin-bottom: 42px; text-align: center; }
.section-heading > span { color: #9c7325; font-size: 10px; font-weight: 800; letter-spacing: .34em; }
.section-heading h2 { margin: 12px 0 15px; color: var(--navy); font: 500 clamp(38px, 5vw, 62px)/1.05 Georgia, serif; }
.section-heading--light h2 { color: white; }
.section-heading--light > span { color: var(--gold-light); }
.ornament-rule { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--gold); }
.ornament-rule i { width: 78px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.ornament-rule i:last-child { transform: scaleX(-1); }
.ornament-rule b { font-size: 10px; }

.menu-tools { position: sticky; top: 88px; z-index: 20; margin-bottom: 38px; padding: 12px; border: 1px solid rgba(180,139,53,.3); border-radius: 22px; background: rgba(248,243,232,.93); box-shadow: 0 16px 45px rgba(57,45,21,.1); backdrop-filter: blur(15px); }
.search-field { height: 48px; padding: 0 14px; display: flex; align-items: center; gap: 10px; color: #9c7428; border: 1px solid rgba(181,141,61,.28); border-radius: 14px; background: white; }
.search-field span { font-size: 25px; line-height: 1; transform: rotate(-20deg); }
.search-field input { width: 100%; border: 0; outline: 0; color: var(--ink); background: transparent; }
.category-strip { margin-top: 10px; padding: 2px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.category-strip::-webkit-scrollbar { display: none; }
.category-strip button { flex: 0 0 auto; padding: 9px 14px; color: #334b5b; border: 1px solid rgba(10,44,67,.12); border-radius: 999px; background: rgba(255,255,255,.72); font-size: 12px; transition: .2s; }
.category-strip button.active { color: #071b29; border-color: #c18f31; background: linear-gradient(135deg, #f5dda0, #d1a044); box-shadow: 0 8px 20px rgba(141,101,27,.16); font-weight: 700; }
.menu-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
.menu-group { padding: 24px; border: 1px solid rgba(190,150,65,.48); border-radius: 24px; background: linear-gradient(145deg, #fffefb, #fcf6e9); box-shadow: var(--shadow), inset 0 0 0 5px rgba(255,255,255,.72); animation: sectionIn .6s both; }
.group-title { margin-bottom: 18px; display: grid; grid-template-columns: auto auto 1fr; gap: 12px; align-items: center; }
.group-title span { color: #b08535; font: italic 13px Georgia, serif; }
.group-title h3 { margin: 0; color: var(--navy); font: 600 clamp(21px, 2vw, 28px) Georgia, serif; }
.group-title i { height: 1px; background: linear-gradient(90deg, #d6aa4b, transparent); }
.dish-grid { display: grid; gap: 8px; }
.dish-card { min-height: 72px; padding: 13px 13px 13px 16px; display: flex; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid rgba(188,157,94,.3); border-left: 3px solid var(--gold); border-radius: 13px; background: linear-gradient(90deg, #fff, #fbf3df); transition: transform .2s, border-color .2s, box-shadow .2s; }
.dish-card:hover { transform: translateX(3px); border-color: #c99b3d; box-shadow: 0 8px 22px rgba(83,65,23,.1); }
.dish-card.unavailable { opacity: .52; filter: grayscale(.45); }
.dish-copy h4 { margin: 0; color: #152d3e; font-size: 14px; line-height: 1.35; }
.dish-meta { margin-top: 5px; display: flex; flex-wrap: wrap; gap: 8px; color: #9a8a70; font-size: 10px; }
.dish-meta .featured { color: #936615; font-weight: 700; }
.dish-meta .not-available { color: #a53b3b; }
.dish-price { flex: 0 0 auto; padding: 8px 11px; color: #69480c; border-radius: 10px; background: rgba(230,207,150,.55); font-size: 12px; font-weight: 800; white-space: nowrap; }
.status-card { padding: 28px; text-align: center; color: #667783; border: 1px solid rgba(190,150,65,.4); border-radius: 20px; background: white; }
.status-card--error { color: var(--danger); }

.info-section { position: relative; padding: 96px clamp(12px, 5vw, 80px); color: white; background: radial-gradient(circle at 80% 20%, rgba(16,86,117,.55), transparent 30%), linear-gradient(145deg, #031725, #062e48); overflow: hidden; }
.info-section::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(214,170,75,.18); pointer-events: none; }
.info-grid { position: relative; max-width: 1420px; margin: auto; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.info-card { min-height: 326px; padding: 30px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid rgba(214,170,75,.3); border-radius: 24px; background: linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.025)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08); }
.info-icon { width: 52px; height: 52px; display: grid; place-items: center; color: var(--gold-light); border: 1px solid rgba(214,170,75,.5); border-radius: 16px; background: rgba(214,170,75,.06); font: 26px Georgia, serif; }
.info-card > small { margin-top: 27px; color: #c8a65e; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.info-card h3 { margin: 10px 0; font: 28px Georgia, serif; }
.info-card p { margin: 0 0 24px; color: #bdc9d0; line-height: 1.65; }
.secondary-button { min-height: 42px; margin-top: auto; padding: 10px 14px; display: inline-flex; align-items: center; justify-content: center; color: #f1dda8; border: 1px solid rgba(214,170,75,.42); border-radius: 12px; background: transparent; }
.secondary-button:hover { background: rgba(214,170,75,.1); }
.qr-frame { width: 112px; height: 112px; margin: 0 0 16px; padding: 6px; border: 1px solid var(--gold); border-radius: 14px; background: var(--ivory); }
.qr-frame img { width: 100%; height: 100%; display: block; border-radius: 8px; }
.info-card--qr h3 { margin-bottom: 14px; }

.footer { padding: 60px 20px 36px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #bdc8cf; background: #020f1b; }
.brand--footer .monogram { width: 38px; height: 38px; font-size: 27px; }
.brand--footer strong { font-size: 18px; }
.footer blockquote { margin: 28px 0 22px; color: #ead6a1; font: italic 18px/1.6 Georgia, serif; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.footer-links a { padding: 9px 12px; border: 1px solid rgba(255,255,255,.1); border-radius: 999px; font-size: 12px; }
.footer > p { margin-top: 28px; color: #667783; font-size: 11px; }

/* Administrator */
.admin-body { min-height: 100vh; background: #eef1f2; }
.login-screen { min-height: 100vh; padding: 28px 16px; display: grid; place-items: center; background: radial-gradient(circle at 50% 20%, #0b4565, transparent 36%), linear-gradient(145deg, #02131f, #052b44); }
.login-card { width: min(470px, 100%); padding: 42px; border: 1px solid rgba(214,170,75,.42); border-radius: 28px; background: rgba(255,255,255,.97); box-shadow: 0 35px 100px rgba(0,0,0,.4); }
.brand--login { color: var(--gold-dark); }
.brand--login small { color: #88744a; }
.login-copy { margin: 34px 0 24px; }
.login-copy > span { color: #9d7428; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.login-copy h1 { margin: 8px 0 8px; color: var(--navy); font: 500 36px/1.05 Georgia, serif; }
.login-copy p { margin: 0; color: #6d7a82; line-height: 1.6; }
.login-card form, .login-card label { display: grid; gap: 8px; }
.login-card label { color: #52616b; font-size: 12px; font-weight: 700; }
.login-card input, .admin-card input, .admin-search input, .admin-item input { width: 100%; height: 43px; padding: 0 12px; color: var(--ink); border: 1px solid #d8dfe2; border-radius: 10px; outline: 0; background: #f9fbfa; }
.login-card input:focus, .admin-card input:focus, .admin-search input:focus, .admin-item input:focus { border-color: #ba8730; box-shadow: 0 0 0 3px rgba(186,135,48,.12); }
.admin-primary { min-height: 43px; padding: 0 18px; color: #082033; border: 0; border-radius: 10px; background: linear-gradient(135deg, #ebcc7a, #bd8730); font-weight: 800; box-shadow: 0 9px 24px rgba(168,119,32,.18); }
.login-card .admin-primary { margin-top: 6px; }
.form-message { min-height: 20px; color: var(--danger); font-size: 12px; }
.back-link { color: #65747d; font-size: 12px; }
.admin-shell { min-height: 100vh; }
.admin-header { height: 82px; padding: 0 clamp(16px,4vw,64px); display: flex; align-items: center; justify-content: space-between; color: white; border-bottom: 1px solid rgba(214,170,75,.28); background: var(--navy); }
.admin-header-actions { display: flex; align-items: center; gap: 14px; font-size: 12px; }
.admin-header-actions span { color: #d7bf7f; }
.admin-header-actions button { padding: 9px 12px; color: white; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: transparent; }
.admin-wrap { max-width: 1450px; margin: auto; padding: 32px clamp(12px,3vw,42px) 70px; }
.admin-title { margin: 26px 0; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.admin-title > div:first-child > span { color: #a27627; font-size: 9px; font-weight: 800; letter-spacing: .2em; }
.admin-title h1 { margin: 8px 0 5px; color: var(--navy); font: 500 clamp(36px,5vw,58px) Georgia, serif; }
.admin-title p { margin: 0; color: #6c7b86; }
.admin-count { width: 100px; height: 100px; flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; color: white; border: 1px solid rgba(214,170,75,.48); border-radius: 24px; background: var(--navy); box-shadow: 0 16px 35px rgba(3,26,45,.15); }
.admin-count b { color: var(--gold-light); font: 34px Georgia, serif; }
.admin-count small { margin-top: 3px; text-transform: uppercase; letter-spacing: .15em; }
.admin-notice { padding: 12px 15px; border-radius: 12px; background: #def1e6; color: var(--success); font-size: 13px; }
.admin-notice.error { color: var(--danger); background: #f7e1e1; }
.admin-tabs { width: fit-content; margin: 0 0 20px; padding: 5px; display: flex; gap: 5px; border-radius: 14px; background: #dce3e6; }
.admin-tabs button { min-height: 42px; padding: 0 18px; color: #566772; border: 0; border-radius: 10px; background: transparent; font-size: 13px; }
.admin-tabs button.active { color: var(--gold-light); background: var(--navy); }
.admin-card { padding: 24px; border: 1px solid rgba(214,170,75,.34); border-radius: 20px; background: white; box-shadow: 0 16px 45px rgba(36,55,70,.06); }
.admin-card-heading { margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.admin-card-heading small { color: #9f7427; font-size: 9px; font-weight: 800; letter-spacing: .18em; }
.admin-card-heading h2 { margin: 4px 0 0; font: 27px Georgia, serif; }
.admin-card-heading > b { color: #bf8d32; font-size: 24px; }
.new-item-grid { display: grid; grid-template-columns: 2fr 1.35fr 1fr auto; gap: 10px; align-items: end; }
.new-item-grid label, .settings-grid label { display: grid; gap: 6px; color: #687782; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.admin-search { height: 48px; margin: 20px 0 12px; padding: 0 14px; display: flex; align-items: center; gap: 9px; color: #966d24; border: 1px solid #dfe4e6; border-radius: 14px; background: white; }
.admin-search input { height: 100%; padding: 0; border: 0; box-shadow: none; background: transparent; }
.admin-items { display: grid; gap: 10px; }
.admin-item { padding: 12px; display: grid; grid-template-columns: minmax(270px,1fr) auto; gap: 12px; align-items: center; border: 1px solid #dce4e7; border-left: 3px solid #cf9d3f; border-radius: 14px; background: white; box-shadow: 0 6px 16px rgba(36,55,70,.04); }
.admin-item-main { display: grid; grid-template-columns: 1.45fr 1fr; gap: 8px; }
.admin-item-side { display: flex; align-items: end; gap: 8px; }
.admin-item-side label { display: grid; gap: 4px; color: #74828a; font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.admin-item-side input { width: 105px; }
.admin-check { min-width: 70px; min-height: 43px; padding: 5px 9px; display: flex !important; flex-direction: row !important; align-items: center; justify-content: center; gap: 6px !important; border: 1px solid #e1e6e8; border-radius: 10px; background: #f8faf9; }
.admin-check input { width: 16px; height: 16px; accent-color: #b9852f; }
.item-action { width: 43px; height: 43px; border: 1px solid #dfe5e7; border-radius: 10px; background: #f8faf9; font-weight: 900; }
.item-action.save { color: var(--gold-light); border-color: var(--navy); background: var(--navy); }
.item-action.delete { color: var(--danger); }
.settings-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.settings-grid label:nth-child(6), .settings-grid label:nth-child(7), .settings-grid label:nth-child(8) { grid-column: 1 / -1; }
.settings-save { margin-top: 22px; }

.reveal { animation: fadeUp .75s both; }
.reveal-1 { animation-delay: 1.45s; }
.reveal-2 { animation-delay: 1.55s; }
.reveal-3 { animation-delay: 1.65s; }
.reveal-4 { animation-delay: 1.75s; }
@keyframes logoRise { from { opacity: 0; transform: translateY(20px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sectionIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
@keyframes lineSweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
@keyframes aura { 50% { transform: scale(1.05); opacity: .7; } }

@media (max-width: 1120px) {
  .info-grid { grid-template-columns: repeat(2, 1fr); }
  .admin-item { grid-template-columns: 1fr; }
  .admin-item-side { justify-content: flex-end; }
}
@media (max-width: 900px) {
  .menu-groups { grid-template-columns: 1fr; }
  .hero { min-height: 590px; padding-top: 86px; }
  .menu-tools { top: 82px; }
  .new-item-grid { grid-template-columns: 1fr 1fr; }
  .new-item-grid button { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .settings-grid { grid-template-columns: 1fr; }
  .settings-grid label:nth-child(n) { grid-column: auto; }
  .admin-item-main { grid-template-columns: 1fr; }
  .admin-item-side { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto auto; }
  .admin-item-side input { width: 100%; }
  .login-card { padding: 32px 24px; }
}
@media (max-width: 560px) {
  .topbar { height: 70px; padding: 0 12px; }
  .topbar nav a { padding: 8px 9px; font-size: 11px; }
  .brand--compact .monogram { width: 34px; height: 34px; margin-right: 8px; }
  .brand--compact strong { font-size: 14px; }
  .brand--compact small { display: none; }
  .hero { min-height: 570px; padding-left: 22px; padding-right: 22px; }
  .hero-frame { inset: 10px; }
  .hero h1 { font-size: 49px; }
  .hero > p { font-size: 15px; }
  .hero-stats { gap: 12px; }
  .hero-stats b { font-size: 16px; }
  .menu-section { padding: 72px 9px; }
  .menu-group { padding: 15px; border-radius: 18px; }
  .dish-card { padding: 12px 9px; }
  .dish-copy h4 { font-size: 13px; }
  .dish-price { padding: 7px 8px; font-size: 11px; }
  .info-section { padding: 74px 11px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-card { min-height: 285px; }
  .admin-header { padding: 0 12px; }
  .admin-header-actions span { display: none; }
  .admin-title p { display: none; }
  .admin-count { width: 78px; height: 78px; }
  .admin-tabs { width: 100%; }
  .admin-tabs button { flex: 1; padding: 0 8px; }
  .new-item-grid { grid-template-columns: 1fr; }
  .new-item-grid button { grid-column: auto; }
  .admin-item-side { grid-template-columns: 1fr 1fr; }
  .item-action { width: 100%; }
  .opening-aura { width: 280px; height: 280px; }
  .brand--opening strong { font-size: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .opening-screen { display: none; }
}
