/* ==========================================================================
   O R B I S Sovereign P2P — Master Responsive Stylesheet (ShaDevPro)
   ========================================================================== */

:root {
  /* Colors - Cyber Sovereign Space (Dark Theme Palette) */
  --bg-dark: #070b14;
  --bg-surface: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.7);
  --bg-card-hover: rgba(51, 65, 85, 0.85);
  --border-color: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(6, 182, 212, 0.3);
  
  --primary: #06b6d4;
  --primary-hover: #0891b2;
  --primary-glow: rgba(6, 182, 212, 0.35);
  
  --secondary: #3b82f6;
  --secondary-hover: #2563eb;
  
  --accent-green: #10b981;
  --accent-purple: #8b5cf6;
  --accent-orange: #f59e0b;
  --accent-red: #ef4444;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-ar: 'Tajawal', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Light Theme (Default Startup) */
[data-theme="light"] {
  --bg-dark: #f8fafc;
  --bg-surface: #f1f5f9;
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-glow: rgba(6, 182, 212, 0.4);
  
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-glow: rgba(2, 132, 199, 0.25);
  
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
}

/* RTL Support for Arabic */
[dir="rtl"] {
  font-family: var(--font-ar);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  width: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
  width: 100%;
  transition: background-color 0.3s ease, color 0.3s ease;
  -webkit-font-smoothing: antialiased;
}

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

ul {
  list-style: none;
}

button, input {
  font-family: inherit;
  border: none;
  outline: none;
}

/* Responsive Containers */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }
}

/* Ambient Glow Lights */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
}

.glow-1 {
  width: clamp(280px, 40vw, 500px);
  height: clamp(280px, 40vw, 500px);
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  top: -80px;
  left: -120px;
}

.glow-2 {
  width: clamp(300px, 45vw, 600px);
  height: clamp(300px, 45vw, 600px);
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%);
  top: 400px;
  right: -150px;
}

.glow-3 {
  width: clamp(250px, 35vw, 450px);
  height: clamp(250px, 35vw, 450px);
  background: radial-gradient(circle, #8b5cf6 0%, transparent 70%);
  bottom: 300px;
  left: 10%;
}

/* Typography & Global Utilities */
.gradient-text {
  background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #8b5cf6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-center {
  text-align: center;
}

.section {
  padding: clamp(60px, 8vw, 100px) 0;
  position: relative;
  z-index: 1;
}

.bg-surface {
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-header {
  margin-bottom: clamp(36px, 5vw, 54px);
}

.section-tag {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(6, 182, 212, 0.12);
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid rgba(6, 182, 212, 0.25);
  margin-bottom: 14px;
}

.section-title {
  font-size: clamp(1.85rem, 4.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.6px;
  margin-bottom: 12px;
  line-height: 1.25;
}

.section-desc {
  font-size: clamp(0.95rem, 2vw, 1.1rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition);
  padding: 10px 20px;
  font-size: 0.92rem;
  min-height: 42px;
  text-decoration: none;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 0.82rem;
  min-height: 34px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 11px 22px;
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  min-height: 44px;
}

.btn-xl {
  padding: 13px 26px;
  font-size: 0.98rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  min-height: 48px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--primary-glow);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
  color: #ffffff;
}

.btn-telegram {
  background: linear-gradient(135deg, #0284c7 0%, #0088cc 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.45);
  color: #ffffff;
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(12px);
}

.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.pulse-hover:hover {
  animation: pulse 1.5s infinite;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
}

.btn-icon-svg {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.btn-hero-app-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  border-radius: 5px;
  display: block;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

/* Navbar */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(7, 11, 20, 0.85);
  border-bottom: 1px solid var(--border-color);
  transition: background 0.3s ease;
}

[data-theme="light"] .navbar-wrapper {
  background: rgba(248, 250, 252, 0.9);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-shield {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(6, 182, 212, 0.15);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.logo-icon {
  font-size: 1.3rem;
}

.brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 7px;
  display: block;
  z-index: 2;
}

.btn-download-app-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  display: block;
}

.orbit-ring {
  position: absolute;
  inset: -3px;
  border-radius: 14px;
  border: 1px dashed var(--primary);
  animation: rotateOrbit 12s linear infinite;
  opacity: 0.6;
}

@keyframes rotateOrbit {
  100% { transform: rotate(360deg); }
}

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

.brand-title {
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: var(--text-main);
  line-height: 1.1;
}

.brand-badge {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}

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

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--primary);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.lang-selector {
  display: flex;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.lang-btn {
  background: transparent;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.lang-btn.active {
  background: var(--primary);
  color: #ffffff;
}

.theme-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.theme-btn:hover {
  border-color: var(--primary);
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  cursor: pointer;
  padding: 8px;
  transition: var(--transition);
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .mobile-toggle {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.15);
}

.mobile-toggle:hover {
  border-color: var(--primary);
}

.mobile-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: var(--transition);
}

[data-theme="light"] .mobile-toggle span {
  background: #0f172a;
}

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

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

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

/* Ambient Background Glows */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.glow-1 {
  top: 3%;
  left: -8%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(6, 182, 212, 0.16) 0%, rgba(6, 182, 212, 0) 70%);
  animation: ambientPulse 11s ease-in-out infinite alternate;
}

.glow-2 {
  top: 28%;
  right: -6%;
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14) 0%, rgba(59, 130, 246, 0) 70%);
  animation: ambientPulse 13s ease-in-out infinite alternate 2s;
}

