:root {
  --bg: #0b0b0d;
  --bg-elev: #121216;
  --bg-soft: #18181e;
  --ink: #f4f4f5;
  --muted: #a1a1aa;
  --line: #2a2a33;
  --accent: #e11d2e;
  --accent-2: #ff3b4b;
  --ok: #22c55e;
  --warn: #f59e0b;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Sora", "Segoe UI", sans-serif;
  --max: 1180px;
  --radius: 4px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden], .is-hidden { display: none !important; }

body {
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(225, 29, 46, 0.16), transparent 55%),
    radial-gradient(700px 380px at 0% 20%, rgba(255, 255, 255, 0.03), transparent 45%),
    var(--bg);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
img { max-width: 100%; display: block; }
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}

.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(42, 42, 51, 0.9);
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(11, 11, 13, 0.78);
  z-index: 20;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #f4f5f7;
  font-family: var(--font-body);
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-decoration: none;
  text-transform: uppercase;
}
.brand:hover { color: #fff; }
.brand-mark {
  position: relative;
  display: inline-block;
  width: 28px;
  height: 25px;
  flex: 0 0 28px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.brand-mark::before {
  position: absolute;
  top: 9px;
  left: 2px;
  width: 4px;
  height: 14px;
  background: #f4f5f7;
  box-shadow: 8px -4px 0 #f4f5f7, 16px -8px 0 #f4f5f7;
  content: "";
  transform: skew(-13deg);
}
.brand-cut {
  position: absolute;
  top: 10px;
  left: 1px;
  z-index: 1;
  width: 27px;
  height: 3px;
  background: var(--signal, var(--accent));
  transform: rotate(-14deg);
  transform-origin: center;
}
.brand-text {
  line-height: 1;
  transform: none;
}

.nav-links {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
}
.nav-links > a:not(.btn):not(.nav-action) {
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--muted);
}
.nav-links > a:not(.btn):not(.nav-action):hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
}

.nav-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 36px;
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: 0.15s ease;
}
.nav-action:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.nav-action-muted {
  color: var(--muted);
}
.nav-user {
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 0 0.35rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.78rem 1.15rem;
  cursor: pointer;
  transition: 0.15s ease;
  font-weight: 600;
}
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary {
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  color: #fff;
  box-shadow: 0 10px 24px rgba(225, 29, 46, 0.25);
}
.btn-primary:hover:not(:disabled) { filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { border-color: #555; background: rgba(255,255,255,0.02); }
.btn-block { width: 100%; }
.site-nav .btn-primary {
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.86rem;
  box-shadow: 0 8px 18px rgba(225, 29, 46, 0.22);
}

.product-hero {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 1.5rem;
  padding: 1.6rem 0 2.2rem;
  align-items: start;
}

.product-main {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.product-main h1 {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-kicker {
  margin: 0;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  font-weight: 600;
}

.product-lead {
  margin: 1rem 0 0;
  color: var(--muted);
  max-width: 54ch;
  font-size: 1.02rem;
}

.product-panel {
  margin: 1.2rem 0 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(225, 29, 46, 0.1), transparent 42%),
    linear-gradient(180deg, #14141a, #0e0e13);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}
.product-points {
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
}
.product-points li {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  padding: 0.78rem 1.05rem;
  border-bottom: 1px solid rgba(42, 42, 51, 0.85);
}
.product-points li:last-child { border-bottom: 0; }
.product-point-key {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #ff5a67;
}
.product-point-val {
  color: #d4d4d8;
  font-size: 0.95rem;
  line-height: 1.35;
}
.product-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.05rem;
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}
.product-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
  animation: status-pulse 2.2s ease-in-out infinite;
}
.product-status-sep { opacity: 0.5; }
@keyframes status-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.06); }
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.1rem;
}
.badge {
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge.ok {
  border-color: rgba(34, 197, 94, 0.45);
  color: #86efac;
  background: rgba(34, 197, 94, 0.08);
}
.badge.warn {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fcd34d;
  background: rgba(245, 158, 11, 0.08);
}

.buy-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #17171d, #121218);
  padding: 1.15rem 1.15rem 1.2rem;
  border-radius: var(--radius);
  position: sticky;
  top: 4.5rem;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
  display: flex;
  flex-direction: column;
  align-self: start;
  width: 100%;
  height: fit-content;
  max-height: none;
}
.buy-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.45rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.buy-card .price {
  margin: 0.65rem 0 0.15rem;
  font-family: var(--font-display);
  font-size: 2.45rem;
  line-height: 1;
}
.buy-card .price span {
  font-size: 0.95rem;
  color: var(--muted);
  margin-left: 0.25rem;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.buy-card .hint {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
}
.buy-card .btn-block + .btn-block {
  margin-top: 0.45rem;
}
.plan-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-bottom: 0.95rem;
}
.plan-option {
  appearance: none;
  -webkit-appearance: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  width: 100%;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #0f0f14;
  color: var(--ink);
  padding: 0.62rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.plan-option:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: #16161e;
}
.plan-option:focus-visible {
  outline: 2px solid rgba(225, 29, 46, 0.65);
  outline-offset: 2px;
}
.plan-option.is-active {
  border-color: rgba(225, 29, 46, 0.85);
  background: rgba(225, 29, 46, 0.12);
  box-shadow: inset 0 0 0 1px rgba(225, 29, 46, 0.25);
}
.plan-option-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.plan-option-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: 0.02em;
}
.plan-option.is-active .plan-option-label {
  color: #fca5a5;
}
.plan-pick label {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--line);
  background: #0f0f14;
  padding: 0.7rem 0.8rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.plan-pick label.active,
