:root {
  --bg: #FBF7FF;
  --surface: #FFFFFF;
  --text: #1A1238;
  --text-2: #4A4170;
  --muted: #8B82AB;
  --border: rgba(20, 18, 60, 0.06);
  --border-strong: rgba(20, 18, 60, 0.14);
  --pink: #EC4899;
  --purple: #8B5CF6;
  --cyan: #06B6D4;
  --green: #10B981;
  --red: #F43F5E;
  --gradient: linear-gradient(135deg, #EC4899 0%, #8B5CF6 50%, #06B6D4 100%);
  --shadow-md: 0 8px 28px rgba(20,18,60,0.08), 0 2px 6px rgba(20,18,60,0.04);
  --shadow-lg: 0 24px 64px rgba(139,92,246,0.18), 0 8px 16px rgba(20,18,60,0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100vh; }
body {
  font-family: 'Heebo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(circle 600px at 80% -10%, rgba(236,72,153,0.18), transparent 60%),
    radial-gradient(circle 500px at 10% 30%, rgba(6,182,212,0.16), transparent 60%),
    radial-gradient(circle 400px at 50% 90%, rgba(139,92,246,0.14), transparent 60%),
    var(--bg);
  background-attachment: fixed;
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
a { color: var(--purple); text-decoration: none; font-weight: 600; }
a:hover { text-decoration: underline; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.6);
  border-radius: 28px;
  padding: 44px 38px;
  max-width: 460px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  animation: slideUp 350ms ease-out;
}
@media (max-width: 560px) {
  body { padding: 16px 12px; align-items: flex-start; padding-top: 24px; }
  .auth-card { padding: 28px 22px; border-radius: 22px; }
  .auth-card h1 { font-size: 22px; }
  .auth-sub { font-size: 14px; margin-bottom: 22px; }
  input[type="email"], input[type="password"], input[type="text"], input[type="tel"] {
    font-size: 16px;
    padding: 12px 14px;
  }
  textarea { font-size: 16px !important; }
  .btn-primary { padding: 14px 20px; font-size: 16px; }
  .pricing-banner { padding: 12px 14px; font-size: 12px; }
}
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  margin-bottom: 22px;
}
.auth-brand-logo {
  width: 44px; height: 44px;
  background: var(--gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
.auth-brand-name {
  font-size: 22px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.auth-card h1 {
  font-size: 26px;
  text-align: center;
  margin-bottom: 8px;
}
.auth-sub {
  text-align: center;
  color: var(--text-2);
  margin-bottom: 30px;
  font-size: 15px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: 8px;
  margin-top: 14px;
}
input[type="email"], input[type="password"], input[type="text"], input[type="tel"] {
  width: 100%;
  padding: 13px 16px;
  background: white;
  border: 1.5px solid var(--border-strong);
  border-radius: 12px;
  color: var(--text);
  font-size: 15px;
  font-family: inherit;
  transition: border-color 150ms, box-shadow 150ms;
}
input:focus {
  outline: none;
  border-color: var(--pink);
  box-shadow: 0 0 0 4px rgba(236,72,153,0.10);
}

.btn-primary {
  width: 100%;
  background: var(--gradient);
  color: white;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  margin-top: 24px;
  box-shadow: 0 8px 22px rgba(236,72,153,0.30);
  transition: all 200ms;
  font-family: inherit;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(236,72,153,0.40); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.auth-foot {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-2);
}

.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 14px;
  display: none;
}
.alert.show { display: block; }
.alert.error { background: rgba(244,63,94,0.10); border: 1px solid rgba(244,63,94,0.3); color: #BE123C; }
.alert.success { background: rgba(16,185,129,0.10); border: 1px solid rgba(16,185,129,0.3); color: #047857; }

.pricing-banner {
  background: linear-gradient(135deg, rgba(236,72,153,0.08), rgba(139,92,246,0.08));
  border: 1px solid rgba(236,72,153,0.25);
  border-radius: 14px;
  padding: 14px 18px;
  margin-bottom: 22px;
  text-align: center;
  font-size: 13px;
}
.pricing-banner strong { display: block; font-size: 14px; color: var(--pink); margin-bottom: 2px; }

.wa-link {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #25D366;
  color: white !important;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 700;
  margin-top: 16px;
  text-decoration: none !important;
  transition: all 200ms;
  box-shadow: 0 8px 22px rgba(37,211,102,0.30);
}
.wa-link:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(37,211,102,0.40); }
.wa-link svg { width: 18px; height: 18px; fill: white; }

.back-link {
  display: block;
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
}

/* Pending page */
.pending-icon {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(251,146,60,0.10));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 18px;
  font-size: 36px;
}

/* Admin */
.admin-wrap { max-width: 1080px; padding: 32px 20px; }
.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  box-shadow: var(--shadow-md);
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; min-width: 540px; }
.admin-table th { text-align: right; padding: 10px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.admin-table td { padding: 14px 10px; border-bottom: 1px solid var(--border); font-size: 14px; }
@media (max-width: 640px) {
  .admin-card { padding: 16px; border-radius: 14px; }
  .admin-table th, .admin-table td { padding: 8px 6px; font-size: 12px; }
}
.pill {
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
}
.pill.pending { background: rgba(245,158,11,0.16); color: #B45309; }
.pill.active { background: rgba(16,185,129,0.16); color: #047857; }
.pill.suspended { background: rgba(244,63,94,0.16); color: #BE123C; }
.pill.admin { background: rgba(139,92,246,0.16); color: #6D28D9; }
.btn-row { display: flex; gap: 6px; }
.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
  border: 1.5px solid var(--border-strong);
  background: white;
  color: var(--text);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-family: inherit;
}
.btn-sm:hover { border-color: var(--pink); }
.btn-sm.green { background: var(--green); color: white; border-color: transparent; }
.btn-sm.red { background: var(--red); color: white; border-color: transparent; }
.btn-sm.warn { background: var(--orange, #FB923C); color: white; border-color: transparent; }
