/* ==========================================================================
   OAGENTEL — 5-STAR LUXURY HOSPITALITY ADMIN & OPERATIONS DASHBOARD
   ========================================================================== */

:root {
  /* Color Palette — Luxury Hospitality */
  --bg: #07090e;
  --bg-subtle: #0d111a;
  --panel: rgba(18, 24, 38, 0.88);
  --panel-solid: #121826;
  --panel2: rgba(26, 34, 52, 0.78);
  --panel2-solid: #1a2234;
  --panel3: #222c44;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-gold: rgba(212, 175, 55, 0.35);

  /* Typography Colors */
  --txt: #f8fafc;
  --txt-muted: #94a3b8;
  --txt-dim: #64748b;

  /* Accent Colors */
  --gold: #d4af37;
  --gold-light: #f5df8b;
  --gold-dark: #9e7a20;
  --gold-gradient: linear-gradient(135deg, #f5df8b 0%, #d4af37 50%, #9e7a20 100%);
  --gold-glow: rgba(212, 175, 55, 0.22);

  --green: #10b981;
  --green-glow: rgba(16, 185, 129, 0.2);
  --red: #f43f5e;
  --red-glow: rgba(244, 63, 94, 0.2);
  --orange: #f59e0b;
  --blue: #3b82f6;
  --purple: #8b5cf6;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);

  /* Radius */
  --rad-sm: 6px;
  --rad-md: 10px;
  --rad-lg: 14px;
  --rad-full: 9999px;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  background-image:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(212, 175, 55, 0.07) 0%, transparent 70%),
    radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 90% 60%, rgba(139, 92, 246, 0.03) 0%, transparent 40%);
  background-attachment: fixed;
  min-height: 100vh;
}

/* ==========================================================================
   TOPBAR
   ========================================================================== */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 32px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.logo {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  width: 36px;
  height: 36px;
  box-shadow: none !important;
  border-radius: 0 !important;
  filter: drop-shadow(0 2px 8px rgba(212, 175, 55, 0.3));
}

.logo img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-title {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.3px;
  color: var(--txt);
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-beacon {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  color: var(--green);
  font-weight: 600;
  background: rgba(16, 185, 129, 0.12);
  padding: 2px 7px;
  border-radius: var(--rad-full);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.live-beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  animation: beaconPulse 2s infinite ease-in-out;
}

@keyframes beaconPulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
}

.brand-sub {
  color: var(--txt-muted);
  font-size: 11px;
  margin-top: 2px;
}

.ctrls {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ctrls label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--txt-muted);
  font-size: 12px;
  font-weight: 600;
}

select {
  background: var(--panel2-solid);
  color: var(--txt);
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: var(--rad-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

select:focus {
  outline: 0;
  border-color: var(--gold);
}

.btn {
  background: var(--panel2-solid);
  color: var(--txt);
  border: 1px solid var(--line);
  padding: 8px 16px;
  border-radius: var(--rad-md);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: translateY(-1px);
}

.btn-gold {
  background: var(--gold-gradient);
  color: #0b0e14;
  border: 0;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.28);
}

.btn-gold:hover {
  color: #000;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.42);
}

.btn-ghost {
  background: transparent;
  border: 1px dashed var(--line-gold);
  color: var(--gold-light);
}

.btn-ghost:hover {
  background: rgba(212, 175, 55, 0.1);
}

/* Language Switcher */
.oa-lang-switch {
  display: inline-flex;
  gap: 3px;
  background: rgba(0, 0, 0, 0.25);
  padding: 3px;
  border-radius: var(--rad-sm);
  border: 1px solid var(--line);
}

.oa-lang-btn {
  background: transparent;
  color: var(--txt-muted);
  border: 0;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: all 0.15s;
}

.oa-lang-btn:hover {
  color: var(--txt);
}

.oa-lang-btn.active {
  color: #0b0e14;
  background: var(--gold);
  font-weight: 700;
}

/* ==========================================================================
   ADMIN TABS
   ========================================================================== */
.admin-tabs {
  display: flex;
  gap: 6px;
  padding: 8px 32px;
  background: var(--panel);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 65px;
  z-index: 40;
  overflow-x: auto;
}

.admin-tab {
  background: transparent;
  color: var(--txt-muted);
  border: 1px solid transparent;
  padding: 10px 18px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--rad-md);
  letter-spacing: 0.2px;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.admin-tab:hover {
  color: var(--txt);
  background: rgba(255, 255, 255, 0.04);
}

.admin-tab.active {
  color: #fff;
  background: var(--panel2-solid);
  border-color: var(--line-gold);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.tab-pill-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--rad-full);
  background: rgba(255, 255, 255, 0.1);
  color: var(--txt-muted);
}