.plan-pick label.is-active {
  border-color: rgba(225, 29, 46, 0.7);
  background: rgba(225, 29, 46, 0.08);
}
.pay-methods label {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
}
.pay-methods label span {
  color: var(--muted);
  font-size: 0.78rem;
}
.pay-methods label strong {
  font-size: 1.05rem;
}
.plan-pick input { accent-color: var(--accent); }
.btn.is-disabled,
.btn[aria-disabled="true"] {
  opacity: 0.55;
  pointer-events: none;
}

.section {
  padding: 2.4rem 0;
  border-top: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.section .lead {
  margin: 0 0 1.4rem;
  color: var(--muted);
  max-width: 60ch;
}

.gallery {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.75rem;
}
.gallery-main, .gallery-thumbs button, .shot-card {
  border: 1px solid var(--line);
  background: #09090b;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-main img, .shot-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}
.gallery-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
.gallery-thumbs button {
  padding: 0;
  cursor: pointer;
  color: inherit;
}
.gallery-thumbs button.active { outline: 1px solid var(--accent); }
.gallery-thumbs img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  opacity: 0.85;
}
.gallery-caption {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-cats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.feature-cat {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 1rem 1.05rem 1.1rem;
}
.feature-cat h3 {
  margin: 0 0 0.45rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-2);
}
.feature-cat p {
  margin: 0 0 0.7rem;
  color: var(--text);
  line-height: 1.45;
  font-size: 0.95rem;
}
}
.feature-cat ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.feature-cat li { margin: 0.28rem 0; }

.specs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}
.spec {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 0.85rem 0.95rem;
}
.spec b {
  display: block;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.flow li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 1rem;
  align-items: center;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
}
.flow-num {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(225, 29, 46, 0.55);
  color: var(--accent-2);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}
