:root {
  --bg: #08070c;
  --panel: rgba(13, 14, 20, .79);
  --panel-strong: rgba(13, 14, 20, .93);
  --line: rgba(255,255,255,.13);
  --text: #f8f6fb;
  --muted: #bcb8c5;
  --pink: #ff4ecb;
  --cyan: #28d9ff;
  --green: #6cf5b6;
  --danger: #ff776f;
  --warning: #ffd36b;
  --shadow: 0 30px 80px rgba(0,0,0,.42);
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.modal-open { overflow: hidden; }

.bar-body { min-height: 100vh; }
.booking-page {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5,6,10,.48), rgba(5,6,10,.18) 44%, rgba(5,6,10,.58)),
    linear-gradient(180deg, rgba(4,5,9,.18), rgba(4,5,9,.76)),
    url('/ilosbar-interior.jpg') center / cover fixed no-repeat;
}
.booking-page::after { content:""; position:absolute; inset:0; z-index:-1; background: radial-gradient(circle at 20% 20%, rgba(40,217,255,.16), transparent 34%), radial-gradient(circle at 83% 25%, rgba(255,78,203,.18), transparent 30%); }
.ambient { position: fixed; z-index: -1; border-radius: 50%; filter: blur(70px); opacity: .36; pointer-events:none; }
.ambient-one { width: 260px; height:260px; background:var(--cyan); left:-100px; top:12%; }
.ambient-two { width: 320px; height:320px; background:var(--pink); right:-120px; bottom:8%; }