.admin-tab.active .tab-pill-badge {
  background: rgba(212, 175, 55, 0.2);
  color: var(--gold-light);
}

/* ==========================================================================
   MAIN DASHBOARD GRID
   ========================================================================== */
.grid {
  display: grid;
  gap: 20px;
  padding: 28px 32px 40px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 1540px;
  margin: 0 auto;
}

/* ==========================================================================
   KPIS
   ========================================================================== */
.kpis {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.kpi {
  background: var(--panel);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 18px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.kpi::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.kpi:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: var(--shadow-md);
}

.kpi.gold::before   { background: var(--gold-gradient); }
.kpi.green::before  { background: var(--green); }
.kpi.red::before    { background: var(--red); }
.kpi.orange::before { background: var(--orange); }
.kpi.blue::before   { background: var(--blue); }
.kpi.purple::before { background: var(--purple); }

.kpi .label {
  color: var(--txt-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.kpi .value {
  font-size: 32px;
  font-weight: 800;
  margin-top: 8px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.kpi .sub {
  color: var(--txt-dim);
  font-size: 11px;
  margin-top: 6px;
  font-weight: 500;
}

.kpi.gold .value   { color: var(--gold-light); }
.kpi.green .value  { color: var(--green); }
.kpi.red .value    { color: var(--red); }
.kpi.orange .value { color: var(--orange); }
.kpi.blue .value   { color: var(--blue); }
.kpi.purple .value { color: var(--purple); }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  background: var(--panel);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.card.span2 {
  grid-column: 1 / -1;
}

.card h2 {
  margin: 0 0 18px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--txt-muted);
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Alert / Escalations Card */
.card.alert {
  border-color: rgba(244, 63, 94, 0.35);
  background: linear-gradient(180deg, rgba(38, 18, 26, 0.7) 0%, var(--panel-solid) 100%);
  box-shadow: 0 8px 32px rgba(244, 63, 94, 0.12);
}

.card.alert h2 {
  color: var(--red);
}

/* ==========================================================================
   FUNNEL
   ========================================================================== */
.funnel {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.funnel-row {
  display: grid;
  grid-template-columns: 1fr 64px;
  gap: 14px;
  align-items: center;
}

.funnel-bar {
  position: relative;
  height: 42px;
  background: var(--panel2-solid);
  border-radius: var(--rad-sm);
  overflow: hidden;
  display: flex;
  align-items: center;
  padding: 0 14px;
  font-size: 13.5px;
  color: var(--txt);
  border: 1px solid var(--line);
}

.funnel-bar > .fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  background: linear-gradient(90deg, rgba(212, 175, 55, 0.45) 0%, rgba(212, 175, 55, 0.15) 100%);
  border-right: 2px solid var(--gold);
  z-index: 0;
  transition: width 0.6s ease;
}

.funnel-bar > span {
  position: relative;
  z-index: 1;
  font-weight: 600;
}

.funnel-row .count {
  text-align: right;
  font-weight: 800;
  font-size: 15px;
  color: var(--gold-light);
  font-family: ui-monospace, monospace;
}

/* ==========================================================================
   BAR CHARTS (Sentiment, Lang, Dept)
   ========================================================================== */
.bars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr 75px;
  gap: 14px;
  align-items: center;
  font-size: 12.5px;
}

.bar {
  height: 18px;
  background: var(--panel2-solid);
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--line);
}

.bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.b-positive { background: var(--green); }
.b-neutral  { background: var(--blue); }
.b-negative { background: var(--orange); }
.b-urgent   { background: var(--red); }
.b-tr { background: var(--gold); }
.b-en { background: var(--blue); }
.b-de { background: var(--purple); }
.b-housekeeping { background: var(--blue); }
.b-technical    { background: var(--orange); }
.b-front_office { background: var(--gold); }
.b-spa          { background: var(--purple); }
.b-fnb          { background: var(--green); }
.b-security     { background: var(--red); }
.b-guest_relations { background: #ec4899; }

/* ==========================================================================
   ACTIVITY LIST (Operations & Escalations)
   ========================================================================== */
.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.list::-webkit-scrollbar {
  width: 6px;
}

.list::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--panel2-solid);
  border-radius: var(--rad-md);
  border: 1px solid var(--line);
  transition: all 0.15s ease;
}

.row:hover {
  border-color: var(--line-strong);
  background: #1e273c;
  transform: translateY(-1px);
}

.row .meta {
  color: var(--txt-dim);
  font-size: 11px;
  white-space: nowrap;
}

.row b {
  font-size: 13.5px;
  color: var(--txt);
}

.pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--rad-full);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-left: 6px;
}