.flow strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.flow p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 0.55rem;
}
.faq-item {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p {
  margin: 0.55rem 0 0;
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 1.3rem 0 2rem;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
}
.footer-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.footer-contacts a { color: #e4e4e7; }
.footer-contacts a:hover { color: #fff; }

.auth-shell, .cabinet-shell {
  min-height: 100vh;
  padding-bottom: 2.5rem;
}

.auth-card {
  width: min(440px, 100%);
  margin: 2.4rem auto 0;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 1.35rem;
}
.auth-card h1 {
  margin: 0 0 0.25rem;
  font-family: var(--font-display);
  font-size: 2rem;
  text-transform: uppercase;
}
.auth-card .sub { margin: 0 0 1.1rem; color: var(--muted); }

.field { display: grid; gap: 0.28rem; margin-bottom: 0.8rem; }
.field label { color: var(--muted); font-size: 0.86rem; }
.field input {
  width: 100%;
  border: 1px solid var(--line);
  background: #0d0d11;
  color: var(--ink);
  border-radius: var(--radius);
  padding: 0.75rem 0.8rem;
}
.field input:focus {
  outline: none;
  border-color: rgba(225, 29, 46, 0.7);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.tabs button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 0.65rem;
  border-radius: var(--radius);
  cursor: pointer;
}
.tabs button.active {
  color: var(--ink);
  border-color: rgba(225, 29, 46, 0.65);
  background: rgba(225, 29, 46, 0.1);
}

.flash {
  margin: 0 0 0.9rem;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--line);
  background: #101014;
  color: var(--muted);
  border-radius: var(--radius);
  font-size: 0.92rem;
}
.flash.error { border-color: rgba(239, 68, 68, 0.5); color: #fecaca; }
.flash.ok { border-color: rgba(34, 197, 94, 0.45); color: #bbf7d0; }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.15rem 0 0.9rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.tg-auth {
  display: grid;
  gap: 0.65rem;
  justify-items: center;
  padding: 0.2rem 0 0.15rem;
}
.tg-auth-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}
.tg-auth.is-hidden,
.auth-divider.is-hidden { display: none !important; }
.tg-login-btn {
  width: fit-content;
  height: 44px;
  padding: 0 28px;
  border: none;
  border-radius: 22px;
  background: #119af5;
  color: #fff;
  font-weight: 600;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  cursor: pointer;
  font-family: -apple-system, system-ui, Roboto, Arial, sans-serif;
}
.tg-login-btn:hover { background: #1090e5; }
.tg-login-btn::before {
  content: "";
  width: 22px;
  height: 22px;
  display: inline-block;
  background: no-repeat center / 22px url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 22 22' fill='none'%3E%3Cpath d='M2.81376 10.5943C7.36914 8.61002 10.406 7.30175 11.9245 6.66971C16.265 4.86489 17.1658 4.55143 17.7542 4.54094C17.8836 4.53874 18.1716 4.57072 18.3596 4.72281C18.5158 4.85097 18.5598 5.0243 18.5818 5.14588C18.6013 5.26745 18.6282 5.54454 18.6062 5.76083C18.3719 8.23138 17.3539 14.2266 16.8363 16.9938C16.619 18.1647 16.1869 18.5572 15.7695 18.5955C14.8613 18.679 14.1728 17.996 13.294 17.42C11.9196 16.5185 11.1433 15.9575 9.80793 15.0779C8.26505 14.0613 9.26594 13.5025 10.1448 12.5895C10.3743 12.3505 14.373 8.71426 14.4487 8.38445C14.4585 8.34319 14.4683 8.18939 14.3755 8.10834C14.2852 8.02705 14.1508 8.05488 14.0532 8.07685C13.914 8.1081 11.7193 9.56015 7.4618 12.4328C6.83928 12.861 6.27536 13.0697 5.76758 13.0587C5.21097 13.0468 4.13689 12.7433 3.3386 12.484C2.3621 12.166 1.5833 11.9977 1.65166 11.4575C1.68583 11.1763 2.07406 10.8884 2.81376 10.5943Z' fill='white'/%3E%3C/svg%3E");
}

.cabinet-head { margin-top: 1.3rem; }
.cabinet-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4vw, 3rem);
  text-transform: uppercase;
}
.cabinet-head .meta { margin: 0.4rem 0 0; color: var(--muted); }

.cabinet-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 0.85rem;
  margin-top: 1.2rem;
}
.panel {
  border: 1px solid var(--line);
  background: var(--bg-elev);
  border-radius: var(--radius);
  padding: 1.15rem;
}
.panel h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.meta { color: var(--muted); margin: 0 0 0.9rem; font-size: 0.93rem; }

.key-list { display: grid; gap: 0.55rem; }
.key-item {
  border: 1px solid var(--line);
  background: #0f0f14;
  border-radius: var(--radius);
  padding: 0.75rem;
}
.key-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.7rem;
}
.renew-box {
  margin-top: 0.7rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--line);
}
.renew-plans {
  display: grid;
  gap: 0.35rem;
}
.renew-plan {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 0.9rem;
}
.renew-plan:has(input:checked) {
  border-color: rgba(225, 29, 46, 0.7);
  background: rgba(225, 29, 46, 0.08);
}
.renew-plan input { accent-color: var(--accent); }
.btn-sm {
  padding: 0.35rem 0.65rem;
  font-size: 0.82rem;
}
.key-item code {
  display: block;
  margin-top: 0.3rem;
  word-break: break-all;
  color: var(--muted);
  font-size: 0.82rem;
}
.raw-key {
  margin-top: 0.85rem;
  padding: 0.9rem;
  border: 1px solid rgba(225, 29, 46, 0.55);
  background: rgba(225, 29, 46, 0.08);
  border-radius: var(--radius);
}
.raw-key code {
  display: block;
  margin: 0.4rem 0;
  word-break: break-all;
}

