:root {
  --bg: #090b12;
  --card: rgba(15, 18, 29, 0.88);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --text: #f4f7fb;
  --muted: #9aa7bb;
  --accent: #ff2656;
  --green: #1bd98d;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --radius: 16px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100%; color: var(--text); font-family: var(--font);
  background:
    radial-gradient(circle at 50% -5%, rgba(255, 38, 86, 0.14), transparent 34%),
    radial-gradient(circle at 10% 10%, rgba(255, 38, 86, 0.06), transparent 22%),
    linear-gradient(180deg, #080a10 0%, #090b12 45%, #070910 100%);
  overflow-x: hidden;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px);
  background-size: 28px 28px; mask-image: linear-gradient(to bottom, rgba(0,0,0,0.82), transparent 86%);
}
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.page { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; }
.container { width: min(1180px, calc(100% - 44px)); margin: 0 auto; }
.header { position: sticky; top: 0; z-index: 30; border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); background: rgba(8, 10, 16, 0.72); }
.header-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; letter-spacing: 0.04em; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.brand-mark { display: inline-grid; place-items: center; min-width: 68px; height: 34px; padding: 0 12px; color: #fff; font-size: 16px; font-weight: 950; background: var(--accent); clip-path: polygon(0 0, calc(100% - 11px) 0, 100% 50%, calc(100% - 11px) 100%, 0 100%); }
.brand-word { font-size: 22px; line-height: 1; }
.nav { display: flex; align-items: center; justify-content: center; gap: 28px; color: var(--muted); font-size: 14px; }
.nav a { transition: color 0.18s ease; }
.nav a:hover, .nav a.active { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.mute-btn { width: 38px; height: 38px; border: 0; color: var(--muted); background: transparent; cursor: pointer; display: grid; place-items: center; }
.admin-btn { height: 38px; display: inline-flex; align-items: center; padding: 0 18px; border: 1px solid rgba(255, 38, 86, 0.45); border-radius: 7px; background: rgba(255, 38, 86, 0.04); color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: 0.045em; text-transform: uppercase; cursor: pointer; }
.section { display: none; flex: 1; }
.section.active { display: block; }
.hero { min-height: calc(100vh - 72px); padding: 78px 0 86px; display: flex; align-items: center; }
.hero-inner { width: 100%; text-align: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px; color: var(--accent); font-size: 12px; font-weight: 900; letter-spacing: 0.16em; text-transform: uppercase; }
.hero-kicker::before, .hero-kicker::after { content: ""; width: 42px; height: 1px; background: rgba(255, 38, 86, 0.5); }
.hero-title { margin: 0; font-size: clamp(44px, 6vw, 88px); line-height: 0.92; letter-spacing: -0.055em; text-transform: uppercase; font-weight: 950; }
.hero-title span { color: var(--accent); text-shadow: 0 0 42px rgba(255, 38, 86, 0.28); }
.hero-text { width: min(780px, 100%); margin: 24px auto 0; color: #aeb8c8; font-size: clamp(17px, 2vw, 21px); line-height: 1.45; }
.cards { width: min(620px, 100%); margin: 74px auto 0; display: grid; grid-template-columns: 1fr; gap: 24px; }
.cards-two { width: min(980px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.application-card-blue { border-color: rgba(0, 195, 255, 0.42); background: radial-gradient(circle at 15% 10%, rgba(0, 195, 255, 0.20), transparent 32%), linear-gradient(135deg, rgba(0, 195, 255, 0.10), rgba(13, 16, 26, 0.94) 54%); }
.application-card-blue .card-title, .application-card-blue .card-link, .application-card-blue .icon-circle { color: #20c8ff; }
.application-card-blue .icon-circle { background: rgba(0, 195, 255, 0.12); border-color: rgba(0, 195, 255, 0.35); }
.application-card-blue::after { background: #20c8ff; }
.hidden { display: none !important; }
.application-card { position: relative; overflow: hidden; min-height: 290px; padding: 34px; text-align: left; border: 1px solid rgba(255, 38, 86, 0.46); border-radius: var(--radius); background: radial-gradient(circle at 15% 10%, rgba(255, 38, 86, 0.22), transparent 32%), linear-gradient(135deg, rgba(255, 38, 86, 0.12), rgba(13, 16, 26, 0.94) 54%); box-shadow: var(--shadow), inset 0 0 0 1px rgba(255, 255, 255, 0.02); cursor: pointer; transition: transform 0.2s ease, border-color 0.2s ease; }
.application-card:hover { transform: translateY(-4px); border-color: rgba(255, 38, 86, 0.9); }
.application-card::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 52px; height: 52px; background: var(--accent); clip-path: polygon(100% 0, 0 100%, 100% 100%); opacity: 0.55; }
.card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.icon-circle { width: 70px; height: 70px; display: grid; place-items: center; border-radius: 999px; color: var(--accent); background: rgba(255, 38, 86, 0.12); border: 1px solid rgba(255, 38, 86, 0.35); }
.server-tags { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 6px; font-size: 11px; font-weight: 950; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid rgba(27, 217, 141, 0.28); color: var(--green); background: rgba(27, 217, 141, 0.08); }
.card-title { margin: 58px 0 12px; color: var(--accent); font-size: clamp(32px, 5vw, 44px); line-height: 1.06; letter-spacing: -0.04em; text-transform: uppercase; font-weight: 950; }
.card-text { margin: 0; color: #adb8c9; line-height: 1.55; font-size: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 30px; color: var(--accent); font-size: 13px; font-weight: 950; letter-spacing: 0.09em; text-transform: uppercase; }
.status-link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; margin-top: 54px; color: #b7c3d4; background: none; border: 0; cursor: pointer; font-size: 14px; font-weight: 950; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.84; }
.footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-brand { font-weight: 950; color: var(--text); letter-spacing: 0.06em; text-transform: uppercase; }
.footer-links { display: flex; gap: 24px; font-weight: 700; }
.form-page { padding: 58px 0 88px; }
.application-head, .form-card { width: min(780px, 100%); margin: 0 auto; padding: 34px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: var(--shadow); }
.application-head { margin-bottom: 34px; background: linear-gradient(135deg, rgba(15,18,29,0.94), rgba(11,14,23,0.88)); }
.head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.head-badge { display: inline-flex; align-items: center; height: 26px; padding: 0 11px; border: 1px solid rgba(255, 38, 86, 0.5); border-radius: 7px; color: var(--accent); background: rgba(255, 38, 86, 0.08); font-size: 12px; font-weight: 950; letter-spacing: 0.1em; text-transform: uppercase; }
.form-title { margin: 10px 0 0; font-size: clamp(30px, 4vw, 46px); line-height: 1; text-transform: uppercase; letter-spacing: -0.04em; }
.selected-server { text-align: right; color: var(--muted); font-size: 13px; font-weight: 950; letter-spacing: 0.16em; text-transform: uppercase; }
.selected-server strong { display: block; margin-top: 8px; color: var(--accent); font-size: 26px; letter-spacing: 0.2em; }
.steps { width: min(780px, 100%); margin: 0 auto 34px; display: grid; grid-template-columns: repeat(3, 1fr); }
.step { position: relative; height: 54px; display: flex; align-items: center; justify-content: center; }
.step::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; transform: translateY(-50%); background: rgba(255, 255, 255, 0.08); }
.step:first-child::before { left: 50%; }
.step:last-child::before { right: 50%; }
.step.active::before, .step.done::before { background: var(--accent); box-shadow: 0 0 18px rgba(255, 38, 86, 0.5); }
.step-number { position: relative; z-index: 2; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 7px; border: 1px solid var(--line-strong); color: var(--muted); background: #0b0e16; font-weight: 900; font-size: 13px; }
.step.active .step-number, .step.done .step-number { color: #fff; border-color: var(--accent); box-shadow: 0 0 20px rgba(255, 38, 86, 0.45); }
.form-step { display: none; }
.form-step.active { display: block; }
.block-title { margin: 0 0 28px; font-size: 28px; line-height: 1; text-transform: uppercase; letter-spacing: -0.02em; font-weight: 950; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { margin-bottom: 26px; }
.field label { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; color: var(--muted); font-size: 13px; font-weight: 900; letter-spacing: 0.1em; text-transform: uppercase; }
.hint-icon { width: 16px; height: 16px; display: inline-grid; place-items: center; border-radius: 999px; color: var(--accent); border: 1px solid rgba(255, 38, 86, 0.5); font-size: 11px; cursor: help; }
input, textarea, select { width: 100%; color: var(--text); background: rgba(8, 10, 17, 0.78); border: 1px solid rgba(255, 255, 255, 0.09); border-radius: 7px; outline: none; transition: 0.16s ease; }
input, select { height: 54px; padding: 0 15px; }
textarea { min-height: 88px; resize: vertical; padding: 14px 15px; line-height: 1.5; }
input:focus, textarea:focus, select:focus { border-color: rgba(255, 38, 86, 0.72); box-shadow: 0 0 0 3px rgba(255, 38, 86, 0.12); }
input::placeholder, textarea::placeholder { color: #7d8798; }
.divider { height: 1px; margin: 8px 0 26px; background: rgba(255, 255, 255, 0.07); }
.actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; }
.btn { min-width: 120px; height: 46px; padding: 0 22px; border: 1px solid rgba(255, 255, 255, 0.08); border-radius: 7px; background: rgba(255, 255, 255, 0.02); color: var(--text); font-weight: 950; letter-spacing: 0.06em; text-transform: uppercase; cursor: pointer; transition: 0.16s ease; }
.btn:hover { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); }
.btn-primary { flex: 1; border-color: rgba(255, 38, 86, 0.8); background: linear-gradient(135deg, rgba(255, 38, 86, 0.82), rgba(156, 20, 52, 0.9)); color: #fff; box-shadow: 0 14px 36px rgba(255, 38, 86, 0.2); }
.btn-primary:hover { border-color: rgba(255, 38, 86, 1); background: linear-gradient(135deg, rgba(255, 38, 86, 0.98), rgba(183, 24, 59, 0.96)); }
.btn-primary:disabled { opacity: 0.45; cursor: not-allowed; }
.upload { position: relative; min-height: 220px; display: grid; place-items: center; border: 2px dashed rgba(255, 38, 86, 0.8); border-radius: 12px; background: rgba(255, 38, 86, 0.035); cursor: pointer; text-align: center; overflow: hidden; }
.upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; height: auto; }
.upload-icon { width: 64px; height: 64px; display: inline-grid; place-items: center; margin-bottom: 14px; border-radius: 999px; color: var(--accent); background: rgba(255, 38, 86, 0.14); font-size: 28px; }
.upload strong { display: block; margin-bottom: 5px; font-size: 15px; }
.upload span span:not(.upload-icon) { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; }
.checkbox-card { margin-top: 24px; padding: 18px; display: flex; align-items: flex-start; gap: 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8, 10, 17, 0.48); color: #d5dbe6; line-height: 1.45; }
.checkbox-card input { width: 18px; height: 18px; min-width: 18px; margin: 2px 0 0; accent-color: var(--accent); }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 60; width: min(410px, calc(100% - 48px)); padding: 22px 24px; border: 1px solid var(--line-strong); background: rgba(10, 12, 20, 0.96); box-shadow: var(--shadow); transform: translateY(30px); opacity: 0; pointer-events: none; transition: 0.22s ease; }
.toast.show { transform: translateY(0); opacity: 1; }
.toast strong { display: block; margin-bottom: 6px; font-size: 15px; }
.toast p { margin: 0; color: #c9d1df; font-size: 14px; line-height: 1.45; }
.modal { position: fixed; inset: 0; z-index: 70; display: none; place-items: center; padding: 28px; background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(7px); }
.modal.show { display: grid; }
.modal-card { width: min(560px, 100%); padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: #0b0e16; box-shadow: var(--shadow); }
.modal-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin-bottom: 22px; }
.modal-head h3 { margin: 0; font-size: 26px; text-transform: uppercase; }
.modal-close { width: 34px; height: 34px; display: grid; place-items: center; border: 0; color: var(--muted); background: transparent; cursor: pointer; font-size: 24px; }
.status-box { margin-top: 18px; padding: 18px; border: 1px solid var(--line); border-radius: 10px; background: rgba(255,255,255,0.025); color: #cbd4e2; line-height: 1.5; }
.copyright { color:#7a8495; }
@media (max-width: 820px) {
  .nav { display: none; }
  .header-inner { height: 64px; }
  .brand-word { font-size: 18px; }
  .admin-btn { padding: 0 12px; font-size: 11px; }
  .hero { padding: 58px 0 70px; }
  .application-card, .form-card, .application-head { padding: 24px; }
  .head-row, .grid-2 { grid-template-columns: 1fr; display: grid; }
  .selected-server { text-align: left; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 520px) {
  .container { width: min(100% - 28px, 1180px); }
  .brand-mark { min-width: 58px; height: 30px; font-size: 13px; }
  .brand-word { font-size: 16px; }
  .mute-btn { display: none; }
  .hero-title { font-size: 44px; }
  .hero-text { font-size: 16px; }
  .card-title { margin-top: 38px; font-size: 32px; }
  .actions { flex-direction: column; }
  .btn { width: 100%; }
}

@media (max-width: 900px) { .cards-two { grid-template-columns: 1fr; } }

.application-card.closed {
  opacity: 0.58;
  filter: grayscale(0.35);
  cursor: not-allowed;
}
.application-card.closed:hover {
  transform: none;
}
.tag.closed {
  color: #ff405c;
  border-color: rgba(255, 64, 92, 0.38);
  background: rgba(255, 64, 92, 0.08);
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.setting-box {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255,255,255,0.025);
}
.setting-box h3 {
  margin: 0 0 12px;
  font-size: 16px;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.setting-box p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.45;
}
@media (max-width: 700px) {
  .settings-grid { grid-template-columns: 1fr; }
}