.pill.urgent { background: rgba(244, 63, 94, 0.18); color: var(--red); border: 1px solid rgba(244, 63, 94, 0.3); }
.pill.high   { background: rgba(245, 158, 11, 0.18); color: var(--orange); border: 1px solid rgba(245, 158, 11, 0.3); }
.pill.normal { background: rgba(59, 130, 246, 0.18); color: var(--blue); border: 1px solid rgba(59, 130, 246, 0.3); }

.row .descr {
  color: var(--txt-muted);
  font-size: 12px;
  margin-top: 4px;
  line-height: 1.45;
}

.empty {
  color: var(--txt-dim);
  font-size: 13px;
  padding: 30px 10px;
  text-align: center;
  font-weight: 500;
}

/* ==========================================================================
   RESERVATIONS VIEW (Full Executive Redesign)
   ========================================================================== */
.rsv-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.rsv-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.rsv-filter {
  background: var(--panel2-solid);
  color: var(--txt-muted);
  border: 1px solid var(--line);
  padding: 7px 16px;
  border-radius: var(--rad-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.rsv-filter:hover {
  color: var(--txt);
  border-color: var(--gold);
}

.rsv-filter.active {
  background: var(--gold-gradient);
  color: #0b0e14;
  font-weight: 700;
  border-color: transparent;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.3);
}

.rsv-search-wrap {
  display: flex;
  align-items: center;
  position: relative;
  min-width: 240px;
}

.rsv-search-wrap input {
  width: 100%;
  background: var(--panel2-solid);
  color: var(--txt);
  border: 1px solid var(--line);
  padding: 8px 14px 8px 34px;
  border-radius: var(--rad-md);
  font-size: 13px;
  transition: all 0.15s;
}

.rsv-search-wrap input:focus {
  outline: 0;
  border-color: var(--gold);
}

.rsv-search-wrap .search-icon {
  position: absolute;
  left: 10px;
  color: var(--txt-dim);
  font-size: 13px;
  pointer-events: none;
}

.rsv-list {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
}

.rsv-card {
  background: linear-gradient(180deg, #1c2438 0%, #131926 100%);
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: var(--rad-lg);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.rsv-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--line-strong);
}

.rsv-card.confirmed { border-left-color: var(--green); }
.rsv-card.awaiting_payment { border-left-color: var(--purple); }
.rsv-card.cancelled { border-left-color: var(--txt-dim); opacity: 0.65; }

.rsv-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.rsv-guest {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.rsv-guest b {
  font-size: 15px;
  font-weight: 700;
  color: var(--txt);
}

.rsv-pill {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--rad-full);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}

.pill-pending          { background: rgba(245, 158, 11, 0.16); color: var(--orange); border: 1px solid rgba(245, 158, 11, 0.3); }
.pill-awaiting_payment { background: rgba(139, 92, 246, 0.16); color: #c4b5fd; border: 1px solid rgba(139, 92, 246, 0.3); }
.pill-confirmed        { background: rgba(16, 185, 129, 0.16); color: var(--green); border: 1px solid rgba(16, 185, 129, 0.3); }
.pill-cancelled        { background: rgba(100, 116, 139, 0.16); color: var(--txt-dim); border: 1px solid rgba(100, 116, 139, 0.3); }

.rsv-time {
  font-size: 11px;
  color: var(--txt-dim);
  white-space: nowrap;
}

.rsv-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 16px;
  background: var(--panel2-solid);
  padding: 12px 14px;
  border-radius: var(--rad-md);
  border: 1px solid var(--line);
}

.rsv-l {
  font-size: 10px;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.rsv-v {
  font-size: 13.5px;
  font-weight: 600;
  margin-top: 2px;
  color: var(--txt);
}

.rsv-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--txt-muted);
  flex-wrap: wrap;
}