.booking-layout { width: min(1180px, calc(100% - 48px)); min-height: 100svh; margin: 0 auto; padding: 62px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); gap: clamp(42px, 7vw, 100px); align-items: center; }
.brand-panel { align-self: center; }
.brand-badge { display:inline-flex; align-items:center; gap:10px; padding:9px 14px; border:1px solid rgba(255,255,255,.22); border-radius:999px; background:rgba(7,8,12,.58); backdrop-filter: blur(12px); font-size:13px; font-weight:850; letter-spacing:.18em; }
.brand-badge span { width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 16px var(--green); }
.brand-panel h1 { margin:26px 0 18px; max-width: 680px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(58px, 7vw, 96px); line-height:.93; font-weight:500; letter-spacing:-.045em; text-shadow: 0 8px 32px rgba(0,0,0,.38); }
.hero-copy { max-width: 610px; margin:0; color:rgba(255,255,255,.82); font-size:18px; line-height:1.7; }
.hero-copy strong { color:#fff; }

.glass-panel { border:1px solid var(--line); background: var(--panel); box-shadow:var(--shadow); backdrop-filter: blur(22px) saturate(135%); -webkit-backdrop-filter: blur(22px) saturate(135%); }
.opening-card { width:min(480px,100%); margin-top:34px; padding:20px 22px; border-radius:22px; }
.eyebrow { display:block; color:var(--cyan); font-size:11px; font-weight:900; letter-spacing:.18em; text-transform:uppercase; }
.opening-summary { margin-top:13px; display:grid; gap:8px; color:#fff; font-size:13px; }
.opening-summary > strong { font-size:16px; }
.opening-summary > span { color:var(--muted); line-height:1.5; }
.schedule-line { display:grid; grid-template-columns: 110px 1fr; gap:14px; padding:8px 0; border-top:1px solid rgba(255,255,255,.08); }
.schedule-line:first-child { border-top:0; }
.schedule-line span { color:var(--muted); }

.reservation-card { border-radius:var(--radius); padding:clamp(24px,4vw,42px); }
.reservation-heading h2 { margin:9px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size:clamp(38px,4vw,52px); line-height:1; font-weight:500; letter-spacing:-.035em; }
.reservation-heading p { margin:0 0 28px; color:var(--muted); line-height:1.6; }
.booking-form, .edit-form, .login-form { display:grid; gap:17px; }
.form-grid { display:grid; gap:14px; }
.form-grid-two { grid-template-columns:repeat(2,minmax(0,1fr)); }
label > span { display:block; margin-bottom:7px; color:#f2eff6; font-size:12px; font-weight:800; }
label em { color:#8f8a99; font-style:normal; font-weight:600; }
input, select, textarea { width:100%; border:1px solid rgba(255,255,255,.12); border-radius:14px; padding:13px 14px; outline:none; color:#fff; background:rgba(255,255,255,.075); transition:.18s ease; color-scheme:dark; }
textarea { resize:vertical; min-height:88px; }
input::placeholder, textarea::placeholder { color:#8d8994; }
input:focus, select:focus, textarea:focus { border-color:rgba(40,217,255,.66); background:rgba(255,255,255,.105); box-shadow:0 0 0 4px rgba(40,217,255,.09), 0 0 26px rgba(40,217,255,.08); }
input[aria-invalid="true"] { border-color:rgba(255,119,111,.72); }
.field-hint { display:block; margin-top:6px; color:#8f8b96; font-size:11px; line-height:1.4; }
.field-hint.hint-error { color:#ff9891; font-weight:750; }
.check-row { display:grid; grid-template-columns:20px 1fr; gap:10px; align-items:start; color:var(--muted); font-size:12px; line-height:1.5; }
.check-row input { width:17px; height:17px; margin:1px 0 0; accent-color:var(--cyan); }
.privacy-details { border:1px solid rgba(255,255,255,.10); border-radius:14px; padding:12px 14px; color:#aaa5b1; background:rgba(255,255,255,.045); font-size:12px; line-height:1.55; }
.privacy-details summary { cursor:pointer; color:#ddd9e3; font-weight:800; }
.privacy-details p { margin:10px 0 0; }
.notice { border-radius:14px; padding:12px 14px; font-size:13px; font-weight:720; line-height:1.45; }
.notice.success { background:rgba(52,211,153,.14); color:#a8ffd3; border:1px solid rgba(108,245,182,.28); }
.notice.error { background:rgba(255,85,85,.12); color:#ffb0aa; border:1px solid rgba(255,119,111,.28); }
.notice.warning { background:rgba(255,199,80,.11); color:#ffe4a1; border:1px solid rgba(255,211,107,.26); margin-bottom:18px; }
.primary-button, .secondary-button { display:inline-flex; align-items:center; justify-content:center; border-radius:14px; text-decoration:none; font-weight:850; cursor:pointer; transition:.18s ease; }
.primary-button { width:100%; border:1px solid rgba(255,255,255,.16); padding:14px 18px; color:#05060a; background:linear-gradient(110deg,var(--cyan),#7ef3d0 52%,#f49de4); box-shadow:0 15px 36px rgba(40,217,255,.16); }
.primary-button:hover:not(:disabled) { transform:translateY(-1px); filter:brightness(1.05); }
.primary-button:disabled { opacity:.5; cursor:not-allowed; transform:none; }
.compact-button { width:auto; min-width:190px; }
.secondary-button { border:1px solid rgba(255,255,255,.13); background:rgba(255,255,255,.07); color:#f5f2f8; padding:10px 13px; }
.secondary-button:hover { background:rgba(255,255,255,.12); }
.footer-row { margin-top:20px; padding-top:16px; border-top:1px solid rgba(255,255,255,.10); display:flex; justify-content:space-between; gap:16px; color:#8e8996; font-size:12px; }
.footer-row a { color:#bff4ff; font-weight:800; text-decoration:none; }

/* Admin */
.admin-body { min-height:100vh; background:#08070c; }
.center-screen, .admin-login-shell { min-height:100svh; display:grid; place-items:center; padding:24px; background:linear-gradient(rgba(4,5,9,.52),rgba(4,5,9,.76)),url('/ilosbar-interior.jpg') center/cover fixed no-repeat; }
.loader-card { border-radius:20px; padding:20px 24px; color:#ded9e5; }
.admin-login-card { width:min(470px,100%); border-radius:28px; padding:34px; }
.admin-login-card h1 { margin:8px 0 8px; font-family:Georgia,"Times New Roman",serif; font-size:44px; font-weight:500; }
.admin-login-card > p { margin:0 0 22px; color:var(--muted); }
.login-back { display:inline-block; margin-top:20px; color:#a9efff; font-size:13px; font-weight:800; text-decoration:none; }

.admin-shell { min-height:100vh; padding:42px max(22px,calc((100vw - 1320px)/2)) 70px; background:radial-gradient(circle at 10% 0%,rgba(40,217,255,.10),transparent 30%),radial-gradient(circle at 95% 10%,rgba(255,78,203,.10),transparent 26%),#0a090e; }
.admin-header { display:flex; justify-content:space-between; align-items:flex-end; gap:26px; margin-bottom:22px; }
.admin-header h1 { margin:6px 0; font-family:Georgia,"Times New Roman",serif; font-size:clamp(40px,5vw,58px); font-weight:500; letter-spacing:-.03em; }
.lead { margin:0; color:var(--muted); line-height:1.55; }
.header-actions { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:9px; }

.settings-card, .filter-card, .stat-card, .empty-state { border-radius:22px; }
.settings-card { padding:22px; margin-bottom:18px; }
.settings-heading { display:flex; justify-content:space-between; align-items:center; gap:22px; margin-bottom:18px; }
.settings-heading h2 { margin:6px 0; font-size:24px; }
.settings-heading p { margin:0; color:var(--muted); font-size:13px; line-height:1.5; }
.booking-master-switch { display:flex; align-items:center; gap:12px; min-width:250px; padding:12px 14px; border:1px solid rgba(255,255,255,.10); border-radius:16px; background:rgba(255,255,255,.04); cursor:pointer; }
.booking-master-switch > input, .day-toggle > input { position:absolute; opacity:0; pointer-events:none; }
.booking-master-switch > span:last-child { margin:0; }
.booking-master-switch strong, .booking-master-switch small { display:block; }
.booking-master-switch small { margin-top:2px; color:#8f8a96; font-size:10px; }
.switch-ui { flex:0 0 auto; width:44px; height:25px; position:relative; border-radius:999px; background:#3c3944; transition:.2s; }
.switch-ui::after { content:""; position:absolute; top:3px; left:3px; width:19px; height:19px; border-radius:50%; background:#fff; transition:.2s; }
input:checked + .switch-ui { background:linear-gradient(90deg,#28d9ff,#6cf5b6); }
input:checked + .switch-ui::after { transform:translateX(19px); }
.switch-ui.small { width:38px; height:22px; }
.switch-ui.small::after { width:16px; height:16px; }
input:checked + .switch-ui.small::after { transform:translateX(16px); }

.schedule-admin-grid { display:grid; gap:8px; }
.schedule-admin-row { display:grid; grid-template-columns:minmax(165px,1.1fr) minmax(120px,.75fr) minmax(120px,.75fr) minmax(105px,.6fr); gap:12px; align-items:center; padding:10px 12px; border:1px solid rgba(255,255,255,.075); border-radius:15px; background:rgba(255,255,255,.035); }
.day-toggle { display:flex; align-items:center; gap:10px; cursor:pointer; }
.day-toggle strong { font-size:13px; }
.time-control { display:grid; grid-template-columns:auto 1fr; align-items:center; gap:8px; }
.time-control > span { margin:0; color:#8f8a96; font-size:10px; text-transform:uppercase; letter-spacing:.08em; }
.time-control input { margin:0; padding:9px 10px; }
.overnight-chip { justify-self:end; display:inline-flex; padding:5px 8px; border-radius:999px; background:rgba(255,78,203,.12); color:#ffabe7; border:1px solid rgba(255,78,203,.20); font-size:10px; font-weight:800; }
.settings-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; margin-top:16px; }
.settings-actions .notice { flex:1; }

.stats-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin-bottom:18px; }
.stat-card { padding:18px; }
.stat-card > span { display:block; color:#96919d; font-size:12px; }
.stat-card strong { display:block; margin:4px 0 0; font-size:31px; }
.stat-card small { color:#77727d; font-size:10px; }
.filter-card { padding:17px; margin-bottom:18px; }
.filter-grid { display:grid; grid-template-columns:1.5fr 1fr .9fr auto; gap:12px; align-items:end; }
.filter-actions { display:flex; gap:7px; }
.filter-actions button, .icon-button, .card-actions button { border:1px solid rgba(255,255,255,.12); border-radius:10px; background:rgba(255,255,255,.06); color:#eeeaf2; padding:10px 11px; cursor:pointer; }
.filter-actions button:hover, .icon-button:hover, .card-actions button:hover:not(:disabled) { background:rgba(255,255,255,.12); }
.result-count { margin-top:10px; color:#7f7a86; font-size:11px; }

.reservation-admin-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:13px; }
.reservation-admin-card { min-width:0; padding:18px; border:1px solid rgba(255,255,255,.10); border-radius:20px; background:rgba(21,20,27,.80); box-shadow:0 18px 45px rgba(0,0,0,.20); }
.reservation-card-top { display:flex; justify-content:space-between; gap:14px; align-items:flex-start; }
.reservation-date { display:block; color:#9d98a4; font-size:11px; }
.reservation-time { display:block; margin-top:3px; font-size:22px; }
.status { display:inline-flex; border-radius:999px; padding:6px 9px; font-size:10px; font-weight:900; }
.status.pending { background:rgba(255,211,107,.12); color:#ffe29a; }
.status.confirmed { background:rgba(108,245,182,.12); color:#a9ffd5; }
.status.cancelled { background:rgba(255,119,111,.12); color:#ffaaa4; }
.guest-line { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-top:18px; }
.guest-line strong { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.guest-line span { color:#c5c0cb; font-size:12px; }
.contact-lines { display:grid; gap:5px; margin-top:12px; color:#9c97a3; font-size:12px; overflow-wrap:anywhere; }
.contact-lines a { color:#b8f3ff; text-decoration:none; }
.reservation-message { margin:13px 0 0; padding:10px 11px; border-radius:11px; background:rgba(255,255,255,.045); color:#b8b3be; font-size:11px; line-height:1.5; white-space:pre-wrap; }
.card-actions { display:flex; flex-wrap:wrap; gap:6px; margin-top:16px; padding-top:14px; border-top:1px solid rgba(255,255,255,.08); }
.card-actions button { padding:7px 9px; font-size:10px; }
.card-actions button:disabled { opacity:.35; cursor:default; }
.card-actions .danger { color:#ff9992; }
.empty-state { padding:60px 20px; text-align:center; }
.empty-state h2 { margin:0 0 6px; font-family:Georgia,"Times New Roman",serif; font-size:30px; font-weight:500; }
.empty-state p { margin:0; color:var(--muted); }

.modal-backdrop { position:fixed; inset:0; z-index:50; display:grid; place-items:center; padding:20px; overflow:auto; background:rgba(4,4,8,.80); backdrop-filter:blur(10px); }
.edit-modal { width:min(670px,100%); max-height:calc(100svh - 40px); overflow:auto; padding:24px; border:1px solid rgba(255,255,255,.15); border-radius:24px; background:#111017; box-shadow:0 30px 100px rgba(0,0,0,.55); }
.modal-header { display:flex; justify-content:space-between; align-items:flex-start; gap:18px; margin-bottom:18px; }
.modal-header h2 { margin:5px 0 0; font-family:Georgia,"Times New Roman",serif; font-size:34px; font-weight:500; }
.icon-button { width:38px; height:38px; padding:0; border-radius:50%; font-size:23px; }
.modal-actions { display:flex; justify-content:flex-end; gap:9px; }

@media (max-width: 1100px) {
  .booking-layout { width:min(940px,calc(100% - 36px)); grid-template-columns:minmax(0,.85fr) minmax(400px,1.15fr); gap:34px; padding:42px 0; }
  .brand-panel h1 { font-size:clamp(54px,7vw,76px); }
  .reservation-admin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .filter-grid { grid-template-columns:1fr 1fr; }
  .stats-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  .booking-page { background-attachment:scroll; }
  .booking-layout { width:min(720px,calc(100% - 28px)); grid-template-columns:1fr; min-height:auto; padding:28px 0 42px; }
  .brand-panel { padding:18px 5px 0; }
  .brand-panel h1 { font-size:clamp(52px,12vw,78px); }
  .hero-copy { font-size:16px; }
  .opening-card { margin-top:24px; }
  .admin-shell { padding:28px 16px 55px; }
  .admin-header, .settings-heading { align-items:stretch; flex-direction:column; }
  .header-actions { justify-content:flex-start; }
  .booking-master-switch { min-width:0; width:100%; }
  .schedule-admin-row { grid-template-columns:minmax(150px,1fr) 1fr 1fr; }
  .overnight-chip { grid-column:2 / -1; justify-self:start; }
}

@media (max-width: 600px) {
  .booking-layout { width:min(100% - 18px,540px); padding:18px 0 28px; gap:20px; }
  .brand-panel { padding-left:7px; padding-right:7px; }
  .brand-panel h1 { margin-top:18px; font-size:clamp(47px,15vw,68px); }
  .hero-copy { font-size:14px; }
  .reservation-card { padding:22px 16px; border-radius:22px; }
  .reservation-heading h2 { font-size:38px; }
  .form-grid-two { grid-template-columns:1fr; }
  .schedule-line { grid-template-columns:95px 1fr; }
  .footer-row { flex-direction:column; }
  .admin-login-card { padding:26px 20px; }
  .admin-login-card h1 { font-size:38px; }
  .stats-grid, .filter-grid, .reservation-admin-grid { grid-template-columns:1fr; }
  .filter-actions, .header-actions, .settings-actions, .modal-actions { flex-direction:column; align-items:stretch; }
  .header-actions .secondary-button, .settings-actions .compact-button, .modal-actions .secondary-button, .modal-actions .compact-button { width:100%; }
  .schedule-admin-row { grid-template-columns:1fr 1fr; padding:12px; }
  .day-toggle { grid-column:1 / -1; }
  .overnight-chip { grid-column:1 / -1; }
  .time-control { grid-template-columns:1fr; gap:3px; }
  .edit-modal { padding:20px 15px; }
}
