
:root {
  --bg-body: #f3f4f6;
  --bg-card: #ffffff;
  --bg-hero: #ffffff;
  --border-subtle: #e5e7eb;
  --border-strong: #cbd5f5;
  --text-main: #0f172a;
  --text-sub: #4b5563;
  --accent: #2563eb;
  --accent-soft: rgba(37,99,235,0.08);
  --accent-strong: #1d4ed8;
  --shadow-soft: 0 18px 45px rgba(15,23,42,0.08);
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #ffffff 0, #f9fafb 40%, #e5e7eb 100%);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

/* Layout */

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.75rem;
}


.site-logo img {
  max-height: 30px;
  width: auto;
}


.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-mark {
  width: 15px;
  height: 10px;
  border-radius: 0.55rem;
  background: radial-gradient(circle at 10% 10%, #22c55e, #2563eb);
  box-shadow: 0 8px 20px rgba(15,23,42,0.25);
  position: relative;
}
.logo-mark::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 0.4rem;
  background: rgba(15,23,42,0.18);
}
.logo-mark::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 4px;
  border-radius: 999px;
  background: rgba(248,250,252,0.95);
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
}

.logo-text {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.logo-sub {
  font-size: 0.75rem;
  color: #6b7280;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(34,197,94,0.4);
  background: #ffffff;
  text-decoration: none;
  font-size: 0.78rem;
  color: #166534;
  box-shadow: 0 10px 18px rgba(22,163,74,0.08);
}
.whatsapp-btn .icon {
  font-size: 0.9rem;
}

.live-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: none;
  text-decoration: none;
  font-size: 0.82rem;
  background: #ef4444;
  color: #ffffff;
  box-shadow: 0 10px 18px rgba(248,113,113,0.35);
}

/* Language menu */

.lang-menu {
  position: relative;
}

.lang-btn {
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  padding: 0.25rem 0.55rem;
  font-size: 0.9rem;
  background: #ffffff;
  cursor: pointer;
}

.lang-menu-dropdown {
  position: absolute;
  right: 0;
  top: 120%;
  min-width: 120px;
  background: #ffffff;
  border-radius: 0.6rem;
  border: 1px solid rgba(148,163,184,0.7);
  box-shadow: 0 10px 25px rgba(15,23,42,0.15);
  padding: 0.3rem;
  display: none;
  z-index: 30;
}

.lang-menu-dropdown.open {
  display: block;
}

.lang-menu-item {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 0.45rem;
  padding: 0.25rem 0.4rem;
  font-size: 0.8rem;
  text-align: left;
  cursor: pointer;
}

.lang-menu-item:hover {
  background: rgba(59,130,246,0.06);
}

.lang-menu-item.active {
  background: rgba(59,130,246,0.12);
  font-weight: 600;
}

/* Top marquee */

.top-marquee {
  background: #000723;
  border-bottom: 1px solid rgba(51,65,85,0.7);
  color: #e5e7eb;
  font-size: 0.78rem;
  overflow: hidden;
}

.top-marquee-inner {
  display: inline-flex;
  align-items: center;
  gap: 2.5rem;
  white-space: nowrap;
  padding: 0.35rem 0;
  animation: marquee-scroll 22s linear infinite;
}

.top-marquee-inner span {
  opacity: 0.9;
}

@keyframes marquee-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Hero */

.hero {
  padding: 1.8rem 0 1.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.8rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  color: #166534;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(22,163,74,0.08);
  border: 1px solid rgba(22,163,74,0.35);
}

.hero-title {
  margin: 0.75rem 0 0.4rem;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.hero-sub {
  margin: 0;
  font-size: 0.9rem;
  color: #4b5563;
  max-width: 33rem;
}

.hero-points {
  margin: 0.8rem 0 0.7rem;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
  color: #374151;
}
.hero-points li {
  display: flex;
  gap: 0.4rem;
  align-items: flex-start;
  margin-bottom: 0.25rem;
}
.hero-points .bullet {
  color: #16a34a;
  margin-top: 0.05rem;
}

.hero-price {
  margin: 0.5rem 0 0.8rem;
  font-size: 1.1rem;
  font-weight: 650;
}
.hero-price .small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: #6b7280;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 1rem;
  font-size: 0.86rem;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at top left, #22c55e, #2563eb);
  color: #ffffff;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.4rem 0.9rem;
  font-size: 0.84rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: #ffffff;
  color: #111827;
  text-decoration: none;
}

.stats-strip {
  margin-top: 0.9rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  font-size: 0.78rem;
}
.stats-item {
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(15,23,42,0.02);
  border: 1px solid rgba(148,163,184,0.6);
}
.stats-item .value {
  font-weight: 650;
  margin-right: 0.15rem;
}

/* Hero video */

.hero-video-card {
  border-radius: 1.1rem;
  background: radial-gradient(circle at top left, rgba(6, 7, 7, 0.02), #fff);
  padding: 0.75rem;
  box-shadow: 0 20px 45px rgba(167, 168, 169, 0.55);
  color: #e5e7eb;
}

.hero-video-card video {
  width: 100%;
  border-radius: 0.8rem;
  background: #020617;
}

.hero-video-caption {
  margin: 0.55rem 0 0.5rem;
  font-size: 0.78rem;
  color: #000;
}

.devices-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}