.glow-3 {
  bottom: 8%;
  left: 25%;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.10) 0%, rgba(139, 92, 246, 0) 70%);
  animation: ambientPulse 15s ease-in-out infinite alternate 4s;
}

@keyframes ambientPulse {
  0% {
    opacity: 0.4;
    transform: scale(0.96) translate3d(0, 0, 0);
  }
  50% {
    opacity: 0.7;
    transform: scale(1.06) translate3d(0, -10px, 0);
  }
  100% {
    opacity: 0.4;
    transform: scale(0.96) translate3d(0, 0, 0);
  }
}

/* Keyframes for Hero Load Entrance */
@keyframes heroFadeDown {
  from {
    opacity: 0;
    transform: translate3d(0, -22px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroMockupEnter {
  from {
    opacity: 0;
    transform: translate3d(0, 40px, 0) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes phoneFloat {
  0% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(0, -9px, 0) rotate(0.4deg);
  }
  100% {
    transform: translate3d(0, 0px, 0) rotate(0deg);
  }
}

@keyframes msgPopIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* Hero Section */
.hero-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
  padding: clamp(40px, 6vw, 80px) 24px clamp(60px, 8vw, 100px);
  min-height: calc(100vh - 72px);
  position: relative;
  z-index: 1;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--primary);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
  max-width: 100%;
  animation: heroFadeDown 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  will-change: transform, opacity;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-green);
  flex-shrink: 0;
}

.hero-title {
  font-size: clamp(2.2rem, 5.5vw, 3.4rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -1px;
  margin-bottom: 18px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
  will-change: transform, opacity;
}

.hero-subtitle {
  font-size: clamp(0.98rem, 2vw, 1.18rem);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 600px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
  will-change: transform, opacity;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 38px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
  will-change: transform, opacity;
}

.trust-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  animation: heroFadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
  will-change: transform, opacity;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 14px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}

.trust-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

.trust-badge strong {
  display: block;
  font-size: 0.85rem;
  line-height: 1.2;
}

.trust-badge span {
  font-size: 0.72rem;
  color: var(--text-dim);
}

/* Device Mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  width: 100%;
}

.device-frame {
  width: 100%;
  max-width: 310px;
  min-height: 520px;
  background: #020617;
  border: 4px solid rgba(255, 255, 255, 0.15);
  border-radius: 36px;
  padding: 10px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4), 0 0 30px var(--primary-glow);
  position: relative;
  animation: heroMockupEnter 1s cubic-bezier(0.16, 1, 0.3, 1) 0.22s both,
             phoneFloat 6.5s ease-in-out 1.25s infinite alternate;
  will-change: transform;
}

.device-screen {
  background: #0b1329;
  border-radius: 28px;
  height: 100%;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 10px;
  background: #111d38;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mockup-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.mockup-title {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.mockup-title strong {
  font-size: 0.8rem;
  color: #ffffff;
}

.mockup-status {
  font-size: 0.62rem;
  color: var(--accent-green);
}

.mockup-lock {
  font-size: 0.8rem;
}

.mockup-messages {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.76rem;
}

.mockup-msg {
  max-width: 88%;
  padding: 8px 10px;
  border-radius: 12px;
  position: relative;
  line-height: 1.35;
  will-change: transform, opacity;
}

.mockup-messages .mockup-msg:nth-child(1) {
  animation: msgPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.55s both;
}

.mockup-messages .mockup-msg:nth-child(2) {
  animation: msgPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.75s both;
}

.mockup-messages .mockup-msg:nth-child(3) {
  animation: msgPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.95s both;
}

.mockup-messages .mockup-msg:nth-child(4) {
  animation: msgPopIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.15s both;
}

.mockup-msg.peer {
  align-self: flex-start;
  background: #1e293b;
  color: #f1f5f9;
  border-bottom-left-radius: 2px;
}

.mockup-msg.mine {
  align-self: flex-end;
  background: #0284c7;
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.mockup-time {
  display: block;
  font-size: 0.58rem;
  opacity: 0.7;
  text-align: right;
  margin-top: 3px;
}

.mockup-gps-card {
  margin-top: 5px;
  background: rgba(0, 0, 0, 0.25);
  padding: 4px 6px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 600;
}

.mockup-voice-bubble {
  display: flex;
  align-items: center;
  gap: 6px;
}

.mockup-play-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.6rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mockup-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 14px;
}

.mockup-waveform span {
  width: 3px;
  background: var(--primary);
  border-radius: 2px;
}

.mockup-waveform span:nth-child(odd) { height: 6px; }
.mockup-waveform span:nth-child(even) { height: 12px; }

.mockup-speed {
  font-size: 0.6rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 4px;
  border-radius: 4px;
}

.mockup-input-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #111d38;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.72rem;
  color: var(--text-dim);
}

.mockup-send-icon {
  color: var(--primary);
  font-size: 0.85rem;
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 20px;
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-glow);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.feature-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}

.feature-icon-wrapper.cyan { background: rgba(6, 182, 212, 0.12); border: 1px solid rgba(6, 182, 212, 0.25); }
.feature-icon-wrapper.blue { background: rgba(59, 130, 246, 0.12); border: 1px solid rgba(59, 130, 246, 0.25); }
.feature-icon-wrapper.green { background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.25); }
.feature-icon-wrapper.purple { background: rgba(139, 92, 246, 0.12); border: 1px solid rgba(139, 92, 246, 0.25); }
.feature-icon-wrapper.orange { background: rgba(245, 158, 11, 0.12); border: 1px solid rgba(245, 158, 11, 0.25); }
.feature-icon-wrapper.red { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.25); }

.feature-title {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 8px;
}

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

/* Security Deep Dive Section */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 20px;
}

