/* taste.li — owner login, dashboard and public venue page */
:root {
  --navy: #0b1a2e;
  --lime: #b8f21a;
  --lime-dark: #8fc400;
  --muted: #5d6877;
  --line: #e4e4dc;
  --bg: #f6f6f1;
  --card: #ffffff;
  --danger: #c0392b;
  --font: "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); color: var(--navy); background: var(--bg); -webkit-font-smoothing: antialiased; line-height: 1.45; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 1.5rem; letter-spacing: -.02em; }
h2 { font-size: 1.15rem; letter-spacing: -.01em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--lime-dark); outline-offset: 2px; }
[hidden] { display: none !important; }

.logo { display: inline-flex; align-items: center; font-weight: 800; font-size: 1.4rem; letter-spacing: -.03em; text-decoration: none; }
.logo svg { width: 28px; height: 28px; margin-right: 8px; }
.logo i { font-style: normal; color: var(--lime-dark); }

/* Forms & buttons */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 14px; }
label > input, label > select, label > textarea { margin-top: 6px; }
input[type=text], input[type=email], input[type=tel], input[type=url], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: 11px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 500;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--lime-dark); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--lime-dark); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 20px; border-radius: 12px; border: 2px solid var(--navy); background: #fff; font-weight: 700; text-decoration: none; }
.btn:hover { background: #f1f1ec; }
.btn-primary { background: var(--lime); border-color: var(--lime); color: var(--navy); }
.btn-primary:hover { background: #c8ff3c; }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-small { padding: 6px 12px; font-size: .82rem; border-radius: 10px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.hint { font-size: .85rem; color: var(--muted); min-height: 1.3em; }
.hint.ok { color: #2f7d00; font-weight: 600; }
.hint.bad { color: var(--danger); font-weight: 600; }
.notice { position: sticky; top: 8px; z-index: 5; padding: 12px 16px; border-radius: 12px; font-weight: 600; margin-bottom: 14px; }
.notice.ok { background: #e9fbb8; }
.notice.error { background: #fde3df; color: #8a1f12; }

/* Auth pages */
body.auth { display: grid; place-items: center; min-height: 100vh; padding: 20px; background: radial-gradient(circle at 50% 0, #1a2f4d, #07111f 70%) fixed; }
.auth-card { width: 100%; max-width: 420px; background: #fff; border-radius: 24px; padding: 28px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); }
.auth-card .logo { margin-bottom: 18px; }
.auth-card .lead { color: var(--muted); margin: 8px 0 20px; font-size: .95rem; }
.auth-card .btn { width: 100%; }
.auth-card .link-btn { background: none; border: 0; padding: 8px 0; color: var(--muted); text-decoration: underline; font-weight: 600; }
.code-input { text-align: center; font-size: 1.6rem; letter-spacing: .4em; font-weight: 800; }

/* Dashboard */
.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 60px; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; flex-wrap: wrap; }
.bar-right { display: flex; align-items: center; gap: 12px; font-size: .85rem; color: var(--muted); font-weight: 600; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; margin-bottom: 16px; }
.card > h2 { margin-bottom: 4px; }
.card > .sub { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.grid2 { display: grid; gap: 0 14px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.link-box { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: #f1f1ec; border-radius: 12px; padding: 10px 14px; margin: 10px 0 14px; }
.link-box b { word-break: break-all; }
.row-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.qr-box { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.qr-box svg { width: 200px; height: 200px; border: 1px solid var(--line); border-radius: 12px; }

.hours-row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours-row .day { grid-column: 1 / -1; font-weight: 700; font-size: .9rem; }
.hours-row input[type=time] { min-width: 0; padding: 8px 10px; }
.hours-row .check { margin: 0; font-size: .85rem; grid-column: 1 / -1; }
.hours-row.is-closed input[type=time] { opacity: .35; }
@media (min-width: 560px) {
  .hours-row { grid-template-columns: 120px 1fr 1fr auto; padding: 6px 0; border: 0; }
  .hours-row .day { grid-column: auto; }
  .hours-row .check { grid-column: auto; }
}

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 14px; }
.thumb { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fafaf7; }
.thumb img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.thumb .row-actions { padding: 8px; }

.files { margin-top: 14px; display: grid; gap: 10px; }
.file { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px; }
.file b { display: block; }
.file small { color: var(--muted); }
.tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--navy); color: #fff; border-radius: 6px; padding: 2px 8px; margin-right: 6px; }
.tag.promo { background: var(--lime); color: var(--navy); }
.empty { color: var(--muted); font-size: .9rem; margin-top: 12px; }

/* Public venue page */
body.venue { background: #fff; }
.v-wrap { max-width: 760px; margin: 0 auto; padding: 0 16px 48px; }
.v-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; }
.slider { position: relative; border-radius: 22px; overflow: hidden; background: #e8e8e1; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slides img { flex: none; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; scroll-snap-align: center; }
.slider .nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); font-size: 1.3rem; font-weight: 800; }
.slider .prev { left: 10px; }
.slider .next { right: 10px; }
.dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .6); }
.dots i.on { background: #fff; width: 20px; border-radius: 8px; }
.v-head { margin: 20px 0 6px; }
.v-head h1 { font-size: 2rem; }
.v-meta { color: var(--muted); font-weight: 600; margin-top: 4px; }
.v-desc { margin: 12px 0 16px; white-space: pre-line; }
.v-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.v-section { margin-top: 28px; }
.v-section h2 { margin-bottom: 12px; }
.docs { display: grid; gap: 12px; }
.doc { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.doc img { width: 100%; }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; flex-wrap: wrap; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; }
.hours-table tr.today { font-weight: 800; background: #f6ffd9; }
.v-foot { margin-top: 40px; text-align: center; color: var(--muted); font-size: .85rem; }
.v-foot a { font-weight: 700; }

/* Legal pages */
.prose { max-width: 720px; margin: 0 auto; padding: 8px 16px 64px; }
.prose h1 { font-size: 2rem; margin-bottom: 4px; }
.prose h2 { font-size: 1.15rem; margin: 28px 0 8px; }
.prose p, .prose li { margin: 0 0 10px; }
.prose ul { padding-left: 22px; margin: 0 0 10px; }
.prose .updated { color: var(--muted); font-size: .88rem; margin-bottom: 20px; }
.prose .note { background: #f1f1ec; border-radius: 12px; padding: 12px 16px; font-size: .92rem; }
