/* 247ai.io storefront — zero-build design system */
:root {
  --bg: #070b14;
  --bg-soft: #0b1221;
  --panel: #0f1829;
  --panel-2: #131f34;
  --panel-3: #17263f;
  --line: #22314d;
  --line-soft: #1a2740;
  --text: #e9eefb;
  --muted: #93a4c6;
  --muted-2: #6f81a5;
  --brand: #6ea8ff;
  --brand-strong: #3b82f6;
  --violet: #a78bfa;
  --green: #34d399;
  --amber: #fbbf24;
  --red: #fb7185;
  --cyan: #67e8f9;
  --radius: 16px;
  --radius-sm: 11px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(1100px 620px at 12% -10%, rgba(59, 130, 246, 0.15), transparent 62%),
    radial-gradient(900px 560px at 92% 2%, rgba(139, 92, 246, 0.12), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: #b6d2ff; }

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

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0 0 0.5em; }
h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

.container { width: min(1200px, 92vw); margin-inline: auto; }

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  z-index: 200;
  background: var(--brand);
  color: #06101f;
  padding: 8px 14px;
  border-radius: 8px;
  font-weight: 700;
}
.skip-link:focus { left: 12px; }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 26px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.04em;
  color: var(--text);
  white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand-badge {
  display: inline-grid;
  place-items: center;
  padding: 3px 8px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), var(--violet));
  color: #07101f;
  font-size: 19px;
  line-height: 1;
}
.brand-dot { color: var(--brand); }
.brand-tld { color: var(--muted); font-weight: 600; font-size: 15px; margin-left: 2px; }
.brand-sm { font-size: 18px; }

.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav a {
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.main-nav a:hover { color: var(--text); background: rgba(110, 168, 255, 0.08); }
.main-nav a[aria-current="page"] { color: var(--text); background: rgba(110, 168, 255, 0.13); }

.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--panel);
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin: 3px 0; }