.security-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 24px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.security-item:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}

.security-num {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.35;
  margin-bottom: 10px;
}

.security-body h4 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.security-body p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Help Center Section */
.help-controls {
  max-width: 800px;
  margin: 0 auto 30px;
}

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  margin-bottom: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-icon {
  margin-right: 10px;
  font-size: 1.05rem;
}

[dir="rtl"] .search-icon {
  margin-right: 0;
  margin-left: 10px;
}

.search-box input {
  background: transparent;
  color: var(--text-main);
  width: 100%;
  font-size: 0.95rem;
}

.category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

@media (max-width: 600px) {
  .category-pills {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-pills::-webkit-scrollbar {
    display: none;
  }
}

.pill {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  padding: 7px 14px;
  border-radius: 20px;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  transition: var(--transition);
}

.pill:hover, .pill.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.help-accordion {
  max-width: 840px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
  transition: var(--transition);
}

.accordion-item.active {
  border-color: var(--primary);
}

.accordion-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: transparent;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  gap: 12px;
}

[dir="rtl"] .accordion-header {
  text-align: right;
}

.acc-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.acc-title {
  font-size: 1rem;
  font-weight: 700;
  flex: 1;
}

.acc-chevron {
  font-size: 0.72rem;
  color: var(--primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.accordion-item.active .acc-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .accordion-body {
  background: rgba(0, 0, 0, 0.2);
}

.accordion-body p {
  padding: 16px 20px 20px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Quota Table Responsive Layout */
.table-responsive {
  max-width: 960px;
  margin: 0 auto;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.quota-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  text-align: left;
}

[dir="rtl"] .quota-table {
  text-align: right;
}

.quota-table th, .quota-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color);
  vertical-align: middle;
}

.quota-table th {
  background: rgba(0, 0, 0, 0.05);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
}

[data-theme="dark"] .quota-table th {
  background: rgba(0, 0, 0, 0.35);
}

.quota-table th:nth-child(1),
.quota-table td:nth-child(1) {
  width: 35%;
  font-weight: 600;
  color: var(--text-main);
  white-space: nowrap;
}

.quota-table th:nth-child(2),
.quota-table td:nth-child(2) {
  width: 18%;
  text-align: center;
  white-space: nowrap;
}

.quota-table th:nth-child(3),
.quota-table td:nth-child(3) {
  width: 47%;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

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

.quota-table tr {
  transition: background 0.2s ease;
}

.quota-table tr:hover td {
  background: rgba(6, 182, 212, 0.04);
}

/* Table Badges */
.badge-success, .badge-info, .badge-warning {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-width: 88px;
  padding: 5px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  line-height: 1.2;
}

.badge-success {
  background: rgba(16, 185, 129, 0.14);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.badge-info {
  background: rgba(59, 130, 246, 0.14);
  color: #2563eb;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.38);
}

[data-theme="dark"] .badge-success {
  background: rgba(16, 185, 129, 0.18);
  color: var(--accent-green);
}

[data-theme="dark"] .badge-info {
  background: rgba(59, 130, 246, 0.18);
  color: var(--secondary);
}

[data-theme="dark"] .badge-warning {
  background: rgba(245, 158, 11, 0.18);
  color: var(--accent-orange);
}

/* ==========================================================================
   Download Section & QR Code
   ========================================================================== */
.download-card {
  max-width: 960px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%), var(--bg-card);
  border: 1px solid rgba(6, 182, 212, 0.2);
  border-radius: var(--radius-xl);
  padding: clamp(28px, 4vw, 48px) clamp(16px, 3.5vw, 36px);
  text-align: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
}

.download-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 12px;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.download-title {
  font-size: clamp(1.6rem, 3.8vw, 2.2rem);
  font-weight: 900;
  margin-bottom: 10px;
  line-height: 1.2;
}

.download-desc {
  font-size: clamp(0.92rem, 1.8vw, 1.02rem);
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.5;
}

.release-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 16px;
}

[data-theme="dark"] .release-specs {
  background: rgba(0, 0, 0, 0.2);
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.spec-label {
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.spec-val {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
}

.download-flex-layout {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: stretch;
  text-align: left;
  margin-top: 8px;
}

[dir="rtl"] .download-flex-layout {
  text-align: right;
}

.download-left-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: space-between;
}

.download-actions-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

/* Primary Download Button */
.btn-download-primary {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 50%, #1d4ed8 100%);
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 4px 18px rgba(2, 132, 199, 0.35);
  transition: var(--transition);
  cursor: pointer;
  min-height: 56px;
}

[data-theme="dark"] .btn-download-primary {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #2563eb 100%);
  box-shadow: 0 4px 20px rgba(14, 165, 233, 0.4);
}

.btn-download-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(2, 132, 199, 0.5);
  color: #ffffff;
}

.btn-download-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #ffffff;
}

