/* ============================================
   Gymify Landing Page Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;600;700;800;900&display=swap');

:root {
  --primary: #0f2a4a;
  --primary-light: #1a3d6d;
  --accent: #2ed8a3;
  --accent-hover: #25b88a;
  --accent-glow: rgba(46, 216, 163, 0.3);
  --text-light: #e8f0fe;
  --text-muted: #a0b4cc;
  --card-bg: rgba(255, 255, 255, 0.95);
  --card-border: rgba(46, 216, 163, 0.2);
  --gradient-bg: linear-gradient(135deg, #0a1628 0%, #0f2a4a 30%, #143560 60%, #0f2a4a 100%);
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', sans-serif;
  background: var(--gradient-bg);
  color: var(--text-light);
  direction: rtl;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ---- Background Particles ---- */
.bg-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.bg-particles .star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle 3s infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: 0.7; transform: scale(1); }
}

/* ---- Header ---- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 42, 74, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(46, 216, 163, 0.15);
  padding: 12px 0;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.logo-icon {
  width: 42px;
  height: 42px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.logo-text {
  font-size: 24px;
  font-weight: 800;
  color: var(--text-light);
  letter-spacing: -0.5px;
}

.logo-text span {
  color: var(--accent);
}

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

.btn-login {
  padding: 8px 20px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: all 0.3s;
}

.btn-login:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ---- Hero Section ---- */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px 60px;
  max-width: 900px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 12px;
  line-height: 1.2;
}

.hero h1 span {
  color: var(--accent);
}

.hero .subtitle {
  font-size: 24px;
  font-weight: 300;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent);
  color: var(--primary);
  font-size: 18px;
  font-weight: 700;
  padding: 16px 40px;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px var(--accent-glow);
}

/* ---- Features Grid ---- */
.features {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.features-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 48px;
}

.features-title span {
  color: var(--accent);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  color: var(--primary);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #e8f5f0, #d0f0e4);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
}

.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #5a6a7a;
  line-height: 1.6;
}

/* ---- Stats Section ---- */
.stats {
  position: relative;
  z-index: 1;
  background: rgba(46, 216, 163, 0.05);
  border-top: 1px solid rgba(46, 216, 163, 0.1);
  border-bottom: 1px solid rgba(46, 216, 163, 0.1);
  padding: 60px 24px;
  margin-bottom: 80px;
}

.stats-inner {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-item .stat-number {
  font-size: 42px;
  font-weight: 900;
  color: var(--accent);
}

.stat-item .stat-label {
  font-size: 16px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Pricing Section ---- */
.pricing {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto 80px;
  padding: 0 24px;
}

.pricing-title {
  text-align: center;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 48px;
}

.pricing-title span {
  color: var(--accent);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  background: var(--card-bg);
  border: 2px solid transparent;
  border-radius: var(--radius);
  padding: 36px 28px;
  color: var(--primary);
  text-align: center;
  transition: all 0.3s;
  position: relative;
}

.pricing-card.featured {
  border-color: var(--accent);
  transform: scale(1.05);
  box-shadow: 0 8px 40px var(--accent-glow);
}

.pricing-card .badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--primary);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.pricing-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 36px;
  font-weight: 900;
  color: var(--accent-hover);
  margin-bottom: 4px;
}

.pricing-card .price-period {
  font-size: 14px;
  color: #7a8a9a;
  margin-bottom: 24px;
}

.pricing-card ul {
  list-style: none;
  text-align: right;
  margin-bottom: 28px;
}

.pricing-card ul li {
  padding: 6px 0;
  font-size: 14px;
  color: #4a5a6a;
  display: flex;
  align-items: center;
  gap: 8px;
}

.pricing-card ul li::before {
  content: '✓';
  color: var(--accent-hover);
  font-weight: 700;
  font-size: 16px;
}

.pricing-card .btn-plan {
  display: block;
  padding: 12px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  transition: all 0.3s;
}

.pricing-card .btn-plan.primary {
  background: var(--accent);
  color: var(--primary);
}

.pricing-card .btn-plan.primary:hover {
  background: var(--accent-hover);
}

.pricing-card .btn-plan.outline {
  border: 2px solid var(--accent);
  color: var(--accent-hover);
  background: transparent;
}

.pricing-card .btn-plan.outline:hover {
  background: var(--accent);
  color: var(--primary);
}

/* ---- CTA Section ---- */
.cta-section {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
  background: linear-gradient(135deg, rgba(46, 216, 163, 0.1), rgba(46, 216, 163, 0.02));
  border-radius: 24px;
  max-width: 900px;
  margin: 0 auto 80px;
}

