:root {
  --red: #e31b24;
  --red-deep: #8e1018;
  --ink: #f8f3f1;
  --muted: #c9b4b2;
  --line: rgba(227, 27, 36, 0.28);
  --card: rgba(18, 7, 8, 0.9);
  --bg: #100607;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: "Cairo", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: clip;
}
button, a, select { touch-action: manipulation; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

.weave {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background:
    radial-gradient(800px 320px at 100% -10%, rgba(227, 27, 36, 0.45), transparent 60%),
    repeating-linear-gradient(45deg, transparent 0 10px, rgba(227, 27, 36, 0.35) 10px 12px),
    repeating-linear-gradient(-45deg, transparent 0 10px, rgba(255, 255, 255, 0.16) 10px 12px);
}

.wrap { width: min(1100px, calc(100% - 32px)); margin-inline: auto; position: relative; }
.hero > *, .grid > *, .card { min-width: 0; }
.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 72px; height: 72px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(227, 27, 36, 0.55)); }
.brand b { display: block; font-size: 22px; letter-spacing: 0.02em; }
.brand small { color: var(--muted); }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); }
nav a:hover { color: white; background: rgba(227, 27, 36, 0.16); }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding: 12px 0 28px;
}
.kicker { margin: 0 0 8px; color: #ffb4b6; font-weight: 700; max-width: 24ch; line-height: 1.45; }
h1 { margin: 0 0 8px; font-size: clamp(36px, 5vw, 58px); line-height: 1.15; }
.lede { margin: 0 0 14px; color: var(--muted); font-size: 18px; max-width: 42ch; }
.visits {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin: 0 0 18px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(227, 27, 36, 0.12);
}
.visits b { font-size: 22px; font-variant-numeric: tabular-nums; }
.visits span { color: var(--muted); font-size: 14px; }
.banner-frame {
  margin: 0;
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 20px 60px rgba(227, 27, 36, 0.22);
}
.banner-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; object-position: center; }

