﻿:root {
  --bg0: #07090c;
  --bg1: #0c1017;
  --stroke: rgba(255, 255, 255, 0.08);
  --stroke2: rgba(255, 255, 255, 0.12);
  --text: #e8edf6;
  --muted: rgba(232, 237, 246, 0.65);
  --muted2: rgba(232, 237, 246, 0.45);
  --accent: #d4dce8;
  --accent2: #e8edf6;
  --radius: 18px;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.55);
}

* {
  box-sizing: border-box;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(0, 0, 0, 0.25);
}
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.25); border-radius: 10px; }
*::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.2); border-radius: 10px; }
*::-webkit-scrollbar-thumb:hover { background: rgba(255, 255, 255, 0.3); }

html, body { height: 100%; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 50% -15%, rgba(232, 237, 246, 0.12), transparent 55%),
    radial-gradient(900px 500px at 18% 20%, rgba(255, 255, 255, 0.07), transparent 45%),
    linear-gradient(180deg, var(--bg0), var(--bg1));
}

.wrap {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 48px 18px;
}
.hero { width: min(980px, 100%); }

.titleRow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 10px;
}
.logo {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(232, 237, 246, 0.2), rgba(255, 255, 255, 0.06));
  border: 1px solid var(--stroke);
  box-shadow: 0 10px 35px rgba(255, 255, 255, 0.1);
}
h1 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
}
.sub {
  text-align: center;
  margin: 0 auto 26px;
  max-width: 760px;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
}
.privacyNotice {
  text-align: center;
  margin: 0 auto 20px;
  max-width: 560px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.9;
}
.chip {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(255, 255, 255, 0.05);
  margin: 0 4px;
  font-size: 12px;
  color: var(--text);
  opacity: 0.9;
  white-space: nowrap;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.cardInner {
  padding: 18px;
  background: linear-gradient(180deg, rgba(15, 20, 29, 0.92), rgba(10, 14, 20, 0.92));
}

.tabs {
  display: flex;
  gap: 10px;
  padding: 10px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--stroke);
  border-radius: 16px;
  width: fit-content;
  margin: 4px auto 16px;
}
.tab {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  padding: 10px 18px;
  border-radius: 12px;
  font-size: 13.5px;
  cursor: pointer;
  transition: 0.18s ease;
  user-select: none;
}
.tab:hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }
.tab.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--stroke2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

.panel { display: none; }
.panel.active { display: block; }
.panelTitle {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  text-align: center;
}
.presetRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 8px 0 10px;
}
.hint {
  margin-top: 12px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.5;
  text-align: center;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 10px;
  margin-bottom: 14px;
}
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  border-radius: 14px;
  padding: 12px 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
  transition: 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  user-select: none;
}
.btnSecondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--stroke);
}
.btnSecondary:hover { background: rgba(255, 255, 255, 0.08); transform: translateY(-1px); }
.btnSecondary.btnBrighter { background: rgba(255, 255, 255, 0.11); border-color: var(--stroke2); }
.btnSecondary.btnBrighter:hover { background: rgba(255, 255, 255, 0.14); }
.btn:active { transform: translateY(0) scale(0.99); }
.btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: inherit;
  fill: currentColor;
  stroke: currentColor;
}

.input {
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.28);
  color: var(--text);
  padding: 10px 12px;
  outline: none;
  transition: 0.18s ease;
  min-width: 180px;
}
.input:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}
.input.mini { min-width: 140px; }

select.input {
  cursor: pointer;
  min-width: 320px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: linear-gradient(180deg, #1a2230, #141a24);
  background-image:
    linear-gradient(180deg, #1a2230, #141a24),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='M4 6l4 4 4-4' stroke='%23e8edf6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: auto, 16px 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding-right: 40px;
  color: #e8edf6;
}
select.input option { background: #141a24; color: #e8edf6; }
select.input:focus {
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

textarea {
  width: 100%;
  height: 380px;
  resize: vertical;
  border-radius: 14px;
  border: 1px solid var(--stroke);
  background: rgba(0, 0, 0, 0.32);
  color: var(--text);
  padding: 14px;
  outline: none;
  transition: 0.18s ease;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
  line-height: 1.5;
}
textarea::placeholder { color: var(--muted2); }
textarea:focus {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.12);
}
