:root {
  color-scheme: dark;
  --bg: #071116;
  --panel: #0d1c23;
  --panel-2: #11262f;
  --line: #24414b;
  --text: #edf7f8;
  --muted: #9bb4ba;
  --accent: #36d399;
  --accent-dark: #0f766e;
  --warning: #fbbf24;
  --danger: #fb7185;
  --blue: #60a5fa;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 2%, rgba(15, 118, 110, 0.25), transparent 34rem),
    radial-gradient(circle at 92% 18%, rgba(54, 211, 153, 0.1), transparent 28rem),
    var(--bg);
  color: var(--text);
}

a { color: var(--accent); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.shell { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(7, 17, 22, 0.82);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(155, 180, 186, 0.16);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; }
.brand-copy { display: grid; justify-items: start; gap: 3px; }
.brand-byline { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(145deg, #43e2a7, #148474);
  color: #04110e;
  box-shadow: 0 10px 26px rgba(54, 211, 153, 0.22);
  font-weight: 900;
}
.brand strong { display: block; font-size: 16px; letter-spacing: 0.01em; }
.brand small { display: block; color: var(--muted); font-size: 12px; margin-top: 1px; }
.artecsys-wordmark {
  display: inline-flex;
  width: clamp(116px, 11vw, 150px);
  flex: 0 0 auto;
  line-height: 0;
}
.artecsys-wordmark img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 3px 8px rgba(179, 0, 0, .14));
}
.compact-wordmark { width: clamp(124px, 12vw, 158px); margin-top: 3px; }
.footer-lockup { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; }
.footer-wordmark { width: clamp(136px, 14vw, 176px); }

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