.btn-download-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

[dir="rtl"] .btn-download-text {
  text-align: right;
}

.btn-download-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.25;
}

.btn-download-meta {
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-mono);
  margin-top: 2px;
}

/* Secondary Buttons Row */
.download-secondary-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.btn-sub {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition);
  min-height: 40px;
}

.btn-telegram-sub {
  background: rgba(34, 158, 217, 0.08);
  color: #0284c7;
  border: 1px solid rgba(34, 158, 217, 0.28);
}

[data-theme="dark"] .btn-telegram-sub {
  background: rgba(34, 158, 217, 0.14);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
}

.btn-telegram-sub:hover {
  background: rgba(34, 158, 217, 0.2);
  border-color: #0284c7;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(34, 158, 217, 0.22);
}

.btn-github-sub {
  background: var(--bg-card);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-github-sub:hover {
  background: var(--bg-card-hover);
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

/* Modern Checksum Card */
.checksum-card {
  width: 100%;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

[data-theme="dark"] .checksum-card {
  background: rgba(15, 23, 42, 0.5);
}

.checksum-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.checksum-title-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.checksum-badge {
  background: rgba(6, 182, 212, 0.12);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 4px;
  font-family: var(--font-mono);
}

.checksum-label {
  font-size: 0.74rem;
  color: var(--text-muted);
  font-weight: 600;
}

.btn-copy-checksum {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

[data-theme="dark"] .btn-copy-checksum {
  background: rgba(255, 255, 255, 0.06);
}

.btn-copy-checksum:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(6, 182, 212, 0.1);
}

.btn-copy-checksum.copied {
  color: #10b981;
  border-color: #10b981;
  background: rgba(16, 185, 129, 0.1);
}

.checksum-hash {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--primary);
  word-break: break-all;
  line-height: 1.4;
  background: rgba(0, 0, 0, 0.03);
  padding: 6px 8px;
  border-radius: 6px;
  user-select: all;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

[data-theme="dark"] .checksum-hash {
  background: rgba(0, 0, 0, 0.25);
  border-color: rgba(255, 255, 255, 0.04);
}

/* QR Code Card */
.download-qr-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  padding: 18px 16px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  transition: var(--transition);
}

.download-qr-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--primary-glow);
}

