:root {
  --bg: #0b0f14;
  --surface: #13181f;
  --surface-alt: #1a2029;
  --text: #e4e8ed;
  --muted: #8a95a3;
  --line: rgba(255, 255, 255, 0.08);
  --primary: #4d8ef7;
  --primary-deep: #3a72d6;
  --accent: #22c993;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background: linear-gradient(180deg, #0b0f14 0%, #0f141b 100%);
  color: var(--text);
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  min-height: 100vh;
  padding: 24px;
}

.topbar,
.hero,
.page-hero,
.section,
.trust-strip {
  max-width: 1180px;
  margin: 0 auto;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 42px;
  aspect-ratio: 1;
  display: inline-grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
}

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

.nav a,
.nav button {
  padding: 10px 14px;
  color: var(--muted);
  border-radius: 8px;
  border: 0;
  background: transparent;
  transition: 180ms ease;
}

.nav a.active,
.nav a:hover,
.nav button:hover {
  background: rgba(77, 142, 247, 0.12);
  color: var(--primary);
}

#admin-top-logout {
  min-height: 46px;
  padding: 0 22px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
}

#admin-top-logout:hover {
  background: var(--primary-deep);
  color: #fff;
}

.hero {
  display: grid;
  gap: 28px;
  align-items: stretch;
  margin-bottom: 28px;
}

.hero-copy,
.hero-panel,
.page-hero,
.feature,
.product-card,
.panel-card,
.support-form,
.support-panel .panel-card,
.dashboard-card,
.dashboard-results,
.faq-item,
.trust-strip,
.filter-pill {
  background: rgba(19, 24, 31, 0.82);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.hero-copy,
.page-hero,
.trust-strip {
  border-radius: 8px;
  padding: 40px;
}

.hero-copy h1,
.page-hero h1 {
  font-size: clamp(2.3rem, 4vw, 4.4rem);
  line-height: 1.04;
  margin: 12px 0 16px;
}

.hero-copy p,
.page-hero p,
.feature p,
.product-card p,
.faq-item p,
.panel-card p,
.support-panel p,
.empty-state p,
.summary-note,
.form-note {
  color: var(--muted);
  line-height: 1.6;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-actions,
.price-row,
.badge-row,
.payment-pills,
.filter-bar,
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button,
.icon-button,
.filter-pill {
  min-height: 46px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: 180ms ease;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  font-weight: 600;
}

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

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

.button-secondary,
.button-wallet,
.icon-button {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.1);
}

.button-secondary:hover,
.button-wallet:hover,
.icon-button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.16);
}

.button-wallet {
  width: 100%;
}

.button-wallet-alt {
  background: rgba(34, 201, 147, 0.08);
}

.icon-button {
  padding: 0 14px;
}

.hero-meta {
  margin-top: 28px;
}