.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 5px 6px 5px 12px;
  font-size: 13px;
  color: var(--text);
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, var(--brand-strong), var(--violet));
  color: #06101f;
  font-weight: 800;
  font-size: 13px;
}
.user-menu { position: relative; }
.user-menu summary {
  list-style: none;
  cursor: pointer;
}
.user-menu summary::-webkit-details-marker { display: none; }
.user-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 9px);
  min-width: 210px;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow);
  padding: 7px;
  display: grid;
  gap: 2px;
}
.user-dropdown a, .user-dropdown button {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 9px 10px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}
.user-dropdown a:hover, .user-dropdown button:hover { background: var(--panel-3); color: var(--text); }
.user-dropdown .sep { height: 1px; background: var(--line); margin: 5px 0; }
.dropdown-role { padding: 5px 10px 7px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.12s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, #5b9dff, #3b82f6);
  color: #04101f;
  box-shadow: 0 10px 26px rgba(59, 130, 246, 0.32);
}
.btn-primary:hover { box-shadow: 0 14px 32px rgba(59, 130, 246, 0.42); color: #04101f; }
.btn-ghost { border-color: var(--line); background: rgba(15, 24, 41, 0.65); color: var(--text); }
.btn-ghost:hover { border-color: #33496f; background: var(--panel-2); color: var(--text); }
.btn-subtle { background: rgba(110, 168, 255, 0.11); color: #bdd7ff; border-color: rgba(110, 168, 255, 0.18); }
.btn-subtle:hover { background: rgba(110, 168, 255, 0.18); color: #dbeaff; }
.btn-danger { background: rgba(251, 113, 133, 0.13); border-color: rgba(251, 113, 133, 0.3); color: #ffc2cb; }
.btn-danger:hover { background: rgba(251, 113, 133, 0.2); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-block { width: 100%; }
.btn-link { background: none; border: 0; color: var(--brand); padding: 0; cursor: pointer; font-weight: 600; }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; padding: 68px 0 42px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 46px; align-items: center; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11.5px;
  font-weight: 700;
  color: #9dbcf3;
  background: rgba(110, 168, 255, 0.1);
  border: 1px solid rgba(110, 168, 255, 0.18);
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 20px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.13); }
.hero h1 { margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(100deg, #8dc1ff 10%, #c4b5fd 55%, #7dd3fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { color: var(--muted); font-size: 17px; max-width: 56ch; margin-bottom: 26px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; margin-bottom: 26px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted-2); font-size: 13px; }
.hero-points span { display: inline-flex; align-items: center; gap: 7px; }
.hero-points b { color: var(--green); font-weight: 700; }

.domain-card {
  background: linear-gradient(160deg, rgba(23, 38, 63, 0.92), rgba(11, 18, 33, 0.96));
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.domain-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(110, 168, 255, 0.2), transparent 68%);
  pointer-events: none;
}
.domain-card h2 { font-size: 1.35rem; margin-bottom: 5px; }
.domain-card .hint { color: var(--muted); font-size: 13px; margin-bottom: 17px; }

/* ---------------------------------------------------------------- forms */
.search-row { display: flex; gap: 8px; }
.field { display: grid; gap: 7px; margin-bottom: 15px; }
.field > label, .label { font-size: 12.5px; font-weight: 650; color: #b9c9e6; letter-spacing: 0.01em; }
.field .help { color: var(--muted-2); font-size: 12px; }
.input, .select, .textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #0a1120;
  border-radius: 10px;
  padding: 11px 13px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input::placeholder, .textarea::placeholder { color: #586a8d; }
.input:focus, .select:focus, .textarea:focus {
  border-color: #4d7fc4;
  box-shadow: 0 0 0 3px rgba(77, 127, 196, 0.18);
}
.textarea { min-height: 110px; resize: vertical; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .full { grid-column: 1 / -1; }
.checkbox { display: flex; gap: 9px; align-items: flex-start; color: var(--muted); font-size: 13px; }

/* ---------------------------------------------------------------- sections */
.section { padding: 46px 0; }
.section-tight { padding: 26px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.section-head p { color: var(--muted); margin: 4px 0 0; max-width: 62ch; }
.section-head a { font-size: 14px; font-weight: 600; }
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); }

.panel {
  background: linear-gradient(175deg, rgba(19, 31, 52, 0.75), rgba(13, 21, 37, 0.9));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel-sm { padding: 16px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.panel-head h2, .panel-head h3 { margin: 0; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 16px 17px;
}
.stat-label { color: var(--muted-2); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 650; }
.stat-value { font-size: 1.55rem; font-weight: 750; letter-spacing: -0.03em; margin-top: 4px; }
.stat-value.small { font-size: 1.15rem; }
.stat-note { color: var(--muted); font-size: 12px; margin-top: 2px; }

/* ---------------------------------------------------------------- product cards */
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  background: linear-gradient(175deg, rgba(21, 34, 57, 0.82), rgba(12, 20, 35, 0.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 19px;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
  overflow: hidden;
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: #31507d;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28);
}
.product-card .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.type-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 19px;
  border: 1px solid var(--line);
  background: var(--panel-3);
  color: var(--brand);
  flex: none;
}
.type-icon[data-type="ai_app"] { color: #93c5fd; background: rgba(59, 130, 246, 0.13); border-color: rgba(59, 130, 246, 0.24); }
.type-icon[data-type="digital_service"] { color: #d8b4fe; background: rgba(168, 85, 247, 0.13); border-color: rgba(168, 85, 247, 0.24); }
.type-icon[data-type="hosting_plan"] { color: #6ee7b7; background: rgba(16, 185, 129, 0.12); border-color: rgba(16, 185, 129, 0.24); }
.type-icon[data-type="domain"] { color: #fcd34d; background: rgba(245, 158, 11, 0.12); border-color: rgba(245, 158, 11, 0.24); }
.product-card h3 { font-size: 1.02rem; margin: 0; }
.product-card h3 a { color: var(--text); }
.product-card h3 a:hover { color: #cfe3ff; }
.product-summary { color: var(--muted); font-size: 13.5px; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.product-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.product-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; padding-top: 4px; }
.price { font-size: 1.22rem; font-weight: 750; letter-spacing: -0.02em; }
.price small { font-size: 12px; color: var(--muted-2); font-weight: 500; letter-spacing: 0; }
.price-sub { font-size: 11.5px; color: var(--muted-2); }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge-neutral { background: rgba(147, 164, 198, 0.1); border-color: rgba(147, 164, 198, 0.16); color: #b7c6e2; }
.badge-brand { background: rgba(110, 168, 255, 0.12); border-color: rgba(110, 168, 255, 0.22); color: #bcd8ff; }
.badge-green { background: rgba(52, 211, 153, 0.12); border-color: rgba(52, 211, 153, 0.24); color: #86efc4; }
.badge-amber { background: rgba(251, 191, 36, 0.11); border-color: rgba(251, 191, 36, 0.24); color: #fcd77a; }
.badge-red { background: rgba(251, 113, 133, 0.11); border-color: rgba(251, 113, 133, 0.24); color: #ffb3bf; }
.badge-violet { background: rgba(167, 139, 250, 0.12); border-color: rgba(167, 139, 250, 0.24); color: #d4c4ff; }

/* ---------------------------------------------------------------- domain results */
.domain-results { display: grid; gap: 9px; margin-top: 17px; }
.domain-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(10, 17, 32, 0.72);
}
.domain-result .name { font-weight: 650; font-size: 14px; overflow: hidden; text-overflow: ellipsis; }
.domain-result .sub { color: var(--muted-2); font-size: 11.5px; }
.domain-result .right { margin-left: auto; display: flex; align-items: center; gap: 11px; text-align: right; }
.domain-result .amount { font-weight: 700; font-size: 13.5px; white-space: nowrap; }
.domain-result .amount small { display: block; font-weight: 500; font-size: 10.5px; color: var(--muted-2); }

/* ---------------------------------------------------------------- filters/tabs */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .field { margin: 0; }
.filters .grow { flex: 1 1 260px; }

.tabs { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.tabs a, .tabs button {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 10px 13px;
  font-size: 13.5px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
}
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs a[aria-current="page"], .tabs button.active { color: var(--text); border-bottom-color: var(--brand); }

.pill-row { display: flex; flex-wrap: wrap; gap: 7px; }
.pill {
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  cursor: pointer;
}
.pill.active { border-color: rgba(110, 168, 255, 0.4); background: rgba(110, 168, 255, 0.14); color: #cfe3ff; }

/* ---------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 13px; background: var(--panel); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 13px; text-align: left; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
th { color: var(--muted-2); font-size: 11px; text-transform: uppercase; letter-spacing: 0.09em; background: rgba(10, 17, 32, 0.7); white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(110, 168, 255, 0.035); }
td .sub { color: var(--muted-2); font-size: 11.5px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; color: #a9bce0; }

/* ---------------------------------------------------------------- status */
.status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 650;
  border-radius: 999px;
  padding: 3px 9px;
  border: 1px solid transparent;
  text-transform: capitalize;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status-pending, .status-requested { color: #fcd77a; background: rgba(251, 191, 36, 0.1); border-color: rgba(251, 191, 36, 0.22); }
.status-processing { color: #93c5fd; background: rgba(59, 130, 246, 0.1); border-color: rgba(59, 130, 246, 0.22); }
.status-provided, .status-paid, .status-active, .status-registered, .status-settled { color: #6ee7b7; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.22); }
.status-rejected, .status-failed, .status-cancelled, .status-expired, .status-suspended { color: #fda4af; background: rgba(251, 113, 133, 0.1); border-color: rgba(251, 113, 133, 0.22); }
.status-draft { color: #b7c6e2; background: rgba(147, 164, 198, 0.1); border-color: rgba(147, 164, 198, 0.18); }
.status-published { color: #86efc4; background: rgba(52, 211, 153, 0.1); border-color: rgba(52, 211, 153, 0.22); }

/* ---------------------------------------------------------------- product detail */
.detail-grid { display: grid; grid-template-columns: 1.55fr 0.85fr; gap: 28px; align-items: start; }
.breadcrumb { color: var(--muted-2); font-size: 12.5px; margin-bottom: 17px; }
.breadcrumb a { color: var(--muted); }
.detail-title { display: flex; gap: 15px; align-items: center; margin-bottom: 8px; }
.detail-title h1 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin: 0; }
.detail-summary { color: var(--muted); font-size: 16px; margin: 12px 0 20px; }
.prose { color: #c2cfe6; font-size: 14.5px; line-height: 1.75; }
.prose > *:last-child { margin-bottom: 0; }
.buy-panel { position: sticky; top: 88px; }
.buy-panel .price-lg { font-size: 2rem; font-weight: 780; letter-spacing: -0.03em; }
.buy-panel .price-lg small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.buy-list { display: grid; gap: 9px; margin: 16px 0; color: var(--muted); font-size: 13px; }
.buy-list div { display: flex; gap: 8px; align-items: flex-start; }
.buy-list b { color: var(--green); }
.divider { height: 1px; background: var(--line); margin: 18px 0; }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: 64vh; display: grid; place-items: center; padding: 48px 0; }
.auth-card { width: min(440px, 92vw); }
.auth-card h1 { font-size: 1.8rem; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.auth-alt { text-align: center; color: var(--muted); font-size: 13px; margin-top: 17px; }
.demo-hint { background: rgba(110, 168, 255, 0.07); border: 1px dashed rgba(110, 168, 255, 0.25); border-radius: 10px; padding: 10px 12px; color: var(--muted); font-size: 12px; margin-top: 17px; line-height: 1.55; }

/* ---------------------------------------------------------------- misc */
.alert { border-radius: 11px; padding: 12px 14px; font-size: 13px; margin-bottom: 16px; border: 1px solid transparent; line-height: 1.55; }
.alert-error { background: rgba(251, 113, 133, 0.09); border-color: rgba(251, 113, 133, 0.25); color: #ffc1cb; }
.alert-info { background: rgba(110, 168, 255, 0.08); border-color: rgba(110, 168, 255, 0.22); color: #c5dcff; }
.alert-success { background: rgba(52, 211, 153, 0.08); border-color: rgba(52, 211, 153, 0.22); color: #a7f3d0; }

.empty { text-align: center; padding: 46px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); background: rgba(15, 24, 41, 0.45); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.empty p { margin-bottom: 16px; font-size: 13.5px; }

.loading { display: grid; place-items: center; padding: 70px 0; color: var(--muted); gap: 14px; }
.spinner {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid var(--panel-3);
  border-top-color: var(--brand);
  animation: spin 0.75s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { border-radius: 9px; background: linear-gradient(90deg, var(--panel) 20%, var(--panel-2) 40%, var(--panel) 60%); background-size: 300% 100%; animation: shimmer 1.3s infinite; }
@keyframes shimmer { 0% { background-position: 120% 0; } 100% { background-position: -80% 0; } }

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 24px);
  background: #162238;
  border: 1px solid var(--line);
  color: var(--text);
  padding: 12px 18px;
  border-radius: 11px;
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 120;
  max-width: min(520px, 92vw);
  font-size: 13.5px;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.success { border-color: rgba(52, 211, 153, 0.35); }
.toast.error { border-color: rgba(251, 113, 133, 0.4); }

.modal { border: 0; padding: 0; background: transparent; color: var(--text); max-width: min(520px, 94vw); width: 100%; }
.modal::backdrop { background: rgba(3, 7, 15, 0.72); backdrop-filter: blur(4px); }
.modal-card {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--shadow);
}
.modal-card h2 { font-size: 1.25rem; margin-bottom: 16px; }
.modal-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }

.two-col { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 20px; align-items: start; }
.side-list { display: grid; gap: 12px; }
.side-item { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.side-item:last-child { border-bottom: 0; }
.side-item span:first-child { color: var(--muted); }
.side-item span:last-child { font-weight: 600; }

.table-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.inline-form { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.inline-form .input, .inline-form .select { width: auto; padding: 7px 10px; font-size: 12.5px; }
.inline-form .select { padding-right: 30px; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 34px; border-top: 1px solid var(--line-soft); background: rgba(6, 10, 18, 0.7); padding: 42px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; }
.footer-grid h3 { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.11em; color: var(--muted-2); margin-bottom: 12px; }
.footer-grid a { display: block; color: var(--muted); font-size: 13px; padding: 4px 0; }
.footer-grid a:hover { color: var(--text); }
.footer-copy { color: var(--muted-2); font-size: 13px; max-width: 34ch; margin-top: 13px; }
.footer-note { display: block; color: var(--muted-2); font-size: 11.5px; margin-top: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); margin-top: 30px; padding-top: 18px; color: var(--muted-2); font-size: 12px; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-grid { grid-template-columns: 1fr; }
  .buy-panel { position: static; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
}

@media (max-width: 860px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(9, 15, 27, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 10px 4vw 16px;
    flex-direction: column;
    gap: 2px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px; }
  .header-inner { gap: 12px; }
  .header-actions { margin-left: auto; }
  .nav-toggle { display: block; }
  .header-actions .btn span.long { display: none; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  body { font-size: 14.5px; }
  .hero { padding: 42px 0 26px; }
  .hero-lead { font-size: 15.5px; }
  .section { padding: 32px 0; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .footer-bottom { flex-direction: column; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .search-row { flex-direction: column; }
  .search-row .btn { width: 100%; }
  .domain-card { padding: 20px; }
  .user-chip .user-name { display: none; }
  .tabs { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 1px; }
  .tabs a, .tabs button { white-space: nowrap; }
}
