:root {
  --bg: #07070d;
  --bg2: #0d0d17;
  --c: rgba(20, 20, 34, 0.76);
  --c-solid: #141422;
  --surface: rgba(16, 16, 28, 0.78);
  --surface-2: rgba(24, 24, 42, 0.88);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(124, 92, 255, 0.45);
  --a: #7c5cff;
  --a1: #7c5cff;
  --a2: #00d4ff;
  --t: #f0f0f8;
  --m: #8c8ca6;
  --ok: #2ecc71;
  --warn: #f39c12;
  --err: #ff5c77;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: radial-gradient(circle at 15% 10%, rgba(124, 92, 255, 0.14), transparent 40%),
              radial-gradient(circle at 85% 80%, rgba(0, 212, 255, 0.09), transparent 45%),
              var(--bg);
  color: var(--t);
  min-height: 100vh;
  overflow-x: hidden;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

body > *:not(#particles-canvas) {
  position: relative;
  z-index: 1;
}

a { color: var(--a); text-decoration: none; transition: color 0.2s; }
a:hover { color: #a38cff; }

nav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 5%;
  background: rgba(7, 7, 13, 0.8);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  gap: 12px;
}
nav div { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
nav a:not(.btn):not(.logo) { color: var(--m); font-size: 0.92rem; }
nav a:not(.btn):not(.logo):hover { color: var(--t); }

.logo {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--t);
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.logo b {
  background: linear-gradient(135deg, var(--a), var(--a2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.logo-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 12px var(--ok);
  animation: pulseDot 2.2s infinite;
}

.btn {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--a), #6342ff);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 9px 17px;
  border-radius: 10px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  transition: transform 0.18s ease, box-shadow 0.25s ease, filter 0.2s ease;
}
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.22), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(124, 92, 255, 0.35); color: #fff; }
.btn:hover::after { left: 140%; }
.btn:active { transform: translateY(0); }

.btn.s { background: rgba(42, 42, 62, 0.78); box-shadow: none; }
.btn.s:hover { background: rgba(58, 58, 84, 0.92); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3); }
.btn.d { background: linear-gradient(135deg, #d63031, #a82020); }
.btn.d:hover { box-shadow: 0 6px 20px rgba(214, 48, 49, 0.35); }
.btn.blue { background: linear-gradient(135deg, #2563eb, #1d4ed8); }
.btn.purp { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.btn.cyan { background: linear-gradient(135deg, #0891b2, #0e7490); }
.btn.warn { background: linear-gradient(135deg, #d97706, #b45309); }
.btn.ok { background: linear-gradient(135deg, #059669, #047857); }
.btn.xs { padding: 5px 10px; font-size: 0.78rem; border-radius: 7px; }

.wrap { padding: 34px 5%; max-width: 1320px; margin: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }

.card {
  background: var(--c);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 18px;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { border-color: var(--border-hover); box-shadow: 0 12px 34px rgba(0, 0, 0, 0.35); }
.card.featured { border-color: rgba(124, 92, 255, 0.55); box-shadow: 0 0 35px rgba(124, 92, 255, 0.14); }

input, select, textarea {
  width: 100%;
  padding: 10px 12px;
  margin: 6px 0;
  background: rgba(8, 8, 16, 0.88);
  border: 1px solid var(--border);
  color: var(--t);
  border-radius: 9px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--a);
  box-shadow: 0 0 0 3px rgba(124, 92, 255, 0.2);
}
input[type="checkbox"] { width: auto; margin: 0; accent-color: var(--a); }

.table-wrap { overflow-x: auto; margin-top: 10px; }
table { width: 100%; border-collapse: collapse; }
td, th { padding: 10px 8px; border-bottom: 1px solid var(--border); text-align: left; font-size: 0.84rem; vertical-align: middle; }
th { color: var(--m); font-weight: 600; text-transform: uppercase; font-size: 0.74rem; letter-spacing: 0.5px; }
tr:hover td { background: rgba(255, 255, 255, 0.02); }

.hero { text-align: center; padding: 84px 6% 48px; max-width: 880px; margin: auto; }
.badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: #c2b2ff;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.1; margin: 0 0 16px; letter-spacing: -1px; }
.hero h1 b {
  background: linear-gradient(135deg, var(--a), var(--a2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p { font-size: 1.06rem; max-width: 620px; margin: 0 auto 28px; line-height: 1.6; }

.muted { color: var(--m); }
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.5px; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 99px;
  background: rgba(124, 92, 255, 0.18);
  color: #cbbdff;
  font-size: 0.74rem;
  font-weight: 600;
}
.tag.ok { background: rgba(46, 204, 113, 0.16); color: #6ee7a0; }
.tag.warn { background: rgba(243, 156, 18, 0.18); color: #f8c471; }
.tag.err { background: rgba(255, 92, 119, 0.18); color: #ff8fa3; }
.tag.s { background: rgba(255, 255, 255, 0.08); color: var(--m); }
.tag.info { background: rgba(0, 212, 255, 0.16); color: var(--a2); }

.err { color: var(--err); font-size: 0.86rem; min-height: 18px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row input, .row select { width: auto; flex: 1; min-width: 95px; }

code {
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid var(--border);
  padding: 2px 7px;
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  color: #a9dcff;
}

pre {
  background: #06060b;
  border: 1px solid var(--border);
  padding: 14px;
  border-radius: 10px;
  overflow: auto;
  font-size: 0.8rem;
  line-height: 1.5;
  color: #d6e4ff;
}

.bar { width: 100%; height: 7px; background: rgba(255, 255, 255, 0.07); border-radius: 99px; overflow: hidden; margin-top: 6px; }
.bar > i { display: block; height: 100%; background: linear-gradient(90deg, var(--a), var(--a2)); border-radius: 99px; transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1); }

.auth { max-width: 410px; margin: 72px auto; }

.toast-box { position: fixed; bottom: 20px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: rgba(20, 20, 34, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-hover);
  color: var(--t);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 0.86rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  animation: slideIn 0.25s ease forwards;
}
.toast.err { border-color: rgba(255, 92, 119, 0.6); color: #ffb3c0; }

.fade-up { opacity: 0; transform: translateY(16px); animation: fadeUp 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes pulseDot { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.45); opacity: 0.65; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: translateX(0); } }