/* ==========================================
   HudHudCell Landing Page Styles
   Theme: Premium Dark, Cyber Emerald & Cyan
   ========================================== */

/* Variables */
:root {
  --bg-dark-deep: #06090b;
  --bg-dark-main: #0b141a;
  --bg-dark-panel: #111b21;
  --bg-dark-card: #182229;
  --bg-dark-hover: #202c33;
  
  --color-emerald: #00e676;
  --color-emerald-dark: #00a884;
  --color-cyan: #00f0ff;
  --color-cyan-dark: #00b0ff;
  
  --text-main: #e9edef;
  --text-muted: #8696a0;
  --text-dim: #667781;
  
  --gradient-neon: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-cyan) 100%);
  --gradient-dark: linear-gradient(180deg, var(--bg-dark-deep) 0%, var(--bg-dark-main) 100%);
  
  --shadow-emerald: 0 8px 32px rgba(0, 230, 118, 0.15);
  --shadow-cyan: 0 8px 32px rgba(0, 240, 255, 0.15);
  --shadow-neon: 0 8px 32px rgba(0, 230, 118, 0.25);
  --shadow-inset: inset 0 2px 4px rgba(255, 255, 255, 0.05);
  
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  --border-radius-lg: 24px;
  --border-radius-md: 16px;
  --border-radius-sm: 8px;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark-deep);
  color: var(--text-main);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body {
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Background Glows */
.bg-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: -1;
  opacity: 0.15;
  pointer-events: none;
}

.bg-glow-1 {
  top: 5%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: var(--color-emerald);
}

.bg-glow-2 {
  top: 35%;
  left: -15%;
  width: 700px;
  height: 700px;
  background: var(--color-cyan);
}

.bg-glow-3 {
  bottom: 10%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: var(--color-emerald);
}

/* Typography & General Classes */
h1, h2, h3, h4 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.2;
}

p {
  color: var(--text-muted);
  line-height: 1.6;
}

a {
  color: var(--color-emerald);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: var(--color-cyan);
}

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

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

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

.text-gradient-green {
  background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-emerald-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.badge-premium {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 230, 118, 0.1);
  border: 1px solid rgba(0, 230, 118, 0.2);
  color: var(--color-emerald);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-emerald);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  animation: pulse-animation 1.5s infinite;
}

@keyframes pulse-animation {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 230, 118, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 230, 118, 0);
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--border-radius-md);
  font-weight: 600;
  font-family: var(--font-title);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--gradient-neon);
  color: var(--bg-dark-deep);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-neon);
  color: var(--bg-dark-deep);
}

.btn-glow {
  box-shadow: var(--shadow-emerald);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Header & Nav */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(6, 9, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  transition: padding 0.3s ease, background 0.3s ease;
  padding: 20px 0;
}

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

.brand-logo {
  height: 48px;
  display: block;
  filter: drop-shadow(0 0 8px rgba(0, 230, 118, 0.3));
}

.desktop-nav ul {
  display: flex;
  list-style: none;
  gap: 32px;
}

.desktop-nav a {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.95rem;
}

.desktop-nav a:hover, .desktop-nav li.active a {
  color: var(--text-main);
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.3);
}

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

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 8px;
}

/* Mobile Nav Overlay */
.mobile-nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-dark-deep);
  z-index: 200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  transform: translateY(-100%);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-nav-overlay.active {
  transform: translateY(0);
}

