﻿:root {
  --bg: #07131a;
  --panel: #0f212c;
  --panel-alt: #112a37;
  --text-main: #eff8ff;
  --text-sub: #b1cbdb;
  --brand: #44d6b1;
  --brand-2: #f7b955;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.35);
  --warn: #ffcb66;
  --ok: #8ee5b3;
  --soft: #8ec8ff;
  --danger: #ff9d9d;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at 0% 0%, rgba(68, 214, 177, 0.15), transparent 45%),
    radial-gradient(circle at 95% 5%, rgba(247, 185, 85, 0.12), transparent 40%),
    linear-gradient(140deg, #07131a 0%, #0b1e28 45%, #0f2432 100%);
  min-height: 100vh;
  line-height: 1.6;
}

.bg-glow {
  position: fixed;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: -1;
}

.bg-glow-1 {
  background: rgba(68, 214, 177, 0.25);
  top: -40px;
  right: 5vw;
}

.bg-glow-2 {
  background: rgba(247, 185, 85, 0.2);
  bottom: -80px;
  left: 10vw;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(45px);
  opacity: 0.5;
  z-index: -1;
}

.bg-shape-a {
  width: 220px;
  height: 220px;
  background: #99f6e4;
  top: -50px;
  left: -70px;
}

.bg-shape-b {
  width: 320px;
  height: 320px;
  background: #fed7aa;
  right: -100px;
  bottom: -120px;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding: 3.4rem 0 2rem;
  animation: riseIn 0.7s ease forwards;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.eyebrow {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-size: 0.9rem;
}

.lang-switch {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-sub);
  font-weight: 700;
  border-radius: 999px;
  min-width: 42px;
  padding: 0.35rem 0.55rem;
  cursor: pointer;
}

.lang-btn.is-active {
  background: linear-gradient(90deg, var(--brand), #7ef3d7);
  color: #07221a;
}

h1 {
  margin: 0.6rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  max-width: 760px;
}

.subtitle {
  color: var(--text-sub);
  max-width: 680px;
  margin: 1rem 0 1.5rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.cta,
.ghost-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.72rem 1.1rem;
  transition: transform 0.18s ease, filter 0.18s ease;
  cursor: pointer;
}

.cta {
  color: #07221a;
  background: linear-gradient(90deg, var(--brand), #7ef3d7);
  border: 0;
}

.ghost-btn {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.cta:hover,
.ghost-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

main {
  display: grid;
  gap: 1.6rem;
}

.app {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 16px 60px;
}

.hero {
  animation: riseIn 0.7s ease forwards;
}

.brand-mini {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: 0.14em;
  color: var(--brand);
  font-size: 0.9rem;
}

.nav-link {
  color: var(--text-main);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.panel {
  background: linear-gradient(150deg, rgba(17, 42, 55, 0.9), rgba(15, 33, 44, 0.92));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1rem;
}

.panel + .panel {
  margin-top: 0;
}

.score-wrap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.score-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.04);
}

.score-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.score-card h2 {
  margin: 0.25rem 0 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.7rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

button,
input,
select {
  font: inherit;
}

button {
  border: 0;
  border-radius: 10px;
  padding: 0.62rem 0.85rem;
  color: #07221a;
  background: linear-gradient(90deg, var(--brand), #7ef3d7);
  font-weight: 700;
  cursor: pointer;
}

button.ghost {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

input,
select {
  min-width: 220px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.62rem 0.78rem;
}

select option {
  color: var(--text-main);
  background: #102533;
}

label {
  color: var(--text-sub);
}

.quota {
  color: var(--text-sub);
  font-size: 0.88rem;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.admin-table th,
.admin-table td {
  border: 1px solid var(--line);
  padding: 0.55rem;
  text-align: left;
  vertical-align: top;
  white-space: nowrap;
}

.admin-table th {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.07);
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
}

.stats article,
.analytics,
.contact {
  background: linear-gradient(150deg, rgba(17, 42, 55, 0.9), rgba(15, 33, 44, 0.92));
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}

.stats article {
  padding: 1rem 1.1rem;
}

.stat-label {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.88rem;
}

.stat-value {
  margin: 0.2rem 0 0;
  font-size: 1.3rem;
  font-weight: 700;
}

.tools {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  background: rgba(7, 19, 26, 0.38);
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: end;
  gap: 0.7rem;
  margin-bottom: 0.9rem;
}

.section-head h2,
.contact h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.4rem;
}

.section-head p,
.contact p {
  margin: 0;
  color: var(--text-sub);
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.search-input,
.category-filter {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.62rem 0.78rem;
  font-size: 0.96rem;
}

.category-filter {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.category-filter option {
  color: var(--text-main);
  background: #102533;
}

.search-input::placeholder {
  color: rgba(239, 248, 255, 0.56);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.detail-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  background: rgba(255, 255, 255, 0.03);
}

.detail-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.detail-card p {
  margin: 0;
  color: var(--text-sub);
  font-size: 0.92rem;
}

.card {
  background: linear-gradient(145deg, var(--panel), var(--panel-alt));
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  opacity: 0;
  animation: riseIn 0.55s ease forwards;
}

.card-top {
  display: flex;
  justify-content: space-between;
  gap: 0.55rem;
  align-items: start;
}

.card h3 {
  margin: 0;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--text-sub);
  flex: 1;
  font-size: 0.94rem;
}

.status-badge {
  font-size: 0.74rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-new {
  color: #101d12;
  background: var(--ok);
}

.status-stable {
  color: #122232;
  background: var(--soft);
}

.status-maintenance {
  color: #34240a;
  background: var(--warn);
}

.status-coming {
  color: #321515;
  background: var(--danger);
}

.card-meta {
  color: var(--text-sub);
  font-size: 0.82rem;
}

.tool-link {
  color: #041e19;
  text-decoration: none;
  background: linear-gradient(90deg, var(--brand-2), #f9d38d);
  border-radius: 10px;
  padding: 0.5rem 0.68rem;
  width: fit-content;
  font-weight: 700;
}

.empty-state {
  color: var(--text-sub);
  margin: 0.9rem 0 0;
}

.analytics,
.contact {
  padding: 1rem;
}

.analytics-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.analytics-item {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.48rem 0.65rem;
  color: var(--text-sub);
  background: rgba(255, 255, 255, 0.03);
}

.modal {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  z-index: 20;
}

.modal[hidden] {
  display: none !important;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
}

.modal-panel {
  position: relative;
  width: min(680px, calc(100% - 1.2rem));
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(145deg, #0d1d27, #102533);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.65rem;
}

.modal-head h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.ticket-form {
  display: grid;
  gap: 0.5rem;
}

.form-label {
  font-size: 0.88rem;
  color: var(--text-sub);
}

.form-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  padding: 0.62rem 0.76rem;
  font-size: 0.95rem;
}

.form-textarea {
  min-height: 120px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: 0.65rem;
  margin-top: 0.2rem;
}

.ticket-tip {
  min-height: 1.2rem;
  margin: 0;
  color: var(--text-sub);
}

footer {
  padding: 1.5rem 0 2rem;
  color: #9fb9ca;
  font-size: 0.92rem;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 900px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header,
  main,
  footer {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .stats {
    grid-template-columns: 1fr;
  }
}
