:root{
  --bg:#0b0b0b;
  --panel:#151515;
  --panel2:#1d1d1d;
  --text:#f5f0e8;
  --muted:#b9b1a6;
  --gold:#d8b36a;
  --gold2:#f1d28a;
  --line:rgba(216,179,106,.22);
  --danger:#8b2424;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  min-height:100%;
  font-family:Tahoma, Arial, sans-serif;
  background:
    radial-gradient(circle at top right, rgba(216,179,106,.14), transparent 32%),
    linear-gradient(180deg,#0b0b0b,#111);
  color:var(--text);
  direction:rtl;
}

a{color:var(--gold2);text-decoration:none}
a:hover{text-decoration:underline}

.topbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:18px 28px;
  border-bottom:1px solid var(--line);
  background:rgba(12,12,12,.92);
  position:sticky;
  top:0;
  z-index:10;
  backdrop-filter:blur(8px);
}

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

.brand-mark{
  width:48px;
  height:48px;
  border:1px solid var(--gold);
  border-radius:14px;
  display:grid;
  place-items:center;
  color:var(--gold2);
  font-size:26px;
  font-weight:800;
}

.brand strong{
  display:block;
  color:#fff;
  font-size:18px;
}

.brand span{
  display:block;
  color:var(--muted);
  font-size:13px;
}

nav{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}

nav a{
  color:var(--text);
  border:1px solid var(--line);
  padding:10px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.02);
}

nav a:hover{
  background:rgba(216,179,106,.12);
  text-decoration:none;
}

.container{
  width:min(1180px,94%);
  margin:26px auto;
}

.hero{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  margin-bottom:18px;
}

.hero h1{
  margin:0 0 8px;
  color:var(--gold2);
  font-size:36px;
}

.hero p{
  margin:0;
  color:var(--muted);
}

.card{
  background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.025));
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  box-shadow:0 18px 45px rgba(0,0,0,.25);
}

.grid{
  display:grid;
  grid-template-columns:repeat(12,1fr);
  gap:16px;
}

.kpi{
  grid-column:span 3;
  text-align:center;
}

.kpi strong{
  display:block;
  color:var(--gold2);
  font-size:34px;
  margin-bottom:6px;
}

.kpi span{
  color:var(--muted);
}

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

.btn{
  border:0;
  background:linear-gradient(135deg,var(--gold2),var(--gold));
  color:#15100a;
  padding:12px 18px;
  border-radius:16px;
  font-weight:800;
  cursor:pointer;
  display:inline-block;
  text-align:center;
}

.btn:hover{text-decoration:none;filter:brightness(1.05)}

.btn.secondary{
  background:transparent;
  color:var(--gold2);
  border:1px solid var(--line);
}

.btn.danger{
  background:var(--danger);
  color:#fff;
  padding:8px 12px;
}

.table{
  width:100%;
  border-collapse:collapse;
}

.table th,.table td{
  border-bottom:1px solid var(--line);
  padding:12px 10px;
  text-align:right;
}

.table th{
  color:var(--gold2);
  font-weight:800;
}

label{
  display:block;
  color:var(--gold2);
  margin-bottom:7px;
  font-weight:700;
}

input,select,textarea{
  width:100%;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#101010;
  color:var(--text);
  outline:none;
}

input:focus,select:focus,textarea:focus{
  border-color:var(--gold);
}

.form-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}

.badge{
  display:inline-block;
  border:1px solid var(--line);
  color:var(--gold2);
  border-radius:999px;
  padding:6px 10px;
  font-size:13px;
}

.quote-layout{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:18px;
  align-items:start;
}

.quote-summary{
  position:sticky;
  top:96px;
}

.room-card{
  border:1px solid var(--line);
  border-radius:18px;
  padding:14px;
  margin-bottom:12px;
  background:rgba(0,0,0,.18);
}

.room-title{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
  color:var(--gold2);
  font-weight:800;
}

.summary-row{
  display:flex;
  justify-content:space-between;
  gap:12px;
  border-bottom:1px solid var(--line);
  padding:9px 0;
  color:var(--muted);
}

.summary-row strong{color:var(--text)}

.summary-grand{
  background:rgba(216,179,106,.13);
  padding:14px;
  border-radius:14px;
  margin-top:12px;
}

.summary-grand strong{
  font-size:26px;
  color:var(--gold2);
}

.mini-hint{
  font-size:13px;
  color:var(--muted);
  margin-top:6px;
}

@media(max-width:980px){
  .topbar{position:static;align-items:flex-start;flex-direction:column}
  nav{width:100%}
  nav a{flex:1;text-align:center}
  .quote-layout{grid-template-columns:1fr}
  .quote-summary{position:static}
  .form-grid{grid-template-columns:repeat(2,1fr)}
  .kpi{grid-column:span 6}
}

@media(max-width:620px){
  .container{width:94%;margin:18px auto}
  .hero{display:block}
  .hero h1{font-size:30px}
  .form-grid{grid-template-columns:1fr}
  .kpi{grid-column:span 12}
}

/* Jolnar ERP V6.0 */
.status-badge{display:inline-block;padding:7px 12px;border-radius:999px;font-weight:800;font-size:13px;border:1px solid var(--line)}.status-waiting{background:rgba(255,193,7,.14);color:#ffd166}.status-approved{background:rgba(35,139,87,.16);color:#8ff0b5}.status-invoice{background:rgba(80,160,255,.16);color:#9dccff}.status-progress{background:rgba(175,120,255,.16);color:#d0b2ff}.status-done{background:rgba(40,190,120,.18);color:#9df0c2}.status-cancelled{background:rgba(220,60,60,.18);color:#ff9b9b}.status-draft{background:rgba(255,255,255,.08);color:#ddd}.dashboard-card{min-height:132px}.dashboard-card strong{font-size:28px;color:var(--gold2)}.dashboard-card span{display:block;color:var(--muted);margin-top:6px}.alert-card{border-color:rgba(255,140,140,.45);background:rgba(120,20,20,.18)}.small-muted{color:var(--muted);font-size:13px}


/* Jolnar ERP V6.1 */
textarea{width:100%;padding:12px 14px;border-radius:14px;border:1px solid var(--line);background:rgba(0,0,0,.2);color:var(--text);font-family:inherit}
.dashboard-card{min-height:132px}
.dashboard-card strong{font-size:28px;color:var(--gold2)}
.dashboard-card span{display:block;color:var(--muted);margin-top:6px}
.small-muted{color:var(--muted);font-size:13px}


/* Jolnar ERP V6.4.1 — official brand logo */
.brand-logo{width:64px;height:64px;object-fit:contain;background:transparent!important;border:0!important;border-radius:0!important;padding:0!important;filter:drop-shadow(0 2px 0 rgba(255,240,180,.22)) drop-shadow(0 10px 20px rgba(216,179,106,.25))}.brand-mark{display:none!important}.brand strong{text-shadow:0 1px 0 rgba(255,255,255,.08),0 2px 10px rgba(216,179,106,.12)}
@media(max-width:620px){.brand-logo{width:58px;height:58px}.brand{align-items:center}.topbar{gap:12px}}
