/* ==========================================================
   DAMIR HOTEL by Aiko — Dizayn tizimi
   Navy · Gold · Cream — Playfair Display + Inter
   ========================================================== */
:root {
  --navy:      #0F1923;
  --navy-mid:  #1E2D3D;
  --navy-soft: #2A3B4D;
  --gold:      #C9A96E;
  --gold-dark: #A07840;
  --gold-soft: #EFE5D3;
  --cream:     #F7F5F0;
  --white:     #FFFFFF;
  --ink:       #22303D;
  --muted:     #7C8894;
  --line:      #E8E2D6;
  --success:   #2D8B55;
  --danger:    #C0392B;
  --warning:   #D4A017;
  --blue:      #2E6DA4;
  --sidebar-w: 260px;
  --header-h:  60px;
  --radius:    14px;
  --shadow-sm: 0 1px 3px rgba(15,25,35,.06), 0 4px 14px rgba(15,25,35,.05);
  --shadow-md: 0 6px 24px rgba(15,25,35,.10);
  --gold-grad: linear-gradient(135deg, #DCC08A 0%, var(--gold) 45%, var(--gold-dark) 100%);
  --navy-grad: linear-gradient(140deg, var(--navy) 0%, var(--navy-mid) 100%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--cream);
  color: var(--ink);
  font-size: 14.5px;
  -webkit-font-smoothing: antialiased;
  margin: 0;
}
h1,h2,h3,h4,.font-display { font-family: 'Playfair Display', Georgia, serif; }
a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--navy); }
::selection { background: var(--gold); color: var(--navy); }

/* нежная текстура fon */
body.dh-app {
  background-image: radial-gradient(rgba(201,169,110,.06) 1px, transparent 1px);
  background-size: 26px 26px;
}

/* ================= LAYOUT ================= */
.dh-shell { display: flex; min-height: 100vh; }
.dh-main { flex: 1; margin-left: var(--sidebar-w); min-width: 0; display: flex; flex-direction: column; }
.dh-content { padding: 26px 30px 60px; flex: 1; }

