@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  color-scheme: dark;
  --bg: #07070a;
  --surface: #111114;
  --surface-2: #17171d;
  --text: #f7f5ff;
  --muted: #aaa6b8;
  --purple: #7c3aed;
  --purple-light: #a855f7;
  --red: #e11d2e;
  --red-light: #ff2d3d;
  --border: rgba(255, 255, 255, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 15% 0%, rgba(124, 58, 237, 0.2), transparent 30rem),
    radial-gradient(circle at 100% 30%, rgba(225, 29, 46, 0.13), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: 'Outfit', sans-serif;
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: '';
  opacity: 0.24;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.container { width: min(1120px, calc(100% - 40px)); margin-inline: auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  border-bottom: 1px solid var(--border);
}

.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: .08em; }
.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 28px rgba(124, 58, 237, .35);
}
.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--purple), var(--red-light));
  box-shadow: 0 0 28px rgba(124, 58, 237, .35);
}
.plugin-card__img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 14px;
}
.plugin-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.button.ghost {
  background: transparent;
  border-color: var(--border);
  box-shadow: none;
  color: var(--text);
}
.modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.62);
  backdrop-filter: blur(6px);
}
.modal[hidden] { display: none; }
.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: min(80vh, 720px);
  overflow: auto;
  padding: 28px 24px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
}
.modal-body { color: var(--muted); white-space: pre-wrap; }
.modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.detail-text { margin-top: 12px; color: var(--text); line-height: 1.55; }
.plugin-gallery { display: grid; gap: 16px; margin-top: 20px; }
.plugin-figure { margin: 0; }
.plugin-figure img {
  width: 100%;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: block;
}
.plugin-figure figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: .92rem;
}

.nav-links { display: flex; align-items: center; gap: 28px; color: var(--muted); }
.nav-links a:hover, .active { color: var(--text); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: white;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(110deg, var(--purple), var(--purple-light));
  box-shadow: 0 12px 32px rgba(124, 58, 237, .25);
  transition: transform .2s ease, filter .2s ease;
}
.button:hover { filter: brightness(1.1); transform: translateY(-2px); }
.button.secondary { border-color: var(--border); background: rgba(255,255,255,.04); box-shadow: none; }
.button.red { background: linear-gradient(110deg, var(--red), var(--red-light)); box-shadow: 0 12px 32px rgba(225,29,46,.2); }
.button.small { min-height: 38px; padding: 0 15px; font-size: .9rem; }

.hero {
  display: grid;
  min-height: 650px;
  place-items: center;
  padding: 90px 0 105px;
  text-align: center;
}
.hero-content { max-width: 900px; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #d7c5ff;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow::before { width: 26px; height: 2px; content: ''; background: var(--red-light); }
.hero-brand {
  margin: 0;
  font-size: clamp(4.6rem, 14vw, 9.5rem);
  font-weight: 800;
  letter-spacing: -.075em;
  line-height: .8;
  background: linear-gradient(110deg, #fff 25%, #b697ff 54%, #ff5360 85%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 18px 42px rgba(124, 58, 237, .2));
}
.hero h2 { margin: 36px 0 12px; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.1; }
.hero p { max-width: 610px; margin: 0 auto; color: var(--muted); font-size: 1.13rem; }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }

.section { padding: 90px 0; }
.section-heading { max-width: 650px; margin-bottom: 38px; }
.section-heading h1, .section-heading h2 { margin: 8px 0; font-size: clamp(2.2rem, 5vw, 3.6rem); line-height: 1.1; }
.section-heading p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
}
.card::after {
  position: absolute;
  right: -50px;
  bottom: -65px;
  width: 140px;
  height: 140px;
  content: '';
  border-radius: 50%;
  background: var(--purple);
  opacity: .1;
  filter: blur(22px);
}
.card:nth-child(even)::after { background: var(--red); }
.card-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(168,85,247,.35);
  border-radius: 14px;
  color: #d8c4ff;
  background: rgba(124,58,237,.13);
  font-size: 1.15rem;
}
.card h3 { margin: 20px 0 8px; font-size: 1.25rem; }
.card p { margin: 0; color: var(--muted); }

.cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 44px;
  border: 1px solid rgba(168,85,247,.27);
  border-radius: 28px;
  background: linear-gradient(125deg, rgba(124,58,237,.18), rgba(225,29,46,.08));
}
.cta h2 { margin: 0 0 7px; font-size: clamp(1.7rem, 4vw, 2.6rem); }
.cta p { margin: 0; color: var(--muted); }

.page-main { min-height: calc(100vh - 158px); padding: 80px 0; }
.plugin-card { min-height: 240px; display: flex; flex-direction: column; justify-content: space-between; }
.tag { width: max-content; padding: 5px 10px; border-radius: 99px; color: #d8c4ff; background: rgba(124,58,237,.16); font-size: .78rem; font-weight: 700; }
.empty-card { grid-column: 1 / -1; padding: 80px 30px; text-align: center; }

.auth-shell {
  display: grid;
  min-height: calc(100vh - 79px);
  grid-template-columns: 1fr 1fr;
}
.auth-art { display: flex; flex-direction: column; justify-content: flex-end; padding: 8vw; border-right: 1px solid var(--border); }
.auth-art strong { font-size: clamp(4rem, 10vw, 8rem); letter-spacing: -.07em; line-height: .8; }
.auth-art span { margin-top: 26px; color: var(--muted); }
.auth-panel { display: grid; padding: 44px 24px; place-items: center; }
.form-card { width: min(440px, 100%); }
.form-card h1 { margin: 0 0 8px; font-size: 2.5rem; }
.form-card > p { margin: 0 0 30px; color: var(--muted); }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field label { font-size: .9rem; font-weight: 600; }
.field input {
  width: 100%;
  height: 50px;
  padding: 0 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: var(--surface);
}
.field input:focus { border-color: var(--purple-light); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.form-card .button { width: 100%; margin-top: 6px; }
.form-foot { margin-top: 24px; text-align: center; color: var(--muted); }
.form-foot a { color: #c8a9ff; }
.message { min-height: 24px; margin: 14px 0 0; color: #ff7b85; font-size: .9rem; }
.message.success { color: #8ce6bb; }

.account-box { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; }
.profile-name { margin: 8px 0; font-size: 2.6rem; }
.profile-email { color: var(--muted); }
.stat { padding: 24px; border-bottom: 1px solid var(--border); }
.stat:last-child { border-bottom: 0; }
.stat span { display: block; color: var(--muted); font-size: .85rem; }
.stat strong { font-size: 1.3rem; }

.footer { padding: 34px 0; border-top: 1px solid var(--border); color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; }

.muted { color: var(--muted); }
.support-card { max-width: 720px; }
.support-form .field { margin-bottom: 16px; }
.support-form select,
.support-form textarea {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  color: var(--text);
  background: var(--surface);
  font: inherit;
  resize: vertical;
}
.support-form select { height: 50px; }
.support-form select:focus,
.support-form textarea:focus {
  border-color: var(--purple-light);
  box-shadow: 0 0 0 3px rgba(124,58,237,.15);
}
.support-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.ticket-list { display: grid; gap: 12px; max-width: 720px; }
.ticket-row {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.015));
  transition: border-color .15s, transform .15s;
}
.ticket-row:hover { border-color: rgba(168,85,247,.45); transform: translateY(-1px); }
.msg-list { display: grid; gap: 12px; margin: 22px 0; }
.msg-item {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.03);
}
.msg-item.admin { border-color: rgba(168,85,247,.35); background: rgba(124,58,237,.1); }
.msg-item p { margin: 8px 0 0; white-space: pre-wrap; }

@media (max-width: 800px) {
  .nav-links a:not(.button) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .hero { min-height: 560px; padding-block: 70px; }
  .hero-actions, .cta, .footer-inner { align-items: stretch; flex-direction: column; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-art { min-height: 260px; border-right: 0; border-bottom: 1px solid var(--border); }
  .account-box { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .container { width: min(100% - 28px, 1120px); }
  .hero-brand { font-size: 4.2rem; }
  .hero-actions { display: grid; }
  .cta { padding: 30px 24px; }
}