.close-mobile-menu {
  position: absolute;
  top: 24px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.mobile-nav a {
  font-size: 1.5rem;
  font-family: var(--font-title);
  color: var(--text-main);
}

.mobile-nav .btn {
  margin-top: 16px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero-section {
  padding-top: 180px;
  padding-bottom: 100px;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 60px;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 24px;
  letter-spacing: -1px;
}

.hero-description {
  font-size: 1.15rem;
  margin-bottom: 40px;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: flex;
  gap: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 32px;
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-emerald);
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.hero-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

.floating-media-card {
  position: relative;
  width: 100%;
  max-width: 460px;
}

.video-container-glass {
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(17, 27, 33, 0.4);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), var(--shadow-cyan);
  position: relative;
}

.hero-bg-video {
  width: 100%;
  display: block;
  border-radius: var(--border-radius-lg);
  object-fit: cover;
}

.video-overlay-details {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(180deg, rgba(11, 20, 26, 0) 0%, rgba(11, 20, 26, 0.95) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.video-overlay-details h4 {
  font-size: 1.1rem;
  color: var(--text-main);
  margin-bottom: 4px;
}

.video-overlay-details p {
  font-size: 0.85rem;
  color: var(--color-cyan);
  font-weight: 500;
}

/* Sections Header */
.section-header {
  margin-bottom: 60px;
}

.section-title {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 1.1rem;
  max-width: 650px;
  margin: 0 auto;
}

/* P2P network visualizer */
.p2p-visualizer-section {
  padding: 100px 0;
  background: linear-gradient(180deg, rgba(6,9,11,0) 0%, rgba(11,20,26,0.3) 50%, rgba(6,9,11,0) 100%);
}

.visualizer-toggle-container {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 32px;
}

.toggle-btn {
  padding: 10px 24px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.toggle-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
}

.toggle-btn.active {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: var(--bg-dark-deep);
  box-shadow: var(--shadow-emerald);
}

.canvas-wrapper {
  position: relative;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(11, 20, 26, 0.4);
  backdrop-filter: blur(10px);
  overflow: hidden;
  height: 420px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.4);
}

#networkCanvas {
  width: 100%;
  height: 100%;
  display: block;
}

.canvas-legend {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: flex;
  gap: 20px;
  background: rgba(6, 9, 11, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 10px 16px;
  border-radius: 50px;
  backdrop-filter: blur(5px);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.green { background: var(--color-emerald); }
.legend-dot.red { background: #ff5252; }
.legend-dot.cyan { background: var(--color-cyan); }

/* Features Grid */
.features-section {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.feature-card {
  background: rgba(17, 27, 33, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-lg);
  padding: 40px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.05) 0%, rgba(0, 240, 255, 0.05) 100%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 230, 118, 0.15);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 230, 118, 0.05);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(0, 230, 118, 0.08);
  border-radius: var(--border-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-emerald);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--gradient-neon);
  color: var(--bg-dark-deep);
  transform: scale(1.05);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 12px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* Simulator Section */
.simulator-section {
  padding: 100px 0;
  background: rgba(11, 20, 26, 0.2);
}

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

.simulator-text-content {
  display: flex;
  flex-direction: column;
}

.simulator-info-text {
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.simulator-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-guide {
  display: flex;
  gap: 20px;
  padding: 16px 20px;
  border-radius: var(--border-radius-md);
  border: 1px solid transparent;
  transition: all 0.3s ease;
  cursor: pointer;
}

.step-guide.active {
  background: rgba(17, 27, 33, 0.6);
  border-color: rgba(0, 230, 118, 0.1);
}

.step-num {
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}

.step-guide.active .step-num {
  background: var(--gradient-neon);
  color: var(--bg-dark-deep);
}

.step-body h4 {
  font-size: 1.05rem;
  margin-bottom: 4px;
  transition: color 0.3s ease;
}

.step-guide.active .step-body h4 {
  color: var(--color-emerald);
}

.step-body p {
  font-size: 0.9rem;
}

/* Phone Simulator mockup */
.simulator-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.phone-mockup {
  width: 330px;
  height: 670px;
  background: #000;
  border-radius: 44px;
  border: 9px solid #1c2830;
  position: relative;
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 230, 118, 0.1);
  overflow: hidden;
}

.phone-speaker {
  width: 60px;
  height: 4px;
  background: #2b3a42;
  border-radius: 10px;
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

.phone-camera {
  width: 10px;
  height: 10px;
  background: #2b3a42;
  border-radius: 50%;
  position: absolute;
  top: 11px;
  left: 36%;
  z-index: 10;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #0a0e11; /* Mobile app background */
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Status Bar */
.phone-status-bar {
  height: 38px;
  padding: 14px 20px 4px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  z-index: 10;
  background: #0a0e11;
}

.phone-status-bar .icons {
  display: flex;
  gap: 4px;
  align-items: center;
}

.screen-content {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  padding: 10px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateX(30px);
  pointer-events: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  background: #0a0e11;
  overflow-y: auto;
}

.screen.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 2;
}

.screen.slide-left {
  transform: translateX(-30px);
  opacity: 0;
}

/* Screen 1: Welcome/Login */
.login-header {
  text-align: center;
  margin-top: 15px;
  margin-bottom: 24px;
}

.login-header h3 {
  font-size: 1.45rem;
  color: #fff;
  margin-bottom: 8px;
}

.login-header p {
  font-size: 11px;
  color: #8696a0;
  line-height: 1.4;
  padding: 0 10px;
}

.form-group {
  margin-bottom: 20px;
  background: #111b21;
  border-radius: var(--border-radius-md);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.form-group label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: var(--color-emerald);
  margin-bottom: 2px;
}

.form-group .sub-label {
  display: block;
  font-size: 9px;
  color: #8696a0;
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  background: #202c33;
  border: none;
  border-radius: var(--border-radius-sm);
  color: #fff;
  padding: 10px 12px;
  font-size: 12px;
  outline: none;
}

.form-group .input-info {
  display: block;
  font-size: 9px;
  color: #667781;
  margin-top: 6px;
}

.btn-phone-primary {
  width: 100%;
  background: #00a884;
  color: #fff;
  border: none;
  padding: 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 12.5px;
  cursor: pointer;
  transition: opacity 0.2s ease;
  margin-bottom: 12px;
}

.btn-phone-primary:hover {
  opacity: 0.9;
}

.esim-login {
  text-align: center;
  margin-bottom: 14px;
}

.esim-login a {
  font-size: 11.5px;
  color: var(--color-emerald);
  font-weight: 500;
}

.divider-text {
  text-align: center;
  font-size: 10px;
  color: #667781;
  position: relative;
  margin-bottom: 16px;
}

.divider-text::before, .divider-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 40%;
  height: 1px;
  background: #222e35;
}

.divider-text::before { left: 0; }
.divider-text::after { right: 0; }

.other-methods {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.methods-title {
  font-size: 9.5px;
  color: #667781;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.method-row {
  display: flex;
  align-items: center;
  background: #111b21;
  border: 1px solid rgba(255, 255, 255, 0.02);
  border-radius: var(--border-radius-md);
  padding: 10px 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease;
}

.method-row:hover {
  background: #202c33;
}

.icon-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 12px;
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 13px;
  flex-shrink: 0;
}

.bg-apple { background: #000; }
.bg-google { background: #fff; color: #000; }
.bg-twitter { background: #15181c; color: #fff; }
.bg-sms { background: #00b0ff; color: #fff; }

.method-row svg {
  width: 14px;
  height: 14px;
}

.method-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.method-info strong {
  font-size: 11.5px;
  color: #e9edef;
  font-weight: 500;
}

.method-info span {
  font-size: 8.5px;
  color: #8696a0;
}

.method-row .chevron {
  width: 14px;
  height: 14px;
  color: #8696a0;
}

/* Screen 2: Profile setup */
.screen-header {
  text-align: center;
  margin-bottom: 16px;
}

.screen-header h3 {
  font-size: 1.4rem;
  color: #fff;
  margin-bottom: 4px;
}

.screen-header p {
  font-size: 10.5px;
  color: #8696a0;
}

.profile-tabs {
  display: flex;
  background: #111b21;
  border-radius: 50px;
  padding: 4px;
  margin-bottom: 20px;
}

.tab-btn {
  flex: 1;
  background: none;
  border: none;
  color: #8696a0;
  padding: 8px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn.active {
  background: #202c33;
  color: #fff;
}

.tab-content {
  display: none;
  flex-direction: column;
}

.tab-content.active {
  display: flex;
}

.avatar-uploader {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 20px;
}

.avatar-img-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: #25d366; /* green background like standard icon */
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  border: 2px solid var(--color-emerald);
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 230, 118, 0.2);
}

.avatar-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.select-photo-link {
  font-size: 11px;
  font-weight: 600;
  color: var(--color-emerald);
  margin-bottom: 4px;
}

.photo-info {
  font-size: 9px;
  color: #667781;
}

.form-group-phone {
  margin-bottom: 14px;
  border-bottom: 1px solid #202c33;
  padding-bottom: 6px;
}

.form-group-phone label {
  display: block;
  font-size: 10px;
  color: #8696a0;
  margin-bottom: 4px;
}

.form-group-phone input {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 12.5px;
  outline: none;
}

.floating-hudhud-small-container {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

.hudhud-small-helper {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.btn-bottom {
  margin-top: auto;
}

/* Screen 3: Chat List */
.chatlist-header {
  margin-bottom: 10px;
}

.chatlist-header .top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.left-dots {
  display: flex;
  gap: 4px;
}

.dot-green {
  width: 6px;
  height: 6px;
  background: #25d366;
  border-radius: 50%;
}

.right-icons {
  display: flex;
  gap: 16px;
  color: #a8b8c2;
}

.header-icon {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.plus-icon {
  color: #25d366;
}

.chatlist-header h2 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 10px;
}

.search-box {
  display: flex;
  align-items: center;
  background: #111b21;
  border-radius: 8px;
  padding: 6px 12px;
}

.search-icon {
  width: 12px;
  height: 12px;
  color: #8696a0;
  margin-right: 8px;
}

.search-box input {
  background: none;
  border: none;
  color: #fff;
  font-size: 11px;
  width: 100%;
}

.chats-container {
  flex: 1;
  overflow-y: auto;
  margin-top: 10px;
  display: flex;
  flex-direction: column;
}

.chat-row {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #111b21;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-row:hover {
  background: rgba(255, 255, 255, 0.02);
}

.chat-avatar-text {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #50606d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #fff;
  font-size: 12px;
  flex-shrink: 0;
}

.chat-avatar-img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-emerald);
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 230, 118, 0.2);
}

.chat-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.chat-title-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}

.chat-title-row strong {
  font-size: 12.5px;
  color: #e9edef;
}

.chat-time {
  font-size: 9.5px;
  color: #8696a0;
}

.chat-last-message {
  font-size: 10.5px;
  color: #8696a0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.featured-chat {
  background: rgba(0, 230, 118, 0.03);
  border-radius: var(--border-radius-md);
  padding: 10px;
  margin: 4px 0;
  border: 1px solid rgba(0, 230, 118, 0.05);
}

/* Bottom phone tab bar */
.phone-tab-bar {
  height: 44px;
  background: #111b21;
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin: 0 -18px -20px -18px;
  padding-bottom: 2px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 9px;
  color: #8696a0;
}

.tab-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  flex: 1;
  padding: 4px;
}

.tab-item i {
  width: 16px;
  height: 16px;
}

.tab-item.active {
  color: var(--color-emerald);
}

.hudhud-float-btn {
  position: absolute;
  right: 18px;
  bottom: 60px;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #25d366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
  cursor: pointer;
  z-index: 5;
  animation: float-hover 3s ease-in-out infinite;
}

.hudhud-float-btn img {
  width: 75%;
  height: 75%;
  object-fit: contain;
}

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

/* Screen 4: Chat Room */
.chatroom-header {
  height: 46px;
  background: #111b21;
  margin: -10px -18px 10px -18px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.back-btn {
  background: none;
  border: none;
  color: var(--color-emerald);
  cursor: pointer;
  padding: 4px;
}

.back-btn svg {
  width: 18px;
  height: 18px;
}

.chat-target-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid var(--color-emerald);
}

.chat-target-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-target-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.chat-target-info h4 {
  font-size: 11.5px;
  color: #fff;
}

.status-subtitle {
  font-size: 8.5px;
  color: var(--color-emerald);
  font-weight: 500;
}

.header-call-icons {
  display: flex;
  gap: 12px;
  color: #a8b8c2;
}

.room-icon {
  width: 14px;
  height: 14px;
  cursor: pointer;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px;
  background: radial-gradient(circle at center, #0e171e 0%, #0a0e11 100%);
  margin: 0 -18px 0 -18px;
  padding: 10px;
}

.system-message {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  text-align: center;
}

.system-message span {
  background: #182229;
  color: #ffe082;
  font-size: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 224, 130, 0.1);
  line-height: 1.3;
}

.message {
  display: flex;
  width: 100%;
}

.message.received {
  justify-content: flex-start;
}

.message.sent {
  justify-content: flex-end;
}

.message .bubble {
  max-width: 80%;
  padding: 8px 10px;
  font-size: 10.5px;
  line-height: 1.4;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.message.received .bubble {
  background: #202c33;
  color: #e9edef;
  border-radius: 0 8px 8px 8px;
}

.message.sent .bubble {
  background: #005c4b;
  color: #e9edef;
  border-radius: 8px 0 8px 8px;
}

.message-time {
  display: block;
  font-size: 7.5px;
  color: #8696a0;
  text-align: right;
  margin-top: 4px;
}

.quick-replies-container {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin: 8px -18px;
  padding: 4px 14px;
  scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.quick-replies-container::-webkit-scrollbar {
  display: none; /* Hide scrollbar for Chrome/Safari */
}

.quick-reply-btn {
  background: #111b21;
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-cyan);
  padding: 6px 10px;
  border-radius: 50px;
  font-size: 9px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.quick-reply-btn:hover {
  background: #202c33;
  border-color: var(--color-cyan);
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #111b21;
  padding: 8px 10px;
  margin: 0 -18px -20px -18px;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
}

.input-attach {
  background: none;
  border: none;
  color: #8696a0;
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

.input-attach svg {
  width: 16px;
  height: 16px;
}

.input-wrapper {
  flex: 1;
  background: #2a3942;
  border-radius: 8px;
  padding: 6px 12px;
  display: flex;
  align-items: center;
}

.input-wrapper input {
  width: 100%;
  background: none;
  border: none;
  color: #fff;
  font-size: 11px;
  outline: none;
}

.input-send {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--color-emerald);
  color: #000;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}

.input-send svg {
  width: 12px;
  height: 12px;
  margin-left: 1px;
}

.phone-home-indicator {
  width: 100px;
  height: 4px;
  background: #2b3a42;
  border-radius: 10px;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
}

/* Comparison Table */
.comparison-section {
  padding: 100px 0;
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(17, 27, 33, 0.3);
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

.comparison-table th, .comparison-table td {
  padding: 18px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.comparison-table th {
  background: rgba(11, 20, 26, 0.8);
  font-family: var(--font-title);
  font-weight: 700;
  color: var(--text-main);
  font-size: 1.1rem;
}

.comparison-table .hudhud-column {
  color: var(--color-emerald);
  font-weight: 800;
  text-shadow: 0 0 10px rgba(0, 230, 118, 0.2);
}

.comparison-table tr:hover {
  background: rgba(255, 255, 255, 0.01);
}

.hudhud-cell-value {
  font-weight: 600;
  color: var(--text-main);
}

.hudhud-cell-value.green-bg {
  background: rgba(0, 230, 118, 0.04);
  color: #fff;
  border-left: 2px solid rgba(0, 230, 118, 0.3);
  border-right: 2px solid rgba(0, 230, 118, 0.3);
}

/* Download Section */
.download-section {
  padding: 100px 0;
}

.download-card {
  background: radial-gradient(circle at top right, rgba(0, 240, 255, 0.05) 0%, rgba(0, 230, 118, 0.03) 50%, rgba(6, 9, 11, 0.6) 100%);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 32px;
  padding: 60px;
  max-width: 900px;
  margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
}

.download-desc {
  max-width: 600px;
  margin: 0 auto 40px auto;
  font-size: 1.1rem;
}

.download-buttons-group {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  margin-bottom: 48px;
}

/* Terminal Box */
.terminal-box {
  background: #020406;
  border-radius: var(--border-radius-md);
  border: 1px solid rgba(255, 255, 255, 0.08);
  max-width: 600px;
  margin: 0 auto;
  overflow: hidden;
  text-align: left;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
}

.terminal-header {
  background: #0b1013;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  display: inline-block;
}

.term-dot.red { background: #ff5f56; }
.term-dot.yellow { background: #ffbd2e; }
.term-dot.green { background: #27c93f; }

.term-title {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-left: 12px;
  font-weight: 500;
}

.terminal-body {
  padding: 20px 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.85rem;
  line-height: 1.6;
}

.command-line {
  color: #fff;
  margin-bottom: 8px;
}

.response-line {
  color: var(--color-emerald);
  margin-bottom: 4px;
  opacity: 0.95;
}

/* Footer */
.main-footer {
  background: var(--bg-dark-deep);
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 80px 0 40px 0;
  margin-top: 60px;
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 60px;
}

.footer-brand p {
  margin-top: 16px;
  font-size: 0.9rem;
  max-width: 280px;
  margin-bottom: 12px;
}

.footer-emails {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 10px;
}

.footer-emails a {
  color: var(--color-emerald);
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
}

.footer-emails a:hover {
  color: var(--color-cyan);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.footer-emails .email-sep {
  color: var(--text-dim);
  margin: 0 6px;
}

.footer-logo {
  height: 42px;
  filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.2));
}

.link-column h4 {
  font-size: 1.05rem;
  margin-bottom: 20px;
  color: var(--text-main);
  position: relative;
}

.link-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.link-column a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.link-column a:hover {
  color: var(--color-emerald);
  padding-left: 4px;
}

.copyright-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding-top: 30px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.social-icons {
  display: flex;
  gap: 16px;
}

.social-icons a {
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.social-icons a:hover {
  color: var(--color-emerald);
}

.social-icons svg {
  width: 18px;
  height: 18px;
}

/* Animations */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s forwards ease-out;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll Animation Fallback helper classes */
.scroll-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Queries */
@media (max-width: 1024px) {
  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  
  .hero-description {
    margin: 0 auto 40px auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-stats {
    justify-content: center;
  }
  
  .simulator-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.8rem;
  }
  
  .section-title {
    font-size: 2.2rem;
  }
  
  .desktop-nav {
    display: none;
  }
  
  .mobile-menu-toggle {
    display: block;
  }
  
  .download-card {
    padding: 30px;
  }
  
  .copyright-row {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons {
    flex-direction: column;
  }
  
  .footer-container {
    grid-template-columns: 1fr;
  }
  
  .canvas-wrapper {
    height: 300px;
  }
}

/* ==========================================
   INTERACTIVE UPGRADES: HERO & SIMULATION LAB
   ========================================== */

/* ZK Encryption Tool (Hero) */
.hero-zk-tool {
  background: rgba(17, 27, 33, 0.45);
  border: 1px solid rgba(0, 240, 255, 0.1);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  margin: 25px 0 35px 0;
  backdrop-filter: blur(12px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.3);
  text-align: left;
}

.zk-tool-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
  margin-bottom: 12px;
}

.zk-tool-header .lock-icon {
  width: 16px;
  height: 16px;
}

.zk-input-wrapper input {
  width: 100%;
  background: rgba(6, 9, 11, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  color: #fff;
  font-size: 13px;
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.2s ease;
}

.zk-input-wrapper input:focus {
  border-color: var(--color-cyan);
}

.zk-output-box {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.zk-output-box .output-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.zk-output-box .label {
  font-size: 10.5px;
  color: var(--text-muted);
  font-weight: 500;
}

.zk-output-box .value {
  font-family: monospace;
  font-size: 11px;
  background: rgba(0,0,0,0.4);
  padding: 6px 10px;
  border-radius: 4px;
  word-break: break-all;
  white-space: normal;
  border-left: 2px solid;
}

.zk-output-box .value.text-emerald {
  border-color: var(--color-emerald);
}

.zk-output-box .value.text-cyan {
  border-color: var(--color-cyan);
}

/* P2P Mesh Canvas Container (Hero Right) */
.p2p-playground-container {
  width: 100%;
  background: rgba(11, 20, 26, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(0,0,0,0.5), inset 0 1px 1px rgba(255,255,255,0.02);
}

.playground-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  background: rgba(6, 9, 11, 0.5);
  border-bottom: 1px solid rgba(255,255,255,0.03);
}

.playground-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  font-family: var(--font-title);
}

.active-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 10px var(--color-emerald);
  animation: pulse-active 1.8s infinite;
}

@keyframes pulse-active {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.6; }
  100% { transform: scale(1); opacity: 1; }
}

.playground-info {
  font-size: 11px;
  color: var(--text-muted);
}

.canvas-playground-wrapper {
  position: relative;
  width: 100%;
  height: 480px;
  background: radial-gradient(circle at 50% 50%, rgba(17,27,33,0.3) 0%, rgba(6,9,11,0.8) 100%);
  cursor: crosshair;
}

#heroPlaygroundCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Floating widgets inside playground */
.floating-media-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  z-index: 5;
  background: rgba(17, 27, 33, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: var(--border-radius-md);
  padding: 10px;
  width: 170px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.4);
  animation: float-widget-y 6s ease-in-out infinite alternate;
}

.mini-video-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mini-video {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--color-cyan);
}

.mini-video-text {
  display: flex;
  flex-direction: column;
}

.mini-video-text strong {
  font-size: 11px;
  color: #fff;
}

.mini-video-text span {
  font-size: 9px;
  color: var(--text-muted);
}

.floating-warm-bubble {
  position: absolute;
  bottom: 60px;
  right: 20px;
  z-index: 5;
  background: rgba(17, 27, 33, 0.85);
  border: 1px solid rgba(0, 230, 118, 0.15);
  backdrop-filter: blur(10px);
  border-radius: 16px 16px 0 16px;
  padding: 12px 14px;
  width: 220px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.4);
  text-align: left;
  animation: float-widget-y 5s ease-in-out infinite alternate-reverse;
}

.warm-bubble-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.warm-avatar {
  font-size: 14px;
}

.warm-bubble-header strong {
  font-size: 11.5px;
  color: #fff;
}

.floating-warm-bubble p {
  font-size: 10.5px;
  line-height: 1.4;
  color: var(--text-main);
  margin-bottom: 8px;
}

.warm-bubble-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.crypto-seal {
  font-size: 9px;
  color: var(--color-emerald);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 600;
}

.crypto-seal svg {
  width: 8px;
  height: 8px;
}

.warm-bubble-footer .time {
  font-size: 8.5px;
  color: var(--text-muted);
}

@keyframes float-widget-y {
  0% { transform: translateY(0); }
  100% { transform: translateY(-12px); }
}

.playground-hud {
  position: absolute;
  bottom: 15px;
  left: 15px;
  z-index: 5;
  background: rgba(6, 9, 11, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--border-radius-sm);
  padding: 8px 12px;
  display: flex;
  gap: 15px;
  font-size: 9.5px;
  font-family: monospace;
}

.hud-item {
  display: flex;
  gap: 4px;
}

.hud-label {
  color: var(--text-muted);
}

.hud-value {
  font-weight: 700;
}

/* Simulation Lab Navigation Tabs */
.sim-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.sim-tab-btn {
  background: rgba(17, 27, 33, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.04);
  padding: 12px 24px;
  border-radius: 50px;
  color: var(--text-muted);
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.sim-tab-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.sim-tab-btn:hover {
  background: rgba(24, 34, 41, 0.7);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.1);
}

.sim-tab-btn:hover svg {
  transform: scale(1.1);
}

.sim-tab-btn.active {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--color-cyan);
  color: var(--color-cyan);
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.15);
}

/* Simulation Lab Grid Layout */
.sim-lab-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.sim-controls-panel {
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.sim-control-content {
  display: none;
  flex-direction: column;
}

.sim-control-content.active {
  display: flex;
  animation: simple-fade-in 0.4s ease forwards;
}

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

.sim-control-content h3 {
  font-size: 1.8rem;
  color: #fff;
  margin-bottom: 16px;
  font-weight: 700;
}

.sim-control-content p {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  margin-bottom: 30px;
}

/* WebRTC Console logs style */
.webrtc-console {
  background: #06090b;
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--border-radius-md);
  padding: 16px;
  margin-bottom: 25px;
  font-family: monospace;
  font-size: 11.5px;
  color: #c9d1d9;
  min-height: 140px;
}

.console-title {
  color: var(--text-dim);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.console-logs {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 110px;
  overflow-y: auto;
}

.log-idle {
  color: var(--text-dim);
}

.log-info { color: #8696a0; }
.log-success { color: var(--color-emerald); }
.log-warn { color: var(--color-cyan); }

.control-actions {
  display: flex;
  gap: 15px;
  margin-bottom: 25px;
}

.sim-tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.04);
  padding: 8px 16px;
  border-radius: 6px;
  width: fit-content;
  font-size: 11px;
  color: var(--text-muted);
}

.sim-tech-badge svg {
  width: 14px;
  height: 14px;
  color: var(--color-cyan);
}

/* Matrix Control Sliders */
.slider-group {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.slider-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
}

.neon-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 5px;
  background: rgba(255,255,255,0.08);
  outline: none;
  transition: background .15s ease-in-out;
}

.neon-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--color-cyan);
  box-shadow: 0 0 8px var(--color-cyan);
  cursor: pointer;
  transition: transform 0.1s ease;
}

.neon-slider::-webkit-slider-thumb:hover {
  transform: scale(1.2);
}

/* RAM Status indicator widget */
.ram-status-widget {
  background: rgba(17, 27, 33, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: var(--border-radius-md);
  padding: 16px 20px;
  margin-bottom: 25px;
}

.status-indicator {
  display: flex;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}

.status-indicator .dot {
  display: inline-flex;
  align-items: center;
}

.status-indicator .dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
  margin-right: 8px;
}

.status-indicator .dot.wiped::before {
  background: #ff5252;
  box-shadow: 0 0 8px #ff5252;
}

.ram-details {
  font-size: 12px;
  color: var(--text-muted);
}

/* ACTIVE SIMULATION PHONE VIEWPORTS */
.sim-screen-view {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
}

.sim-screen-view.active {
  display: flex;
}

/* WebRTC Call Screens inside Phone */
.webrtc-screen-wrapper {
  width: 100%;
  height: 100%;
  background: #0b141a;
  position: relative;
  overflow: hidden;
}

.webrtc-state-screen {
  display: none;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.webrtc-state-screen.active {
  display: flex;
}

.webrtc-connecting-badge {
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--color-cyan);
  border-radius: 30px;
  padding: 4px 12px;
  font-size: 9px;
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 40px;
  text-transform: uppercase;
}

.webrtc-caller-avatar {
  font-size: 3.5rem;
  margin-bottom: 20px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}

.webrtc-state-screen h4 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.webrtc-state-screen p {
  font-size: 11px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.webrtc-loading-waves {
  display: flex;
  gap: 5px;
  margin-bottom: 40px;
}

.webrtc-loading-waves span {
  width: 6px;
  height: 6px;
  background: var(--color-cyan);
  border-radius: 50%;
  animation: call-pulse 1.2s infinite ease-in-out;
}

.webrtc-loading-waves span:nth-child(2) { animation-delay: 0.2s; }
.webrtc-loading-waves span:nth-child(3) { animation-delay: 0.4s; }

@keyframes call-pulse {
  0%, 100% { transform: scale(1); opacity: 0.4; }
  50% { transform: scale(1.6); opacity: 1; }
}

.ring-animation {
  animation: answer-ring 1.6s infinite;
}

@keyframes answer-ring {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0.5); }
  70% { transform: scale(1.08); box-shadow: 0 0 0 10px rgba(0, 230, 118, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); }
}