/* ================= SIDEBAR ================= */
.dh-sidebar {
  width: var(--sidebar-w);
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at top left, rgba(201,169,110,.09), transparent 55%),
    radial-gradient(rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: auto, 22px 22px;
  color: #B8C2CC;
  position: fixed; inset: 0 auto 0 0;
  display: flex; flex-direction: column;
  z-index: 1040;
  border-right: 1px solid rgba(201,169,110,.14);
}
.dh-brand {
  display: flex; align-items: center; gap: 13px;
  padding: 22px 22px 20px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.dh-logo {
  width: 46px; height: 46px; flex: 0 0 46px;
  background: var(--gold-grad);
  border-radius: 12px;
  display: grid; place-items: center;
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 26px;
  color: var(--navy);
  box-shadow: 0 4px 14px rgba(201,169,110,.35), inset 0 1px 0 rgba(255,255,255,.45);
}
.dh-brand-name { font-family: 'Playfair Display', serif; font-size: 19px; color: #fff; line-height: 1.1; letter-spacing: .3px; }
.dh-brand-sub  { font-size: 11px; letter-spacing: 3.5px; text-transform: uppercase; color: var(--gold); margin-top: 3px; }

.dh-nav { flex: 1; overflow-y: auto; padding: 16px 12px; }
.dh-nav::-webkit-scrollbar { width: 4px; }
.dh-nav::-webkit-scrollbar-thumb { background: rgba(201,169,110,.3); border-radius: 4px; }
.dh-nav-label {
  font-size: 10.5px; letter-spacing: 2.5px; text-transform: uppercase;
  color: #5A6B7B; padding: 14px 12px 7px;
}
.dh-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 13px; margin: 2px 0;
  border-radius: 9px;
  color: #AEB9C4; font-size: 14px; font-weight: 450;
  position: relative;
  transition: all .18s ease;
  border-left: 3px solid transparent;
}
.dh-nav a i { font-size: 16px; width: 20px; text-align: center; color: #6C7D8D; transition: color .18s; }
.dh-nav a:hover { background: rgba(255,255,255,.05); color: #fff; }
.dh-nav a:hover i { color: var(--gold); }
.dh-nav a.active {
  background: linear-gradient(90deg, rgba(201,169,110,.16), rgba(201,169,110,.04));
  color: var(--gold);
  border-left: 3px solid var(--gold);
  font-weight: 600;
}
.dh-nav a.active i { color: var(--gold); }

.dh-userbox {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 15px 16px;
  display: flex; align-items: center; gap: 11px;
  background: rgba(0,0,0,.18);
}
.dh-avatar {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 50%;
  background: var(--gold-grad);
  color: var(--navy); font-weight: 700; font-size: 16px;
  display: grid; place-items: center;
}
.dh-userbox .u-name { color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.2; }
.dh-userbox .u-role { color: var(--gold); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.dh-logout { margin-left: auto; color: #7C8894; font-size: 17px; padding: 6px; border-radius: 8px; }
.dh-logout:hover { color: #fff; background: rgba(192,57,43,.35); }

/* ================= TOPBAR ================= */
.dh-topbar {
  height: var(--header-h);
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 30px;
  position: sticky; top: 0; z-index: 1020;
  box-shadow: 0 1px 0 rgba(15,25,35,.03);
}
.dh-page-title { font-family: 'Playfair Display', serif; font-size: 21px; margin: 0; color: var(--navy); }
.dh-clock {
  font-variant-numeric: tabular-nums;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  display: flex; align-items: center; gap: 9px;
  background: var(--cream); border: 1px solid var(--line);
  padding: 7px 14px; border-radius: 999px;
}
.dh-clock i { color: var(--gold-dark); }

/* ================= SECTION TITLE ================= */
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: var(--navy);
  display: flex; align-items: center; gap: 14px;
  margin: 4px 0 16px;
}
.section-title::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

/* ================= CARDS ================= */
.dh-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dh-card-header {
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: linear-gradient(180deg, #FDFCFA, #FAF8F3);
}
.dh-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 16.5px; margin: 0; color: var(--navy);
  display: flex; align-items: center; gap: 9px;
}
.dh-card-title i { color: var(--gold-dark); font-size: 15px; }
.dh-card-body { padding: 20px; }

/* ================= STAT CARDS ================= */
.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex; align-items: center; gap: 15px;
  box-shadow: var(--shadow-sm);
  position: relative; overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease;
}
.stat-card::before {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 4px;
  background: var(--gold-grad); opacity: 0; transition: opacity .18s;
}
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 48px; height: 48px; flex: 0 0 48px;
  border-radius: 13px; display: grid; place-items: center; font-size: 21px;
}
.si-gold  { background: var(--gold-soft);            color: var(--gold-dark); }
.si-green { background: #E2F2E9;                     color: var(--success); }
.si-red   { background: #F9E4E1;                     color: var(--danger); }
.si-blue  { background: #E3EDF6;                     color: var(--blue); }
.si-navy  { background: #E4E9EE;                     color: var(--navy); }
.stat-value { font-family: 'Playfair Display', serif; font-size: 25px; font-weight: 700; color: var(--navy); line-height: 1; }
.stat-label { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1.2px; margin-top: 5px; }

/* ================= BUTTONS ================= */
.dh-btn-primary, .dh-btn-gold, .dh-btn-success, .dh-btn-danger, .dh-btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  border: none; border-radius: 10px;
  padding: 9px 18px;
  font-family: 'Inter', sans-serif; font-size: 14px; font-weight: 600;
  cursor: pointer; text-decoration: none;
  transition: all .18s ease;
  line-height: 1.4;
}
.dh-btn-primary { background: var(--navy-grad); color: #fff; box-shadow: 0 3px 10px rgba(15,25,35,.25); }
.dh-btn-primary:hover { background: var(--navy-mid); color: var(--gold); transform: translateY(-1px); }
.dh-btn-gold { background: var(--gold-grad); color: var(--navy); box-shadow: 0 3px 12px rgba(201,169,110,.4); }
.dh-btn-gold:hover { filter: brightness(1.06); color: var(--navy); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(201,169,110,.5); }
.dh-btn-success { background: var(--success); color: #fff; }
.dh-btn-success:hover { background: #237244; color: #fff; transform: translateY(-1px); }
.dh-btn-danger { background: var(--danger); color: #fff; }
.dh-btn-danger:hover { background: #A03024; color: #fff; }
.dh-btn-ghost { background: transparent; color: var(--navy); border: 1.5px solid var(--line); }
.dh-btn-ghost:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-soft); }
.dh-btn-sm { padding: 5px 12px; font-size: 12.5px; border-radius: 8px; }
.dh-btn-lg { padding: 13px 28px; font-size: 15.5px; border-radius: 12px; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ================= FORMS ================= */
.dh-label { font-size: 12.5px; font-weight: 600; color: var(--navy); letter-spacing: .3px; margin-bottom: 6px; display: block; }
.dh-req { color: var(--danger); margin-left: 2px; }
.dh-input, .dh-select, .dh-textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  background: #FDFCFA;
  padding: 9px 13px;
  font-size: 14px; font-family: 'Inter', sans-serif;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.dh-input:focus, .dh-select:focus, .dh-textarea:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(201,169,110,.16);
  background: #fff;
}
.dh-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%23A07840' viewBox='0 0 16 16'%3E%3Cpath d='M1.5 5.5l6.5 6 6.5-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 13px center; padding-right: 36px; }

/* ================= TABLE ================= */
.dh-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.8px; }
.dh-table thead th {
  background: #F2EFE7;
  color: #5F6B77; font-size: 11.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1.2px;
  padding: 11px 14px;
  border-bottom: 2px solid var(--gold-soft);
  white-space: nowrap;
}
.dh-table tbody td { padding: 12px 14px; border-bottom: 1px solid #F0EBE0; vertical-align: middle; }
.dh-table tbody tr { transition: background .13s; }
.dh-table tbody tr:hover { background: #FBF8F1; }
.dh-table tbody tr:last-child td { border-bottom: none; }

/* ================= BADGES ================= */
.dh-badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .4px;
  white-space: nowrap;
}
.dh-badge-success { background: #E2F2E9; color: var(--success); }
.dh-badge-danger  { background: #F9E4E1; color: var(--danger); }
.dh-badge-warning { background: #FBF0D4; color: #9A7508; }
.dh-badge-gold    { background: var(--gold-soft); color: var(--gold-dark); }
.dh-badge-navy    { background: #E4E9EE; color: var(--navy); }

/* ================= ROOM NUMBER ================= */
.room-num {
  display: inline-grid; place-items: center;
  min-width: 46px; padding: 6px 10px;
  background: var(--navy); color: var(--gold);
  font-weight: 700; font-size: 14px; letter-spacing: .5px;
  border-radius: 7px;
  box-shadow: inset 0 0 0 1px rgba(201,169,110,.35);
}
.room-num.rn-lg { min-width: 58px; padding: 9px 12px; font-size: 17px; }

/* ================= PRICE BOX ================= */
.price-box {
  background: var(--navy-grad);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px 22px;
  box-shadow: var(--shadow-md);
  position: relative; overflow: hidden;
}
.price-box::after {
  content: ''; position: absolute; top: -40px; right: -40px;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,169,110,.25), transparent 70%);
}
.price-box .pb-row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 13.5px; color: #C8D2DC; }
.price-box .pb-total {
  border-top: 1px solid rgba(201,169,110,.35); margin-top: 10px; padding-top: 12px;
  display: flex; justify-content: space-between; align-items: baseline;
}
.price-box .pb-total .amount { font-family: 'Playfair Display', serif; font-size: 23px; color: var(--gold); font-weight: 700; }

/* ================= CITIZEN TOGGLE ================= */
.citizen-toggle { display: flex; gap: 10px; }
.citizen-toggle label {
  flex: 1; cursor: pointer;
  border: 2px solid var(--line); border-radius: 11px;
  padding: 11px 14px; text-align: center;
  font-weight: 600; font-size: 14px;
  background: #FDFCFA;
  transition: all .18s;
  user-select: none;
}
.citizen-toggle input { display: none; }
.citizen-toggle.uz input:checked + span,
.citizen-toggle label:has(input:checked) { }
.citizen-toggle label.ct-uz:has(input:checked)      { border-color: var(--success); background: #E9F6EF; color: var(--success); box-shadow: 0 0 0 4px rgba(45,139,85,.12); }
.citizen-toggle label.ct-foreign:has(input:checked) { border-color: var(--gold);    background: var(--gold-soft); color: var(--gold-dark); box-shadow: 0 0 0 4px rgba(201,169,110,.18); }

/* ================= TABS ================= */
.dh-tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.dh-tab {
  padding: 11px 22px;
  font-weight: 600; font-size: 14.5px; color: var(--muted);
  border: none; background: none; cursor: pointer;
  border-bottom: 3px solid transparent; margin-bottom: -2px;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .15s;
}
.dh-tab:hover { color: var(--navy); }
.dh-tab.active { color: var(--gold-dark); border-bottom-color: var(--gold); }
.dh-tab.active i { color: var(--gold); }

/* ================= ALERTS ================= */
.dh-alert {
  display: flex; align-items: flex-start; gap: 11px;
  border-radius: 11px; padding: 13px 17px;
  font-size: 14px; font-weight: 500; margin-bottom: 18px;
  border: 1px solid transparent;
}
.dh-alert i { font-size: 17px; margin-top: 1px; }
.dh-alert-success { background: #E9F6EF; color: #1E6B41; border-color: #C4E5D2; }
.dh-alert-danger  { background: #FBEAE7; color: #96271C; border-color: #F0CBC5; }
.dh-alert-warning { background: #FCF3DA; color: #85650A; border-color: #F0E0B0; }

/* ================= PROGRESS ================= */
.dh-progress { height: 10px; background: var(--gold-soft); border-radius: 999px; overflow: hidden; }
.dh-progress > div { height: 100%; background: var(--gold-grad); border-radius: 999px; transition: width .4s ease; }

/* ================= LOGIN ================= */
.login-page {
  min-height: 100vh; display: flex;
  background: var(--navy);
  background-image:
    radial-gradient(ellipse at 20% 20%, rgba(201,169,110,.13), transparent 50%),
    radial-gradient(ellipse at 90% 90%, rgba(30,45,61,.9), transparent 60%),
    radial-gradient(rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: auto, auto, 24px 24px;
}
.login-left {
  flex: 1.1; color: #fff; padding: 60px 70px;
  display: flex; flex-direction: column; justify-content: center;
}
.login-left .big-logo {
  width: 74px; height: 74px; border-radius: 20px;
  background: var(--gold-grad); display: grid; place-items: center;
  font-family: 'Playfair Display', serif; font-size: 44px; font-weight: 700; color: var(--navy);
  box-shadow: 0 12px 40px rgba(201,169,110,.4), inset 0 2px 0 rgba(255,255,255,.5);
  margin-bottom: 30px;
}
.login-left h1 { font-size: 44px; margin: 0 0 4px; color: #fff; }
.login-left .sub { color: var(--gold); letter-spacing: 6px; text-transform: uppercase; font-size: 14px; margin-bottom: 34px; }
.login-feature { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 20px; color: #B9C3CD; max-width: 430px; }
.login-feature i { color: var(--gold); font-size: 19px; margin-top: 2px; }
.login-feature b { color: #fff; display: block; font-weight: 600; margin-bottom: 2px; }
.login-right {
  flex: 1; background: var(--cream); display: grid; place-items: center; padding: 40px;
  border-radius: 36px 0 0 36px;
  box-shadow: -20px 0 60px rgba(0,0,0,.35);
}
.login-card { width: 100%; max-width: 400px; }
.login-card h2 { color: var(--navy); font-size: 28px; margin-bottom: 6px; }
.login-card .hint { color: var(--muted); margin-bottom: 28px; font-size: 14px; }

/* ================= MISC ================= */
.floor-chip { font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.dh-divider { height: 1px; background: linear-gradient(90deg, var(--line), transparent); margin: 18px 0; border: 0; }
.mini-price-table { width: 100%; font-size: 13px; }
.mini-price-table td { padding: 4px 6px; }
.text-gold { color: var(--gold-dark) !important; }
.text-navy { color: var(--navy) !important; }
.small-muted { font-size: 12.5px; color: var(--muted); }
.dh-pagination { display: flex; gap: 6px; }
.dh-pagination a, .dh-pagination span {
  min-width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--line); background: #fff;
  color: var(--navy); font-weight: 600; font-size: 13px;
}
.dh-pagination .active { background: var(--navy); color: var(--gold); border-color: var(--navy); }
.dh-pagination a:hover { border-color: var(--gold); color: var(--gold-dark); }

/* Xona xaritasi */
.room-map-cell {
  display: inline-flex; flex-direction: column; align-items: center; gap: 3px;
  padding: 9px 6px; min-width: 62px;
  border-radius: 10px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 700; font-size: 14px;
  transition: transform .15s, box-shadow .15s;
}
.room-map-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.room-map-cell small { font-size: 10px; font-weight: 600; letter-spacing: .3px; }
.rm-bosh  { border-color: #BEE3CE; background: #F1FAF5; color: var(--success); }
.rm-band  { border-color: #F0C6C0; background: #FCF0EE; color: var(--danger); }
.rm-toza  { border-color: #EFDCA5; background: #FCF7E6; color: #9A7508; }
.rm-tamir { border-color: #C9D2DA; background: #EFF2F5; color: var(--navy); }

/* Modal Bootstrap ustidan */
.modal-content { border: none; border-radius: 16px; box-shadow: 0 24px 70px rgba(15,25,35,.35); }
.modal-header { background: var(--navy-grad); color: #fff; border-radius: 16px 16px 0 0; border-bottom: 2px solid var(--gold); }
.modal-header .modal-title { font-family: 'Playfair Display', serif; font-size: 18px; }
.modal-header .btn-close { filter: invert(1); }
.offcanvas { border-radius: 18px 0 0 18px; }
.offcanvas-header { background: var(--navy-grad); color: #fff; border-bottom: 2px solid var(--gold); }
.offcanvas-header .btn-close { filter: invert(1); }

/* Print */
@media print { .dh-sidebar, .dh-topbar, .no-print { display: none !important; } .dh-main { margin: 0; } }

/* Responsive */
@media (max-width: 991px) {
  .dh-sidebar { transform: translateX(-100%); transition: transform .25s ease; }
  .dh-sidebar.open { transform: translateX(0); }
  .dh-main { margin-left: 0; }
  .login-page { flex-direction: column; }
  .login-left { padding: 40px 30px; }
  .login-right { border-radius: 36px 36px 0 0; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