.qr-frame-wrapper {
  position: relative;
  background: #ffffff;
  padding: 10px;
  border-radius: 14px;
  border: 1.5px solid rgba(6, 182, 212, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08), 0 0 16px rgba(6, 182, 212, 0.15);
  width: 154px;
  height: 154px;
  overflow: hidden;
}

.qr-code-img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  aspect-ratio: 1/1;
  display: block;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

/* Futuristic QR Scanner Cyber Laser */
.qr-scanner-laser {
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, #00e5ff 15%, #38bdf8 50%, #00e5ff 85%, transparent 100%);
  box-shadow: 0 0 10px #00e5ff, 0 0 20px rgba(6, 182, 212, 0.95), 0 0 35px rgba(56, 189, 248, 0.7);
  border-radius: 3px;
  z-index: 10;
  pointer-events: none;
  animation: scanLaser 2.4s ease-in-out infinite alternate !important;
}

/* Glowing Scanning Light Curtain */
.qr-scanner-laser::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 0;
  right: 0;
  height: 30px;
  background: linear-gradient(to top, rgba(6, 182, 212, 0.35) 0%, rgba(59, 130, 246, 0.12) 60%, transparent 100%);
  pointer-events: none;
}

.qr-scanner-laser::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 14px;
  background: linear-gradient(to bottom, rgba(6, 182, 212, 0.28) 0%, transparent 100%);
  pointer-events: none;
}

@keyframes scanLaser {
  0% {
    top: 6px;
    opacity: 0.9;
  }
  20% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    top: calc(100% - 9px);
    opacity: 0.9;
  }
}

/* Cyber Scanner Corners */
.qr-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border-color: #06b6d4;
  border-style: solid;
  border-width: 0;
  z-index: 6;
  pointer-events: none;
}

.qr-corner-tl {
  top: 4px;
  left: 4px;
  border-top-width: 2.5px;
  border-left-width: 2.5px;
  border-top-left-radius: 4px;
}

.qr-corner-tr {
  top: 4px;
  right: 4px;
  border-top-width: 2.5px;
  border-right-width: 2.5px;
  border-top-right-radius: 4px;
}

.qr-corner-bl {
  bottom: 4px;
  left: 4px;
  border-bottom-width: 2.5px;
  border-left-width: 2.5px;
  border-bottom-left-radius: 4px;
}

.qr-corner-br {
  bottom: 4px;
  right: 4px;
  border-bottom-width: 2.5px;
  border-right-width: 2.5px;
  border-bottom-right-radius: 4px;
}

.qr-info h4 {
  font-size: 0.92rem;
  font-weight: 800;
  margin: 3px 0 2px;
  color: var(--text-main);
}

.qr-info p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.35;
  max-width: 220px;
}

.badge-success {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

/* Footer */
.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 26px;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border-color);
}

.footer-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 320px;
  margin-top: 8px;
}

.footer-links {
  display: flex;
  gap: 20px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text-muted);
  flex-wrap: wrap;
}

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

.footer-bottom {
  padding-top: 24px;
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Tablets & Small Laptops (< 1024px) */
@media (max-width: 1024px) {
  .nav-menu {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-surface);
    flex-direction: column;
    padding: 24px 20px;
    gap: 16px;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    display: none;
    z-index: 99;
  }

  .nav-menu.open {
    display: flex;
    animation: slideDown 0.25s ease-out forwards;
  }

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

  .nav-link {
    font-size: 1.05rem;
    padding: 8px 0;
    width: 100%;
    text-align: center;
  }

  .nav-mobile-ctas {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
  }

  .mobile-toggle {
    display: flex !important;
  }

  .nav-cta,
  .nav-telegram {
    display: none !important;
  }

  .hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 36px;
    gap: 40px;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-cta-group {
    justify-content: center;
  }
  
  .trust-badges {
    max-width: 580px;
    margin: 0 auto;
  }

  .download-flex-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .download-left-col {
    align-items: stretch;
  }
}

