/* ==============================================================================
   ALIMNI ONLINE — PRODUCTION STYLESHEET
   Clean Code, Modern Educational Portal, High Contrast & Responsive RTL Design
   ============================================================================== */

:root {
  /* Brand Colors */
  --primary: #282571;
  --primary-dark: #1A1753;
  --primary-light: #3D3996;
  --primary-rgb: 40, 37, 113;

  --accent: #E58514;
  --accent-hover: #C9720E;
  --accent-light: #FFF7ED;
  --accent-rgb: 229, 133, 20;

  --bg-dark: #0D0B28;
  --bg-dark-surface: #171442;
  --bg-light: #F8FAFD;
  --surface: #FFFFFF;
  --surface-alt: #F1F4FA;

  /* Typography Colors (High Contrast >= 4.5:1) */
  --text-main: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --text-white: #FFFFFF;

  /* Accent Tints */
  --tint-blue: #EEF2FF;
  --tint-orange: #FFF7ED;
  --tint-green: #ECFDF5;
  --tint-purple: #FAF5FF;
  --tint-teal: #F0FDFA;
  --tint-rose: #FFF1F2;

  /* Borders & Shadows */
  --border: #E2E8F0;
  --border-light: rgba(255, 255, 255, 0.15);
  --shadow-sm: 0 2px 8px rgba(40, 37, 113, 0.05);
  --shadow-md: 0 8px 24px rgba(40, 37, 113, 0.08);
  --shadow-lg: 0 16px 40px rgba(40, 37, 113, 0.12);
  --shadow-glow: 0 10px 30px rgba(229, 133, 20, 0.25);

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;

  /* Animation */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Tajawal', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-light);
  color: var(--text-body);
  line-height: 1.75;
  direction: rtl;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ==============================================================================
   NAVIGATION BAR
   ============================================================================== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
  transition: var(--transition);
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 104px;
  padding: 8px 0;
}

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

.brand-img {
  width: 92px;
  height: 92px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  filter: drop-shadow(0 6px 14px rgba(40, 37, 113, 0.18));
  transition: transform 0.25s ease;
}

.brand:hover .brand-img {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

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

.brand-subtitle {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--text-muted);
}