@media (max-width: 960px) {
  .product-hero,
  .gallery,
  .feature-cats,
  .specs,
  .cabinet-grid { grid-template-columns: 1fr; }
  .buy-card { position: static; }
  .product-points li {
    grid-template-columns: 3.8rem 1fr;
    gap: 0.65rem;
    padding: 0.7rem 0.9rem;
  }
  .gallery-thumbs { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .plan-pick { grid-template-columns: 1fr; }
}

/* Legal / pricing / support */
.legal-doc {
  max-width: 820px;
  margin: 1.6rem auto 2.5rem;
  padding-bottom: 1rem;
}
.legal-doc h1 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.legal-doc h2 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.15rem;
}
.legal-doc p, .legal-doc li { color: #d4d4d8; }
.legal-meta {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0 0 0.4rem;
}
.legal-doc .lead { font-size: 1.05rem; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-links a:hover { color: #fff; }

.pricing-table {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 1.2rem 0 1.6rem;
}
.pricing-row {
  display: grid;
  grid-template-columns: 1.1fr 0.7fr 0.8fr 1.6fr;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  align-items: center;
}
.pricing-row:first-child { border-top: 0; }
.pricing-head {
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* —— Support desk / live chat —— */
.support-page {
  margin: 1rem 0 2rem;
  --desk-h: min(78vh, 760px);
}
.support-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}
.support-hero h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.7rem);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.support-hero p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  max-width: 42rem;
}
.support-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.support-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  background: rgba(24, 24, 30, 0.9);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-size: 0.86rem;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
}
.support-pill:hover { border-color: rgba(225, 29, 46, 0.55); background: var(--bg-soft); }
.support-pill i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
}

.desk-shell {
  display: grid;
  grid-template-columns: 320px 1fr;
  min-height: var(--desk-h);
  height: var(--desk-h);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.02), transparent 40%),
    var(--bg-elev);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.desk-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: rgba(11, 11, 13, 0.55);
  min-width: 0;
}
.desk-side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--line);
}
.desk-side-head h2 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #e4e4e7;
}
.desk-side-tools { display: flex; gap: 0.4rem; align-items: center; }
.desk-side-tools select {
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.4rem 0.55rem;
  font-size: 0.82rem;
}
.btn-icon {
  width: 34px; height: 34px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--ink);
  border-radius: 9px;
  cursor: pointer;
}
.btn-icon:hover { border-color: rgba(225, 29, 46, 0.5); color: #fff; }
.ticket-list {
  overflow: auto;
  flex: 1;
  padding: 0.45rem;
}
.ticket-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: inherit;
  border-radius: 12px;
  padding: 0.75rem 0.8rem;
  display: grid;
  gap: 0.28rem;
  cursor: pointer;
  margin-bottom: 0.25rem;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.ticket-item:hover {
  background: rgba(255,255,255,0.03);
  border-color: var(--line);
}
.ticket-item.is-active {
  background: rgba(225, 29, 46, 0.12);
  border-color: rgba(225, 29, 46, 0.35);
}
.ticket-item-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}
.ticket-item-top strong {
  font-size: 0.82rem;
  letter-spacing: 0.03em;
  color: #fafafa;
}
.ticket-item-subject {
  font-size: 0.92rem;
  font-weight: 600;
  color: #f4f4f5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-item-preview {
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ticket-empty {
  color: var(--muted);
  text-align: center;
  padding: 2rem 1rem;
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  border: 1px solid transparent;
}
.status-pill::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor;
}
.status-open { color: #4ade80; background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.25); }
.status-pending { color: #fbbf24; background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.28); }
.status-closed { color: #a1a1aa; background: rgba(161,161,170,0.1); border-color: rgba(161,161,170,0.22); }

.desk-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background:
    radial-gradient(700px 280px at 100% 0%, rgba(225, 29, 46, 0.08), transparent 55%),
    #0e0e12;
}
.chat-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(18, 18, 22, 0.92);
  backdrop-filter: blur(10px);
}
.chat-toolbar-title { min-width: 0; }
.chat-toolbar-title strong {
  display: block;
  font-size: 1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chat-toolbar-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.admin-actions { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.admin-actions .btn { padding: 0.4rem 0.7rem; font-size: 0.82rem; }

.chat-empty, .chat-active {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.chat-empty {
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.chat-welcome {
  width: min(440px, 100%);
  border: 1px solid var(--line);
  background: rgba(18, 18, 22, 0.9);
  border-radius: 16px;
  padding: 1.35rem 1.4rem 1.2rem;
  box-shadow: 0 18px 40px rgba(0,0,0,0.28);
}
.chat-welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: #fecaca;
  background: rgba(225, 29, 46, 0.14);
  border: 1px solid rgba(225, 29, 46, 0.28);
  border-radius: 999px;
  padding: 0.25rem 0.65rem;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}
.chat-welcome h2 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.chat-welcome > p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.ticket-form { display: grid; gap: 0.7rem; }
.ticket-form .row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}
.ticket-form label {
  display: grid;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.8rem;
}
.ticket-form input,
.ticket-form textarea,
.chat-composer textarea,
.chat-composer input,
#acw-panel input,
#acw-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0b0b0d;
  color: var(--ink);
  border-radius: 10px;
  padding: 0.7rem 0.8rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.ticket-form input:focus,
.ticket-form textarea:focus,
.chat-composer textarea:focus,
#acw-panel input:focus,
#acw-panel textarea:focus {
  border-color: rgba(225, 29, 46, 0.55);
  box-shadow: 0 0 0 3px rgba(225, 29, 46, 0.12);
}
.ticket-form textarea { resize: vertical; min-height: 110px; }
.form-status { min-height: 1.2em; margin: 0; color: var(--muted); font-size: 0.85rem; }
.form-status.ok { color: var(--ok); }
.form-status.err { color: #f87171; }

.chat-messages, .acw-thread {
  flex: 1;
  overflow: auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.55rem;
  padding: 1rem;
  min-height: 0;
  scroll-behavior: smooth;
}
.chat-day {
  align-self: center;
  width: auto;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(18,18,22,0.9);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin: 0.15rem 0;
}
.msg-row {
  display: flex;
  width: fit-content;
  max-width: 82%;
  align-items: flex-end;
  gap: 0.45rem;
}
.msg-row.user {
  align-self: flex-end;
  margin-left: auto;
}
.msg-row.agent,
.msg-row.system {
  align-self: flex-start;
  margin-right: auto;
}
.msg-avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.66rem; font-weight: 700;
  flex: 0 0 26px;
  background: #27272f;
  color: #e4e4e7;
  border: 1px solid var(--line);
}
.msg-row.agent .msg-avatar {
  background: linear-gradient(145deg, #ff3b4b, #b91c1c);
  color: #fff;
  border-color: transparent;
}
.msg-bubble {
  min-width: 0;
  border-radius: 14px;
  padding: 0.65rem 0.8rem;
  background: #18181e;
  border: 1px solid var(--line);
}
.msg-row.user .msg-bubble {
  background: rgba(225, 29, 46, 0.22);
  border-color: rgba(225, 29, 46, 0.4);
  border-bottom-right-radius: 5px;
}
.msg-row.agent .msg-bubble { border-bottom-left-radius: 5px; }
.msg-row.system {
  max-width: 95%;
  align-self: center;
  margin-left: auto;
  margin-right: auto;
}
.msg-row.system .msg-bubble {
  background: transparent;
  border-style: dashed;
  color: var(--muted);
  font-size: 0.86rem;
}
.msg-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.45;
  font-size: 0.93rem;
}
.msg-meta {
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: 0.68rem;
  text-align: right;
}
.msg-row.agent .msg-meta,
.msg-row.system .msg-meta { text-align: left; }

/* Widget: no avatars, tighter bubbles */
#aogiri-chat-widget .msg-avatar { display: none; }
#aogiri-chat-widget .msg-row { max-width: 88%; }
#aogiri-chat-widget .acw-thread {
  background: #0e0e12;
}

.chat-composer {
  display: flex;
  gap: 0.55rem;
  align-items: flex-end;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--line);
  background: rgba(14, 14, 18, 0.96);
}
.chat-composer textarea {
  resize: none;
  min-height: 44px;
  max-height: 140px;
  line-height: 1.4;
}
.chat-composer .btn-send {
  width: 46px; height: 46px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 46px;
  box-shadow: 0 8px 20px rgba(225, 29, 46, 0.28);
}
.chat-composer .btn-send:hover { filter: brightness(1.08); }
.chat-composer .btn-send:disabled { opacity: 0.45; cursor: not-allowed; filter: none; }