/* Connected Call Stream */
.webrtc-video-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.webrtc-remote-video {
  flex: 1;
  width: 100%;
  position: relative;
}

.call-video-stream {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.webrtc-local-video {
  width: 70px;
  height: 95px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,0.2);
  background: #000;
  position: absolute;
  top: 50px;
  right: 12px;
  z-index: 10;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 16px rgba(0,0,0,0.5);
  transition: opacity 0.3s ease;
}

.local-avatar-mock {
  font-size: 24px;
}

.call-badge {
  position: absolute;
  bottom: 8px;
  font-size: 8px;
  background: rgba(0,0,0,0.6);
  padding: 2px 6px;
  border-radius: 4px;
  color: #fff;
  z-index: 5;
}

.call-badge.remote { left: 12px; }
.call-badge.local { bottom: 4px; left: 50%; transform: translateX(-50%); width: max-content; }

.webrtc-call-hud {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
  pointer-events: none;
}

.call-duration {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.call-security-seal {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 8.5px;
  color: var(--color-emerald);
  background: rgba(0,0,0,0.5);
  padding: 3px 8px;
  border-radius: 30px;
  width: fit-content;
  backdrop-filter: blur(4px);
}

.call-security-seal svg {
  width: 9px;
  height: 9px;
}

.webrtc-controls {
  position: absolute;
  bottom: 25px;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 15px;
  z-index: 10;
}

.call-action-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17, 27, 33, 0.7);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  backdrop-filter: blur(4px);
  transition: all 0.2s ease;
}