.nav-menu {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-link {
  text-decoration: none;
  color: var(--text-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 6px 2px;
  position: relative;
  transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
  color: var(--accent);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0%;
  height: 2px;
  background: var(--accent);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

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

.nav-cta-mobile {
  display: none;
}

/* Mobile Toggle Hamburger */
.nav-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-toggle.active span:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* ==============================================================================
   BUTTONS
   ============================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 22px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  font-family: inherit;
  line-height: 1.2;
}

.btn-lg {
  padding: 14px 26px;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(40, 37, 113, 0.25);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(40, 37, 113, 0.35);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent) 0%, #D8760B 100%);
  color: white;
  box-shadow: var(--shadow-glow);
}

.btn-accent:hover {
  background: linear-gradient(135deg, #EF8E1E 0%, var(--accent) 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(229, 133, 20, 0.4);
}

.btn-primary-dark {
  background: white;
  color: var(--primary);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary-dark:hover {
  background: #F1F4FA;
  transform: translateY(-2px);
}

.btn-accent-dark {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-accent-dark:hover {
  background: rgba(255, 255, 255, 0.25);
  border-color: white;
  transform: translateY(-2px);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: white;
  transform: translateY(-2px);
}

.btn-text small {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  opacity: 0.9;
}

.btn-text strong {
  font-size: 1rem;
}

.btn-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.btn-svg {
  display: block;
}

.svg-btn-icon {
  margin-left: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

/* ==============================================================================
   HERO SECTION
   ============================================================================== */
.hero {
  position: relative;
  background: linear-gradient(145deg, var(--bg-dark) 0%, var(--primary-dark) 45%, var(--primary) 100%);
  color: white;
  padding: 80px 0 100px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, rgba(229, 133, 20, 0.22) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(61, 57, 150, 0.35) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 50px;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 22px;
  backdrop-filter: blur(10px);
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.hero-title {
  font-size: 2.9rem;
  font-weight: 900;
  line-height: 1.25;
  margin-bottom: 20px;
  color: white;
  letter-spacing: -0.5px;
}

.text-gradient {
  background: linear-gradient(135deg, #FFA940 0%, #FFD666 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.15rem;
  color: #E2E8F0;
  margin-bottom: 32px;
  max-width: 560px;
  line-height: 1.8;
}

.hero-desc strong {
  color: #FFA940;
}

.hero-cta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #CBD5E1;
}

.highlight-check {
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.25);
  color: #34D399;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* Hero Visual / Mockup Card */
.hero-card-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero-card {
  position: relative;
  width: 100%;
  max-width: 390px;
}

.device-mockup {
  background: #110E38;
  border: 10px solid #2B276F;
  border-radius: 40px;
  padding: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.45);
  transition: transform 0.4s ease;
}

.device-mockup:hover {
  transform: translateY(-4px);
}

.device-screen {
  background: linear-gradient(180deg, #1A1753 0%, #0F0D2E 100%);
  border-radius: 28px;
  padding: 24px 18px;
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.screen-header {
  height: 14px;
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.camera-hole {
  width: 10px;
  height: 10px;
  background: #0D0B28;
  border-radius: 50%;
}

.app-screen-logo {
  width: 160px;
  height: 160px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.screen-app-name {
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: white;
}

.screen-app-tagline {
  font-size: 0.82rem;
  color: #94A3B8;
  margin-bottom: 20px;
}

.screen-card {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 14px;
  text-align: right;
  margin-bottom: 18px;
}

.screen-feature {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.screen-feature:last-child {
  border-bottom: none;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.dot.green { background: #10B981; }
.dot.orange { background: #F59E0B; }
.dot.blue { background: #3B82F6; }

.screen-status-badge {
  background: linear-gradient(135deg, rgba(229, 133, 20, 0.2) 0%, rgba(229, 133, 20, 0.35) 100%);
  border: 1px solid rgba(229, 133, 20, 0.4);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  color: #FDBA74;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.badge-sparkle-svg {
  display: inline-block;
  flex-shrink: 0;
}

/* Floating Badges */
.floating-badge {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-main);
  padding: 10px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  backdrop-filter: blur(10px);
  z-index: 5;
  animation: floatAnim 4s ease-in-out infinite alternate;
}

.floating-badge strong {
  display: block;
  font-size: 0.88rem;
  color: var(--primary);
}

.floating-badge small {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.floating-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.badge-top {
  top: 30px;
  right: -30px;
}

.badge-bottom {
  bottom: 40px;
  left: -30px;
  animation-delay: -2s;
}

@keyframes floatAnim {
  0% { transform: translateY(0); }
  100% { transform: translateY(-8px); }
}

/* ==============================================================================
   TRUST BAR / STATS
   ============================================================================== */
.trust-bar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 30px 0;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.trust-stat {
  text-align: center;
  border-left: 1px solid var(--border);
}

.trust-stat:last-child {
  border-left: none;
}

.stat-number {
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==============================================================================
   REAL PHOTOGRAPHY EXPERIENCE SECTION
   ============================================================================== */
.experience-section {
  padding: 95px 0;
  background: var(--surface);
}

.experience-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.experience-media {
  position: relative;
}

.photo-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.main-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
}

.real-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.photo-card:hover .real-photo {
  transform: scale(1.04);
}

.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px 20px;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.88) 100%);
  color: white;
}

.photo-tag {
  display: inline-block;
  background: var(--accent);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 6px;
}

.photo-overlay h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.mini-photo {
  position: absolute;
  bottom: -25px;
  left: -25px;
  width: 170px;
  height: 120px;
  border: 4px solid white;
  box-shadow: var(--shadow-lg);
}

.section-tag {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.95rem;
  margin-bottom: 10px;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 30px;
}

.benefits-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.benefit-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.benefit-card:hover {
  background: white;
  border-color: rgba(40, 37, 113, 0.2);
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}

.benefit-icon {
  width: 48px;
  height: 48px;
  background: white;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.benefit-icon svg {
  display: block;
}
}

.benefit-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 4px;
}

.benefit-body p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================================================================
   FEATURES GRID SECTION
   ============================================================================== */
.features {
  padding: 95px 0;
  background: var(--surface-alt);
}

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

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

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 26px;
  transition: var(--transition);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(40, 37, 113, 0.25);
}

.feature-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  display: block;
}

.bg-blue   { background: var(--tint-blue); }
.bg-orange { background: var(--tint-orange); }
.bg-green  { background: var(--tint-green); }
.bg-purple { background: var(--tint-purple); }
.bg-teal   { background: var(--tint-teal); }
.bg-rose   { background: var(--tint-rose); }

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}

.feature-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==============================================================================
   HOW IT WORKS (3 STEPS)
   ============================================================================== */
.how-it-works {
  padding: 95px 0;
  background: white;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  position: relative;
}

.step-card {
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 28px 32px;
  text-align: center;
  position: relative;
  transition: var(--transition);
}

.step-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--shadow-md);
}

.step-badge {
  position: absolute;
  top: -18px;
  right: 50%;
  transform: translateX(50%);
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(40, 37, 113, 0.25);
}

.step-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.step-icon svg {
  display: block;
}

.step-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.step-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ==============================================================================
   READING SHOWCASE PHOTO BANNER
   ============================================================================== */
.reading-showcase {
  padding: 60px 0 90px;
  background: white;
}

.showcase-card {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  align-items: center;
  box-shadow: var(--shadow-lg);
  color: white;
}

.showcase-image {
  height: 100%;
  min-height: 320px;
}

.showcase-content {
  padding: 48px 40px;
}

.showcase-tag {
  display: inline-block;
  background: rgba(229, 133, 20, 0.25);
  color: #FDBA74;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 14px;
  border: 1px solid rgba(229, 133, 20, 0.4);
}

.showcase-title {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.showcase-desc {
  font-size: 1.05rem;
  color: #CBD5E1;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* ==============================================================================
   DOWNLOAD SECTION (APK & GOOGLE PLAY)
   ============================================================================== */
.download-section {
  padding: 50px 0 95px;
}

.download-box {
  background: linear-gradient(135deg, var(--primary) 0%, #1E1B4B 100%);
  border-radius: var(--radius-xl);
  padding: 60px 50px;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  box-shadow: 0 20px 50px rgba(40, 37, 113, 0.35);
  position: relative;
  overflow: hidden;
}

.download-box::before {
  content: '';
  position: absolute;
  top: -80px;
  left: -80px;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(229, 133, 20, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

.download-content {
  max-width: 620px;
  position: relative;
  z-index: 2;
}

.download-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.download-desc {
  font-size: 1.05rem;
  color: #E2E8F0;
  margin-bottom: 28px;
  line-height: 1.7;
}

.download-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.download-security-note {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: #CBD5E1;
  font-weight: 500;
  flex-wrap: wrap;
}

.note-with-icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.download-visual {
  text-align: center;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.download-app-icon {
  width: 260px;
  height: 260px;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 14px 35px rgba(0, 0, 0, 0.45));
  margin-bottom: 14px;
  transition: transform 0.3s ease;
}

.download-app-icon:hover {
  transform: scale(1.05);
}

.app-version-pill {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ==============================================================================
   SUPPORT & CONTACT SECTION
   ============================================================================== */
.support-section {
  padding: 95px 0;
  background: var(--surface-alt);
}

.support-container {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 50px;
  align-items: start;
}

.contact-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: white;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  margin-bottom: 14px;
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--tint-orange);
  color: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon svg {
  display: block;
}

.contact-card-title {
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.contact-card-value {
  color: var(--text-body);
  font-size: 0.95rem;
}

.contact-note {
  margin-top: 20px;
  background: #EEF2FF;
  border-right: 4px solid var(--primary);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  color: var(--primary);
  font-size: 0.92rem;
  line-height: 1.6;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.contact-note svg {
  flex-shrink: 0;
  margin-top: 3px;
  stroke: var(--primary);
}

/* Form Card */
.form-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 42px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border);
}

.form-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 4px;
}

.form-subtitle {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  color: var(--text-main);
  font-size: 0.92rem;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.98rem;
  transition: var(--transition);
  background: var(--bg-light);
  color: var(--text-main);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 4px rgba(40, 37, 113, 0.1);
}

.alert-message {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
  display: none;
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.6;
  animation: fadeInAlert 0.3s ease-out;
}

@keyframes fadeInAlert {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.alert-success {
  background: #ECFDF5;
  color: #065F46;
  border: 1px solid #A7F3D0;
  border-right: 5px solid #10B981;
}

.alert-error {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
  border-right: 5px solid #EF4444;
}

/* ==============================================================================
   FOOTER & LEGAL SECTION (CLEANLY ISOLATED)
   ============================================================================== */
.footer {
  background: var(--bg-dark);
  color: white;
  padding: 70px 0 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.4fr;
  gap: 50px;
  margin-bottom: 45px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  margin-bottom: 16px;
}

.footer-brand .brand-img {
  width: 80px;
  height: 80px;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.footer-brand .brand-title {
  color: white;
  font-size: 1.55rem;
}

.footer-legal-nav a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-legal-nav svg {
  stroke: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.footer-legal-nav a:hover svg {
  transform: scale(1.15);
}

.footer-desc {
  color: #94A3B8;
  max-width: 360px;
  font-size: 0.95rem;
  line-height: 1.8;
}

.footer-heading {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 18px;
  color: white;
  position: relative;
  padding-bottom: 8px;
}

.footer-heading::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 2.5px;
  background: var(--accent);
  border-radius: 2px;
}

.footer-nav {
  list-style: none;
}

.footer-nav li {
  margin-bottom: 10px;
}

.footer-nav a {
  color: #94A3B8;
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
  display: inline-block;
}

.footer-nav a:hover {
  color: var(--accent);
  transform: translateX(-4px);
}

/* Dedicated Legal Column */
.legal-col-desc {
  font-size: 0.85rem;
  color: #64748B;
  margin-bottom: 12px;
  line-height: 1.6;
}

.legal-col a {
  color: #CBD5E1;
  font-size: 0.92rem;
}

.footer-bottom {
  text-align: center;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #64748B;
  font-size: 0.9rem;
}

/* ==============================================================================
   RESPONSIVE DESIGN (MOBILE & TABLET)
   ============================================================================== */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-highlights {
    justify-content: center;
  }
  .badge-top {
    right: 10px;
  }
  .badge-bottom {
    left: 10px;
  }
  .experience-grid, .showcase-card, .support-container, .download-box {
    grid-template-columns: 1fr;
  }
  .download-box {
    flex-direction: column;
    text-align: center;
    padding: 40px 30px;
  }
  .download-app-icon {
    width: 220px;
    height: 220px;
  }
  .download-security-note {
    justify-content: center;
  }
  .download-buttons {
    justify-content: center;
  }
  .features-grid, .steps-grid, .trust-grid, .footer-grid {
    grid-template-columns: 1fr;
    gap: 25px;
  }
  .trust-stat {
    border-left: none;
    border-bottom: 1px solid var(--border);
    padding-bottom: 15px;
  }
  .trust-stat:last-child {
    border-bottom: none;
  }
}

@media (max-width: 860px) {
  .nav-container {
    min-height: 88px;
  }
  .brand-img {
    width: 72px;
    height: 72px;
  }
  .brand-title {
    font-size: 1.35rem;
  }
  .nav-menu {
    position: fixed;
    top: 88px;
    right: -100%;
    width: 280px;
    height: calc(100vh - 88px);
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 30px 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    overflow-y: auto;
  }
  .nav-menu.open {
    right: 0;
  }
  .nav-links {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
  }
  .nav-toggle {
    display: flex;
  }
  .nav-actions {
    display: none;
  }
  .nav-cta-mobile {
    display: block;
  }
  .hero-card {
    max-width: 320px;
  }
  .app-screen-logo {
    width: 130px;
    height: 130px;
  }
  .download-app-icon {
    width: 180px;
    height: 180px;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .form-card {
    padding: 26px 20px;
  }
}

/* ==============================================================================
   MODAL DIALOG (GOOGLE PLAY APOLOGY & GUIDANCE)
   ============================================================================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 520px;
  width: 100%;
  padding: 36px 30px 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
  position: relative;
  text-align: center;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 1px solid var(--border);
}

.modal-backdrop.active .modal-dialog {
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 18px;
  left: 18px;
  background: #F1F5F9;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  background: #E2E8F0;
  color: var(--primary);
  transform: rotate(90deg);
}

.modal-icon-badge {
  width: 72px;
  height: 72px;
  background: #F8FAFC;
  border: 1px solid var(--border);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.modal-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1.35;
}

.modal-text {
  font-size: 1.02rem;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 20px;
}

.modal-text strong {
  color: var(--primary);
}

.modal-security-box {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  border-radius: var(--radius-md);
  padding: 14px 18px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: right;
  margin-bottom: 24px;
}

.security-badge-icon {
  flex-shrink: 0;
  margin-top: 2px;
}

.security-badge-text strong {
  display: block;
  font-size: 0.95rem;
  color: #065F46;
  margin-bottom: 2px;
}

.security-badge-text span {
  display: block;
  font-size: 0.88rem;
  color: #047857;
  line-height: 1.55;
}

.modal-footer {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-secondary {
  background: #F1F5F9;
  color: #475569;
}

.btn-secondary:hover {
  background: #E2E8F0;
  color: var(--primary);
}

@media (max-width: 580px) {
  .modal-dialog {
    padding: 30px 20px 24px;
  }
  .modal-title {
    font-size: 1.25rem;
  }
  .modal-text {
    font-size: 0.95rem;
  }
}

/* ==============================================================================
   FORMAL LEGAL PAGES STYLING (TERMS, PRIVACY & ACCOUNT DELETION)
   ============================================================================== */
.legal-hero {
  background: linear-gradient(145deg, var(--bg-dark) 0%, var(--primary-dark) 50%, var(--primary) 100%);
  color: white;
  padding: 65px 0 55px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.legal-breadcrumb a {
  color: #CBD5E1;
  text-decoration: none;
  transition: var(--transition);
}

.legal-breadcrumb a:hover {
  color: var(--accent);
}

.legal-breadcrumb-sep {
  color: #64748B;
  font-size: 0.8rem;
}

.legal-breadcrumb-current {
  color: #F8FAFC;
  font-weight: 700;
}

.legal-hero-title {
  font-size: 2.35rem;
  font-weight: 900;
  color: white;
  margin-bottom: 14px;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.legal-hero-desc {
  font-size: 1.1rem;
  color: #E2E8F0;
  max-width: 760px;
  line-height: 1.8;
  margin-bottom: 24px;
}

.legal-meta-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  color: white;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
}

.meta-pill.status-active {
  background: rgba(16, 185, 129, 0.25);
  border-color: rgba(52, 211, 153, 0.5);
  color: #34D399;
}

.print-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #E2E8F0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: inherit;
}

.print-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.legal-layout-section {
  padding: 65px 0 95px;
  background: var(--surface-alt);
}

.legal-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 40px;
  align-items: start;
}

.legal-toc-wrapper {
  position: sticky;
  top: 125px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--shadow-sm);
}

.legal-toc-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: calc(85vh - 200px);
  overflow-y: auto;
}

.legal-toc-link {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #475569;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  transition: var(--transition);
  line-height: 1.45;
  border-right: 3px solid transparent;
}

.legal-toc-link:hover,
.legal-toc-link.active {
  background: #F8FAFC;
  color: var(--primary);
  border-right-color: var(--accent);
  padding-right: 14px;
}

.legal-document {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 55px 48px;
  line-height: 1.9;
  color: var(--text-body);
}

.legal-preamble {
  background: #F8F9FD;
  border: 1px solid #E2E8F0;
  border-right: 5px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  margin-bottom: 44px;
}

.legal-preamble h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
}

.legal-preamble p {
  font-size: 1.02rem;
  color: #334155;
  margin-bottom: 0;
  line-height: 1.8;
}

.legal-article {
  margin-bottom: 46px;
  scroll-margin-top: 135px;
}

.legal-article:last-of-type {
  margin-bottom: 30px;
}

.legal-article-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.legal-article-badge {
  background: #EEF2FF;
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.legal-article-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary);
  margin: 0;
  line-height: 1.35;
}

.legal-clause {
  font-size: 1.02rem;
  color: #334155;
  margin-bottom: 14px;
  text-align: justify;
}

.legal-clause strong {
  color: var(--primary);
}

.legal-sublist {
  list-style: none;
  padding-right: 0;
  margin: 16px 0 22px;
}

.legal-sublist li {
  position: relative;
  padding-right: 28px;
  margin-bottom: 12px;
  font-size: 1rem;
  color: #334155;
  line-height: 1.75;
}

.legal-sublist li::before {
  content: '';
  position: absolute;
  right: 8px;
  top: 12px;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
}

.legal-callout {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-right: 4px solid #F59E0B;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  margin: 22px 0;
  color: #92400E;
  font-size: 0.95rem;
  line-height: 1.7;
}

.legal-callout-danger {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  border-right: 4px solid #EF4444;
  color: #991B1B;
}

.legal-callout-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  border-right: 4px solid #3B82F6;
  color: #1E40AF;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 22px 0 28px;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.legal-table th,
.legal-table td {
  padding: 14px 16px;
  text-align: right;
  border-bottom: 1px solid var(--border);
}

.legal-table th {
  background: #F8F9FD;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.92rem;
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:nth-child(even) {
  background: #FAFAFD;
}

.table-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.78rem;
  font-weight: 700;
}

.table-tag.tag-green {
  background: #ECFDF5;
  color: #059669;
}

.table-tag.tag-blue {
  background: #EFF6FF;
  color: #2563EB;
}

.legal-signoff {
  margin-top: 48px;
  padding-top: 30px;
  border-top: 2px dashed var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.95rem;
  color: #64748B;
}

.legal-signoff-brand {
  font-weight: 800;
  color: var(--primary);
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.legal-signoff-stamp {
  background: #F8FAFC;
  border: 1px solid var(--border);
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  text-align: right;
  font-size: 0.88rem;
}

@media (max-width: 980px) {
  .legal-grid {
    grid-template-columns: 1fr;
  }
  .legal-toc-wrapper {
    position: static;
    top: auto;
    margin-bottom: 24px;
  }
  .legal-toc-list {
    max-height: 260px;
  }
  .legal-document {
    padding: 34px 22px;
  }
  .legal-hero-title {
    font-size: 1.85rem;
  }
}

@media print {
  .navbar, .footer, .legal-toc-wrapper, .print-btn, .legal-meta-bar {
    display: none !important;
  }
  .legal-hero {
    background: none !important;
    color: black !important;
    padding: 20px 0 !important;
    border-bottom: 2px solid #000 !important;
  }
  .legal-hero-title {
    color: black !important;
  }
  .legal-hero-desc {
    color: #333 !important;
  }
  .legal-layout-section {
    background: none !important;
    padding: 0 !important;
  }
  .legal-grid {
    display: block !important;
  }
  .legal-document {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    color: black !important;
  }
  .legal-article-title {
    color: black !important;
  }
}