.support-admin .desk-shell { margin: 1rem 0 2rem; }
.support-admin .auth-card { margin-top: 3rem; }

.desk-prices {
  margin: 0 0 1rem;
}
.desk-prices-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.desk-prices-head .meta { margin-bottom: 0; }
.desk-prices-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.desk-prices-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.55rem;
  max-height: 22rem;
  overflow: auto;
  padding-right: 0.15rem;
}
.day-picker {
  margin-bottom: 0.95rem;
}
.day-picker-presets {
  margin-bottom: 0.65rem;
}
.day-slider-wrap {
  display: grid;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
}
.day-slider-label {
  color: var(--muted);
  font-size: 0.9rem;
}
.day-slider-wrap input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
}
.day-price-line {
  margin: 0.15rem 0 0;
  font-size: 1.05rem;
  color: var(--ink);
}
.renew-day-slider {
  margin-top: 0.55rem;
}
.desk-prices-grid .field { margin-bottom: 0; }
.desk-prices-grid .field span {
  color: var(--muted);
  font-size: 0.86rem;
}
.desk-prices-grid input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
}
.desk-prices-grid input:focus {
  outline: none;
  border-color: rgba(225, 29, 46, 0.55);
}
.desk-prices .flash { margin: 0.85rem 0 0; }

