/* Hotel Safina — Dashboard */
:root {
  --bg: #120d10; --panel: #1a1317; --panel-2: #221a1e; --side: #2a0818; --side-2: #3a0b22;
  --gold: #cfac68; --gold-2: #e6cf9a; --text: #f1e9dc; --text-2: #cbbfb0; --muted: #94887d;
  --line: rgba(241,233,220,.09); --line-2: rgba(241,233,220,.17);
  --green: #3ecf7a; --red: #ea7a6a;
  --serif: "Cormorant Garamond", Georgia, serif; --sans: "Manrope", system-ui, sans-serif;
  --r: 14px; --ease: cubic-bezier(.22,.8,.2,1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 14.5px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
img, video { display: block; max-width: 100%; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 12.5px; display: block; margin-top: 6px; }
.center { text-align: center; }
.spacer { flex: 1; }
.lnk { color: var(--gold); display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; }
.strong { font-weight: 600; }
.strong:hover { color: var(--gold); }

.dash { display: grid; grid-template-columns: 268px 1fr; min-height: 100vh; }

/* sidebar */
.side { position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, var(--side-2), var(--side) 60%, #1a0710); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 26px 16px 18px; overflow-y: auto; z-index: 30; }
.side__brand { display: flex; align-items: center; gap: 12px; padding: 0 10px 26px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.side__brand img { width: 48px; }
.side__brand span { font: 600 22px/1.05 var(--serif); }
.side__brand small { display: block; font: 600 9.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-top: 6px; }
.side__nav { display: grid; gap: 2px; flex: 1; align-content: start; }
.side__group { font: 600 10px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: rgba(241,233,220,.38); margin: 18px 12px 8px; }
.side__nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font-weight: 500; transition: background .25s, color .25s; }
.side__nav a:hover { background: rgba(241,233,220,.06); color: var(--text); }
.side__nav a.is-active { background: linear-gradient(90deg, rgba(207,172,104,.2), rgba(207,172,104,.04)); color: var(--gold-2); box-shadow: inset 2px 0 0 var(--gold); }
.side__nav a .ico { opacity: .85; }
.badge { margin-left: auto; background: var(--gold); color: #1a0710; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; }
.side__user { display: flex; align-items: center; gap: 10px; padding: 14px 10px 0; border-top: 1px solid var(--line); margin-top: 14px; }
.side__user div { flex: 1; min-width: 0; }
.side__user strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__user a { font-size: 12px; color: var(--muted); }
.side__user a:hover { color: var(--gold); }
.side__user button { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.side__user button:hover { background: rgba(241,233,220,.06); color: var(--text); }
.avatar { width: 38px; height: 38px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), #9e7a3a); color: #1a0710; display: grid; place-items: center; font-weight: 700; flex: none; }
.avatar--sm { width: 32px; height: 32px; font-size: 13px; }

/* main */
.main { min-width: 0; }
.top { display: flex; align-items: center; gap: 18px; padding: 30px 40px 22px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(18,13,16,.86); backdrop-filter: blur(14px); z-index: 20; }
.top__menu { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line-2); place-items: center; }
.top__crumb { margin: 0 0 2px; font: 600 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.top__crumb a:hover { color: var(--gold); }
.top__title { margin: 0; font: 600 34px/1.1 var(--serif); }
.top__actions { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.content { padding: 30px 40px 80px; display: grid; gap: 22px; max-width: 1400px; }
.intro { margin: 0; color: var(--text-2); max-width: 760px; }

/* buttons */
.dbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 10px; font-weight: 600; font-size: 13.5px; transition: background .25s, border-color .25s, color .25s, transform .2s; white-space: nowrap; }
.dbtn:active { transform: translateY(1px); }
.dbtn--gold { background: var(--gold); color: #1a0710; }
.dbtn--gold:hover { background: var(--gold-2); }
.dbtn--ghost { border: 1px solid var(--line-2); color: var(--text-2); }
.dbtn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.dbtn--danger { background: var(--red); color: #1a0710; }
.dbtn--danger-ghost { color: var(--red); border: 1px solid rgba(234,122,106,.35); }
.dbtn--danger-ghost:hover { background: rgba(234,122,106,.1); }
.dbtn--wa { background: #25d366; color: #fff; }
.dbtn--wa:hover { background: #1fbd5a; }
.dbtn--sm { height: 36px; padding: 0 14px; font-size: 12.5px; }
.dbtn--block { width: 100%; }
.ibtn { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; color: var(--text-2); border: 1px solid var(--line); transition: all .2s; }
.ibtn:hover { border-color: var(--gold); color: var(--gold); }
.ibtn--danger:hover { border-color: var(--red); color: var(--red); }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 99px; font-size: 11.5px; font-weight: 600; border: 1px solid var(--line-2); color: var(--muted); }
.pill--on { background: rgba(62,207,122,.12); border-color: rgba(62,207,122,.4); color: var(--green); }
.pill--new { background: rgba(207,172,104,.15); border-color: rgba(207,172,104,.45); color: var(--gold-2); }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.card__head--wrap { flex-wrap: wrap; }
.card__head h2 { margin: 0; font: 600 22px/1.2 var(--serif); display: flex; align-items: center; gap: 10px; }
.card__head h2 .ico { color: var(--gold); }
.grid-2 { display: grid; grid-template-columns: 1.3fr 1fr; gap: 22px; }
.grid-2--upload { grid-template-columns: 1.4fr 1fr; }
.empty-s { padding: 30px; text-align: center; }

/* stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 2px; position: relative; overflow: hidden; transition: border-color .25s, transform .25s var(--ease); }
.stat::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(207,172,104,.14), transparent 70%); }
.stat:hover { border-color: rgba(207,172,104,.4); transform: translateY(-2px); }
.stat__ico { width: 40px; height: 40px; border-radius: 11px; background: rgba(207,172,104,.12); color: var(--gold); display: grid; place-items: center; margin-bottom: 14px; }
.stat strong { font: 600 40px/1 var(--serif); }
.stat span:last-child { color: var(--muted); font-size: 13px; }

.inq-mini { list-style: none; margin: 0; padding: 0; }
.inq-mini li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.inq-mini li:last-child { border: 0; }
.inq-mini div { flex: 1; min-width: 0; }
.inq-mini strong { display: block; font-size: 14px; }
.inq-mini small, .inq-mini time { color: var(--muted); font-size: 12px; }
.inq-mini li.is-new strong::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-left: 8px; vertical-align: 2px; }
.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick a { display: flex; align-items: center; gap: 12px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel-2); font-weight: 500; transition: border-color .25s, color .25s; }
.quick a .ico { color: var(--gold); }
.quick a:hover { border-color: rgba(207,172,104,.45); color: var(--gold-2); }

.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.thumb { position: relative; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--panel-2); display: block; }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.thumb:hover img { transform: scale(1.06); }
.thumb__tag { position: absolute; left: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; background: rgba(18,13,16,.8); color: var(--gold-2); font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.thumb__del { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 8px; background: rgba(18,13,16,.85); color: var(--red); display: grid; place-items: center; opacity: 0; transition: opacity .2s; }
.thumb:hover .thumb__del { opacity: 1; }
.thumbs--manage { margin: 16px 0 20px; }
.upload-inline { display: grid; gap: 12px; }

/* table */
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font: 600 10.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--panel-2); }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: rgba(241,233,220,.02); }
.w-thumb { width: 90px; }
.w-act { width: 100px; }
.row-thumb { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; }
.acts { white-space: nowrap; text-align: right; }
.acts .ibtn + .ibtn { margin-left: 4px; }

/* forms */
.form-card { padding: 28px; }
.narrow { max-width: 560px; }
.center-card { text-align: center; margin: 40px auto; display: grid; justify-items: center; }
.center-card h2 { font: 600 28px/1.2 var(--serif); margin: 14px 0 4px; }
.danger-ico { width: 64px; height: 64px; border-radius: 50%; background: rgba(234,122,106,.12); color: var(--red); display: grid; place-items: center; }
.fgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.fgrid--tight { margin: 16px 0; gap: 14px; }
.f { display: grid; gap: 7px; align-content: start; min-width: 0; }
.f--full { grid-column: 1 / -1; }
.f--check { align-self: center; }
.f > label { font-size: 12.5px; font-weight: 600; color: var(--text-2); letter-spacing: .02em; }
.f > label b { color: var(--gold); }
.f input[type=text], .f input[type=email], .f input[type=url], .f input[type=number], .f input[type=password], .f input[type=date], .f select, .f textarea, .f input:not([type]) {
  width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text);
  font: 400 14.5px/1.4 var(--sans); padding: 11px 14px; transition: border-color .2s, box-shadow .2s; color-scheme: dark;
}
.f textarea { resize: vertical; line-height: 1.6; }
.f input:focus, .f select:focus, .f textarea:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207,172,104,.15); }
.f.has-error input, .f.has-error select, .f.has-error textarea { border-color: var(--red); }
.err { color: var(--red); font-size: 12.5px; }
.login .f > span, .login .f span { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; font-weight: 500; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch i { width: 42px; height: 24px; border-radius: 99px; background: var(--panel-2); border: 1px solid var(--line-2); position: relative; transition: background .25s, border-color .25s; flex: none; }
.switch i::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); transition: transform .3s var(--ease), background .25s; }
.switch input:checked + i { background: rgba(207,172,104,.25); border-color: var(--gold); }
.switch input:checked + i::after { transform: translateX(18px); background: var(--gold); }
.switch input:focus-visible + i { box-shadow: 0 0 0 3px rgba(207,172,104,.25); }
.form-actions { display: flex; gap: 10px; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); flex-wrap: wrap; }
.form-actions--center { justify-content: center; border: 0; }

