:root {
  --bg: #0d1117;
  --surface: #161b22;
  --surface-low: #181c22;
  --surface-high: #262a31;
  --surface-highest: #31353c;
  --primary: #1b6ef3;
  --primary-light: #b0c6ff;
  --secondary: #41ddc2;
  --secondary-deep: #00c1a7;
  --gradient: linear-gradient(135deg, #1b6ef3, #41ddc2);
  --text: #dfe2eb;
  --text-muted: #8b949e;
  --text-subtle: #c2c6d7;
  --border: rgba(255, 255, 255, 0.08);
  --border-active: rgba(27, 110, 243, 0.5);
  --glow-blue: rgba(27, 110, 243, 0.15);
  --glow-teal: rgba(0, 194, 168, 0.15);
  --error: #ffb4ab;
  --error-container: #93000a;
  --star: #ffb800;
  --radius: 16px;
  --radius-compact: 8px;
  --radius-pill: 9999px;
  --container: 1140px;
  --gutter: 24px;
  --section-padding: 128px 0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-arabic: 'Cairo', sans-serif;
  --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

html[dir="rtl"] body {
  font-family: var(--font-arabic);
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

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

.section {
  padding: var(--section-padding);
}

.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 48px;
  color: var(--text);
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  text-align: center;
  max-width: 600px;
  margin: -32px auto 48px;
}

/* ===== Nav ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

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

.nav-logo {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-subtle);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--text);
}

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

.lang-toggle {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  font-family: inherit;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--glow-blue);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  background: var(--glow-blue);
}

.btn-ghost {
  background: transparent;
  color: var(--text-subtle);
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 8px;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== Hero ===== */
.hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--glow-blue) 0%, transparent 70%);
  pointer-events: none;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 32px;
  max-width: 540px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-badge .material-symbols-outlined {
  color: var(--star);
  font-size: 20px;
}

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

.hero-phone {
  width: 300px;
  height: 580px;
  border-radius: 40px;
  background: var(--surface);
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  animation: float 4s ease-in-out infinite;
}

.hero-phone-inner {
  width: 100%;
  height: 100%;
  border-radius: 24px;
  background: var(--gradient);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  text-align: center;
}

.hero-phone-inner .material-symbols-outlined {
  font-size: 48px;
  color: #fff;
}

.hero-phone-inner span:not(.material-symbols-outlined) {
  color: #fff;
  font-weight: 600;
  font-size: 18px;
}

.hero-phone-inner small {
  color: rgba(255,255,255,0.7);
  font-size: 13px;
}

.hero-phone-notch {
  position: absolute;
  top: 12px;
  width: 120px;
  height: 24px;
  background: #000;
  border-radius: 20px;
}

.store-badges {
  display: flex;
  gap: 12px;
  margin-top: 12px;
}

.store-badges img {
  height: 44px;
}

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

/* ===== Stats ===== */
.stats {
  padding: 0 0 80px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.stat-card {
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  text-align: center;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px var(--glow-blue);
}

.stat-value {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
  margin-bottom: 8px;
}

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

/* ===== How It Works ===== */
.how-it-works {
  padding: var(--section-padding);
  background: var(--surface-low);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 2px;
  background: var(--gradient);
  opacity: 0.3;
}

.step-card {
  text-align: center;
  position: relative;
  z-index: 1;
}

.step-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all var(--transition);
}

.step-card:hover .step-icon {
  border-color: var(--primary);
  box-shadow: 0 0 24px var(--glow-blue);
  transform: translateY(-4px);
}

.step-icon .material-symbols-outlined {
  font-size: 32px;
  color: var(--primary);
}

.step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-body {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Features ===== */
.features {
  padding: var(--section-padding);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
}

.feature-card {
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 12px 40px var(--glow-blue);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--glow-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.feature-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--primary);
}

.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-body {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ===== Specializations ===== */
.specializations {
  padding: var(--section-padding);
  background: var(--surface-low);
}

.spec-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 16px;
}

.spec-tag {
  padding: 10px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-subtle);
  transition: all var(--transition);
  cursor: default;
}

.spec-tag:hover {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  transform: translateY(-2px);
}

.spec-subtitle {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== For Doctors ===== */
.for-doctors {
  padding: var(--section-padding);
}

.for-doctors .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.doctor-content h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: left;
}

.doctor-content > p {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 24px;
  line-height: 1.7;
}

.doctor-benefits {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}

.doctor-benefits li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-subtle);
}

.doctor-benefits .material-symbols-outlined {
  color: var(--secondary);
  font-size: 20px;
}

.doctor-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.doctor-card {
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  max-width: 400px;
  text-align: center;
}

.doctor-card .material-symbols-outlined {
  font-size: 64px;
  color: var(--secondary);
  margin-bottom: 16px;
}