@media (max-width: 1100px) {
  .desk-prices-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .desk-prices-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 520px) {
  .desk-prices-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.muted { color: var(--muted); font-size: 0.85rem; }
.chip { display: none; } /* legacy */

/* Floating live-chat widget */
#aogiri-chat-widget {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 80;
  font-family: var(--font-body);
}
.acw-launcher {
  width: 60px; height: 60px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff4455, #c8102e);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 0 rgba(225, 29, 46, 0.45),
    0 14px 34px rgba(0,0,0,0.4);
  animation: acw-pulse 2.4s ease-out infinite;
  transition: transform 0.15s;
}
.acw-launcher:hover { transform: scale(1.05); }
.acw-launcher svg { width: 26px; height: 26px; }
.acw-launcher.is-open { animation: none; }
@keyframes acw-pulse {
  0% { box-shadow: 0 0 0 0 rgba(225,29,46,0.45), 0 14px 34px rgba(0,0,0,0.4); }
  70% { box-shadow: 0 0 0 16px rgba(225,29,46,0), 0 14px 34px rgba(0,0,0,0.4); }
  100% { box-shadow: 0 0 0 0 rgba(225,29,46,0), 0 14px 34px rgba(0,0,0,0.4); }
}
.acw-panel {
  position: absolute;
  right: 0;
  bottom: 4.5rem;
  width: min(390px, calc(100vw - 1.5rem));
  height: min(620px, calc(100vh - 6.5rem));
  background: #121216;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0,0,0,0.55);
  display: flex;
  flex-direction: column;
  transform-origin: bottom right;
  animation: acw-in 0.18s ease-out;
}
@keyframes acw-in {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to { opacity: 1; transform: none; }
}
.acw-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  background:
    linear-gradient(135deg, rgba(255,59,75,0.95), rgba(153,16,32,0.95));
  color: #fff;
}
.acw-head-info { display: flex; gap: 0.7rem; align-items: center; min-width: 0; }
.acw-ava {
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,0.22);
  display: grid; place-items: center;
  font-weight: 700; letter-spacing: 0.04em;
  border: 1px solid rgba(255,255,255,0.25);
}
.acw-head-text { min-width: 0; }
.acw-head strong { display: block; font-size: 0.98rem; line-height: 1.2; }
.acw-online {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.74rem;
  line-height: 1.25;
  opacity: 0.95;
  padding-left: 0.85rem;
  position: relative;
}
.acw-online::before {
  content: "";
  position: absolute;
  left: 0; top: 0.35em;
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
}
.acw-head button {
  border: 0; background: rgba(0,0,0,0.18); color: #fff;
  width: 32px; height: 32px; border-radius: 9px; cursor: pointer; font-size: 1.2rem;
}
.acw-body {
  flex: 1; min-height: 0; overflow: auto;
  display: flex; flex-direction: column;
  background: #0e0e12;
}
.acw-welcome {
  padding: 1.1rem 1rem 0.4rem;
}
.acw-welcome h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
}
.acw-welcome p {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}
#acw-start {
  display: grid;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}
