/* style.css — تم رزگلد + مشکی + نقره‌ای */
/* فونت Vazirmatn از گوگل استفاده شده */
@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@300;400;600&display=swap');

:root{
  --bg:#0f0f10;
  --card:#171717;
  --rose:#ffb6c1;
  --rose-strong:#ff69b4;
  --silver:#c0c0c0;
  --muted:#bdbdbd;
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family:"Vazirmatn",sans-serif;
  background: radial-gradient(circle at 10% 10%, #141414 0%, #0b0b0b 60%);
  color:#fff;
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

/* ---------- Hero (صفحه خوش‌آمد) ---------- */
.hero{
  display:flex;
  gap:40px;
  align-items:center;
  justify-content:center;
  padding:60px;
  max-width:1200px;
  margin:0 auto;
}

.hero-left{
  flex:1;
  max-width:640px;
}

.hero-right{
  flex:0 0 360px;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* عنوان */
.hero-left h1{
  font-size:2.4rem;
  color:var(--rose);
  margin-bottom:12px;
  letter-spacing:0.5px;
}

.lead{
  color:var(--muted);
  margin-bottom:20px;
  line-height:1.6;
}

/* لیست مزایا */
.features{
  list-style:none;
  padding:0;
  margin:0 0 24px 0;
  color:var(--silver);
}

.features li{
  margin:8px 0;
  font-weight:500;
}

/* دکمه‌ها */
.hero-cta{display:flex;gap:12px;align-items:center}
.btn-primary{
  background:linear-gradient(135deg,var(--rose),var(--rose-strong));
  color:#111;
  border:none;
  padding:12px 20px;
  border-radius:12px;
  font-weight:600;
  cursor:pointer;
  box-shadow:0 6px 22px rgba(255,182,193,0.15);
  transition:transform .16s ease,box-shadow .16s ease;
}
.btn-primary:hover{ transform:translateY(-3px); box-shadow:0 12px 30px rgba(255,182,193,0.24); }

.btn-ghost{
  display:inline-block;
  padding:10px 14px;
  border-radius:10px;
  background:transparent;
  color:var(--muted);
  border:1px solid rgba(255,255,255,0.04);
  text-decoration:none;
}

/* نمایش mockup ساده سمت راست */
.phone-mock{
  width:260px;height:420px;border-radius:28px;
  background:linear-gradient(180deg, rgba(255,182,193,0.06), rgba(0,0,0,0.2));
  border:1px solid rgba(255,182,193,0.06);
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 20px 60px rgba(0,0,0,0.8);
}
.phone-mock .receipt{
  font-size:48px;
  color:var(--rose-strong);
  background:rgba(0,0,0,0.2);
  padding:18px 34px;border-radius:12px;
}

/* ---------- Overlay / Modal ---------- */
.overlay.hidden{ display:none }
.overlay{
  position:fixed; inset:0;
  background:linear-gradient(rgba(0,0,0,0.6),rgba(0,0,0,0.7));
  display:flex; align-items:center; justify-content:center;
  z-index:9999; padding:24px;
}
.auth-card{
  width:380px; max-width:95%;
  background:linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01));
  border:1px solid rgba(255,182,193,0.06);
  padding:28px;border-radius:18px; position:relative;
  box-shadow: 0 20px 60px rgba(255,182,193,0.05), inset 0 1px 0 rgba(255,255,255,0.02);
  transform-origin:center;
  animation:modal-in .34s ease;
}
@keyframes modal-in{
  from{opacity:0; transform:translateY(10px) scale(.98)}
  to{opacity:1; transform:translateY(0) scale(1)}
}
.close-x{
  position:absolute; left:12px; top:8px;
  background:transparent;border:none;color:var(--muted);font-size:22px;cursor:pointer;
}

.auth-card h2{ color:var(--rose); margin:0 0 14px 0; font-weight:600; font-size:1.4rem; text-align:center }

/* فرم */
.auth-form{ display:flex; flex-direction:column; gap:10px; margin-top:6px; }
.auth-form input{
  padding:12px 14px; border-radius:10px; border:none; background:#0e0e0e; color:#fff;
  outline:none; font-size:15px; box-shadow: inset 0 1px 0 rgba(255,255,255,0.02);
}
.auth-form input:focus{ box-shadow:0 0 12px rgba(255,182,193,0.12) }

.error{ color:#ff8b8b; min-height:20px; font-size:14px; margin-top:4px; text-align:center }

.switch-text{ margin-top:12px; text-align:center; color:var(--muted); }
.switch-link{ color:var(--rose); text-decoration:none; font-weight:600; margin-left:6px }

/* Responsive */
@media (max-width:880px){
  .hero{ flex-direction:column; padding:36px }
  .hero-right{ margin-top:18px }
}

.groups-section {
  margin-top: 3rem;
  background-color: #1c1c1c;
  color: #f4d1c8;
  padding: 2rem;
  border-radius: 12px;
}

.add-group {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.group-card {
  background: #2c2c2c;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.member-list {
  background: #3c3c3c;
  border-radius: 6px;
  margin-top: 0.5rem;
  padding: 0.5rem;
}

.settlement-section {
  margin-top: 3rem;
  background-color: #1c1c1c;
  color: #f4d1c8;
  padding: 2rem;
  border-radius: 12px;
}

.settlement-controls {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.settlement-result {
  background: #2c2c2c;
  padding: 1rem;
  border-radius: 8px;
}

.settlement-result ul {
  list-style: none;
  padding: 0;
}