.call-action-btn svg {
  width: 15px;
  height: 15px;
}

.call-action-btn:hover {
  background: rgba(32, 44, 51, 0.9);
  transform: translateY(-2px);
}

.call-action-btn.active {
  background: #ff5252;
  border-color: #ff5252;
}

.call-action-btn.btn-hangup {
  background: #ff5252;
  border-color: #ff5252;
  width: 42px;
  height: 42px;
}

.call-action-btn.btn-hangup:hover {
  background: #e53935;
}

/* Matrix Code Rain Canvas Screen */
.matrix-screen-wrapper {
  width: 100%;
  height: 100%;
  background: #000;
  position: relative;
}

#matrixCanvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.55;
  z-index: 1;
}

.matrix-chat-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(11,20,26,0.85) 100%);
}

.mock-msg {
  padding: 8px 12px;
  border-radius: 10px;
  max-width: 80%;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transform: translateY(10px);
  opacity: 0;
  animation: mock-slide-up 0.6s forwards cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes mock-slide-up {
  to { transform: translateY(0); opacity: 1; }
}

.mock-msg span {
  display: block;
  font-size: 8px;
  color: var(--color-cyan);
  font-weight: 700;
  margin-bottom: 2px;
}

.mock-msg p {
  font-size: 10.5px;
  color: #fff;
  word-break: break-all;
}

.mock-received {
  align-self: flex-start;
  background: rgba(32, 44, 51, 0.85);
  border-left: 2px solid var(--color-cyan);
  animation-delay: 0.2s;
}

.mock-sent {
  align-self: flex-end;
  background: rgba(0, 92, 75, 0.85);
  border-right: 2px solid var(--color-emerald);
  animation-delay: 0.8s;
}

/* Ephemeral RAM-Only Story Screen */
.ram-screen-wrapper {
  width: 100%;
  height: 100%;
  background: #0a0e11;
  position: relative;
  overflow: hidden;
}

.ram-story-container {
  display: none;
  width: 100%;
  height: 100%;
  position: relative;
}

.ram-story-container.active {
  display: flex;
}

.story-image-fit {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter 0.5s ease, opacity 0.5s ease;
}

.story-top-bars {
  position: absolute;
  top: 40px;
  left: 0;
  width: 100%;
  padding: 0 10px;
  z-index: 5;
}

.story-progress-bg {
  width: 100%;
  height: 3px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  overflow: hidden;
}

.story-progress-fill {
  height: 100%;
  width: 100%;
  background: #fff;
  transform: translateX(-100%);
}

.story-user-tag {
  position: absolute;
  top: 50px;
  left: 10px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px;
}

.user-avatar-small {
  font-size: 18px;
}

.user-tag-text {
  display: flex;
  flex-direction: column;
}

.user-tag-text strong {
  font-size: 11px;
  color: #fff;
}

.user-tag-text span {
  font-size: 8px;
  color: rgba(255,255,255,0.7);
}

.story-timer-ring {
  position: absolute;
  top: 50px;
  right: 10px;
  width: 32px;
  height: 32px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
}

.story-timer-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.story-timer-ring circle {
  fill: none;
  stroke: var(--color-emerald);
  stroke-width: 2;
  stroke-dasharray: 138; /* 2 * PI * 22 */
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.1s linear;
}

.story-timer-ring .timer-hours {
  position: absolute;
  font-size: 8px;
  font-weight: 700;
  color: #fff;
}

/* Wiped RAM Screen */
.ram-wiped-screen {
  display: flex;
  width: 100%;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 24px;
  text-align: center;
  background: radial-gradient(circle at 50% 50%, #111b21 0%, #06090b 100%);
  color: #fff;
  animation: glitch-reveal 0.3s ease;
}

@keyframes glitch-reveal {
  0% { transform: scale(0.95); opacity: 0; filter: blur(4px); }
  100% { transform: scale(1); opacity: 1; filter: blur(0); }
}

.glitch-icon {
  font-size: 2.2rem;
  color: var(--color-cyan);
  margin-bottom: 20px;
  animation: glitch-icon-anim 2s infinite alternate;
}

.glitch-icon svg {
  width: 40px;
  height: 40px;
}

@keyframes glitch-icon-anim {
  0% { transform: skewX(0deg); text-shadow: 0 0 5px var(--color-cyan); }
  90% { transform: skewX(0deg); }
  95% { transform: skewX(4deg); text-shadow: -2px 0 red, 2px 0 blue; }
  100% { transform: skewX(0deg); text-shadow: 0 0 5px var(--color-cyan); }
}

.ram-wiped-screen h4 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--color-cyan);
}

