:root {
  --bg: #0f1320;
  --card: #14192b;
  --text: #e8ecf1;
  --muted: #a9b2c0;
  --brand: #5c81ef;
  --brand-2: #2d5eeb;
  --brand-accent: #8ba5f4;
  --brand-dark: #00a085;
  --border: #1f2740;
  --shadow: 0 10px 30px rgba(0, 0, 0, .25);
  --radius: 14px;
}

/* Light Mode */
body.light-mode {
  --bg: #F8FAFC;
  --card: #ffffff;
  --text: #1a202c;
  --muted: #4a5568;
  --brand: #4c6ef5;
  --brand-2: #3b5bdb;
  --brand-accent: #5c7cfa;
  --border: #e2e8f0;
  --shadow: 0 10px 30px rgba(0, 0, 0, .08);
}

body.light-mode .nav {
  background: rgba(255, 255, 255, .85);
}

body.light-mode .hero-card {
  background: linear-gradient(180deg, rgba(76, 110, 245, 0.08), rgba(76, 110, 245, 0.04));
}

body.light-mode .stats-card {
  background: linear-gradient(135deg, rgba(76, 110, 245, 0.06), rgba(92, 124, 250, 0.04));
}

body.light-mode .stat-item {
  background: rgba(255, 255, 255, 0.6);
}

body.light-mode .stat-item:hover {
  background: rgba(76, 110, 245, 0.08);
}

body.light-mode .tag {
  background: rgba(76, 110, 245, 0.06);
}

body.light-mode .badge {
  background: rgba(76, 110, 245, 0.05);
}

body.light-mode .feature {
  background: rgba(76, 110, 245, 0.04);
}

body.light-mode .shot {
  background: rgba(76, 110, 245, 0.04);
}

body.light-mode .install-step {
  background: rgba(76, 110, 245, 0.05);
}

body.light-mode .step-number {
  color: #ffffff;
}

body.light-mode .stat-number {
  color: #1a202c;
}

/* Google Play Badge - inverted in both dark and light modes */
.google-play-badge {
  filter: invert(1);
  height: 40px;
  width: auto;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.6;

}

p {
  font-weight: normal !important;
}

a {
  color: var(--brand-2);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(15, 19, 32, .7);
  border-bottom: 1px solid var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: .3px;
  margin-top: -8px;
}

/* Add this rule for Arabic version renaming */
html[dir="rtl"] .brand-name {
  /* Placeholder for Arabic renaming */
  /* For example: content: "مسحدي"; */
}


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




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

.nav-links a:hover {
  color: var(--brand);
  opacity: 1;
  text-decoration: none;
  transition: color 0.3s ease;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--brand-2);
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn:hover {
  filter: brightness(1.05);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(92, 129, 239, 0.35);
  /*  box-shadow: var(--shadow) !important; */
}

.btn i {
  font-size: 14px;
}

.btn.ghost {
  background: transparent;
  border-color: var(--brand);
  color: var(--brand);
  /* box-shadow: none; */
}

.btn.ghost:hover {
  background: rgba(139, 165, 244, 0.1);
  border-color: var(--brand-accent);
  color: var(--brand-accent);
}


.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
  background: rgba(92, 129, 239, 0.08);
  color: var(--brand-accent);
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  gap: 0;
}

.lang-switch:hover {
  background: rgba(92, 129, 239, 0.15);
  color: var(--brand);
  text-decoration: none;
  transform: translateY(-1px);
  border-color: rgba(92, 129, 239, 0.3);
  box-shadow: 0 4px 12px rgba(92, 129, 239, 0.2);
}

.lang-switch i {
  font-size: 15px;
  transition: transform 0.3s ease;
}

.lang-switch:hover i {
  transform: scale(1.1);
}

/* Language Dropdown */
.lang-dropdown {
  position: relative;
  display: inline-block;
}

.nav-pill-btn,
.lang-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
  text-decoration: none;
}

.nav-pill-btn:focus-visible,
.lang-dropdown-btn:focus-visible {
  outline: 2px solid rgba(92, 129, 239, 0.55);
  outline-offset: 2px;
}

.nav-pill-btn:hover,
.lang-dropdown-btn:hover {
  background: rgba(92, 129, 239, 0.1);
  border-color: rgba(92, 129, 239, 0.3);
  text-decoration: none;
}