.rsv-ref {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  color: var(--txt-dim);
}

.rsv-pay-hint {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(139, 92, 246, 0.12);
  color: #c4b5fd;
  padding: 4px 10px;
  border-radius: var(--rad-sm);
  font-size: 11.5px;
  font-weight: 600;
  border: 1px solid rgba(139, 92, 246, 0.25);
}

.rsv-pay-hint.ok {
  background: rgba(16, 185, 129, 0.12);
  color: var(--green);
  border-color: rgba(16, 185, 129, 0.25);
}

.rsv-note {
  font-style: italic;
  color: var(--txt-muted);
}

.rsv-actions {
  display: flex;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.rsv-btn {
  flex: 1;
  padding: 10px 14px;
  border-radius: var(--rad-md);
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.rsv-btn.confirm {
  background: var(--gold-gradient);
  color: #0b0e14;
  border: 0;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.rsv-btn.confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.rsv-btn.cancel {
  background: transparent;
  color: var(--txt-muted);
  border: 1px solid var(--line);
}

.rsv-btn.cancel:hover {
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.4);
  background: rgba(244, 63, 94, 0.08);
}

/* Status indicator on top of tab */
.comp-status {
  font-size: 12px;
  color: var(--txt-muted);
  font-weight: 500;
}

.comp-status.ok  { color: var(--green); font-weight: 600; }
.comp-status.err { color: var(--red); font-weight: 600; }

/* ==========================================================================
   CALENDAR VIEW (PMS Occupancy & Rate Grid)
   ========================================================================== */
.cal-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
  gap: 16px;
  flex-wrap: wrap;
}

.cal-nav {
  display: flex;
  gap: 8px;
}

.cal-legend {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  padding: 10px 16px;
  background: var(--panel2-solid);
  border-radius: var(--rad-md);
  font-size: 11.5px;
  color: var(--txt-muted);
  border: 1px solid var(--line);
}

.lg-pill {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
}

.lg-free { background: rgba(16, 185, 129, 0.6); }
.lg-med  { background: rgba(212, 175, 55, 0.65); }
.lg-high { background: rgba(245, 158, 11, 0.65); }
.lg-full { background: rgba(244, 63, 94, 0.65); }

.cal-wrap {
  overflow-x: auto;
  border-radius: var(--rad-md);
  border: 1px solid var(--line);
}

.cal-table {
  border-collapse: separate;
  border-spacing: 2px;
  width: 100%;
  min-width: 1050px;
  font-size: 11px;
}

.cal-table th, .cal-table td {
  padding: 0;
}

.cal-room-h, .cal-date-h {
  background: var(--panel2-solid);
  padding: 10px 8px;
  text-align: center;
  color: var(--txt-muted);
  font-weight: 700;
  font-size: 10.5px;
  border-radius: 4px;
  min-width: 60px;
}

.cal-date-h.wknd {
  color: var(--gold-light);
  background: rgba(212, 175, 55, 0.1);
}

.cal-dow {
  font-size: 9px;
  opacity: 0.75;
}

.cal-room {
  background: var(--panel-solid);
  padding: 12px 14px;
  text-align: left;
  font-size: 12.5px;
  min-width: 170px;
  border-radius: 6px;
  position: sticky;
  left: 0;
  z-index: 2;
  border-right: 1px solid var(--line);
}

.cal-room b {
  display: block;
  color: var(--txt);
}

.cal-room small {
  color: var(--txt-muted);
  font-size: 10.5px;
}

.cal-cell {
  padding: 8px 4px;
  text-align: center;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
  border: 1px solid var(--line);
}

.cal-cell:hover {
  transform: scale(1.08);
  z-index: 5;
  position: relative;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.cal-pct {
  font-weight: 800;
  font-size: 12px;
}

.cal-price {
  font-size: 10px;
  color: var(--txt-muted);
  margin-top: 2px;
  font-family: ui-monospace, monospace;
}

.cal-rem {
  font-size: 9px;
  color: var(--txt-dim);
  opacity: 0.8;
}

.cal-free { background: rgba(16, 185, 129, 0.18);  border-color: rgba(16, 185, 129, 0.35); color: var(--green); }
.cal-med  { background: rgba(212, 175, 55, 0.20); border-color: rgba(212, 175, 55, 0.40); color: var(--gold-light); }
.cal-high { background: rgba(245, 158, 11, 0.22); border-color: rgba(245, 158, 11, 0.40); color: var(--orange); }
.cal-full { background: rgba(244, 63, 94, 0.25); border-color: rgba(244, 63, 94, 0.45); color: var(--red); }

/* ==========================================================================
   COMPETITOR ANALYSIS & STRATEGY VIEW
   ========================================================================== */
.comp-actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.comp-pos-label {
  margin-top: 12px;
  font-size: 12px;
  color: var(--txt-muted);
  text-align: center;
}

/* Recommendation cards */
.rec-card.v2 {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px 22px;
  background: linear-gradient(180deg, #1c2438 0%, #131926 100%);
  border-radius: var(--rad-lg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}

.rec-card.v2.applied  { border-left-color: var(--green); opacity: 0.8; }
.rec-card.v2.declined { border-left-color: var(--txt-dim); opacity: 0.55; }

.rec-head-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.rec-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: var(--rad-full);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  font-size: 11px;
  color: var(--txt);
  font-weight: 600;
}

.chip-price { background: rgba(212,175,55,0.12); border-color: rgba(212,175,55,0.4); color: var(--gold-light); }
.chip-camp  { background: rgba(139,92,246,0.12); border-color: rgba(139,92,246,0.4); color: #c4b5fd; }
.chip-dates { background: rgba(59,130,246,0.10); border-color: rgba(59,130,246,0.3); color: #93c5fd; font-family: ui-monospace, monospace; }

.rec-conf-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 130px;
}

.rec-conf-bar {
  position: relative;
  width: 70px;
  height: 6px;
  border-radius: 3px;
  background: var(--panel2-solid);
  overflow: hidden;
}

.rec-conf-bar > span {
  display: block;
  height: 100%;
}

.conf-high > span { background: var(--green); }
.conf-mid  > span { background: var(--gold); }
.conf-low  > span { background: var(--orange); }

.rec-conf-num {
  font-size: 11px;
  color: var(--txt-muted);
  font-weight: 600;
}

.rec-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-section-h {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--txt-muted);
  text-transform: uppercase;
}

.rec-section-body {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--txt);
}

.rec-impact .rec-impact-body {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 10px 14px;
  border-radius: var(--rad-md);
  color: var(--green);
  font-weight: 600;
}

.rec-numbers .rec-num-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.num {
  background: var(--panel2-solid);
  padding: 10px 12px;
  border-radius: var(--rad-md);
  border: 1px solid var(--line);
}

.num.num-hi {
  background: rgba(212, 175, 55, 0.10);
  border-color: rgba(212, 175, 55, 0.4);
}

.num-l {
  font-size: 10px;
  color: var(--txt-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
}

.num-v {
  font-size: 16px;
  font-weight: 800;
  margin-top: 4px;
}

.num-v.up   { color: var(--green); }
.num-v.down { color: var(--red); }

.rec-steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.rec-steps li {
  position: relative;
  padding: 9px 12px 9px 36px;
  background: var(--panel2-solid);
  border-radius: var(--rad-sm);
  border: 1px solid var(--line);
  font-size: 13px;
  color: var(--txt);
  counter-increment: step;
}

.rec-steps li::before {
  content: counter(step);
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--gold-gradient);
  color: #0b0e14;
  font-weight: 800;
  font-size: 11px;
  display: grid;
  place-items: center;
}

.rec-actions {
  display: flex;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}

.rec-actions button {
  flex: 1;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  border-radius: var(--rad-md);
  cursor: pointer;
  transition: 0.15s;
}

.rec-actions .apply {
  background: var(--gold-gradient);
  color: #0b0e14;
  border: 0;
}

.rec-actions .apply:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
}

.rec-actions .decline {
  background: transparent;
  color: var(--txt-muted);
  border: 1px solid var(--line);
}

.rec-actions .decline:hover {
  color: var(--red);
  border-color: rgba(244, 63, 94, 0.4);
}

/* Admin Gate Modal */
.admin-gate {
  position: fixed;
  inset: 0;
  background: rgba(7, 9, 14, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  display: grid;
  place-items: center;
  z-index: 1000;
}

.admin-gate-card {
  position: relative;
  background: var(--panel-solid);
  border: 1px solid var(--line-gold);
  border-radius: var(--rad-lg);
  padding: 38px 32px;
  max-width: 400px;
  width: calc(100% - 32px);
  text-align: center;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8);
}

.admin-gate-logo {
  font-size: 38px;
  margin-bottom: 12px;
}

.admin-gate h2 {
  margin: 0 0 6px;
  font-size: 18px;
  color: var(--txt);
  font-weight: 700;
}

.admin-gate p {
  margin: 0 0 20px;
  color: var(--txt-muted);
  font-size: 13px;
}

.admin-gate input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--rad-md);
  border: 1px solid var(--line);
  background: var(--panel2-solid);
  color: var(--txt);
  font-size: 14px;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: 2px;
}