.ram-wiped-screen p {
  font-size: 11px;
  line-height: 1.5;
  color: var(--text-muted);
  margin-bottom: 25px;
}

.ram-empty-badge {
  font-family: monospace;
  font-size: 10px;
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.1);
  padding: 6px 12px;
  border-radius: 4px;
  color: var(--color-cyan);
}

/* RESPONSIVE UPGRADES */
@media (max-width: 1024px) {
  .sim-lab-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .sim-controls-panel {
    min-height: auto;
    text-align: center;
  }
  
  .sim-tech-badge, .control-actions {
    margin-left: auto;
    margin-right: auto;
  }
  
  .control-actions {
    justify-content: center;
  }
  
  .floating-warm-bubble {
    right: 10px;
    bottom: 50px;
  }
  
  .floating-media-badge {
    left: 10px;
    top: 10px;
  }
}

/* ==========================================================================
   LANGUAGE SELECTOR & RTL STYLES
   ========================================================================== */

/* Header Language Selector */
.lang-selector-wrapper {
  position: relative;
  margin-right: 10px;
}

.lang-selector-btn.circular-btn {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  font-family: inherit;
  font-size: 20px; /* Big crisp flag emoji */
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.lang-selector-btn.circular-btn:hover {
  background: rgba(0, 230, 118, 0.08);
  border-color: var(--color-emerald);
  transform: scale(1.08) rotate(5deg);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.25);
}