.cta-section h2 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-section p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
}

/* ---- Footer ---- */
.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(46, 216, 163, 0.1);
  padding: 40px 24px;
  text-align: center;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- Registration Page ---- */
.register-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.register-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px 36px;
  width: 100%;
  max-width: 520px;
  color: var(--primary);
  box-shadow: var(--shadow);
}

.register-container h2 {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin-bottom: 8px;
}

.register-container .reg-sub {
  text-align: center;
  font-size: 14px;
  color: #6a7a8a;
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--primary);
}

.form-group label .required {
  color: #e74c3c;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  transition: border-color 0.3s;
  direction: rtl;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-input.error {
  border-color: #e74c3c;
}

.form-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-input.error + .form-error {
  display: block;
}

/* OTP Section */
.otp-section {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.otp-section .form-input {
  flex: 1;
}

.btn-otp {
  padding: 12px 20px;
  background: var(--primary-light);
  color: white;
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.3s;
  min-width: 120px;
}

.btn-otp:hover {
  background: var(--primary);
}

.btn-otp:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.otp-verify-row {
  display: none;
  gap: 10px;
  align-items: flex-end;
  margin-top: 10px;
}

.otp-verify-row.show {
  display: flex;
}

.otp-code-input {
  flex: 1;
  text-align: center;
  letter-spacing: 8px;
  font-size: 20px;
  font-weight: 700;
}

.btn-verify {
  padding: 12px 20px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-verify:hover {
  background: var(--accent-hover);
}

.email-verified {
  display: none;
  align-items: center;
  gap: 6px;
  color: var(--accent-hover);
  font-size: 13px;
  font-weight: 600;
  margin-top: 6px;
}

.email-verified.show {
  display: flex;
}

/* City Select */
.form-select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e0e6ed;
  border-radius: 10px;
  font-family: 'Cairo', sans-serif;
  font-size: 15px;
  background: white;
  cursor: pointer;
  transition: border-color 0.3s;
  direction: rtl;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236a7a8a' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px center;
}

.form-select:focus {
  outline: none;
  border-color: var(--accent);
}

/* Password */
.password-wrapper {
  position: relative;
}

.password-toggle {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 18px;
  color: #7a8a9a;
}

.password-strength {
  height: 4px;
  border-radius: 2px;
  background: #e0e6ed;
  margin-top: 6px;
  overflow: hidden;
}

.password-strength-bar {
  height: 100%;
  width: 0;
  border-radius: 2px;
  transition: all 0.3s;
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* Submit */
.btn-register {
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: var(--primary);
  border: none;
  border-radius: 12px;
  font-family: 'Cairo', sans-serif;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
  margin-top: 8px;
}

.btn-register:hover {
  background: var(--accent-hover);
}

.btn-register:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.register-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 13px;
  color: #7a8a9a;
}

.register-footer a {
  color: var(--accent-hover);
  text-decoration: none;
  font-weight: 600;
}

/* ---- Success Page ---- */
.success-container {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 48px 36px;
  max-width: 520px;
  width: 100%;
  color: var(--primary);
  text-align: center;
  box-shadow: var(--shadow);
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #d0f0e4, #e8f5f0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  margin: 0 auto 20px;
}

.success-container h2 {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 12px;
}

.success-details {
  background: #f5f8fc;
  border-radius: 12px;
  padding: 20px;
  text-align: right;
  margin: 24px 0;
}

.success-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid #e8edf2;
  font-size: 14px;
}

.success-details .detail-row:last-child {
  border-bottom: none;
}

.success-details .detail-label {
  color: #6a7a8a;
}

.success-details .detail-value {
  font-weight: 600;
}

.btn-dashboard {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  transition: all 0.3s;
}

.btn-dashboard:hover {
  background: var(--accent-hover);
}

/* ---- Alert Messages ---- */
.alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  margin-bottom: 20px;
  display: none;
}

.alert.error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  display: block;
}

.alert.success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  display: block;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  .hero h1 { font-size: 32px; }
  .hero .subtitle { font-size: 18px; }
  .features-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr; gap: 24px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card.featured { transform: scale(1); }
  .footer-inner { flex-direction: column; gap: 16px; }
  .header-inner { flex-wrap: wrap; gap: 12px; }
  .register-container { padding: 28px 20px; }
  .otp-section { flex-direction: column; }
  .btn-otp { width: 100%; }
}