/* Mobile Devices (< 768px) */
@media (max-width: 768px) {
  .trust-badges {
    grid-template-columns: 1fr;
  }

  /* Quota Section Premium Mobile Card Transformation */
  .table-responsive {
    max-width: 100%;
    overflow-x: visible;
    background: transparent;
    border: none;
    box-shadow: none;
    border-radius: 0;
  }

  .quota-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 100% !important;
    width: 100%;
    border-collapse: separate;
  }

  .quota-table thead {
    display: none;
  }

  .quota-table tbody {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
  }

  .quota-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 10px 14px;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-inline-start: 4px solid var(--primary);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
    position: relative;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
                border-color 0.25s ease, 
                box-shadow 0.25s ease;
    overflow: hidden;
  }

  [data-theme="dark"] .quota-table tr {
    background: rgba(30, 41, 59, 0.65);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  }

  .quota-table tr:hover,
  .quota-table tr:active {
    transform: translateY(-2px);
    border-color: rgba(6, 182, 212, 0.35);
    box-shadow: 0 8px 24px rgba(6, 182, 212, 0.14);
  }

  /* Accent border color by cost category */
  .quota-table tr:nth-child(1),
  .quota-table tr:nth-child(3),
  .quota-table tr:nth-child(4) {
    border-inline-start-color: var(--accent-green);
  }
  .quota-table tr:nth-child(2),
  .quota-table tr:nth-child(5) {
    border-inline-start-color: var(--secondary);
  }
  .quota-table tr:nth-child(6) {
    border-inline-start-color: var(--accent-orange);
  }

  .quota-table td {
    padding: 0 !important;
    border-bottom: none !important;
    background: transparent !important;
  }

  /* 1st Column: Action Icon & Name */
  .quota-table td:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1;
    width: auto !important;
    font-size: 0.94rem;
    font-weight: 700;
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.35;
    white-space: normal !important;
  }

  .quota-table td:nth-child(1) .quota-icon {
    font-size: 1.15rem;
    flex-shrink: 0;
  }

  /* 2nd Column: Cost Badge */
  .quota-table td:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1;
    width: auto !important;
    justify-self: end;
    text-align: right;
    white-space: nowrap !important;
  }

  [dir="rtl"] .quota-table td:nth-child(2) {
    justify-self: start;
    text-align: left;
  }

  .quota-table td:nth-child(2) .badge-success,
  .quota-table td:nth-child(2) .badge-info,
  .quota-table td:nth-child(2) .badge-warning {
    min-width: unset;
    padding: 4px 10px;
    font-size: 0.78rem;
    font-weight: 800;
    border-radius: 6px;
    letter-spacing: 0.3px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  }

  /* 3rd Column: Technical Detail */
  .quota-table td:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2;
    width: 100% !important;
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.45;
    padding-top: 10px !important;
    border-top: 1px dashed var(--border-color) !important;
    display: flex;
    align-items: flex-start;
    gap: 6px;
  }

  .quota-table td:nth-child(3)::before {
    content: "•";
    color: var(--primary);
    font-weight: 900;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    margin-top: -1px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }

  .footer-tagline {
    max-width: 100%;
  }

  .footer-links {
    justify-content: center;
  }
}

