:root {
  color-scheme: dark;
  --bg: #050613;
  --panel: rgba(11, 13, 32, 0.82);
  --panel-strong: rgba(18, 20, 46, 0.94);
  --line: rgba(173, 130, 255, 0.28);
  --text: #f7f7ff;
  --muted: #b9b9d4;
  --purple: #b85cff;
  --blue: #1f56ff;
  --danger: #ff4f8f;
  --ok: #7df0c4;
  --shadow: 0 24px 80px rgba(13, 26, 92, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 34% 18%, rgba(184, 92, 255, 0.22), transparent 28rem),
    radial-gradient(circle at 78% 72%, rgba(31, 86, 255, 0.2), transparent 24rem),
    linear-gradient(145deg, #03040d 0%, #08091a 48%, #02030a 100%);
}

button,
input,
textarea {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: center;
  padding: 40px 0;
}

.brand-panel,
.work-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.brand-panel {
  min-height: 620px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 24px;
  padding: 42px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
}

.brand-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent, rgba(184, 92, 255, 0.12), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 70px);
  pointer-events: none;
}

.logo {
  width: min(360px, 82%);
  aspect-ratio: 1;
  object-fit: contain;
  filter: drop-shadow(0 0 34px rgba(184, 92, 255, 0.42));
  position: relative;
}

.brand-copy {
  position: relative;
  text-align: center;
  max-width: 460px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--ok);
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 14px;
  font-size: clamp(2.35rem, 7vw, 4.8rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.6rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.work-panel {
  min-height: 620px;
  border-radius: 8px;
  padding: 34px;
}

.section-head {
  margin-bottom: 24px;
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 18px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.tab,
.primary,
.secondary {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}

.tab {
  background: transparent;
  color: var(--muted);
}

.tab.active {
  background: linear-gradient(135deg, rgba(184, 92, 255, 0.34), rgba(31, 86, 255, 0.3));
  color: var(--text);
}

.form {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid rgba(185, 185, 212, 0.24);
  border-radius: 8px;
  background: rgba(3, 4, 13, 0.62);
  color: var(--text);
  outline: none;
  padding: 14px 15px;
}

textarea {
  resize: vertical;
  min-height: 130px;
}

input:focus,
textarea:focus {
  border-color: rgba(184, 92, 255, 0.78);
  box-shadow: 0 0 0 4px rgba(184, 92, 255, 0.12);
}

.primary {
  background: linear-gradient(135deg, var(--purple), var(--blue));
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(77, 70, 255, 0.28);
}

.primary.danger {
  background: linear-gradient(135deg, var(--danger), var(--purple), var(--blue));
}

.secondary {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
}

.primary:disabled,
.secondary:disabled {
  cursor: progress;
  opacity: 0.68;
}

.telegram-link {
  display: inline-grid;
  min-height: 48px;
  align-items: center;
  justify-items: center;
  padding: 0 20px;
  border-radius: 8px;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  background: linear-gradient(135deg, #2aabee, #1f56ff);
  box-shadow: 0 14px 30px rgba(31, 86, 255, 0.28);
}

.telegram-box {
  display: grid;
  gap: 18px;
  min-height: 180px;
  align-content: center;
  justify-items: start;
  padding: 22px;
  border: 1px solid rgba(185, 185, 212, 0.18);
  border-radius: 8px;
  background: var(--panel-strong);
}

.muted {
  color: var(--muted);
}

.check {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--text);
}

.check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--purple);
}

.actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.status {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 79, 143, 0.3);
  border-radius: 8px;
  background: rgba(255, 79, 143, 0.12);
  color: #ffd9e7;
}

.status.ok {
  border-color: rgba(125, 240, 196, 0.32);
  background: rgba(125, 240, 196, 0.12);
  color: #dcfff3;
}

.done-mark {
  width: 64px;
  height: 64px;
  margin-bottom: 22px;
  border-radius: 50%;
  border: 2px solid rgba(125, 240, 196, 0.7);
  background: radial-gradient(circle, rgba(125, 240, 196, 0.34), rgba(31, 86, 255, 0.12));
}

.hidden {
  display: none !important;
}

@media (max-width: 860px) {
  .shell {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 18px 0;
  }

  .brand-panel,
  .work-panel {
    min-height: auto;
  }

  .brand-panel {
    padding: 28px 22px;
  }

  .logo {
    width: min(220px, 70%);
  }

  .work-panel {
    padding: 24px 18px;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 20px, 1120px);
  }

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