@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+Arabic:wght@400;500;600;700;800&display=swap');

:root {
  --gym-bg: #070b14;
  --gym-bg-subtle: #0d1527;
  --gym-card-bg: #111a30;
  --gym-card-border: rgba(99, 138, 255, 0.16);
  --gym-card-hover: rgba(99, 138, 255, 0.28);
  --gym-primary: #3b82f6;
  --gym-primary-hover: #2563eb;
  --gym-primary-glow: rgba(59, 130, 246, 0.35);
  --gym-accent: #10b981;
  --gym-accent-glow: rgba(16, 185, 129, 0.25);
  --gym-text: #f8fafc;
  --gym-text-muted: #94a3b8;
  --gym-text-subtle: #64748b;
  --gym-callout-bg: rgba(59, 130, 246, 0.08);
  --gym-callout-border: rgba(59, 130, 246, 0.25);
  --gym-danger-bg: rgba(239, 68, 68, 0.08);
  --gym-danger-border: rgba(239, 68, 68, 0.25);
  --gym-radius-sm: 8px;
  --gym-radius-md: 14px;
  --gym-radius-lg: 20px;
  --gym-radius-xl: 28px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  color-scheme: dark;
}

body {
  margin: 0;
  background-color: var(--gym-bg);
  color: var(--gym-text);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[lang="ar"] body,
html[dir="rtl"] body {
  font-family: 'Noto Sans Arabic', Tahoma, Arial, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  cursor: pointer;
  font-family: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--gym-primary);
  outline-offset: 4px;
}

/* Accessibility Skip Link */
.gym-skip-link {
  position: absolute;
  top: -60px;
  inset-inline-start: 16px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--gym-primary);
  color: #fff;
  font-weight: 700;
  border-radius: var(--gym-radius-sm);
  transition: top 0.2s ease;
}
.gym-skip-link:focus {
  top: 16px;
}

/* Layout Containers */
.gym-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.gym-legal-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navigation Header */
.gym-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(7, 11, 20, 0.85);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 0;
}

.gym-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.gym-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gym-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
  color: #fff;
}

.gym-logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--gym-primary), #6366f1);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 4px 14px var(--gym-primary-glow);
}

.gym-subbrand-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--gym-text-muted);
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.gym-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.gym-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--gym-text-muted);
  transition: color 0.2s ease;
}

.gym-nav a:hover,
.gym-nav a.active {
  color: #fff;
}

.gym-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.gym-lang-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 20px;
  transition: background 0.2s ease, border-color 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.gym-lang-toggle:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* Hero Section */
.gym-hero {
  position: relative;
  padding: 80px 0 60px;
  text-align: center;
  overflow: hidden;
}

.gym-hero-glow {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.22) 0%, rgba(99, 102, 241, 0.12) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.gym-hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
}

.gym-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.12);
  padding: 6px 14px;
  border-radius: 30px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  margin-bottom: 24px;
}

.gym-hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -1.5px;
  margin: 0 0 20px;
}

.gym-hero h1 span {
  background: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.gym-hero p.gym-tagline {
  font-size: clamp(17px, 2.4vw, 21px);
  color: #cbd5e1;
  line-height: 1.7;
  max-width: 680px;
  margin: 0 auto 36px;
}

.gym-hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.gym-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gym-primary), #2563eb);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  padding: 13px 26px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 18px var(--gym-primary-glow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.gym-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 24px var(--gym-primary-glow);
}

.gym-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: #e2e8f0;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gym-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  color: #fff;
}

/* Store Badge Section (Coming Soon) */
.gym-store-section {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(17, 26, 48, 0.6);
  border: 1px solid var(--gym-card-border);
  border-radius: 16px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--gym-text-muted);
}

.gym-store-badges {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gym-store-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #cbd5e1;
  cursor: default;
}

.gym-badge-pill {
  font-size: 10px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Core Features Section */
.gym-section {
  padding: 80px 0;
}

.gym-section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 50px;
}

.gym-section-header h2 {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  letter-spacing: -1px;
  margin: 12px 0 16px;
}

.gym-section-header p {
  font-size: 16px;
  color: var(--gym-text-muted);
  line-height: 1.7;
}

.gym-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.gym-feature-card {
  background: var(--gym-card-bg);
  border: 1px solid var(--gym-card-border);
  border-radius: var(--gym-radius-lg);
  padding: 28px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.gym-feature-card:hover {
  transform: translateY(-3px);
  border-color: var(--gym-card-hover);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.gym-feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.15), rgba(99, 102, 241, 0.2));
  border: 1px solid rgba(99, 138, 255, 0.25);
  display: grid;
  place-items: center;
  color: #93c5fd;
  margin-bottom: 20px;
}

.gym-feature-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 10px;
  color: #fff;
}

.gym-feature-card p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gym-text-muted);
  margin: 0;
  flex: 1;
}

.gym-card-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Legal & Support Links Quick Bar */
.gym-links-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.gym-link-card {
  background: var(--gym-card-bg);
  border: 1px solid var(--gym-card-border);
  border-radius: var(--gym-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gym-link-card:hover {
  transform: translateY(-2px);
  border-color: var(--gym-primary);
}

.gym-link-card h4 {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gym-link-card p {
  font-size: 13px;
  color: var(--gym-text-muted);
  line-height: 1.6;
  margin: 0;
}

/* Legal Page Styling (Privacy & Terms) */
.gym-legal-hero {
  padding: 50px 0 35px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 40px;
}

.gym-legal-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--gym-text-muted);
  margin-top: 14px;
}

.gym-legal-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.gym-legal-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
  margin-bottom: 80px;
}

