:root{
  --bg: #0b0d10;
  --bg2:#0f1218;
  --card:#11151c;
  --text:#e9edf3;
  --muted:#aab4c3;
  --line: rgba(255,255,255,.08);
  --gold:#d6b25e;
  --gold2:#f5d07f;
  --danger:#ff6b6b;
  --shadow: 0 18px 50px rgba(0,0,0,.45);
  --radius: 18px;
  --max: 1120px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  font-family:"Poppins", sans-serif;
  background: linear-gradient(180deg, var(--bg), var(--bg2));
  color:var(--text);
}

.container{
  width:min(var(--max), calc(100% - 40px));
  margin:0 auto;
}

.header{
  position:sticky;
  top:0;
  z-index:20;
  background: rgba(11,13,16,.80);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}

.header__inner{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:16px 0;
  gap: 16px;
}

.header-user{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  color:var(--text);
  text-decoration:none;
}

.brand__mark{
  width:14px;
  height:14px;
  border-radius:50%;
  background: radial-gradient(circle at 30% 30%, var(--gold2), var(--gold));
}

.brand__name{
  font-weight:700;
  letter-spacing:.12em;
}

.nav__list{
  display:flex;
  gap:16px;
  list-style:none;
  margin:0;
  padding:0;
}

.nav__link{
  color:var(--muted);
  text-decoration:none;
}

.nav__link:hover{
  color:var(--text);
}

.hero{
  padding:70px 0 40px;
}

.hero__title{
  font-family:"Playfair Display", serif;
  font-size:3rem;
  margin:0 0 10px;
}

.hero__subtitle{
  color:var(--muted);
  max-width:600px;
}

.section{
  padding:40px 0;
}

.section__head{
  margin-bottom:20px;
}

.section__title{
  font-family:"Playfair Display", serif;
  font-size:2rem;
  margin:0 0 8px;
}

.section__subtitle{
  color:var(--muted);
  margin:0;
}

.grid{
  display:grid;
  gap:16px;
}

.grid--3{
  grid-template-columns:repeat(3, 1fr);
}

.grid--4{
  grid-template-columns:repeat(4, 1fr);
}

.card{
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px;
  box-shadow:var(--shadow);
}

.form__row{
  display:grid;
  grid-template-columns:repeat(2, 1fr);
  gap:12px;
  margin-bottom:12px;
}

.field{
  display:flex;
  flex-direction:column;
}

.field label{
  margin-bottom:6px;
  font-size:.9rem;
}

.field input,
.field select{
  padding:12px;
  border-radius:14px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color:var(--text);
}

.form__actions{
  margin-top:10px;
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:12px 16px;
  border-radius:14px;
  border:none;
  cursor:pointer;
  text-decoration:none;
  font-weight:600;
}

.btn--primary{
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color:#14161a;
}

.btn--ghost{
  background: rgba(255,255,255,.04);
  color:var(--text);
  border:1px solid var(--line);
}

.btn--danger{
  background: rgba(255,107,107,.12);
  color:#ffd1d1;
  border:1px solid rgba(255,107,107,.20);
}

.btn--block{
  width:100%;
}

.success-message,
.error-message{
  padding:14px 16px;
  border-radius:14px;
  margin-bottom:16px;
}

.success-message{
  background: rgba(80,200,120,.12);
  border:1px solid rgba(80,200,120,.25);
  color:#bff0cc;
}

.error-message{
  background: rgba(255,107,107,.12);
  border:1px solid rgba(255,107,107,.25);
  color:#ffd0d0;
}

.dashboard-stats{
  margin-bottom:20px;
}

.dashboard-card{
  margin-bottom:16px;
}

.dashboard-actions{
  display:flex;
  gap:8px;
  flex-wrap:wrap;
  margin-top:12px;
}

.filter-form{
  margin-bottom:20px;
}

.dashboard-list{
  display:grid;
  gap:16px;
}

.chip{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size:.85rem;
}

.auth-page{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:20px;
}

.auth-card{
  width:min(460px, 100%);
  background: rgba(255,255,255,.03);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:24px;
  box-shadow:var(--shadow);
}

.auth-title{
  margin:0 0 8px;
  font-family:"Playfair Display", serif;
  font-size:2rem;
}

.auth-subtitle{
  margin:0 0 20px;
  color:var(--muted);
}

.demo-credentials{
  margin-top:18px;
  color:var(--muted);
  font-size:.9rem;
}

@media (max-width: 900px){
  .grid--3,
  .grid--4,
  .form__row{
    grid-template-columns:1fr;
  }

  .header__inner{
    flex-direction:column;
    align-items:flex-start;
    gap:10px;
  }
}