/* Small SmartPhones (< 480px) */
@media (max-width: 480px) {
  .navbar {
    height: 64px;
  }

  .nav-menu {
    top: 64px;
  }

  .brand-logo {
    gap: 8px;
  }

  .logo-shield {
    width: 34px;
    height: 34px;
    border-radius: 10px;
  }

  .logo-icon {
    font-size: 1.1rem;
  }

  .brand-logo-img {
    width: 24px;
    height: 24px;
  }

  .btn-download-app-icon {
    width: 24px;
    height: 24px;
  }

  .brand-title {
    font-size: 1rem;
  }

  .brand-badge {
    font-size: 0.54rem;
  }

  .nav-actions {
    gap: 6px;
  }

  .lang-selector {
    padding: 2px;
  }

  .lang-btn {
    padding: 3px 5px;
    font-size: 0.7rem;
  }

  .theme-btn {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

  .mobile-toggle {
    width: 34px;
    height: 34px;
    padding: 6px;
    gap: 4px;
  }

  .mobile-toggle span {
    width: 18px;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .download-secondary-row {
    grid-template-columns: 1fr;
  }

  .release-specs {
    grid-template-columns: repeat(2, 1fr);
  }

  .device-frame {
    max-width: 280px;
    min-height: 470px;
    border-radius: 26px;
  }

  .device-screen {
    border-radius: 18px;
    min-height: 450px;
  }

  /* Quota cards fine-tuning on compact screens */
  .quota-table tr {
    padding: 13px 14px;
    gap: 8px 10px;
    border-radius: var(--radius-md);
  }

  .quota-table td:nth-child(1) {
    font-size: 0.88rem;
  }

  .quota-table td:nth-child(2) .badge-success,
  .quota-table td:nth-child(2) .badge-info,
  .quota-table td:nth-child(2) .badge-warning {
    padding: 3px 8px;
    font-size: 0.74rem;
  }

  .quota-table td:nth-child(3) {
    font-size: 0.78rem;
    padding-top: 8px !important;
  }

}

/* ==========================================================================
   Premium Lightweight Scroll & Interaction Animations
   ========================================================================== */

/* Top Reading & Scroll Progress Bar */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, #8b5cf6 100%);
  box-shadow: 0 0 10px var(--primary-glow);
  z-index: 10001;
  pointer-events: none;
  transition: width 0.08s linear;
}

/* Floating Back to Top Button */
.btn-back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg-card);
  color: var(--primary);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12), 0 0 14px var(--primary-glow);
  opacity: 0;
  visibility: hidden;
  transform: translate3d(0, 16px, 0) scale(0.9);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              background 0.25s ease, 
              border-color 0.25s ease, 
              color 0.25s ease,
              visibility 0.3s;
  z-index: 999;
}

[dir="rtl"] .btn-back-to-top {
  right: auto;
  left: 26px;
}

.btn-back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translate3d(0, 0, 0) scale(1);
}

.btn-back-to-top:hover {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  transform: translate3d(0, -3px, 0) scale(1.08);
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.5);
}

/* Scroll Reveal Classes (Hardware Accelerated) */
.reveal {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.reveal-scale {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.95);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity;
}

.reveal-scale.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

/* Stagger Delays for Cards and List Items */
.stagger-items > .reveal:nth-child(1) { transition-delay: 40ms; }
.stagger-items > .reveal:nth-child(2) { transition-delay: 90ms; }
.stagger-items > .reveal:nth-child(3) { transition-delay: 140ms; }
.stagger-items > .reveal:nth-child(4) { transition-delay: 190ms; }
.stagger-items > .reveal:nth-child(5) { transition-delay: 240ms; }
.stagger-items > .reveal:nth-child(6) { transition-delay: 290ms; }
.stagger-items > .reveal:nth-child(7) { transition-delay: 340ms; }
.stagger-items > .reveal:nth-child(8) { transition-delay: 390ms; }
.stagger-items > .reveal:nth-child(9) { transition-delay: 440ms; }

/* Enhanced Card Micro-Interaction Hover */
.feature-card, .security-item {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card:hover {
  transform: translate3d(0, -4px, 0);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08), 0 0 20px rgba(6, 182, 212, 0.2);
  border-color: rgba(6, 182, 212, 0.35);
}

.security-item:hover {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06), 0 0 16px rgba(6, 182, 212, 0.16);
  border-color: rgba(6, 182, 212, 0.35);
}

