:root{
  --black:#0c0a09; --panel:#17140f; --panel-2:#1c1712;
  --gold:#c8a35c; --gold-light:#e3c785; --gold-dim:#8d774a;
  --cream:#f4ecdd; --muted:#b9ae9c; --line:rgba(200,163,92,.25);
  --danger:#c85c5c;
}
*{box-sizing:border-box;}
html,body{ margin:0; }
body{
  font-family:'Vazirmatn',sans-serif;
  background: radial-gradient(120% 90% at 50% -10%, #1c1712 0%, var(--black) 55%);
  color: var(--cream);
  direction: rtl;
  min-height:100vh;
  line-height:1.9;
}
a{ color:inherit; text-decoration:none; }
img{ max-width:100%; display:block; }
h1,h2,h3{ margin:0; }

.wrap{ max-width: 1080px; margin:0 auto; padding: 0 24px; }

/* -------- top bar -------- */
.topbar{
  display:flex; align-items:center; justify-content:space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
}
.topbar .brand{
  font-family:'Cormorant Garamond', serif; letter-spacing:.15em;
  font-size: 20px; color: var(--gold-light);
}
.topbar nav{ display:flex; gap: 18px; align-items:center; font-size:14px; color: var(--muted); }
.topbar nav a:hover{ color: var(--gold-light); }

/* -------- generic buttons -------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding: 11px 26px; border-radius: 30px; font-size:14px; cursor:pointer;
  border: 1px solid var(--gold); background: transparent; color: var(--gold-light);
  transition: all .25s ease; font-family:inherit;
}
.btn:hover{ background: rgba(200,163,92,.12); }
.btn-primary{
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  color:#171208; border:none; font-weight:600;
}
.btn-primary:hover{ filter:brightness(1.05); }
.btn-danger{ border-color: var(--danger); color:#e08a8a; }
.btn-danger:hover{ background: rgba(200,92,92,.12); }
.btn-sm{ padding: 7px 16px; font-size:12.5px; }
.btn-block{ width:100%; }

/* -------- cards / panels -------- */
.panel{
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px;
}

/* -------- forms -------- */
label{ display:block; font-size:13px; color: var(--muted); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=datetime-local],
textarea, select{
  width:100%; padding:11px 13px; background:#0c0a09; border:1px solid var(--line);
  color: var(--cream); border-radius:6px; font-family:inherit; font-size:14px;
}
textarea{ resize:vertical; min-height: 70px; }
input:focus, textarea:focus, select:focus{ outline:none; border-color: var(--gold); }
.field-hint{ font-size:11.5px; color: var(--gold-dim); margin-top:4px; }
.form-error{
  background: rgba(200,92,92,.12); border:1px solid rgba(200,92,92,.4);
  color:#e6a3a3; padding: 12px 16px; border-radius:6px; font-size:13.5px; margin-bottom:18px;
}
.form-success{
  background: rgba(200,163,92,.12); border:1px solid var(--line);
  color: var(--gold-light); padding: 12px 16px; border-radius:6px; font-size:13.5px; margin-bottom:18px;
}

/* -------- auth pages -------- */
.auth-shell{
  min-height: 100vh; display:flex; align-items:center; justify-content:center; padding: 40px 20px;
}
.auth-card{ width: 100%; max-width: 420px; }
.auth-card .eyebrow{
  font-family:'Cormorant Garamond',serif; letter-spacing:.2em; text-transform:uppercase;
  font-size:13px; color: var(--gold); text-align:center; margin-bottom: 6px;
}
.auth-card h1{
  font-family:'Cormorant Garamond',serif; font-size: 26px; text-align:center; color: var(--cream);
  margin-bottom: 26px;
}
.auth-switch{ text-align:center; margin-top:20px; font-size:13.5px; color: var(--muted); }
.auth-switch a{ color: var(--gold-light); }

/* -------- landing / marketing homepage -------- */
.hero-landing{
  padding: 90px 24px 70px;
  text-align:center;
}
.hero-landing .eyebrow{
  font-family:'Cormorant Garamond',serif; letter-spacing:.3em; text-transform:uppercase;
  color: var(--gold); font-size:13px; margin-bottom: 18px;
}
.hero-landing h1{
  font-family:'Aref Ruqaa', serif; font-size: clamp(34px, 6vw, 56px);
  color: var(--gold-light); line-height:1.4; margin-bottom: 20px;
}
.hero-landing p{ color: var(--muted); max-width: 520px; margin: 0 auto 34px; font-size:15.5px; }
.hero-landing .cta-row{ display:flex; gap:14px; justify-content:center; flex-wrap:wrap; }

.features{
  display:grid; grid-template-columns:repeat(3,1fr); gap:20px;
  max-width: 1080px; margin: 60px auto 0; padding: 0 24px;
}
.feature-card{
  background: var(--panel); border:1px solid var(--line); border-radius:10px; padding:26px;
  text-align:center;
}
.feature-card .icon{ font-size: 26px; color: var(--gold); margin-bottom:12px; }
.feature-card h3{ font-size:16px; color: var(--gold-light); margin-bottom:8px; }
.feature-card p{ font-size:13.5px; color: var(--muted); margin:0; }

.footer-mini{
  text-align:center; padding: 50px 20px 30px; color: var(--gold-dim); font-size:12px;
}

/* -------- dashboard -------- */
.dash-head{ display:flex; align-items:center; justify-content:space-between; margin: 34px 0 22px; flex-wrap:wrap; gap:12px; }
.dash-head h1{ font-family:'Cormorant Garamond',serif; font-size:26px; color: var(--gold-light); }
.card-grid{ display:grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap:18px; }
.invite-card{
  background: var(--panel); border:1px solid var(--line); border-radius:10px; overflow:hidden;
}
.invite-card .thumb{
  height: 140px; background: linear-gradient(160deg,#221c15,#0f0c09);
  display:flex; align-items:center; justify-content:center;
  font-family:'Aref Ruqaa',serif; font-size:22px; color: var(--gold-light);
  background-size:cover; background-position:center;
}
.invite-card .body{ padding: 16px 18px; }
.invite-card .names{ font-size:15px; color:var(--cream); margin-bottom:4px; }
.invite-card .link-row{
  display:flex; align-items:center; gap:8px; margin: 10px 0 14px;
  font-size:12px; color: var(--gold-dim); direction:ltr; text-align:left;
  background:#0c0a09; border:1px solid var(--line); border-radius:6px; padding:8px 10px;
  overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
}
.invite-card .actions{ display:flex; gap:8px; flex-wrap:wrap; }
.status-pill{
  display:inline-block; font-size:10.5px; padding:3px 10px; border-radius:20px; margin-inline-start:8px;
}
.status-pill.on{ background: rgba(200,163,92,.18); color: var(--gold-light); }
.status-pill.off{ background: rgba(120,120,120,.18); color: var(--muted); }

.empty-state{
  text-align:center; padding: 70px 20px; color: var(--muted);
}

/* -------- template picker -------- */
.template-grid{
  display:grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap:20px; margin-top:30px;
}
.template-card{
  background: var(--panel); border:1px solid var(--line); border-radius:10px; overflow:hidden;
  cursor:pointer; transition: border-color .2s ease, transform .2s ease;
}
.template-card:hover{ border-color: var(--gold); transform: translateY(-3px); }
.template-card.selected{ border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.template-card .thumb{
  height: 160px;
  background: linear-gradient(160deg, #221c15, #0d0a08);
  display:flex; align-items:center; justify-content:center;
  font-family:'Aref Ruqaa',serif; color: var(--gold-light); font-size:24px;
}
.template-card .body{ padding: 14px 16px; }
.template-card h3{ font-size:14.5px; color:var(--cream); margin-bottom:4px; }
.template-card p{ font-size:12.5px; color: var(--muted); margin:0; }

@media (max-width:760px){
  .features{ grid-template-columns:1fr; }
}