.btn {
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 10px 16px;
  color: #04110e;
  background: var(--accent);
  font-weight: 750;
  transition: transform 120ms ease, filter 120ms ease, border-color 120ms ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.secondary { background: transparent; border-color: var(--line); color: var(--text); }
.btn.purchase { color: #fff; background: linear-gradient(145deg, #d71920, #8f0000); box-shadow: 0 10px 24px rgba(183, 0, 0, .18); }
.btn.danger { background: transparent; border-color: rgba(251, 113, 133, 0.5); color: #fecdd3; }
.btn.small { padding: 7px 10px; border-radius: 8px; font-size: 12px; }

.hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 54px;
  padding: 78px 0 64px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(54, 211, 153, 0.28);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  font-size: 13px;
  font-weight: 700;
}

h1 { margin: 22px 0 18px; font-size: clamp(42px, 6vw, 72px); line-height: 0.98; letter-spacing: -0.045em; }
h2 { margin: 0 0 10px; font-size: clamp(25px, 3vw, 36px); letter-spacing: -0.025em; }
h3 { margin: 0 0 8px; }
.lead { max-width: 670px; color: #bdd0d4; font-size: clamp(17px, 2vw, 20px); line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.feature-card, .card {
  border: 1px solid rgba(155, 180, 186, 0.18);
  border-radius: 20px;
  background: linear-gradient(155deg, rgba(17, 38, 47, 0.96), rgba(9, 24, 30, 0.96));
  box-shadow: var(--shadow);
}

.feature-card { padding: 28px; transform: rotate(1deg); }
.feature-card .mock-head { display: flex; gap: 7px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.mock-row { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 14px; padding: 15px 0; border-bottom: 1px solid rgba(36, 65, 75, 0.58); }
.mock-icon { width: 36px; height: 36px; border-radius: 11px; background: rgba(54, 211, 153, 0.12); color: var(--accent); display: grid; place-items: center; }
.mock-row strong { font-size: 14px; }
.mock-row small { display: block; color: var(--muted); margin-top: 3px; }
.check { color: var(--accent); font-weight: 900; }

.section { padding: 68px 0; }
.section-intro { max-width: 680px; color: var(--muted); line-height: 1.65; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
.card { padding: 24px; }
.card p { color: var(--muted); line-height: 1.6; }
.price { font-size: 42px; font-weight: 900; letter-spacing: -0.04em; margin: 18px 0 4px; }
.price small { color: var(--muted); font-size: 15px; font-weight: 500; letter-spacing: 0; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(1, 7, 10, 0.78);
  backdrop-filter: blur(10px);
}
.modal-backdrop[hidden] { display: none; }
.modal { width: min(480px, 100%); padding: 26px; max-height: 92vh; overflow: auto; }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.icon-btn { border: 0; background: transparent; color: var(--muted); font-size: 24px; line-height: 1; }

.tabs { display: flex; gap: 8px; margin: 0 0 20px; }
.tab { flex: 1; border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 10px; border-radius: 9px; }
.tab.active { color: var(--text); border-color: var(--accent-dark); background: rgba(15, 118, 110, 0.16); }

.form { display: grid; gap: 14px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13px; font-weight: 700; color: #c9dadd; }
.input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 12px;
  background: #08151b;
  color: var(--text);
  outline: none;
}
.input:focus { border-color: var(--accent-dark); box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.18); }
textarea.input { min-height: 90px; resize: vertical; }
.form-message { min-height: 20px; color: var(--muted); font-size: 13px; }
.form-message.error { color: #fecdd3; }
.form-message.success { color: #a7f3d0; }

.account-panel { margin: 40px 0 78px; padding: 28px; }
.account-panel[hidden] { display: none; }
.account-head { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.status-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.status-box { padding: 16px; border-radius: 13px; background: rgba(7, 17, 22, 0.7); border: 1px solid var(--line); }
.status-box span { display: block; color: var(--muted); font-size: 12px; }
.status-box strong { display: block; margin-top: 6px; }

.payment-panel { margin: -40px auto 78px; padding: 30px; }
.payment-panel[hidden] { display: none; }
.payment-heading, .payment-status-row { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.payment-status-row { align-items: center; margin: 22px 0 16px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: rgba(7, 17, 22, .7); }
.payment-status-row strong { font-size: 21px; }
.payment-status { display: inline-flex; padding: 6px 10px; border-radius: 999px; color: #fde68a; background: rgba(245, 158, 11, .12); font-size: 12px; font-weight: 800; }
.payment-status.approved { color: #a7f3d0; background: rgba(16, 185, 129, .12); }
.payment-status.rejected { color: #fecdd3; background: rgba(244, 63, 94, .12); }
.bank-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bank-detail { min-width: 0; padding: 15px; border: 1px solid var(--line); border-radius: 13px; background: #08151b; }
.bank-detail.wide { grid-column: span 2; }
.bank-detail span { display: block; margin-bottom: 7px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.bank-detail div { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.bank-detail strong { overflow-wrap: anywhere; }
.copy-button { flex: 0 0 auto; padding: 6px 8px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); background: var(--panel-2); font-size: 11px; font-weight: 700; }
.payment-warning { margin: 14px 0 0; padding: 12px 14px; border-left: 3px solid var(--warning); border-radius: 8px; color: #fef3c7 !important; background: rgba(245, 158, 11, .08); font-size: 13px; }
.payment-form, .payment-review { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }
.payment-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.payment-review { color: var(--muted); }
.payment-review h3 { color: var(--text); }

.badge { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 9px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.badge.active { color: #a7f3d0; background: rgba(16, 185, 129, 0.12); }
.badge.pending { color: #fde68a; background: rgba(245, 158, 11, 0.12); }
.badge.blocked, .badge.revoked, .badge.suspended, .badge.refunded { color: #fecdd3; background: rgba(244, 63, 94, 0.12); }
.badge.trial { color: #bfdbfe; background: rgba(59, 130, 246, 0.12); }
.badge.perpetual { color: #a7f3d0; background: rgba(16, 185, 129, 0.12); }

.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--line); padding: 24px 18px; background: rgba(7, 17, 22, 0.9); }
.sidebar .brand { margin-bottom: 32px; }
.menu { display: grid; gap: 7px; }
.menu button { text-align: left; padding: 11px 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--muted); }
.menu button.active { background: rgba(15, 118, 110, 0.16); color: var(--text); border-color: rgba(54, 211, 153, 0.18); }
.admin-main { padding: 30px; min-width: 0; }
.admin-top { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 24px; }
.metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.metric { padding: 20px; }
.metric span { color: var(--muted); font-size: 13px; }
.metric strong { display: block; margin-top: 8px; font-size: 32px; }
.panel { margin-top: 18px; padding: 20px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 16px; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; min-width: 780px; }
th, td { padding: 12px 13px; text-align: left; border-bottom: 1px solid rgba(36, 65, 75, 0.58); font-size: 13px; vertical-align: middle; }
th { color: var(--muted); background: #0a181e; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; }
tr:last-child td { border-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.empty { padding: 34px; text-align: center; color: var(--muted); }
.view[hidden], .auth-screen[hidden] { display: none; }
.auth-screen { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(460px, 100%); padding: 28px; }

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  max-width: 380px;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #10242c;
  box-shadow: var(--shadow);
}
.toast[hidden] { display: none; }
.toast.error { border-color: rgba(251, 113, 133, 0.5); }

footer { border-top: 1px solid rgba(155, 180, 186, 0.12); padding: 30px 0; color: var(--muted); font-size: 13px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 55px; }
  .feature-card { transform: none; }
  .grid-3, .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .status-grid { grid-template-columns: repeat(2, 1fr); }
  .bank-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-layout { grid-template-columns: 1fr; }
  .sidebar { position: sticky; top: 0; z-index: 12; border-right: 0; border-bottom: 1px solid var(--line); padding: 12px 16px; }
  .sidebar .brand { margin: 0 0 10px; }
  .menu { display: flex; overflow-x: auto; }
  .menu button { white-space: nowrap; }
  .admin-main { padding: 20px 16px; }
}

@media (max-width: 580px) {
  .shell { width: min(100% - 22px, 1160px); }
  .nav { min-height: 64px; }
  .brand small { display: none; }
  .grid-3, .metric-grid, .status-grid { grid-template-columns: 1fr; }
  .account-head, .admin-top, .panel-head { align-items: stretch; flex-direction: column; }
  .payment-heading, .payment-status-row { align-items: stretch; flex-direction: column; }
  .bank-grid, .payment-form-grid { grid-template-columns: 1fr; }
  .bank-detail.wide { grid-column: auto; }
  h1 { font-size: 43px; }
}