/* file upload */
.filebox { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: stretch; }
.filebox__current { position: relative; width: 170px; border-radius: 10px; overflow: hidden; background: var(--panel-2); border: 1px solid var(--line); }
.filebox__current img, .filebox__current video { width: 100%; height: 120px; object-fit: cover; }
.filebox__clear { display: flex; align-items: center; gap: 6px; padding: 7px 10px; font-size: 12px; color: var(--red); cursor: pointer; }
.drop { position: relative; display: flex; align-items: center; gap: 16px; padding: 26px; border: 1.5px dashed var(--line-2); border-radius: 12px; background: rgba(241,233,220,.02); cursor: pointer; transition: border-color .25s, background .25s; flex-wrap: wrap; }
.drop:hover, .drop.is-over { border-color: var(--gold); background: rgba(207,172,104,.06); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop__ico { width: 54px; height: 54px; border-radius: 14px; background: rgba(207,172,104,.12); color: var(--gold); display: grid; place-items: center; flex: none; }
.drop__text { flex: 1; min-width: 180px; color: var(--text-2); }
.drop__text strong { color: var(--text); }
.drop__text small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.drop--sm { padding: 18px; }
.drop--sm .drop__ico { width: 44px; height: 44px; }
.drop__preview { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.drop__preview:empty { display: none; }
.drop__preview span { width: 64px; height: 64px; border-radius: 8px; overflow: hidden; background: var(--panel-2); display: grid; place-items: center; font-size: 10px; color: var(--muted); text-align: center; padding: 2px; }
.drop__preview img, .drop__preview video { width: 100%; height: 100%; object-fit: cover; }
.progress { margin: 4px 0 14px; display: grid; gap: 6px; }
.progress i { height: 6px; border-radius: 99px; background: var(--panel-2); overflow: hidden; position: relative; }
.progress i::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .2s; }
.progress span { font-size: 12px; color: var(--muted); }

/* tabs */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.tabs a { padding: 6px 13px; border-radius: 99px; border: 1px solid var(--line); font-size: 12.5px; font-weight: 500; color: var(--text-2); transition: all .2s; }
.tabs a:hover { border-color: var(--gold); color: var(--gold); }
.tabs a.is-active { background: var(--gold); border-color: var(--gold); color: #1a0710; }
.tabs--lg a { padding: 9px 18px; font-size: 13.5px; }

/* media grid */
.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.media { background: var(--panel-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; transition: border-color .25s; }
.media:hover { border-color: rgba(207,172,104,.35); }
.media__img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #0e0a0c; display: block; }
.media__img img, .media__img video { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.media:hover .media__img img { transform: scale(1.05); }
.media__body { padding: 12px 14px 4px; }
.media__body strong { display: block; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.media__body small { color: var(--muted); font-size: 12px; }
.media__acts { display: flex; align-items: center; gap: 6px; padding: 10px 12px 12px; margin-top: auto; }
.media__acts form:first-child { margin-right: auto; }

/* inquiries */
.inq-list { display: grid; gap: 14px; }
.inq { display: grid; gap: 16px; }
.inq.is-new { border-color: rgba(207,172,104,.35); box-shadow: inset 3px 0 0 var(--gold); }
.inq__who { display: flex; align-items: center; gap: 12px; }
.inq__who div { flex: 1; }
.inq__who strong { display: block; font-size: 16px; }
.inq__who small { color: var(--muted); font-size: 12.5px; }
.inq__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 0; padding: 14px 16px; background: var(--panel-2); border-radius: 10px; }
.inq__meta dt { font: 600 10px/1.4 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.inq__meta dd { margin: 2px 0 0; font-weight: 500; }
.inq__meta a:hover { color: var(--gold); }
.inq__msg { margin: 0; font: 500 italic 19px/1.4 var(--serif); color: var(--text-2); }
.inq__acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* settings */
.settings { display: grid; grid-template-columns: 200px 1fr; gap: 24px; align-items: start; }
.settings__nav { position: sticky; top: 120px; display: grid; gap: 2px; }
.settings__nav a { padding: 9px 12px; border-radius: 9px; color: var(--text-2); font-weight: 500; font-size: 13.5px; }
.settings__nav a:hover { background: rgba(241,233,220,.05); color: var(--gold); }
.settings__body { display: grid; gap: 20px; min-width: 0; }
.settings__body section { scroll-margin-top: 120px; }
.sticky-save { position: sticky; bottom: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 22px; background: rgba(34,26,30,.92); border: 1px solid var(--line-2); border-radius: 14px; backdrop-filter: blur(10px); box-shadow: 0 20px 40px rgba(0,0,0,.4); }

/* flash */
.flash { padding: 18px 40px 0; display: grid; gap: 8px; }
.flash__item { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 10px; background: rgba(62,207,122,.1); border: 1px solid rgba(62,207,122,.3); color: #a9eec4; font-weight: 500; animation: fl .4s var(--ease); }
.flash__item--error { background: rgba(234,122,106,.1); border-color: rgba(234,122,106,.35); color: #f5b7ab; margin-bottom: 14px; }
@keyframes fl { from { opacity: 0; transform: translateY(-6px); } }

/* login */
.login { display: grid; grid-template-columns: 1.1fr 1fr; min-height: 100vh; }
.login__art { background: #2a0818 center/cover; position: relative; }
.login__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(58,11,34,.55), rgba(14,10,12,.75)); }
.login__panel { display: grid; place-items: center; padding: 40px 24px; background: radial-gradient(ellipse at top, rgba(58,11,34,.5), transparent 60%), var(--bg); }
.login__form { width: 100%; max-width: 380px; display: grid; gap: 16px; }
.login__logo { width: 190px; margin: 0 auto 18px; }
.login__form h1 { font: 600 38px/1.1 var(--serif); margin: 0; text-align: center; }
.login__form > p { text-align: center; margin: -8px 0 10px; }
.login__form .f input { width: 100%; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 10px; color: var(--text); font: 400 15px var(--sans); padding: 13px 14px; }
.login__form .f input:focus { outline: 0; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207,172,104,.15); }
.login__form .dbtn { height: 50px; margin-top: 6px; }
.login__back { display: inline-flex; align-items: center; gap: 6px; justify-self: center; color: var(--muted); font-size: 13px; margin-top: 6px; }
.login__back:hover { color: var(--gold); }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-2--upload { grid-template-columns: 1fr; }
  .settings { grid-template-columns: 1fr; }
  .settings__nav { position: static; display: flex; flex-wrap: wrap; }
}
@media (max-width: 860px) {
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .4s var(--ease); box-shadow: 30px 0 60px rgba(0,0,0,.5); }
  .side.is-open { transform: none; }
  .top__menu { display: grid; }
  .top { padding: 16px 18px; flex-wrap: wrap; }
  .top__title { font-size: 26px; }
  .top__actions { width: 100%; margin: 0; }
  .content { padding: 20px 16px 60px; }
  .flash { padding: 14px 16px 0; }
  .fgrid { grid-template-columns: 1fr; }
  .filebox { grid-template-columns: 1fr; }
  .filebox__current { width: 100%; }
  .table th:nth-child(n+4), .table td:nth-child(n+4):not(.acts) { display: none; }
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
  .quick { grid-template-columns: 1fr; }
}

/* restaurant additions */
.stats { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.qp { display: inline-flex; align-items: center; gap: 6px; }
.qp span { color: var(--gold); font-weight: 600; }
.qp input { width: 96px; background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 8px; color: var(--text); font: 600 14px var(--sans); padding: 7px 10px; color-scheme: dark; }
.qp input:focus { outline: 0; border-color: var(--gold); }
.preorder { margin: 0; padding: 14px 16px; background: rgba(207,172,104,.07); border: 1px dashed rgba(207,172,104,.35); border-radius: 10px; font: 500 13.5px/1.7 var(--sans); color: var(--text-2); white-space: pre-wrap; }
.tabs--lg { margin-bottom: 4px; }
.row-thumb--empty { display: grid; place-items: center; background: var(--panel-2); color: var(--muted); border: 1px dashed var(--line-2); }