.lang-selector-btn.circular-btn:active {
  transform: scale(0.95);
}

.lang-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: rgba(13, 15, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px;
  display: none;
  flex-direction: column;
  min-width: 150px;
  z-index: 1000;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 230, 118, 0.05);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateY(10px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lang-dropdown.show {
  display: flex;
  transform: translateY(0);
  opacity: 1;
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 255, 255, 0.7);
  padding: 10px 14px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  transition: all 0.25s ease;
  text-align: left;
}

.lang-option .flag-emoji {
  font-size: 18px;
  transition: transform 0.2s ease;
}

.lang-option:hover {
  background: rgba(0, 230, 118, 0.1);
  color: #fff;
  transform: translateX(4px);
}

.lang-option:hover .flag-emoji {
  transform: scale(1.15);
}

.lang-option.active {
  background: rgba(0, 230, 118, 0.15);
  color: var(--color-emerald);
  font-weight: 600;
}

/* Mobile Language Selector */
.mobile-lang-selector {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
  padding: 15px;
  border-top: 1px solid rgba(255,255,255,0.05);
}

.mobile-lang-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.mobile-lang-btn.active {
  background: var(--color-emerald);
  border-color: var(--color-emerald);
  color: #000;
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.4);
}

/* Creative Footer P2P Node Switcher */
.footer-nodes-container {
  margin-top: 40px;
  margin-bottom: 30px;
  padding: 20px;
  background: rgba(10, 11, 14, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.03);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}