.doctor-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.doctor-card p {
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Testimonials ===== */
.testimonials {
  padding: var(--section-padding);
  background: var(--surface-low);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
}

.testimonial-card {
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  border-top: 3px solid var(--primary);
}

.testimonial-card:nth-child(2) {
  border-top-color: var(--secondary);
}

.testimonial-card:nth-child(3) {
  border-top-color: var(--star);
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px var(--glow-blue);
}

.testimonial-stars {
  color: var(--star);
  margin-bottom: 16px;
  font-size: 20px;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 15px;
  color: var(--text-subtle);
  line-height: 1.7;
  margin-bottom: 16px;
  font-style: italic;
}

.testimonial-author {
  font-weight: 600;
  font-size: 14px;
}

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

/* ===== FAQ Accordion ===== */
.faq {
  padding: var(--section-padding);
}

.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-compact);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition);
}

.faq-item:hover {
  border-color: var(--border-active);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  user-select: none;
  transition: color var(--transition);
}

.faq-question .material-symbols-outlined {
  transition: transform var(--transition);
  color: var(--text-muted);
}

.faq-item.active .faq-question .material-symbols-outlined {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ===== Download CTA ===== */
.download {
  padding: var(--section-padding);
  background: linear-gradient(135deg, rgba(27, 110, 243, 0.1), rgba(65, 221, 194, 0.1));
  position: relative;
  overflow: hidden;
}

.download::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--gradient);
  opacity: 0.05;
}

.download .container {
  position: relative;
  z-index: 1;
  text-align: center;
}

.download h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 16px;
}

.download > .container > p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.download-apps {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.download-app h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
}

.download-badges {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.download-badges img {
  height: 44px;
}

/* ===== Footer ===== */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-col h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--text);
}

.footer-col a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 20px 0;
  z-index: 999;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-banner p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.cookie-actions {
  display: flex;
  gap: 12px;
  flex-shrink: 0;
}

.cookie-actions .btn {
  padding: 8px 20px;
  font-size: 13px;
}

/* ===== About Page ===== */
.about-hero {
  padding: 80px 0 60px;
  text-align: center;
  position: relative;
}

.about-hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 400px;
  background: radial-gradient(ellipse, var(--glow-blue) 0%, transparent 70%);
  pointer-events: none;
}

.about-hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.about-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.about-section {
  padding: 64px 0;
}

.about-section:nth-child(even) {
  background: var(--surface-low);
}

.about-section h2 {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 24px;
}

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

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
}

.value-card {
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
}

.value-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 8px 32px var(--glow-blue);
}

.value-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--glow-teal);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.value-icon .material-symbols-outlined {
  font-size: 24px;
  color: var(--secondary);
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.value-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.diff-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 24px;
  background: var(--surface);
  border-radius: var(--radius-compact);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.diff-item:hover {
  border-color: var(--border-active);
}

.diff-item .material-symbols-outlined {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.diff-item h4 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.diff-item p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* ===== Support Page ===== */
.support-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.support-hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

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

.search-box {
  max-width: 640px;
  margin: 0 auto 24px;
  position: relative;
}

.search-box .material-symbols-outlined {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 24px;
}

.search-box input {
  width: 100%;
  padding: 16px 20px 16px 56px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text);
  font-size: 16px;
  font-family: var(--font-sans);
  transition: all var(--transition);
  outline: none;
}

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

.search-box input::placeholder {
  color: var(--text-muted);
}

.popular-tags {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.popular-tags .spec-tag {
  font-size: 13px;
  padding: 6px 16px;
  cursor: pointer;
}

.search-status {
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.search-results-group {
  margin-bottom: 8px;
}

.search-results-group-header {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.search-results-group-header a {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
}

.search-results-group-header a:hover {
  text-decoration: underline;
}

.search-result-item {
  border-left: 3px solid var(--primary);
  border-radius: 0 var(--radius-compact) var(--radius-compact) 0;
}

.search-result-item.is-legal {
  border-left-color: var(--secondary);
}

.search-result-item .faq-question {
  font-size: 14px;
}

.search-result-section {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  margin-bottom: 4px;
}

.search-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.search-empty .material-symbols-outlined {
  font-size: 48px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.search-empty p {
  font-size: 18px;
  margin-bottom: 8px;
}

.search-empty small {
  font-size: 14px;
}

mark {
  background: rgba(27, 110, 243, 0.25);
  color: var(--primary-light);
  padding: 0 2px;
  border-radius: 2px;
}

.legal-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gutter);
  max-width: 900px;
  margin: 0 auto;
}

.legal-quick-card {
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: all var(--transition);
  text-decoration: none;
  color: inherit;
}

.legal-quick-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
  box-shadow: 0 8px 32px var(--glow-blue);
}

.legal-quick-card .material-symbols-outlined {
  font-size: 32px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.legal-quick-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.legal-quick-card p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.faq-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 40px;
}

.faq-tab {
  padding: 10px 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: inherit;
}

.faq-tab.active {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
}

.faq-tab:hover:not(.active) {
  border-color: var(--primary);
  color: var(--text);
}

.faq-categories {
  max-width: 800px;
  margin: 0 auto;
}

.faq-category {
  margin-bottom: 32px;
}

.faq-category h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.faq-category h3 .material-symbols-outlined {
  color: var(--primary);
}

.support-cta {
  text-align: center;
  padding: 64px 0;
  border-top: 1px solid var(--border);
}

.support-cta h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.support-cta p {
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== Contact Page ===== */
.contact-hero {
  padding: 80px 0 60px;
  text-align: center;
}

.contact-hero h1 {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 16px;
}

.contact-hero p {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.contact-section {
  padding: 64px 0;
}

.emergency-notice {
  background: var(--error-container);
  border: 1px solid rgba(255, 180, 171, 0.3);
  border-radius: var(--radius);
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 40px;
}

.emergency-notice .material-symbols-outlined {
  color: var(--error);
  font-size: 24px;
  flex-shrink: 0;
}

.emergency-notice p {
  font-size: 14px;
  color: var(--error);
  line-height: 1.6;
  margin: 0;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gutter);
  margin-bottom: 48px;
}

.contact-card {
  background: rgba(22, 27, 34, 0.7);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition);
}

.contact-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-active);
  box-shadow: 0 8px 32px var(--glow-blue);
}

