:root{
  --navy:#183a63;
  --navy2:#102844;
  --green:#2a9d8f;
  --red:#d1595f;
  --accent:#d4a24d;
  --sand:#f2ece2;
  --ink:#1c2b38;
  --muted:#64748b;
  --line:#d8e2eb;
  --bg:#f5f7fb;
  --white:#ffffff;
  --shadow:0 18px 40px rgba(24,58,99,.08);
  --radius:22px;
}
html{scroll-behavior:smooth}
body{
  font-family:"Aptos","Segoe UI Variable Text","Segoe UI",system-ui,-apple-system,BlinkMacSystemFont,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(circle at top right, rgba(212,162,77,.10), transparent 22%),
    radial-gradient(circle at left -10%, rgba(42,157,143,.09), transparent 18%),
    var(--bg);
}
::selection{background:rgba(36,90,141,.16);color:var(--ink)}
.topbar h1,.brand strong,.welcome h2,.card h3,.modal-header h2,.partners-hero h2,.budget-hero h2,.profile-person h3{
  font-family:"Aptos Display","Aptos","Segoe UI Variable Display","Segoe UI",system-ui,sans-serif;
}
.app-shell{grid-template-columns:280px 1fr}
.sidebar{
  background:linear-gradient(180deg,#163656 0%,#1d4b73 54%,#102844 100%);
  padding:26px 16px 18px;
  box-shadow:18px 0 48px rgba(12,36,63,.18);
  overflow:hidden;
}
.sidebar::before{
  content:"";
  position:absolute;
  inset:auto -100px -100px auto;
  width:260px;
  height:260px;
  background:radial-gradient(circle, rgba(212,162,77,.18), transparent 62%);
  pointer-events:none;
}
.brand{
  padding:10px 10px 24px;
  margin-bottom:24px;
  position:relative;
}
.brand img{
  width:58px;
  height:58px;
  border-radius:18px;
  object-fit:contain;
  background:transparent;
  padding:4px;
  box-shadow:0 10px 25px rgba(8,28,48,.20);
}
.brand strong{font-size:20px;letter-spacing:.14em}
.brand span{font-size:13px;color:#d7e6ee;letter-spacing:.03em}
.sidebar nav{gap:7px}
.nav-item{
  position:relative;
  border:1px solid transparent;
  padding:13px 14px;
  border-radius:14px;
  color:#dce9f0;
  font-size:14px;
  font-weight:600;
  transition:transform .18s ease,background .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.nav-item span{font-size:18px}
.nav-item b{background:rgba(255,255,255,.15)}
.nav-item:hover{
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.08);
  transform:translateX(2px);
}
.nav-item.active{
  background:linear-gradient(90deg,rgba(255,255,255,.18),rgba(255,255,255,.06));
  border-color:rgba(255,255,255,.10);
  color:#fff;
  box-shadow:0 12px 24px rgba(7,23,40,.20);
}
.nav-item.active::before{
  content:"";
  position:absolute;
  inset:8px auto 8px 0;
  width:4px;
  border-radius:999px;
  background:linear-gradient(180deg,var(--accent),#f1c574);
}
.sidebar-bottom{padding-top:10px}
.local-badge{
  margin:16px 8px 0;
  padding:14px 12px;
  border:1px solid rgba(255,255,255,.10);
  border-radius:16px;
  background:rgba(255,255,255,.06);
  backdrop-filter:blur(8px);
}
.local-badge small{color:#bed1da}
.topbar{
  height:108px;
  background:rgba(255,255,255,.84);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border-bottom:1px solid rgba(216,226,235,.85);
  box-shadow:0 10px 30px rgba(24,58,99,.04);
}
.topbar h1{font-size:29px;letter-spacing:-.02em}
.topbar p{font-size:11px;color:var(--accent)}
.header-actions{gap:12px}
.menu-btn{color:var(--navy)}
.btn{
  border-radius:14px;
  border-color:rgba(216,226,235,.92);
  padding:11px 17px;
  font-weight:700;
  box-shadow:0 8px 18px rgba(24,58,99,.05);
  transition:transform .16s ease,box-shadow .16s ease,filter .16s ease;
}
.btn:hover{filter:none;transform:translateY(-1px);box-shadow:0 10px 20px rgba(24,58,99,.10)}
.btn.primary{
  background:linear-gradient(135deg,#183a63,#245a8d);
  border-color:#183a63;
  color:#fff;
}
.btn.green{
  background:linear-gradient(135deg,#2a9d8f,#3aab77);
  border-color:#2a9d8f;
}
.btn.ghost{background:#fff}
.btn.danger{background:#fff7f7;border-color:#f1cdcf;color:#c34e58}
.content{padding:30px 36px 72px}
.welcome,.profile-hero,.budget-hero,.partners-hero{
  background:linear-gradient(125deg,#183a63 0%,#245a8d 58%,#2e7ba5 100%);
  border-radius:28px;
  box-shadow:0 24px 45px rgba(24,58,99,.16);
}
.welcome h2{font-size:28px}
.welcome p,.partners-hero span,.budget-hero span,.profile-person p{color:#dbe8ef}
.welcome::after{
  width:280px;
  height:280px;
  border:50px solid rgba(255,255,255,.08);
  right:-70px;
  top:-80px;
}
.trip-pill{
  background:rgba(255,255,255,.16);
  border:1px solid rgba(255,255,255,.18);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
}
.kpi,.card,.report-card,.room,.partner-panel,.profile-panel,.profile-metric,.budget-summary article,.deadline-section{
  background:rgba(255,255,255,.92);
  border-color:rgba(216,226,235,.95);
  border-radius:22px;
  box-shadow:var(--shadow);
  backdrop-filter:blur(6px);
}
.kpi,.card,.report-card,.room,.partner-panel,.profile-panel,.profile-metric,.budget-summary article,.deadline-section,.deadline-card,.report-card,.partner-card,.doc-row,.check-item,.event{
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease;
}
.kpi:hover,.card:hover,.report-card:hover,.room:hover,.partner-panel:hover,.profile-panel:hover,.profile-metric:hover,.budget-summary article:hover,.deadline-card:hover,.partner-card:hover,.doc-row:hover,.event:hover{
  transform:translateY(-2px);
  box-shadow:0 24px 45px rgba(24,58,99,.10);
  border-color:rgba(36,90,141,.20);
}
.card-head small,.kpi .label,.kpi .sub,.muted,.person small,.doc-row small,.partner-card small,.profile-metric header span,.metric-note,.result-line span,.result-line small{color:var(--muted)}
.kpi .value{font-size:30px;letter-spacing:-.02em}
.kpi .accent{height:6px;border-radius:999px;background:#e8eef5}
.kpi .accent i{background:linear-gradient(90deg,var(--accent),#efc571)}
.grid-2,.partner-columns,.room-grid,.report-grid,.profile-columns,.budget-layout{align-items:start}
.table-wrap{
  border-radius:18px;
  background:rgba(255,255,255,.92);
  box-shadow:var(--shadow);
}
th{
  position:sticky;
  top:0;
  z-index:1;
  background:linear-gradient(180deg,#f8f4ec,#eef4fa);
  color:#587082;
  font-size:11px;
  font-weight:800;
}
tr:nth-child(even) td{background:rgba(246,249,252,.62)}
tr:hover td{background:rgba(223,236,244,.66)}
.avatar,.partner-mark,.doc-icon,.profile-avatar{
  background:linear-gradient(135deg,#ecf2f9,#e8dfce);
  color:var(--navy);
}
.badge{
  font-size:11px;
  font-weight:800;
  letter-spacing:.02em;
  box-shadow:inset 0 0 0 1px rgba(0,0,0,.04);
}
.badge.ok{background:#ecfaf3;color:#137a5b}
.badge.warn{background:#fff6df;color:#9b6b12}
.badge.bad{background:#feecee;color:#af4250}
.badge.blue{background:#eaf3ff;color:#2d5f9a}
.toolbar{gap:12px;margin-bottom:18px}
.search{
  border-radius:14px;
  border-color:rgba(216,226,235,.92);
  background:#fff;
  box-shadow:0 8px 18px rgba(24,58,99,.04);
}
.search input{font-size:14px}
.form-grid{gap:16px}
.field{gap:7px}
.field label{
  font-size:11px;
  font-weight:800;
  color:#587082;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.field input,.field select,.field textarea,.cost-line input,.cost-line select{
  border-radius:14px;
  border-color:#d3dde7;
  padding:12px 13px;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 2px 8px rgba(24,58,99,.03);
}
.field input:focus,.field select:focus,.field textarea:focus,.cost-line input:focus,.cost-line select:focus{
  outline:2px solid rgba(36,90,141,.15);
  border-color:#245a8d;
}
.form-section{margin:22px 0 14px;padding-top:20px;border-top:1px solid var(--line)}
.form-section h4{display:flex;align-items:center;gap:9px;color:var(--navy);font-size:15px}
.form-section h4::before{
  content:"";
  width:8px;
  height:8px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--accent),#f1c574);
}
.modal-wrap{background:rgba(10,32,53,.54)}
.modal{
  border-radius:26px;
  box-shadow:0 34px 80px rgba(6,28,38,.35);
}
.modal-header{
  background:linear-gradient(180deg,#fff,#f8fbfd);
  padding:21px 24px;
}
.modal-footer{background:#fbfdff}
.modal-close{background:#eff3f8;color:var(--navy)}
.room{padding:18px}
.room-head h3,.report-card h3,.partner-panel-head h3,.city-room-head h3{font-size:17px;letter-spacing:-.01em}
.bed{background:#f4f7fb;border-radius:12px}
.bed.filled{background:#e8f1f8}
.timeline{border-left:2px solid #d3deea}
.event{border-radius:16px;background:#fff}
.event .date{color:var(--accent)}
.event::before{background:var(--accent);border-color:var(--bg)}
.note{
  background:linear-gradient(90deg,#fff8ec,#f5f9fd);
  border-left:4px solid var(--accent);
  color:#516978;
  border-radius:12px;
}
.calc-box{
  background:linear-gradient(135deg,#183a63,#245a8d 55%,#2a9d8f 110%);
  border-radius:22px;
  box-shadow:0 20px 40px rgba(24,58,99,.16);
}
.deadline-card,.partner-card,.check-item,.doc-row{border-radius:14px;background:#fbfdff}
.deadline-date{
  background:linear-gradient(135deg,#183a63,#245a8d);
  border-radius:16px;
}
.city-room-head b,.partner-panel-head span,.city-room-head span,.partners-hero p,.budget-hero p{color:#f0d39c}
.result-line.highlight{background:#eef8f4;border:1px solid #d6eee4}
.result-line.highlight strong{color:#197659}
.empty{
  border:1px dashed #c9d5e1;
  background:rgba(255,255,255,.72);
  border-radius:18px;
}
.toast{background:linear-gradient(135deg,#163656,#245a8d);border-radius:14px}
@media(max-width:1050px){
  .app-shell{grid-template-columns:240px 1fr}
  .topbar{padding:18px 24px}
  .content{padding:24px 24px 60px}
}
@media(max-width:760px){
  .sidebar{width:260px}
  .topbar{height:94px;background:rgba(255,255,255,.94)}
  .topbar h1{font-size:23px}
  .content{padding:18px 14px 45px}
  .welcome,.profile-hero,.budget-hero,.partners-hero{border-radius:22px}
}