.hero-meta div {
  flex: 1 1 220px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.hero-meta strong,
.feature h3,
.product-card h3,
.faq-item h2,
.panel-card h2,
.support-panel h2,
.dashboard-card h2,
.summary-panel h3,
.order-panel h3 {
  display: block;
  margin-bottom: 8px;
}

.hero-panel {
  display: grid;
  gap: 16px;
}

.panel-card,
.feature,
.product-card,
.faq-item,
.support-form,
.dashboard-card,
.dashboard-results {
  border-radius: 8px;
  padding: 24px;
}

.metric-card {
  background: linear-gradient(145deg, #141c28 0%, #1a2840 100%);
  color: #fff;
}

.metric-card p,
.metric-card span {
  color: rgba(255, 255, 255, 0.60);
}

.mini-badge,
.payment-pills span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
  font-size: 0.9rem;
}

.mini-badge.accent {
  background: rgba(34, 201, 147, 0.14);
  color: #3de8b0;
}

.section {
  margin-top: 28px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading h2 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.section-heading-inline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.text-link {
  color: var(--primary);
  font-weight: 600;
}

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

.product-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.product-card-disabled {
  opacity: 0.55;
  background: rgba(19, 24, 31, 0.96);
}

.card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.95rem;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.card-price-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-price-og {
  font-size: 1.5rem;
  font-weight: 800;
  color: #f45252;
  text-decoration: line-through;
}

.card-price {
  font-size: 1.5rem;
  font-weight: 800;
}

.unavailable-badge {
  background: rgba(248, 82, 82, 0.14);
  color: #f77272;
}

.product-warning {
  margin: 0;
  padding: 12px 14px;
  border-radius: 8px;
  background: rgba(248, 82, 82, 0.1);
  color: #f77272;
  font-size: 0.94rem;
  line-height: 1.5;
}

.button-disabled {
  background: rgba(255, 255, 255, 0.04);
  color: #5e6a78;
  border-color: rgba(255, 255, 255, 0.06);
  cursor: not-allowed;
}

.page-hero.compact h1 {
  font-size: clamp(2rem, 3vw, 3.4rem);
}

.filter-bar {
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 18px;
}

.filter-pill {
  padding: 0 16px;
  color: var(--muted);
}

.filter-pill.active,
.filter-pill:hover {
  background: rgba(77, 142, 247, 0.14);
  color: var(--primary);
  border-color: rgba(77, 142, 247, 0.28);
}

.faq-list,
.support-layout,
.dashboard-layout {
  display: grid;
  gap: 18px;
}

.support-layout,
.dashboard-layout {
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  align-items: start;
}

.support-form,
.dashboard-login {
  display: grid;
  gap: 14px;
}

.filter-radios {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-radios legend {
  font-weight: 700;
  margin-bottom: 10px;
  width: 100%;
  font-size: 0.95rem;
  color: var(--muted);
}

.radio-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  font-weight: 500;
  transition: 180ms ease;
}

.radio-label:hover {
  background: rgba(77, 142, 247, 0.08);
  border-color: rgba(77, 142, 247, 0.2);
}

.radio-label:has(input:checked) {
  background: rgba(77, 142, 247, 0.14);
  border-color: rgba(77, 142, 247, 0.32);
  color: var(--primary);
}

.radio-label input[type="radio"] {
  width: 16px;
  min-height: 16px;
  margin: 0;
  accent-color: var(--primary);
}

.filter-field {
  transition: opacity 180ms ease;
}

.filter-field.hidden {
  display: none !important;
}

label {
  display: grid;
  gap: 8px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

select {
  appearance: none;
  -webkit-appearance: none;
  background: rgba(255, 255, 255, 0.05) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%238a95a3' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 14px center / 12px;
  padding-right: 36px;
  cursor: pointer;
}

select option {
  background: #13181f;
  color: var(--text);
  padding: 10px 14px;
}

select option:checked {
  background: var(--primary-deep);
  color: #fff;
}

input::placeholder,
textarea::placeholder {
  color: var(--muted);
  opacity: 0.6;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 142, 247, 0.18);
}

.phone-input-group {
  display: flex;
  align-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.phone-dial-prefix {
  padding: 12px 14px;
  color: var(--primary);
  font-weight: 700;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
  user-select: none;
  min-height: 48px;
  display: flex;
  align-items: center;
}

.phone-input-group input[type="tel"] {
  border: none;
  background: transparent;
  border-radius: 0;
  min-height: 44px;
}

.phone-input-group input[type="tel"]:focus {
  box-shadow: none;
  border: none;
}

.phone-input-group:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(77, 142, 247, 0.18);
}

.phone-feedback {
  display: block;
  font-size: 0.85rem;
  min-height: 1.2em;
  color: var(--muted);
  font-weight: 400;
}

.phone-feedback.error {
  color: #f45252;
}

.phone-feedback.valid {
  color: var(--accent);
}

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

.dashboard-results {
  min-height: 320px;
}

.product-empty {
  grid-column: 1 / -1;
  width: 100%;
  background: rgba(19, 24, 31, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
}

.order-list {
  display: grid;
  gap: 14px;
}

.order-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.03);
}

.order-item-header,
.license-row,
.summary-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.license-row code {
  display: inline-block;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  word-break: break-all;
  color: var(--accent);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 50;
}

.hidden {
  display: none !important;
}

.modal.hidden,
.success-panel.hidden {
  display: none;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(960px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  overflow: auto;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  aspect-ratio: 1;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.modal-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.order-panel,
.summary-panel {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.checkout-form label {
  margin-bottom: 14px;
}

.consent-box {
  grid-template-columns: 18px 1fr;
  align-items: start;
  font-weight: 500;
}

.consent-box input {
  min-height: auto;
  margin-top: 3px;
}

.summary-line {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

.summary-line.total {
  color: var(--text);
  font-weight: 800;
}

.summary-product {
  display: grid;
  gap: 4px;
  padding-bottom: 14px;
}

.success-panel {
  padding: 24px 0 0;
}

.success {
  color: var(--accent);
}

.trust-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 28px;
}

.admin-stack {
  display: grid;
  gap: 18px;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.admin-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  align-items: start;
}

.admin-products {
  display: grid;
  gap: 12px;
}

.admin-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.admin-item-off {
  opacity: 0.7;
}

.admin-item-main {
  display: grid;
  gap: 6px;
}

.admin-item-main span {
  color: var(--muted);
}

.admin-actions,
.admin-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-check {
  grid-template-columns: 18px 1fr;
  align-items: center;
  font-weight: 500;
}

.admin-check input {
  min-height: auto;
}

.empty-state {
  display: grid;
  place-items: center;
  min-height: 260px;
  text-align: center;
}

@media (max-width: 980px) {

  .hero,
  .support-layout,
  .dashboard-layout,
  .admin-layout,
  .checkout-layout,
  .feature-grid,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .trust-strip,
  .admin-toolbar,
  .section-heading-inline,
  .topbar {
    align-items: start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-shell {
    padding: 16px;
  }

  .hero-copy,
  .page-hero,
  .trust-strip,
  .product-card,
  .panel-card,
  .support-form,
  .dashboard-card,
  .dashboard-results,
  .faq-item,
  .feature,
  .modal-card {
    padding: 20px;
  }

  .nav {
    width: 100%;
  }

  .nav a {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }

  .card-footer,
  .admin-item,
  .order-item-header,
  .license-row {
    flex-direction: column;
    align-items: start;
  }
}