/* Sticky Table of Contents */
.gym-toc {
  position: sticky;
  top: 96px;
  background: var(--gym-card-bg);
  border: 1px solid var(--gym-card-border);
  border-radius: var(--gym-radius-md);
  padding: 20px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  font-size: 13px;
}

.gym-toc-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gym-text-muted);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gym-toc nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gym-toc a {
  color: var(--gym-text-muted);
  padding: 6px 10px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
  line-height: 1.4;
}

.gym-toc a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
}

.gym-toc a.active {
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  font-weight: 600;
}

/* Legal Content Area */
.gym-legal-content {
  max-width: 780px;
}

.gym-legal-section {
  scroll-margin-top: 100px;
  padding-bottom: 36px;
  margin-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.gym-legal-section:last-child {
  border-bottom: none;
}

.gym-legal-section h2 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin: 0 0 16px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gym-section-number {
  font-size: 14px;
  font-weight: 800;
  color: var(--gym-primary);
  background: rgba(59, 130, 246, 0.12);
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
}

.gym-legal-section p {
  font-size: 15px;
  line-height: 1.8;
  color: #cbd5e1;
  margin: 0 0 16px;
}

.gym-legal-section ul {
  margin: 0 0 18px;
  padding-inline-start: 22px;
  color: #cbd5e1;
  font-size: 15px;
  line-height: 1.8;
}

.gym-legal-section li {
  margin-bottom: 8px;
}

/* Callouts / Highlights */
.gym-callout {
  background: var(--gym-callout-bg);
  border: 1px solid var(--gym-callout-border);
  border-radius: var(--gym-radius-md);
  padding: 18px 22px;
  margin: 20px 0;
  font-size: 14px;
  line-height: 1.7;
  color: #e2e8f0;
}

.gym-callout-danger {
  background: var(--gym-danger-bg);
  border: 1px solid var(--gym-danger-border);
  border-radius: var(--gym-radius-md);
  padding: 20px 24px;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.7;
}

.gym-callout-title {
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Support Page Layout */
.gym-support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}

.gym-support-card {
  background: var(--gym-card-bg);
  border: 1px solid var(--gym-card-border);
  border-radius: var(--gym-radius-lg);
  padding: 28px;
}

.gym-support-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin: 0 0 12px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.gym-support-card p,
.gym-support-card li {
  font-size: 14px;
  line-height: 1.7;
  color: var(--gym-text-muted);
}

.gym-support-card ul,
.gym-support-card ol {
  padding-inline-start: 20px;
  margin: 12px 0 0;
}

.gym-support-card li {
  margin-bottom: 8px;
}

/* Prominent Account Deletion Box on Support Page */
.gym-deletion-card {
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.08), rgba(17, 26, 48, 0.9));
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: var(--gym-radius-lg);
  padding: 36px;
  margin-bottom: 48px;
  position: relative;
}

.gym-deletion-card h2 {
  font-size: 26px;
  font-weight: 800;
  color: #fca5a5;
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.gym-deletion-card p {
  font-size: 15px;
  line-height: 1.8;
  color: #e2e8f0;
  margin: 0 0 16px;
}

.gym-deletion-steps {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--gym-radius-md);
  padding: 20px 24px;
  margin: 20px 0;
}

.gym-deletion-steps ol {
  margin: 0;
  padding-inline-start: 22px;
  font-size: 14px;
  line-height: 1.8;
  color: #f8fafc;
}

.gym-deletion-steps li {
  margin-bottom: 6px;
}

/* Direct Contact Card */
.gym-contact-card {
  text-align: center;
  background: var(--gym-card-bg);
  border: 1px solid var(--gym-card-border);
  border-radius: var(--gym-radius-lg);
  padding: 40px 24px;
  max-width: 680px;
  margin: 0 auto 60px;
}

.gym-contact-card h2 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 12px;
}

.gym-contact-card p {
  color: var(--gym-text-muted);
  font-size: 15px;
  margin: 0 0 24px;
}

.gym-contact-email-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  background: rgba(59, 130, 246, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 12px 28px;
  border-radius: 30px;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.gym-contact-email-btn:hover {
  background: rgba(59, 130, 246, 0.25);
  border-color: rgba(59, 130, 246, 0.5);
}

/* Footer */
.gym-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #05080f;
  padding: 48px 0 32px;
  color: var(--gym-text-muted);
  font-size: 13px;
}

.gym-footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 24px;
}

.gym-footer-brand-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gym-footer-logo {
  font-weight: 800;
  font-size: 18px;
  color: #fff;
}

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

.gym-footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.gym-footer-nav a {
  color: var(--gym-text-muted);
  transition: color 0.2s ease;
}

.gym-footer-nav a:hover {
  color: #fff;
}

.gym-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--gym-text-subtle);
}

/* RTL Adjustments */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}

html[dir="rtl"] .gym-logo,
html[dir="rtl"] .gym-footer-logo {
  direction: ltr; /* keep Latin brand logo visually intact */
}

html[dir="rtl"] .gym-eyebrow,
html[dir="rtl"] .gym-store-section,
html[dir="rtl"] .gym-card-badge {
  letter-spacing: 0;
}

html[dir="rtl"] .gym-toc {
  text-align: right;
}

html[dir="rtl"] .gym-toc nav {
  text-align: right;
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .gym-legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .gym-toc {
    position: relative;
    top: 0;
    max-height: 280px;
    margin-bottom: 20px;
  }
  .gym-links-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .gym-header-inner {
    flex-wrap: wrap;
  }
  .gym-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    gap: 14px;
    padding-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }
  .gym-hero {
    padding: 50px 0 40px;
  }
  .gym-features-grid {
    grid-template-columns: 1fr;
  }
  .gym-deletion-card {
    padding: 24px 18px;
  }
  .gym-footer-grid {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