.lang-dropdown-btn i.lang-arrow {
  font-size: 10px;
  transition: transform 0.3s ease;
}

.lang-dropdown.active .lang-arrow {
  transform: rotate(180deg);
}

.lang-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
  z-index: 100;
  overflow: hidden;
}

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

.lang-dropdown.active .lang-dropdown-content {
  display: block;
  animation: dropdownFadeIn 0.2s ease;
}

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

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

.lang-dropdown-content a {
  display: block;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.2s ease;
}

.lang-dropdown-content a:hover {
  background: rgba(92, 129, 239, 0.1);
  color: var(--brand);
}

/* Mobile: Compact language dropdown */
@media (max-width: 768px) {
  .lang-dropdown-btn {
    padding: 8px 12px;
    gap: 6px;
  }

  .lang-dropdown-btn .lang-text {
    display: none;
  }

  .lang-dropdown-btn .lang-arrow {
    display: none;
  }

  .lang-dropdown-content {
    min-width: 120px;
  }

  .nav-actions {
    gap: 10px;
  }
}

/* Theme Toggle Button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 15px;
}

.theme-toggle i {
  transition: transform 0.3s ease;
}

.theme-toggle:hover i {
  transform: rotate(20deg) scale(1.1);
}

body.light-mode .theme-toggle i::before {
  content: "\f186";
}


.hero {
  padding: 56px 0 26px;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 30px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(26px, 3.3vw, 40px);
  line-height: 1.1;
  margin: 8px 0 14px;
}

html[dir="rtl"] .hero h1 {
  font-size: clamp(20px, 2.6vw, 32px) !important;
}

.tag {
  display: inline-block;
  padding: 6px 10px;
  background: #0b101f;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 14px;
}

.lead {
  color: var(--muted);
  font-size: 17px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(0, 184, 148, 0.1), rgba(9, 132, 227, 0.05));
  border: 1px solid var(--brand);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.hero-card img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

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

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #0e1427;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  font-weight: 500;
}

.section {
  padding: 48px 0;
}

.section h2 {
  font-size: clamp(24px, 3vw, 36px);
  margin: 0 0 10px;
}

/* Stats Card */
.stats-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0;
  padding: 28px;
  background: linear-gradient(135deg, rgba(92, 129, 239, 0.08), rgba(139, 165, 244, 0.05));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  /* box-shadow: var(--shadow); */
}

.stat-item {
  text-align: center;
  padding: 20px 10px;
  border-radius: 12px;
  transition: all 0.3s ease;
  background: rgba(15, 19, 32, 0.5);
  border: 1px solid transparent;
}

.stat-item:hover {
  transform: translateY(-5px);
  background: rgba(92, 129, 239, 0.1);
  border-color: var(--brand-accent);
  box-shadow: 0 8px 20px rgba(92, 129, 239, 0.2);
}

.stat-icon {
  font-size: 34px;
  color: var(--brand-accent);
  margin-bottom: 12px;
  display: block;
  transition: transform 0.3s ease;
}

.stat-item:hover .stat-icon {
  transform: scale(1.15);
  color: var(--brand);
}

.stat-number {
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
  margin: 10px 0 8px;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

@media (max-width: 900px) {
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 20px;
  }

  .stat-item {
    padding: 16px 8px;
  }

  .stat-icon {
    font-size: 28px;
  }

  .stat-number {
    font-size: 32px;
  }

  .stat-label {
    font-size: 13px;
  }
}

@media (max-width: 500px) {
  .stats-card {
    grid-template-columns: repeat(2, 1fr);
  }
}

.muted {
  color: var(--muted);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  position: relative;
}

.card:not([data-glow]) {
  padding: 18px;
}

.card h3 {
  margin: 0 0 6px;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

.feature {
  background: #0e1427;
  border: 1px solid var(--border);
  padding: 0;
  border-radius: 12px;
  font-weight: normal !important;
  position: relative;
}

.feature:not([data-glow]) {
  padding: 12px 12px;
}

.feature[data-glow] .card__inner {
  padding: 12px 12px;
}

/* Screenshot Grid Layout */
.screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 24px;
  justify-content: center;
}

