:root {
  --bg-dark: #070b14;
  --bg-card: #0e1626;
  --bg-elevated: #131f36;
  --border: #1e293b;
  --primary: #0ea5e9;
  --primary-hover: #0284c7;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.65;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(14, 165, 233, 0.16), transparent 36%),
    radial-gradient(circle at 82% 28%, rgba(168, 85, 247, 0.13), transparent 36%),
    radial-gradient(circle at 50% 82%, rgba(16, 185, 129, 0.11), transparent 42%);
  pointer-events: none;
  z-index: -1;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.navbar {
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 20, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  gap: 14px;
  flex-wrap: wrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  text-decoration: none;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  object-fit: cover;
  border: 1px solid rgba(56, 189, 248, 0.45);
}

.nav-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 6px 11px;
  border-radius: 8px;
  transition: 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.35);
}

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

.user-badge {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
}

.btn-lang, .btn-outline, .btn-primary, .btn-dark, .btn-sm, .btn-warn, .btn-danger, .btn-telegram, .btn-whatsapp {
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: 0.2s;
  font-size: 0.9rem;
}

.btn-lang, .btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border);
  padding: 8px 13px;
}

.btn-lang {
  border-color: rgba(56, 189, 248, 0.45);
  color: #38bdf8;
}

.btn-outline:hover, .btn-lang:hover {
  border-color: var(--primary);
  background: rgba(14, 165, 233, 0.08);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 9px 18px;
  display: inline-block;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-telegram {
  background: #229ED9;
  color: #fff;
  border: none;
  padding: 10px 18px;
  display: inline-block;
}

.btn-telegram:hover {
  background: #1b86ba;
}

.btn-whatsapp {
  background: #16a34a;
  color: #fff;
  border: none;
  padding: 10px 18px;
  display: inline-block;
}

.btn-whatsapp:hover {
  background: #15803d;
}

.btn-dark {
  background: var(--bg-card);
  color: #fff;
  border: 1px solid var(--border);
  padding: 9px 18px;
  display: inline-block;
}

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

.btn-lg {
  padding: 12px 22px;
  font-size: 0.96rem;
}

.btn-sm {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.35);
  padding: 5px 10px;
  font-size: 0.8rem;
}

.btn-warn {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 5px 10px;
  font-size: 0.8rem;
}

.btn-danger {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 5px 10px;
  font-size: 0.8rem;
}

.hero {
  padding: 56px 0 50px;
  text-align: center;
}

.hero-banner-wrap {
  max-width: 1040px;
  margin: 0 auto 24px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

.section-banner-img {
  width: 100%;
  max-height: 190px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  display: block;
}

.badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.8px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.subtitle {
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--text-muted);
  font-size: 1.04rem;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 16px;
  max-width: 880px;
  margin: 0 auto;
}

.stat-card {
  background: rgba(14, 22, 38, 0.85);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 14px;
}

.stat-card h3 {
  color: #38bdf8;
  font-size: 1.7rem;
  margin-bottom: 4px;
}

.stat-card span {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.section {
  padding: 58px 0;
  border-top: 1px solid rgba(30, 41, 59, 0.55);
}

.section-header {
  text-align: center;
  margin-bottom: 30px;
}

.section-header h2 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.section-header p {
  color: var(--text-muted);
}

.repair-cta-box {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.14), rgba(14, 22, 38, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.4);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 28px;
}

.repair-cta-text {
  max-width: 580px;
}

.repair-cta-text h3 {
  font-size: 1.3rem;
  margin-bottom: 6px;
  color: #fff;
}

.repair-cta-text p {
  color: var(--text-muted);
  font-size: 0.94rem;
}

.repair-cta-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.unlock-block {
  background: rgba(14, 22, 38, 0.75);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.unlock-header {
  margin-bottom: 18px;
}

.unlock-header h3 {
  font-size: 1.25rem;
  color: #38bdf8;
  margin-bottom: 4px;
}

.unlock-header p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.chips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}

.chip-card {
  background: #070b14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  display: flex;
  align-items: center;
  gap: 13px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.chip-icon {
  font-size: 1.35rem;
}

.chip-card h4 {
  font-size: 0.96rem;
  color: #f8fafc;
  margin-bottom: 2px;
}

.chip-card span {
  font-size: 0.82rem;
  color: #38bdf8;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 18px;
}

.cert-step-card {
  background: #070b14;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.cert-step-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.14);
  border: 1px solid rgba(14, 165, 233, 0.35);
  color: #38bdf8;
  font-size: 0.74rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.cert-step-card h4 {
  font-size: 1.08rem;
  margin-bottom: 6px;
  color: #fff;
}

.cert-step-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 12px;
}

.cert-mock {
  background: #0e1626;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px;
  font-family: Consolas, monospace;
  font-size: 0.82rem;
}

.cert-mock-title {
  color: #38bdf8;
  font-weight: 700;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.cert-mock-hex {
  color: #94a3b8;
  word-break: break-all;
  margin-bottom: 8px;
}

.cert-mock-input span {
  color: #34d399;
  font-weight: 700;
}

.cert-mock-line {
  padding: 4px 0;
  color: #e2e8f0;
}

.search-bar {
  max-width: 700px;
  margin: 0 auto 22px;
}

.search-bar input, .form-input, .form-select {
  width: 100%;
  padding: 11px 15px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #070b14;
  color: #fff;
  font-size: 0.93rem;
  margin-bottom: 10px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.bios-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.bios-table th, .bios-table td {
  padding: 12px 15px;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.bios-table th {
  color: var(--text-muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status-pill {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}

.status-pending {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}

.status-suspended {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-block;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.info-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px;
}

.info-card h3 {
  margin-bottom: 10px;
  color: #38bdf8;
}

.info-card p {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.pricing-box {
  max-width: 580px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--primary);
  border-radius: 16px;
  padding: 34px;
  text-align: center;
}

.price {
  font-size: 2.9rem;
  font-weight: 800;
  margin: 14px 0;
}

.price span {
  font-size: 1rem;
  color: var(--text-muted);
}

.features-list {
  list-style: none;
  text-align: left;
  margin: 22px 0 28px;
  display: grid;
  gap: 10px;
  color: #e2e8f0;
}

.contact-details {
  list-style: none;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.policy-note {
  color: #fbbf24;
  font-size: 0.88rem;
  margin-top: 12px;
}

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

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
}

.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  padding: 28px;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.auth-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 12px;
}

.auth-tab {
  flex: 1;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
}

.auth-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.modal-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin-bottom: 14px;
}

.auth-msg {
  font-size: 0.86rem;
  margin-bottom: 8px;
  min-height: 20px;
}

html[dir="rtl"] .bios-table,
html[dir="rtl"] .features-list,
html[dir="rtl"] .contact-details {
  text-align: right;
}

html[dir="ltr"] .bios-table,
html[dir="ltr"] .features-list,
html[dir="ltr"] .contact-details {
  text-align: left;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 2.2rem; }
}