.devices-strip img {
  height: 26px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(0,0,0,0.35));
}

/* Sections */

.section {
  padding: 1.4rem 0;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 650;
  margin-bottom: 0.3rem;
}

.section-sub {
  font-size: 0.84rem;
  color: #4b5563;
  max-width: 32rem;
}

/* Order card */

.order-card {
  background: #ffffff;
  border-radius: 1.1rem;
  padding: 1.1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226,232,240,0.9);
}

.order-grid {
  margin-top: 0.8rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 1.2rem;
  align-items: stretch;
}

.order-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 0.8rem;
}

.order-form .field-group {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.order-form .field-group:nth-child(5),
.order-form .field-group:nth-child(6),
.order-form .field-group:nth-child(7),
.order-form .field-group:nth-child(8) {
  grid-column: 1 / -1;
}

label {
  font-size: 0.8rem;
  color: #374151;
}

input[type="text"],
select,
textarea {
  border-radius: 0.6rem;
  border: 1px solid var(--border-subtle);
  padding: 0.4rem 0.6rem;
  font-size: 0.82rem;
  font-family: inherit;
  outline: none;
  background: #ffffff;
}

input[type="text"]:focus,
select:focus,
textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37,99,235,0.30);
}

textarea {
  min-height: 70px;
  resize: vertical;
}

.order-note {
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: #4b5563;
}

.order-status {
  margin-top: 0.4rem;
  font-size: 0.78rem;
}
.order-status.success {
  color: #15803d;
}
.order-status.error {
  color: #b91c1c;
}

/* MAC / Key labels */

.label-highlight {
  color: #1d4ed8;
  font-weight: 600;
}

.label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  margin-right: 0.2rem;
  border: 1px solid rgba(37,99,235,0.55);
}
.label-icon-mac::before {
  content: "⧉";
  font-size: 0.7rem;
  color: #1d4ed8;
}
.label-icon-key::before {
  content: "⚿";
  font-size: 0.7rem;
  color: #1d4ed8;
}

/* Order banner */

.order-banner {
  border-radius: 1rem;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.18), rgba(15,23,42,0.96));
  padding: 0.55rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.order-banner img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0.9rem;
  box-shadow: 0 16px 40px rgba(15,23,42,0.55);
}

/* FAQ as gallery */

.faq-section .section-title {
  background: linear-gradient(120deg, #2563eb, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.faq-list {
  margin: 0.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.faq-item {
  position: relative;
  border-radius: 0.9rem;
  background: radial-gradient(circle at top left, rgba(59,130,246,0.05), #ffffff);
  border: 1px solid rgba(148,163,184,0.6);
  padding: 0.7rem 0.9rem 0.7rem 1.9rem;
  box-shadow: 0 10px 25px rgba(15,23,42,0.04);
}


.faq-q {
  font-size: 0.86rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.25rem;
}

.faq-a {
  font-size: 0.8rem;
  color: #4b5563;
  line-height: 1.5;
}

/* SEO block */

.seo-section {
  padding: 1.4rem 0 1.7rem;
}

.seo-inner {
  background: #ffffff;
  border-radius: 1rem;
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 16px 40px rgba(15,23,42,0.04);
  padding: 1rem 1rem;
}

.seo-heading {
  font-size: 0.95rem;
  font-weight: 650;
  margin-top: 0;
  margin-bottom: 0.4rem;
}
.seo-inner p {
  font-size: 0.8rem;
  color: #374151;
  margin: 0.22rem 0;
}
.seo-link {
  color: #2563eb;
  text-decoration: none;
}
.seo-link:hover {
  text-decoration: underline;
}

/* Badges footer */

.footer-badges {
  padding: 0 0 0.8rem;
}
.footer-badges-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.checkout-badge {
  height: 32px;
  width: auto;
  object-fit: contain;
}

/* Footer */

.site-footer {
  border-top: 1px solid rgba(226,232,240,0.9);
  background: #ffffff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0.75rem 0.9rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.footer-nav a {
  color: #4b5563;
  text-decoration: none;
}
.footer-nav a:hover {
  text-decoration: underline;
}

/* Live page */

.page-live .page-main {
  padding: 1.1rem 0 1.6rem;
}

.page-section {
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226,232,240,0.9);
}

.page-title {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
  text-decoration: none;
  color: #2563eb;
}

.live-label {
  font-size: 0.8rem;
  color: #374151;
  display: block;
  margin: 0.6rem 0 0.16rem;
}

.live-input {
  width: 100%;
  margin-bottom: 0.5rem;
}

.live-video-wrapper {
  margin-top: 0.6rem;
}
.live-video-shell {
  position: relative;
  border-radius: 0.9rem;
  overflow: hidden;
  background: #020617;
  box-shadow: 0 18px 35px rgba(15,23,42,0.55);
}

.live-video {
  width: 100%;
  display: block;
  background: #020617;
}

.live-gear-btn {
  position: absolute;
  right: 0.6rem;
  top: 0.6rem;
  border-radius: 999px;
  border: none;
  width: 30px;
  height: 30px;
  font-size: 1rem;
  background: rgba(15,23,42,0.76);
  color: #e5e7eb;
  cursor: pointer;
}
.live-gear-btn.live-gear-disabled {
  opacity: 0.3;
  cursor: default;
}

.live-quality-menu {
  position: absolute;
  right: 0.6rem;
  top: 2.5rem;
  min-width: 150px;
  border-radius: 0.7rem;
  background: #0b1120;
  color: #e5e7eb;
  border: 1px solid rgba(148,163,184,0.8);
  box-shadow: 0 14px 32px rgba(15,23,42,0.75);
  padding: 0.4rem 0.4rem 0.5rem;
  display: none;
  z-index: 40;
}
.live-quality-menu.open {
  display: block;
}

.live-quality-menu-title {
  font-size: 0.78rem;
  margin: 0 0 0.25rem;
  color: #9ca3af;
}
.live-quality-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.live-quality-menu-list li {
  font-size: 0.8rem;
  padding: 0.18rem 0.4rem;
  border-radius: 0.4rem;
  cursor: pointer;
}
.live-quality-menu-list li:hover {
  background: rgba(55,65,81,0.8);
}
.live-quality-menu-list li.active {
  background: rgba(37,99,235,0.9);
}

.live-note {
  margin-top: 0.45rem;
  font-size: 0.8rem;
  color: #4b5563;
}

.live-test-channels {
  margin-top: 1rem;
}
.live-channels-title {
  font-size: 0.95rem;
  margin: 0 0 0.25rem;
}
.live-channels-note {
  font-size: 0.8rem;
  color: #4b5563;
  margin: 0 0 0.35rem;
}

.live-channels-scroll {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 0.45rem;
  padding-bottom: 0.2rem;
}
.live-channel-item {
  flex: 0 0 auto;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.8);
  background: #ffffff;
  padding: 0.25rem 0.7rem;
  font-size: 0.78rem;
  cursor: pointer;
  white-space: nowrap;
}

.live-quality-legend {
  margin-top: 0.9rem;
}
.live-quality-title {
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}
.live-quality-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  color: #4b5563;
}
.live-quality-list li {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.15rem;
}
.quality-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}
.quality-dot-weak {
  background: #ef4444;
}
.quality-dot-mid {
  background: #facc15;
}
.quality-dot-good {
  background: #22c55e;
}