.screenshot-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px;
  cursor: pointer;
  transition: all 0.3s ease;
  overflow: hidden;
  max-width: 350px;
  width: fit-content;
  height: fit-content;
}

.screenshot-card:hover {
  transform: translateY(-4px);
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(92, 129, 239, 0.2);
}

.screenshot-card img {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  transition: transform 0.3s ease;
}

.screenshot-card picture {
  display: block;
  width: 100%;
}

.screenshot-caption {
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.screenshot-card:hover img {
  transform: scale(1.02);
}

.screenshot-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  border-radius: 12px;
}

.screenshot-card:hover .screenshot-overlay {
  opacity: 1;
}

.screenshot-overlay i {
  color: white;
  font-size: 32px;
}

/* Image Modal */
.image-modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  animation: fadeIn 0.3s ease;
}

.image-modal.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  animation: zoomIn 0.3s ease;
}

.image-modal-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: 0.3s;
}

.image-modal-close:hover {
  color: var(--brand-accent);
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes zoomIn {
  from {
    transform: scale(0.8);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

@media (max-width: 600px) {
  .screenshot-grid {
    flex-direction: column;
    align-items: center;
  }

  .screenshot-card {
    max-width: 100%;
  }

  .image-modal-close {
    top: 10px;
    right: 20px;
    font-size: 30px;
  }
}

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

.dl-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.dl-card h4 {
  margin: 0 0 6px;
}

.dl-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
  align-items: center;
}

.app-store-button {
  display: inline-block;
  transition: transform 0.2s ease;
}

.app-store-button:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(92, 129, 239, 0.2);
}

.app-store-button img {
  display: block;
  border-radius: 8px;
}

.footer {
  padding: 28px 0 50px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-weight: normal !important;
}

.footer a {
  color: var(--muted);
}

.pill {
  font-size: 11px;
  padding: 2px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  margin-left: 8px;
  color: var(--muted);
}

.highlight {
  color: var(--brand);
}

/* Mobile Navigation */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 20px;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.mobile-menu-toggle:hover {
  background: rgba(92, 129, 239, 0.1);
}

.mobile-hidden {
  display: inline-flex;
}

.mobile-only {
  display: none;
}

@media (max-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    text-align: left;
  }

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

  .feature-list {
    grid-template-columns: 1fr;
  }

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

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

  .mobile-menu-toggle {
    display: block;
  }

  .mobile-hidden {
    display: none;
  }

  .mobile-only {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: 63px;
    left: 0;
    right: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-top: none;
    flex-direction: column;
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
    box-shadow: var(--shadow);

    gap: 0;
  }

  .nav-links.show {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-links a {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    text-decoration: none;
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

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

/* Setup Steps */
.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 20px;
}

.setup-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.2s ease;
  position: relative;
}

.setup-step:not([data-glow]) {
  padding: 20px;
}

.setup-step[data-glow] .card__inner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
}

.setup-step:hover,
.feature-list .feature:hover {
  border-color: var(--brand-accent);
  transition: border-color 1s ease;
}

.step-number {
  background: linear-gradient(135deg, var(--brand), var(--brand-accent));
  color: #ffffff;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 15px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(92, 129, 239, 0.3);
}

.step-content {
  flex: 1;
}

.step-content h3 {
  margin: 0 0 8px 0;
  color: var(--text);
  font-size: 17px;
}

.step-content p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 768px) {
  .setup-step {
    padding: 16px;
    gap: 12px;
  }

  .setup-step[data-glow] .card__inner {
    flex-direction: column;
    gap: 12px;
  }

  .step-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .step-content h3 {
    font-size: 15px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 18px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(92, 129, 239, 0.3);
}

.back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(92, 129, 239, 0.4);
}

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

@media (max-width: 768px) {
  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    font-size: 16px;
  }
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 5% auto;
  padding: 20px;
  width: min(90%, 600px);
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow);
}

.close {
  color: var(--muted);
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 1001;
  background: var(--bg);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close:hover {
  color: var(--text);
  background: var(--card);
}

.install-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  padding: 12px;
  background: #0e1427;
  border: 1px solid var(--border);
  border-radius: 8px;
}

.step-number {
  background: var(--brand);
  color: #06121a;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
  flex-shrink: 0;
}

.step-content h4 {
  margin: 0 0 4px 0;
  color: var(--text);
}