#acw-start .btn { margin-top: 0.2rem; border-radius: 10px; }
.acw-thread {
  flex: 1;
  padding: 0.9rem;
}
.acw-reply {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  border-top: 1px solid var(--line);
  background: #121216;
  align-items: flex-end;
}
.acw-reply textarea {
  min-height: 42px;
  max-height: 110px;
  resize: none;
}
.acw-reply button {
  width: 42px; height: 42px;
  border: 0; border-radius: 11px;
  background: linear-gradient(145deg, var(--accent-2), var(--accent));
  color: #fff; cursor: pointer; flex: 0 0 42px;
  display: grid; place-items: center;
}
.acw-foot {
  padding: 0.5rem 0.85rem 0.7rem;
  border-top: 1px solid var(--line);
  background: #121216;
  font-size: 0.78rem;
  display: flex;
  justify-content: flex-end;
}
.acw-foot a { color: #fca5a5; }

@media (max-width: 900px) {
  .desk-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }
  .desk-sidebar { max-height: 280px; border-right: 0; border-bottom: 1px solid var(--line); }
  .desk-main { min-height: 520px; }
  .ticket-form .row-2 { grid-template-columns: 1fr; }
  .pricing-row { grid-template-columns: 1fr; }
  .pricing-row span:nth-child(4) { color: var(--muted); }
  .msg-row { max-width: 92%; }
  .acw-panel {
    position: fixed;
    right: 0.6rem; left: 0.6rem; bottom: 5.2rem;
    width: auto;
    height: min(70vh, 620px);
  }
}
/* AOGIRI control-room UI — 2026 refresh */
:root {
  color-scheme: dark;
  --bg: #0a0b0d;
  --surface: #111317;
  --surface-2: #171a1f;
  --surface-3: #1d2127;
  --line: #2a2f37;
  --line-strong: #3a414c;
  --text: #f5f7fa;
  --muted: #a5adb8;
  --signal: #ef3e4a;
  --signal-hover: #ff5863;
  --success: #45c783;
  --warning: #f3b84b;
  --danger: #ff6670;
  --radius: 8px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .34);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: var(--signal);
  z-index: 999;
}
a { color: inherit; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid rgba(239,62,74,.7); outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}
.nav-links { display: flex; align-items: center; gap: 8px; }
.nav-links > a, .nav-action {
  padding: 9px 12px;
  color: var(--muted);
  text-decoration: none;
  border-radius: var(--radius);
  border: 0;
  background: transparent;
}
.nav-links > a:hover, .nav-action:hover { color: var(--text); background: var(--surface-2); }
.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { border-color: var(--signal); background: var(--signal); color: #fff; }
.btn-primary:hover { background: var(--signal-hover); border-color: var(--signal-hover); }
.btn-ghost { background: var(--surface-2); color: var(--text); }
.btn-block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.product-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .7fr);
  gap: 32px;
  align-items: center;
  min-height: 620px;
  padding: 64px 0;
}
.product-kicker, .eyebrow {
  margin: 0 0 16px;
  color: var(--signal);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.product-main h1, .page-title {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.055em;
}
.product-lead { max-width: 680px; margin: 24px 0; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0; }
.status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(17,19,23,.8);
  color: var(--muted);
  font-size: .9rem;
}
.status-strip strong { color: var(--text); }
.status-dot { width: 8px; height: 8px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(69,199,131,.12); }
.buy-card, .panel, .auth-card, .feature-cat, .legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(29,33,39,.96), rgba(17,19,23,.96));
  box-shadow: var(--shadow);
}
.buy-card { padding: 28px; }
.buy-card h2 { margin: 0 0 8px; }
.price { font-size: 2.2rem; font-weight: 850; letter-spacing: -.04em; }
.price span { margin-left: 6px; color: var(--muted); font-size: .85rem; font-weight: 500; letter-spacing: 0; }
.hint, .meta, .sub { color: var(--muted); }
.plan-pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 20px 0; }
.plan-option {
  display: flex; justify-content: space-between; gap: 8px; padding: 12px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--text); cursor: pointer;
}
.plan-option.is-active, .plan-option[aria-selected="true"] { border-color: var(--signal); background: rgba(239,62,74,.09); }

.section { padding: 72px 0; border-top: 1px solid var(--line); }
.section > h2, .section-head h2 { margin: 0 0 28px; font-size: clamp(1.8rem,4vw,3rem); letter-spacing: -.04em; }
.feature-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-cat { padding: 24px; box-shadow: none; }
.feature-cat h3 { margin-top: 0; }
.feature-cat p, .feature-cat li { color: var(--muted); }
.feature-cat ul { padding-left: 20px; }
.step-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.step-card { min-height: 180px; padding: 24px; background: var(--surface); }
.step-num { color: var(--signal); font: 800 .78rem/1 ui-monospace, monospace; letter-spacing: .1em; }
.step-card h3 { margin: 34px 0 8px; }
.step-card p { margin: 0; color: var(--muted); }
.trust-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 16px; }
.trust-grid .panel { padding: 24px; box-shadow: none; }
.faq-item { border-top: 1px solid var(--line); padding: 18px 0; }
.faq-item summary { cursor: pointer; font-weight: 700; }
.faq-item p { color: var(--muted); }
.site-footer { display:flex; justify-content:space-between; gap:24px; flex-wrap:wrap; padding:32px 0 48px; border-top:1px solid var(--line); color:var(--muted); font-size:.9rem; }
.footer-links, .footer-contacts { display:flex; flex-wrap:wrap; gap:16px; }

.page-shell { padding: 56px 0 80px; }
.page-header { max-width: 720px; margin-bottom: 32px; }
.page-header .page-title { font-size: clamp(2.3rem,6vw,4.6rem); }
.page-header p { color: var(--muted); font-size:1.08rem; }
.dashboard-grid { display:grid; grid-template-columns:repeat(12,1fr); gap:16px; }
.dashboard-grid > .panel { grid-column: span 6; padding:24px; box-shadow:none; }
.dashboard-grid > .panel.wide { grid-column: span 12; }
.panel h2, .panel h3 { margin-top:0; }
.quick-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; }
.action-card { padding:20px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-2); text-decoration:none; }
.action-card strong { display:block; margin-bottom:6px; }
.action-card span { color:var(--muted); font-size:.9rem; }