.nodes-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--color-emerald);
  border-radius: 50%;
  position: relative;
  display: inline-block;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--color-emerald);
  border-radius: 50%;
  animation: pulse-ring 1.8s infinite ease-in-out;
}

@keyframes pulse-ring {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}

.nodes-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.node-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 12px 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  color: #fff;
  font-family: inherit;
  position: relative;
  overflow: hidden;
}

.node-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.05), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.node-card:hover {
  border-color: rgba(0, 230, 118, 0.3);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.node-card:hover::before {
  opacity: 1;
}

.node-card.active {
  border-color: var(--color-emerald);
  background: rgba(0, 230, 118, 0.04);
  box-shadow: 0 0 15px rgba(0, 230, 118, 0.1);
}

.node-card.active .node-indicator {
  background: var(--color-emerald);
  box-shadow: 0 0 8px var(--color-emerald);
}

.node-indicator {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.node-flag {
  font-size: 20px;
  line-height: 1;
}

.node-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.node-name {
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.node-latency {
  font-size: 11px;
  color: var(--color-emerald);
  font-family: monospace;
}

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

[dir="rtl"] .lang-dropdown {
  right: auto;
  left: 0;
}

[dir="rtl"] .lang-option {
  text-align: right;
}

[dir="rtl"] .header-actions {
  flex-direction: row-reverse;
}

[dir="rtl"] .nav-links {
  flex-direction: row-reverse;
}

[dir="rtl"] .logo-container {
  margin-right: 0;
  margin-left: auto;
}

[dir="rtl"] .social-icons {
  margin-left: 0;
  margin-right: auto;
  flex-direction: row-reverse;
}

[dir="rtl"] .copyright-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .node-card {
  text-align: right;
  flex-direction: row-reverse;
}

[dir="rtl"] .chat-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .chat-details {
  text-align: right;
}

[dir="rtl"] .chat-title-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .message.received {
  flex-direction: row-reverse;
}

[dir="rtl"] .message.sent {
  flex-direction: row;
}

[dir="rtl"] .message.received .bubble {
  border-radius: 16px 16px 16px 2px !important;
  text-align: right;
}

[dir="rtl"] .message.sent .bubble {
  border-radius: 16px 16px 2px 16px !important;
  text-align: right;
}

[dir="rtl"] .chat-input-row {
  flex-direction: row-reverse;
}

[dir="rtl"] .chat-input-row button {
  transform: scaleX(-1);
}

[dir="rtl"] .webrtc-state-screen {
  text-align: center;
}

[dir="rtl"] .webrtc-remote-video .call-badge.remote {
  left: auto;
  right: 10px;
}

[dir="rtl"] .webrtc-local-video {
  left: auto;
  right: 15px;
}

[dir="rtl"] .call-duration {
  left: auto;
  right: 20px;
}

[dir="rtl"] .call-security-seal {
  right: auto;
  left: 20px;
  flex-direction: row-reverse;
}

[dir="rtl"] .form-group-phone label {
  text-align: right;
  display: block;
}

[dir="rtl"] .form-group label {
  text-align: right;
  display: block;
}

/* Responsive Nodes Grid */
@media (max-width: 991px) {
  .nodes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 576px) {
  .nodes-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Language visibility rules for subpages */
body [lang] {
  display: none;
}
html[lang="tr"] body [lang="tr"] {
  display: block;
}
html[lang="en"] body [lang="en"] {
  display: block;
}
html[lang="ar"] body [lang="ar"] {
  display: block;
}
html[lang="fr"] body [lang="fr"] {
  display: block;
}
html[lang="de"] body [lang="de"] {
  display: block;
}

/* Document Page Layouts */
.document-hero {
  padding: 120px 0 40px;
  text-align: center;
  background: radial-gradient(circle at top, rgba(0, 230, 118, 0.08) 0%, transparent 60%);
}
.document-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-main);
  text-shadow: 0 0 20px rgba(0, 230, 118, 0.1);
}
.document-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 30px;
}
.document-body-card {
  max-width: 800px;
  margin: 0 auto 80px;
  padding: 40px;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  line-height: 1.8;
}
.document-body-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  color: var(--text-main);
  margin-top: 35px;
  margin-bottom: 15px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  padding-bottom: 8px;
}
.document-body-card p {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 20px;
}
.document-body-card ul {
  margin-left: 24px;
  margin-bottom: 20px;
  list-style-type: square;
}
.document-body-card li {
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 8px;
}
.back-btn-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
}
[dir="rtl"] .document-body-card h2 {
  text-align: right;
}
[dir="rtl"] .document-body-card p {
  text-align: right;
}
[dir="rtl"] .document-body-card ul {
  margin-left: 0;
  margin-right: 24px;
  text-align: right;
}
[dir="rtl"] .document-body-card li {
  text-align: right;
}