.admin-gate input:focus {
  outline: 0;
  border-color: var(--gold);
}

.admin-gate button {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--rad-md);
  border: 0;
  background: var(--gold-gradient);
  color: #0b0e14;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.admin-gate button:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.4);
}

.admin-gate-error {
  color: var(--red);
  font-size: 12px;
  margin-top: 10px;
}

/* ==========================================================================
   RESPONSIVE (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 900px) {
  .topbar {
    padding: 12px 18px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .ctrls {
    width: 100%;
    justify-content: space-between;
  }
  .admin-tabs {
    padding: 6px 16px;
    top: 105px;
  }
  .grid {
    padding: 18px 16px 32px;
    grid-template-columns: 1fr;
  }
  .card.span2 {
    grid-column: 1;
  }
  .rsv-list {
    grid-template-columns: 1fr;
  }
  .rsv-body {
    grid-template-columns: 1fr;
  }
}
.rsv-btn.confirm { background: var(--gold); color: #000; border: 0; }
.rsv-btn.confirm:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(212,175,55,0.3); }
.rsv-btn.cancel { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.rsv-btn.cancel:hover { color: var(--red); border-color: var(--red); }


/* ===== Grafik kapsayicisi — SABIT YUKSEKLIK ZORUNLU =====
   Chart.js responsive:true + maintainAspectRatio:false, yuksekligi SINIRLI bir
   ebeveyn gerektirir. Bu kural yoktu: canvas dogrudan .card icindeydi, her
   resize olayinda buyuyup kendini tekrar tetikliyor ve sayfayi kilitliyordu.
   Yeni bir grafik eklerken canvas'i DAIMA .chart-box icine koyun. */
.chart-box {
  position: relative;
  height: 220px;
  width: 100%;
}
.chart-box > canvas {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
}
@media (max-width: 820px) {
  .chart-box { height: 190px; }
}