.support-layout, .desk-layout { display:grid; grid-template-columns:330px minmax(0,1fr); min-height:650px; border:1px solid var(--line); border-radius:var(--radius); overflow:hidden; background:var(--surface); }
.ticket-sidebar { border-right:1px solid var(--line); background:#0f1114; }
.ticket-sidebar-head, .chat-head { display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:72px; padding:16px 18px; border-bottom:1px solid var(--line); }
.ticket-list { max-height:570px; overflow:auto; }
.ticket-item { width:100%; padding:16px 18px; border:0; border-bottom:1px solid var(--line); background:transparent; color:var(--text); text-align:left; cursor:pointer; }
.ticket-item:hover, .ticket-item.is-active { background:var(--surface-2); }
.ticket-item.is-active { box-shadow:inset 3px 0 var(--signal); }
.ticket-item-preview { color:var(--muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.status-pill { display:inline-flex; padding:3px 8px; border:1px solid var(--line); border-radius:999px; color:var(--muted); font-size:.72rem; }
.status-open { color:var(--success); border-color:rgba(69,199,131,.35); }
.status-pending { color:var(--warning); border-color:rgba(243,184,75,.35); }
.chat-active { display:grid; grid-template-rows:auto 1fr auto; min-width:0; min-height:650px; }
.chat-empty { display:grid; place-items:center; padding:32px; }
.ticket-form { width:min(560px,100%); }
.chat-messages { overflow:auto; padding:24px; }
.chat-composer { display:flex; gap:10px; padding:16px; border-top:1px solid var(--line); background:var(--surface-2); }
.chat-composer textarea { flex:1; resize:none; }
.msg-row { display:flex; margin:12px 0; }
.msg-row.user { justify-content:flex-end; }
.msg-bubble { max-width:min(72%,640px); padding:12px 14px; border:1px solid var(--line); border-radius:var(--radius); background:var(--surface-2); }
.msg-row.user .msg-bubble { border-color:rgba(239,62,74,.35); background:rgba(239,62,74,.1); }
.msg-meta { display:flex; gap:12px; justify-content:flex-end; margin-top:6px; color:var(--muted); font-size:.72rem; }
.chat-day { margin:20px 0; color:var(--muted); font-size:.75rem; text-align:center; }

input, textarea, select {
  width:100%; min-height:44px; padding:10px 12px; border:1px solid var(--line-strong); border-radius:var(--radius);
  background:#0d0f12; color:var(--text);
}
textarea { min-height:96px; }
label { display:grid; gap:7px; margin-bottom:14px; color:var(--muted); font-size:.88rem; font-weight:650; }
.field { margin-bottom:16px; }
.flash, .form-status { padding:10px 12px; border-radius:var(--radius); }
.flash.ok, .form-status.ok { background:rgba(69,199,131,.1); color:var(--success); }
.flash.error, .flash.err, .form-status.err { background:rgba(255,102,112,.1); color:var(--danger); }
.is-hidden, [hidden] { display:none !important; }

#aogiri-chat-widget .acw-launcher { width:54px; height:54px; border:0; border-radius:50%; background:var(--signal); color:#fff; box-shadow:var(--shadow); }
#aogiri-chat-widget .acw-panel { border:1px solid var(--line); border-radius:var(--radius); background:var(--surface); box-shadow:var(--shadow); overflow:hidden; }

@media (max-width: 840px) {
  .site-nav { align-items:flex-start; padding:18px 0; }
  .nav-links { justify-content:flex-end; flex-wrap:wrap; }
  .product-hero { grid-template-columns:1fr; min-height:auto; padding:48px 0; }
  .feature-cats, .quick-actions { grid-template-columns:1fr; }
  .step-grid { grid-template-columns:1fr 1fr; }
  .trust-grid { grid-template-columns:1fr; }
  .dashboard-grid > .panel { grid-column:span 12; }
  .support-layout, .desk-layout { grid-template-columns:1fr; }
  .ticket-sidebar { border-right:0; border-bottom:1px solid var(--line); }
  .ticket-list { max-height:260px; }
}
@media (max-width: 560px) {
  .wrap { width:min(100% - 24px,1180px); }
  .site-nav { display:block; }
  .nav-links { margin-top:14px; justify-content:flex-start; }
  .nav-links > a { padding-inline:8px; }
  .product-main h1 { font-size:2.75rem; }
  .buy-card { padding:20px; }
  .step-grid, .plan-pick { grid-template-columns:1fr; }
  .section { padding:52px 0; }
  .support-layout { margin-inline:-12px; border-left:0; border-right:0; border-radius:0; }
  .msg-bubble { max-width:88%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
}