.contact-card .material-symbols-outlined {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 12px;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-card p, .contact-card a {
  font-size: 14px;
  color: var(--text-muted);
}

.contact-card a:hover {
  color: var(--primary);
}

.contact-hours {
  text-align: center;
  margin-bottom: 48px;
  padding: 24px;
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.contact-hours p {
  font-size: 15px;
  color: var(--text-muted);
}

.contact-form {
  max-width: 640px;
  margin: 0 auto;
}

.contact-form h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  text-align: center;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-compact);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font-sans);
  outline: none;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--glow-blue);
}

.form-group textarea {
  min-height: 140px;
  resize: vertical;
}

/* ===== Legal Pages ===== */
.legal-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  padding: 48px 0;
}

.legal-sidebar {
  position: sticky;
  top: 100px;
  align-self: start;
}

.legal-sidebar nav {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

.legal-sidebar h4 {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-sidebar a {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color var(--transition);
  border-left: 2px solid transparent;
  padding-left: 12px;
}

.legal-sidebar a:hover,
.legal-sidebar a.active {
  color: var(--primary);
  border-left-color: var(--primary);
}

.legal-header {
  padding: 48px 0 24px;
}

.legal-header h1 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-header .last-updated {
  font-size: 14px;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--surface);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
}

.breadcrumb {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

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

.legal-section {
  margin-bottom: 40px;
  padding-left: 20px;
  border-left: 3px solid var(--primary);
}

.legal-section h2 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 16px;
}

.legal-section p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 12px;
}

.legal-section ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 12px;
}

.legal-section ul li {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 6px;
  line-height: 1.6;
}

.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
  box-shadow: 0 4px 16px rgba(27, 110, 243, 0.3);
}

.back-to-top.show {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-2px);
}

/* ===== Scroll Reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RTL Overrides ===== */
html[dir="rtl"] .nav-links {
  direction: rtl;
}

html[dir="rtl"] .legal-section {
  border-left: none;
  border-right: 3px solid var(--primary);
  padding-left: 0;
  padding-right: 20px;
}

html[dir="rtl"] .legal-sidebar a {
  border-left: none;
  border-right: 2px solid transparent;
  padding-left: 0;
  padding-right: 12px;
}

html[dir="rtl"] .legal-sidebar a:hover,
html[dir="rtl"] .legal-sidebar a.active {
  border-right-color: var(--primary);
}

html[dir="rtl"] .search-box .material-symbols-outlined {
  left: auto;
  right: 20px;
}

html[dir="rtl"] .search-box input {
  padding: 16px 56px 16px 20px;
}

/* ===== Mobile ===== */
@media (max-width: 1024px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-subtitle {
    margin: 0 auto 32px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .hero-title {
    font-size: 48px;
  }

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

  .for-doctors .container {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .doctor-content h2 {
    text-align: center;
  }

  .doctor-benefits {
    align-items: center;
  }

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

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

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 32px;
  }

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

  .steps-grid::before {
    display: none;
  }

  .section {
    padding: 80px 0;
  }
}

@media (max-width: 767px) {
  .hero-title {
    font-size: 36px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .footer {
    padding: 48px 0 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px 24px;
    padding-bottom: 32px;
  }

  .footer-col h4 {
    margin-bottom: 16px;
  }

  .footer-col a {
    font-size: 13px;
    margin-bottom: 10px;
  }

  .legal-quick-grid {
    grid-template-columns: 1fr;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .section-title {
    font-size: 28px;
  }

  .download-apps {
    flex-direction: column;
    gap: 32px;
  }

  /* Hamburger */
  .hamburger {
    display: flex;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--surface);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-actions .lang-toggle {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .section {
    padding: 64px 0;
  }

  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 640px) {
  .spec-cloud {
    gap: 8px;
  }
}