.step-content p {
  margin: 0;
  color: var(--muted);
}

/* FAQ Accordion Styles */
.faq-container {
  margin-top: 32px;
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-question {
  padding: 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background-color 0.2s ease;
}

.faq-question:hover {
  background: rgba(92, 129, 239, 0.05);
}

.faq-question h3 {
  margin: 0;
  font-size: 15px !important;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  flex: 1;
}

.faq-icon {
  color: var(--brand);
  transition: transform 0.3s ease;
  font-size: 15px;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

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

.faq-item.active .faq-answer {
  max-height: 1000px;
}

.faq-content {
  padding: 0 20px 20px 20px;
  color: var(--muted);
  line-height: 1.6;
}

.faq-content p {
  margin-bottom: 16px;
  color: var(--muted);
}

.faq-content p:last-child {
  margin-bottom: 0;
}

.faq-content ol,
.faq-content ul {
  margin: 16px 0;
  padding-left: 20px;
}

.faq-content li {
  color: var(--muted);
  margin-bottom: 8px;
}

.faq-content strong {
  color: var(--brand-accent);
}

/* Glow effect for cards */
[data-glow] {
  --border-size: 1px;
  --spotlight-size: 300px;
  --hue: 220;
  --bg-spot-opacity: 0.05;
  --border-spot-opacity: 0.6;
  --border-light-opacity: 0.4;
  background-image: radial-gradient(var(--spotlight-size) var(--spotlight-size) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
      hsl(var(--hue) 100% 70% / var(--bg-spot-opacity)), transparent);
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-position: 50% 50%;
  background-attachment: fixed;
  border: var(--border-size) solid rgba(92, 129, 239, 0.2);
  position: relative;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

[data-glow]::before,
[data-glow]::after {
  pointer-events: none;
  content: "";
  position: absolute;
  inset: calc(var(--border-size) * -1);
  border: var(--border-size) solid transparent;
  border-radius: var(--radius);
  background-attachment: fixed;
  background-size: calc(100% + (2 * var(--border-size))) calc(100% + (2 * var(--border-size)));
  background-repeat: no-repeat;
  background-position: 50% 50%;
  mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  -webkit-mask: linear-gradient(transparent, transparent), linear-gradient(white, white);
  mask-clip: padding-box, border-box;
  -webkit-mask-clip: padding-box, border-box;
  mask-composite: intersect;
  -webkit-mask-composite: xor;
}

/* Border colored glow */
[data-glow]::before {
  background-image: radial-gradient(calc(var(--spotlight-size) * 0.75) calc(var(--spotlight-size) * 0.75) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
      hsl(var(--hue) 100% 50% / var(--border-spot-opacity)), transparent 100%);
  z-index: 2;
  filter: brightness(2);
}

/* Border white spotlight */
[data-glow]::after {
  background-image: radial-gradient(calc(var(--spotlight-size) * 0.5) calc(var(--spotlight-size) * 0.5) at calc(var(--x, 0) * 1px) calc(var(--y, 0) * 1px),
      hsl(0 100% 100% / var(--border-light-opacity)), transparent 100%);
  z-index: 2;
}

[data-glow] [data-glow] {
  position: absolute;
  inset: 0;
  will-change: filter;
}

[data-glow]>[data-glow] {
  border-radius: var(--radius);
  border-width: calc(var(--border-size) * 20);
  filter: blur(calc(var(--border-size) * 10));
  background: none;
  pointer-events: none;
}

[data-glow]>[data-glow]::before {
  inset: -10px;
  border-width: 10px;
}

/* Card content wrapper to protect from glow transparency */
.card__content {
  position: relative;
  z-index: 3;
  background: rgba(20, 25, 43, 0.2);
  border-radius: calc(var(--radius) - 2px);
  padding: 0;
}

body.light-mode .card__content {
  background: rgba(255, 255, 255, 0.9);
}

.card__inner {
  position: relative;
  z-index: 4;
  padding: 18px;
}

/* Google TV Logo visibility */
.gtv-logo-dark {
  display: inline-block !important;
}

.gtv-logo-light {
  display: none !important;
}

body.light-mode .gtv-logo-dark {
  display: none !important;
}

body.light-mode .gtv-logo-light {
  display: inline-block !important;
}