.currency { display: flex; flex-direction: column; gap: 6px; max-width: 320px; }
.currency label { color: var(--muted); font-size: 14px; }
select {
  background: #1a0c0e;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.quick button, .durs button, .modes button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 8px 12px;
  min-height: 40px;
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.quick button:active, .durs button:active, .modes button:active, .buy:active, .btn:active { transform: scale(0.97); }
.quick button[aria-pressed="true"], .durs button[aria-pressed="true"], .modes button[aria-pressed="true"] {
  background: var(--red);
  border-color: var(--red);
  color: white;
}

section { margin: 18px 0 34px; scroll-margin-top: 128px; }
h2 { margin: 0 0 8px; font-size: 28px; }
.section-lead { margin: 0 0 16px; color: var(--muted); max-width: 70ch; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.card {
  --tone: #e31b24;
  --tone-deep: #b10f18;
  --on-tone: #fff;
  background: var(--card);
  border: 1px solid color-mix(in srgb, var(--tone) 48%, transparent);
  border-top: 4px solid var(--tone);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.card[data-plan="standard"] { --tone: #22c55e; --tone-deep: #15803d; --on-tone: #fff; }
.card[data-plan="premium"] { --tone: #f5c542; --tone-deep: #b8860b; --on-tone: #1a1203; }
.card[data-plan="advanced"] { --tone: #a855f7; --tone-deep: #6d28d9; --on-tone: #fff; }
.card[data-plan="ultimate"] { --tone: #e31b24; --tone-deep: #b10f18; --on-tone: #fff; }
.card.is-hot {
  border-color: var(--tone);
  box-shadow: 0 0 0 1px var(--tone), 0 18px 48px color-mix(in srgb, var(--tone) 38%, transparent);
}
.nudge {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--tone) 18%, transparent);
  color: #fff;
  font-weight: 700;
}
.card.is-hot .nudge { animation: rise 0.45s ease; }
.card.is-hot .total strong { animation: pop 0.45s ease; }
.card.is-hot .buy { animation: glow 0.7s ease; }
.total strong { display: inline-block; }
@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
@keyframes pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.12); }
  100% { transform: scale(1); }
}
@keyframes glow {
  0%, 100% { box-shadow: none; }
  40% { box-shadow: 0 0 22px var(--tone); }
}
.card h3 { margin: 0; font-size: 26px; color: var(--tone); }
.hint, .note, .eur, .feat-lead { margin: 0; color: var(--muted); font-size: 14px; }
.mark { margin: 0; color: #fff; font-weight: 700; }
.feats-btn {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 700;
  min-height: 44px;
}
.feats-btn[aria-expanded="true"] {
  background: color-mix(in srgb, var(--tone) 22%, transparent);
  border-color: var(--tone);
  color: #fff;
}
.feats { display: flex; flex-direction: column; gap: 8px; }
.feats ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.feats li {
  padding: 8px 12px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--tone) 14%, transparent);
  line-height: 1.55;
}
.card .durs button[aria-pressed="true"] {
  background: var(--tone);
  border-color: var(--tone);
  color: var(--on-tone);
}
.durs, .modes { display: flex; flex-wrap: wrap; gap: 6px; }
.line, .total { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.line strong, .total strong { white-space: nowrap; }
.total { font-size: 28px; font-weight: 800; }
.btn, .buy, .ghost {
  border: 0;
  border-radius: 999px;
  padding: 12px 16px;
  text-align: center;
  font-weight: 700;
}
.buy, .btn.wa { background: linear-gradient(100deg, #ff3b43, #b10f18); color: white; }
.card .buy {
  background: linear-gradient(100deg, var(--tone), var(--tone-deep));
  color: var(--on-tone);
}
.btn.dc, .ghost { background: transparent; color: white; border: 1px solid var(--line); }
.confirm { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; background: color-mix(in srgb, var(--tone) 12%, transparent); }
.confirm[hidden] { display: none; }
.confirm-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.confirm-actions .btn { flex: 1; }

.contact { padding: 8px 0 20px; }
.contact-row { display: flex; gap: 10px; flex-wrap: wrap; max-width: 420px; }
.contact-row .btn { flex: 1; }
.session { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.langs { display: flex; gap: 4px; }
.langs button {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 999px;
  min-height: 40px;
  padding: 8px 12px;
}
.langs button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: white; }
#who { color: #fff; font-weight: 700; }
.account .card { max-width: 680px; }
.cert-card { max-width: 680px; }
.cert-pick { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.cert-pick input { width: 22px; height: 22px; }
.cert-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cert-actions a, .cert-actions button { text-decoration: none; text-align: center; display: inline-flex; align-items: center; justify-content: center; }
.purchase {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
#seo-box { margin-bottom: 22px; }
#seo-box textarea {
  width: 100%;
  min-height: 150px;
  margin: 8px 0;
  background: #1a0c0e;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  resize: vertical;
}
.seo-world, .seo-words { display: none !important; }
.seo-world { margin-top: 28px; color: var(--muted); font-size: 15px; }
.seo-world h2 { color: var(--ink); font-size: 22px; margin: 0 0 8px; }
.seo-world p { margin: 0 0 10px; }
.seo-words { color: var(--muted); font-size: 14px; margin: 14px 0 0; }
#owner-search {
  width: 100%;
  margin: 8px 0 14px;
  background: #1a0c0e;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-height: 46px;
}
#owner-list .card { max-width: none; }
#receipt-body p { margin: 0; }
#receipt-wa { text-align: center; }
.account .key { direction: ltr; text-align: left; }
dialog { border: 0; padding: 0; background: transparent; color: inherit; max-width: calc(100% - 24px); }
dialog::backdrop { background: rgba(0, 0, 0, 0.72); }
.gate-form {
  width: min(440px, 100%);
  background: #14090a;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.gate-form input, .gate-form select {
  background: #1a0c0e;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  min-height: 46px;
  width: 100%;
}
.bad { color: #ffb4b4; margin: 0; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 0 28px; color: var(--muted); }
footer.credits { align-items: flex-start; }
footer.credits p { margin: 0 0 4px; }
footer.credits a { color: #fff; }
footer img { width: 64px; height: 64px; object-fit: contain; }
.toast {
  position: fixed;
  bottom: 18px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: #1a0c0e;
  border: 1px solid var(--line);
  color: white;
  padding: 12px 16px;
  border-radius: 999px;
  z-index: 5;
}

@media (max-width: 1024px) {
  .bar {
    position: sticky;
    top: 0;
    z-index: 4;
    background: rgba(16, 6, 7, 0.94);
    backdrop-filter: blur(12px);
  }
  .hero { grid-template-columns: 1fr; gap: 16px; padding-bottom: 8px; }
  .banner-frame { order: -1; }
  .banner-frame img { height: auto; max-height: none; }
  .quick {
    flex-wrap: nowrap;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .quick::-webkit-scrollbar { display: none; }
  .quick button { flex: 0 0 auto; }
}

@media (max-width: 760px) {
  .wrap { width: min(1100px, calc(100% - 20px)); }
  .weave { opacity: 0.08; }
  .bar {
    position: sticky;
    top: 0;
    z-index: 4;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 8px 0 10px;
    background: rgba(16, 6, 7, 0.94);
    backdrop-filter: blur(12px);
  }
  .brand img { width: 46px; height: 46px; }
  .brand b { font-size: 18px; }
  nav a { flex: 1; text-align: center; padding: 10px 8px; background: rgba(255, 255, 255, 0.03); }
  h1 { font-size: 32px; }
  .lede, .section-lead { font-size: 16px; }
  .banner-frame { border-radius: 18px; }
  .banner-frame img { height: auto; aspect-ratio: 2.5 / 1; max-height: none; }
  .grid { grid-template-columns: 1fr; }
  .currency { max-width: none; }
  select { font-size: 16px; min-height: 48px; }
  .quick button, .durs button, .modes button, .buy, .btn, .ghost { min-height: 46px; }
  .card { padding: 14px; border-radius: 18px; }
  .card h3 { font-size: 22px; }
  .total { font-size: 22px; }
  .confirm-actions { flex-direction: column; }
  .toast {
    inset-inline: 12px;
    transform: none;
    bottom: calc(12px + env(safe-area-inset-bottom));
    text-align: center;
  }
  footer { padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .card, .nudge, .total strong, .buy { animation: none !important; transition: none !important; }
}