.live-tips {
  margin-top: 0.8rem;
}
.live-tips-title {
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
}
.live-tips-list {
  list-style: disc;
  padding-left: 1rem;
  margin: 0;
  font-size: 0.8rem;
  color: #4b5563;
}

/* Admin */

.page-admin .admin-main {
  padding: 1.1rem 0 1.4rem;
}
.admin-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.1fr);
  gap: 1rem;
}
.admin-card {
  background: #ffffff;
  border-radius: 1rem;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(226,232,240,0.9);
  font-size: 0.8rem;
}
.admin-summary-grid {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}
.admin-summary-item {
  border-radius: 0.9rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid rgba(148,163,184,0.8);
  background: rgba(248,250,252,0.9);
}
.admin-summary-item .value {
  display: block;
  font-size: 1rem;
  font-weight: 650;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}
.admin-table th,
.admin-table td {
  padding: 0.35rem 0.4rem;
  border-bottom: 1px solid rgba(226,232,240,0.9);
}
.admin-table th {
  text-align: left;
  font-weight: 600;
  color: #4b5563;
}
.status-pill {
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  font-size: 0.72rem;
}
.status-active {
  background: rgba(22,163,74,0.12);
  color: #166534;
}
.status-pending {
  background: rgba(234,179,8,0.18);
  color: #854d0e;
}
.status-expired {
  background: rgba(239,68,68,0.12);
  color: #b91c1c;
}

/* Generic page */

.page-main {
  padding: 1.2rem 0 1.6rem;
}

/* RTL layout */

html[dir="rtl"] body {
  direction: rtl;
}

body[data-lang="ar"] .header-inner {
  flex-direction: row-reverse;
}

body[data-lang="ar"] .site-logo {
  flex-direction: row-reverse;
}

body[data-lang="ar"] .logo-text-wrap {
  text-align: right;
}

body[data-lang="ar"] .hero-grid,
body[data-lang="ar"] .order-grid,
body[data-lang="ar"] .admin-layout {
  direction: rtl;
}

body[data-lang="ar"] .footer-inner {
  direction: rtl;
}

body[data-lang="ar"] .footer-nav {
  justify-content: flex-start;
}

/* Responsive */

@media (max-width: 900px) {
  .hero-grid,
  .order-grid,
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 1.1rem;
  }

  .hero-video-card {
    margin-top: 0.4rem;
  }
}

@media (max-width: 640px) {
  .header-inner {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .header-right {
    margin-left: auto;
  }
  .hero-title {
    font-size: 1.35rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .footer-nav {
    justify-content: flex-start;
  }
  .order-form {
    grid-template-columns: 1fr;
  }
  .top-marquee-inner {
    font-size: 0.75rem;
    gap: 1.5rem;
  }
}