/* Reduced Motion Accessibility (Safely scoped to scroll & reveals) */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }
  .reveal, .reveal-scale {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Legal & Privacy Terms Modal (Audit Android APK PrivacyTermsDialog)
   ========================================================================== */
.footer-link-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  line-height: inherit;
  display: inline-flex;
  align-items: center;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link-btn:hover {
  color: var(--primary);
  transform: translateY(-1px);
}

.legal-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 1200;
  background: rgba(3, 7, 18, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  overflow: hidden;
  box-sizing: border-box;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

.legal-modal-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.legal-modal-container {
  width: calc(100vw - 28px);
  max-width: 580px;
  height: min(720px, 86vh, 86dvh);
  max-height: calc(100vh - 28px);
  max-height: calc(100dvh - 28px);
  margin: auto;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.legal-modal-backdrop.open .legal-modal-container {
  transform: scale(1);
}

.legal-modal-card {
  width: 100%;
  height: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 35px var(--border-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
  min-height: 0;
  box-sizing: border-box;
}

[data-theme="light"] .legal-modal-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16), 0 0 24px rgba(2, 132, 199, 0.14);
}

.legal-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px 12px 18px;
  border-bottom: 1px solid var(--border-color);
  flex-shrink: 0;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
}

.legal-modal-header-info {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1 1 auto;
}

.legal-modal-icon-shield {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(6, 182, 212, 0.12);
  border: 1px solid rgba(6, 182, 212, 0.25);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.legal-modal-icon-shield svg {
  width: 18px;
  height: 18px;
}

.legal-modal-title {
  font-size: clamp(0.92rem, 3.5vw, 1.12rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.25;
  word-break: break-word;
  min-width: 0;
}

.legal-modal-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent-green);
  letter-spacing: 0.3px;
  margin-top: 2px;
  word-break: break-word;
}

[data-theme="light"] .legal-modal-badge {
  color: #059669;
}

.legal-modal-close-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.legal-modal-close-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.4);
  color: var(--accent-red);
}

.legal-tab-switcher {
  display: flex;
  gap: 6px;
  padding: 4px;
  margin: 10px 16px 4px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  min-width: 0;
  box-sizing: border-box;
}

[data-theme="light"] .legal-tab-switcher {
  background: rgba(0, 0, 0, 0.05);
}

.legal-tab-btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 8px 6px;
  border-radius: 8px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: inherit;
  font-size: clamp(0.74rem, 2.8vw, 0.86rem);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: center;
  word-break: break-word;
  line-height: 1.25;
}

.legal-tab-btn.active {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 10px var(--primary-glow);
}

.legal-modal-body {
  padding: 10px 16px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  flex: 1 1 0;
  min-height: 0;
  min-width: 0;
  box-sizing: border-box;
}

.legal-tab-pane {
  display: none;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  width: 100%;
}

.legal-tab-pane.active {
  display: flex;
  animation: fadeInModal 0.25s ease;
}

@keyframes fadeInModal {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.legal-item-card {
  padding: 12px 14px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border-color);
  transition: border-color 0.2s ease, background 0.2s ease;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

[data-theme="light"] .legal-item-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.06);
}

.legal-item-card:hover {
  border-color: rgba(6, 182, 212, 0.35);
  background: rgba(6, 182, 212, 0.03);
}

.legal-item-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
  min-width: 0;
}

.legal-item-icon {
  font-size: 1.05rem;
  line-height: 1;
  flex-shrink: 0;
}

.legal-item-head h4 {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  word-break: break-word;
  min-width: 0;
}

.legal-item-card p {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--text-muted);
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
}

.legal-modal-footer {
  padding: 12px 16px 16px 16px;
  border-top: 1px solid var(--border-color);
  flex-shrink: 0;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.legal-modal-footer .btn {
  width: 100%;
  min-height: 42px;
  font-size: 0.9rem;
  font-weight: 700;
  white-space: normal;
  text-align: center;
  box-sizing: border-box;
}

.btn-block {
  width: 100%;
}

/* ==========================================================================
   Responsive Adaptations for Legal & Privacy Elements (Mobile & Tablet)
   ========================================================================== */
@media (max-width: 768px) {
  .footer-links {
    justify-content: center;
    gap: 14px 20px;
  }
}

@media (max-width: 480px) {
  .legal-modal-container {
    width: calc(100vw - 20px);
    height: min(680px, 88vh, 88dvh);
    max-height: calc(100vh - 20px);
    max-height: calc(100dvh - 20px);
  }

  .legal-modal-header {
    padding: 12px 12px 10px 12px;
  }

  .legal-tab-switcher {
    margin: 8px 12px 4px 12px;
  }

  .legal-modal-body {
    padding: 8px 12px;
  }

  .legal-item-card {
    padding: 10px 12px;
  }

  .legal-modal-footer {
    padding: 10px 12px 14px 12px;
  }
}

@media (max-width: 360px) {
  .legal-modal-container {
    width: calc(100vw - 12px);
    height: min(680px, 92vh, 92dvh);
  }

  .legal-modal-header {
    padding: 10px;
  }

  .legal-modal-title {
    font-size: 0.88rem;
  }

  .legal-tab-btn {
    font-size: 0.7rem;
    padding: 6px 2px;
  }

  .legal-modal-body {
    padding: 6px 8px;
  }

  .legal-item-card {
    padding: 8px 10px;
  }
}


