/* Панель: синяя тема, карточки и формы. Страница входа — классы .login-* и .wrap */

:root {
  --bg0: #020617;
  --bg1: #0c1929;
  --bg2: #111f35;
  --surface: rgba(15, 34, 58, 0.78);
  --surface2: rgba(8, 22, 42, 0.92);
  --accent: #2563eb;
  --accent-bright: #38bdf8;
  --accent-dim: rgba(37, 99, 235, 0.25);
  --text: #e8f1ff;
  --muted: #8da4c4;
  --border: rgba(56, 189, 248, 0.2);
  --border-strong: rgba(96, 165, 250, 0.45);
  --ok: #34d399;
  --bad: #f87171;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg0);
}

.page-login {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(37, 99, 235, 0.35), transparent),
    linear-gradient(168deg, var(--bg0) 0%, var(--bg1) 100%);
}

/* Фон дашборда */
.page-dashboard {
  position: relative;
}

.app-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 100% 70% at 10% -10%, rgba(37, 99, 235, 0.45), transparent 55%),
    radial-gradient(ellipse 80% 60% at 100% 20%, rgba(14, 165, 233, 0.2), transparent 50%),
    radial-gradient(ellipse 60% 50% at 50% 100%, rgba(15, 23, 42, 0.95), transparent),
    linear-gradient(168deg, var(--bg0) 0%, var(--bg1) 50%, #020617 100%);
  pointer-events: none;
}

.app-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 35%, black, transparent);
}

.app-root {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.15rem 2.5rem;
}

/* Шапка */
.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15, 34, 58, 0.9) 0%, rgba(8, 22, 42, 0.75) 100%);
  border: 1px solid var(--border);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.app-header-main {
  display: flex;
  gap: 1rem;
  align-items: center;
  min-width: 0;
}

.app-logo-wrap {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(145deg, #ff7a7a 0%, #ef4444 45%, #be123c 100%);
  box-shadow: 0 8px 28px rgba(239, 68, 68, 0.45);
  padding: 0.2rem;
}

.app-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.app-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, #f8fafc 0%, #7dd3fc 45%, #38bdf8 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.app-sub {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--muted);
  max-width: 36rem;
}

.app-sub strong {
  color: #bae6fd;
  font-weight: 600;
}

.app-link-out {
  font-size: 0.88rem;
  color: #7dd3fc;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.08);
  transition: background 0.15s, border-color 0.15s;
}

.app-link-out:hover {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--border-strong);
}

.app-main {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}

/* Верхний уровень: VIP / розыгрыши для всех */
.main-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.25rem;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  background: rgba(2, 8, 20, 0.55);
  border: 1px solid var(--border);
}

.main-tab {
  flex: 1 1 180px;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 650;
  cursor: pointer;
  color: var(--muted);
  background: transparent;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.main-tab:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.1);
}

.main-tab-active {
  color: #0f172a;
  background: linear-gradient(135deg, #bae6fd 0%, #2563eb 100%);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.38);
}

.main-stack {
  display: none;
  flex-direction: column;
  gap: 1.35rem;
}

.main-stack.main-stack-active {
  display: flex;
}

/* Карточки-поверхности */
.surface {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.surface-accent {
  border-left: 4px solid var(--accent-bright);
  background: linear-gradient(180deg, rgba(15, 34, 58, 0.88) 0%, rgba(12, 28, 48, 0.82) 100%);
}

.surface-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1.1rem 1.35rem 0.35rem;
}

.surface-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 650;
  color: #e0f2fe;
}

.surface-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #38bdf8;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.1);
}

.surface-lead {
  margin: 0;
  padding: 0 1.35rem 0.85rem;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
}

.panel-inner {
  padding: 0 1.35rem 1.35rem;
}

.surface-dashboard {
  padding: 0;
  background: var(--surface2);
}

/* Формы */
.form-sheet {
  display: grid;
  gap: 0.85rem;
}

.form-sheet[hidden] {
  display: none !important;
}

@media (min-width: 640px) {
  .form-sheet {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-row-full {
    grid-column: 1 / -1;
  }
}

.form-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.fld-label {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.fld-input {
  width: 100%;
  padding: 0.7rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(2, 8, 20, 0.55);
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fld-input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.fld-input-num {
  max-width: 12rem;
}

.duration-block .duration-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.seg {
  display: inline-flex;
  padding: 0.2rem;
  border-radius: var(--radius-sm);
  background: rgba(2, 8, 20, 0.65);
  border: 1px solid var(--border);
  gap: 0.15rem;
}

.seg-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.seg-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.seg-item-active {
  color: #0f172a;
  background: linear-gradient(135deg, #7dd3fc, #2563eb);
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35);
}

.seg-item:focus-within {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
}

.prizes-wrap {
  grid-column: 1 / -1;
  display: contents;
}

.form-actions {
  grid-column: 1 / -1;
  padding-top: 0.35rem;
}

.promo-actions {
  margin-top: 0.25rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.65rem;
  padding: 0.65rem 1.35rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 650;
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(135deg, #7dd3fc 0%, #2563eb 100%);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.4);
  transition: transform 0.12s, box-shadow 0.12s;
  max-width: 20rem;
  width: 100%;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.5);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.45rem;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: #e0f2fe;
  background: rgba(56, 189, 248, 0.12);
  transition: background 0.15s;
}

.btn-secondary:hover {
  background: rgba(56, 189, 248, 0.2);
}

.btn-inline {
  width: auto;
  max-width: 16rem;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--text);
  background: rgba(148, 163, 184, 0.1);
}

.sch-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.sch-form-actions .btn-primary {
  width: auto;
  max-width: none;
}

.form-msg {
  margin: 0.75rem 0 0;
  font-size: 0.88rem;
}

.form-msg-ok {
  color: var(--ok);
}

.form-msg-err {
  color: var(--bad);
}

.sch-cb-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--muted);
}

.sch-cb-label input {
  width: auto;
  margin: 0;
}

/* Сплит: вертикальная навигация + панели */
.dashboard-split {
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 860px) {
  .dashboard-split {
    flex-direction: row;
    align-items: stretch;
    min-height: 320px;
  }

  .vnav {
    flex: 0 0 200px;
    flex-direction: column;
    border-right: 1px solid var(--border);
    border-bottom: none;
    padding: 1rem 0.65rem;
  }

  .vnav-btn {
    flex: 0 0 auto;
  }

  .vnav-panels {
    flex: 1;
    min-width: 0;
  }
}

.vnav {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.85rem;
  background: rgba(2, 8, 20, 0.4);
  border-bottom: 1px solid var(--border);
}

.vnav-btn {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  text-align: left;
  padding: 0.75rem 0.85rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}

.vnav-btn:hover {
  color: var(--text);
  background: rgba(56, 189, 248, 0.08);
}

.vnav-btn-active {
  color: #0f172a;
  background: linear-gradient(120deg, #bae6fd 0%, #38bdf8 50%, #2563eb 100%);
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.35);
}

.vnav-ico {
  opacity: 0.85;
  font-size: 0.7rem;
}

.vnav-txt {
  flex: 1;
  line-height: 1.35;
}

.vnav-panels {
  padding: 1.15rem 1.35rem 1.35rem;
  min-height: 280px;
}

.vnav-panel {
  display: none;
}

.vnav-panel-active {
  display: block;
  animation: vnavIn 0.22s ease;
}

@keyframes vnavIn {
  from {
    opacity: 0.55;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.vnav-hint {
  margin: 0 0 1rem;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--muted);
}

.settings-desc {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--muted);
}

.promo-grid {
  display: grid;
  gap: 0.5rem;
  max-width: 28rem;
}

.sch-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pg-schedule-stack {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.sch-block-title {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.sch-block-title-spaced {
  margin-top: 0.5rem;
}

/* Списки карточек */
.list-cards {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.card-li {
  margin-bottom: 0.65rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(56, 189, 248, 0.06);
}

.card-li:last-child {
  margin-bottom: 0;
}

.card-li-title {
  font-size: 0.92rem;
  font-weight: 650;
  color: #e0f2fe;
  margin-bottom: 0.35rem;
}

.card-li-meta {
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  word-break: break-all;
}

.list-empty {
  list-style: none;
  padding: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.list-sch .sch-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 0.75rem;
  margin-bottom: 0.75rem;
  padding: 0.75rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(10, 14, 20, 0.45);
}

.list-sch .sch-item:last-child {
  margin-bottom: 0;
}

.sch-item-main {
  flex: 1 1 12rem;
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--muted);
}

.sch-item-actions {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.btn-tiny {
  padding: 0.28rem 0.6rem;
  font-size: 0.78rem;
  border-radius: 8px;
  cursor: pointer;
  border: 1px solid var(--border);
  font-weight: 600;
}

.btn-tiny-edit {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.btn-tiny-del {
  background: rgba(248, 113, 113, 0.1);
  color: var(--bad);
  border-color: rgba(248, 113, 113, 0.25);
}

.pg-hist-li .pg-hist-actions {
  width: 100%;
  justify-content: flex-end;
  margin-top: 0.35rem;
}

.app-footer {
  margin-top: 2.25rem;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
}

.app-footer strong {
  color: #bae6fd;
}

/* Вкладка «промо для всех» */
.guess-last {
  margin: 1rem 0 0;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: rgba(56, 189, 248, 0.08);
}

.guess-last-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 0.65rem;
}

.guess-row {
  font-size: 0.88rem;
  line-height: 1.55;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.guess-k {
  color: var(--muted);
  margin-right: 0.35rem;
}

.guess-code {
  font-size: 0.95rem;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  background: rgba(2, 8, 20, 0.65);
  border: 1px solid var(--border);
}

.guess-secret-char {
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  color: #fde047;
}

.guess-hist-line,
.guess-hist-secret {
  font-size: 0.86rem;
  margin: 0.35rem 0;
  line-height: 1.45;
}

.guess-hist-secret strong {
  color: #fde047;
  font-size: 1rem;
}

.pg-history-list {
  margin-top: 0.5rem;
}

.pg-hist-li {
  margin-bottom: 0.75rem;
}

/* --------- Вход (login.html) --------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

.login-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.5rem;
  max-width: none;
}

.login-card {
  width: 100%;
  max-width: 420px;
  text-align: center;
}

.card {
  position: relative;
  padding: 1.5rem 1.65rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-bright);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
}

.login-title {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #f8fafc 0%, #7dd3fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sub {
  margin: 0 auto;
  max-width: 36rem;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--muted);
}

.login-hint {
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
}

.login-form {
  text-align: left;
  margin-top: 1rem;
}

.login-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(2, 8, 20, 0.65);
  color: var(--text);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.login-input:focus {
  border-color: var(--border-strong);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.login-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 650;
  cursor: pointer;
  color: #0f172a;
  background: linear-gradient(135deg, #7dd3fc 0%, #2563eb 100%);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4);
  transition: transform 0.12s;
}

.login-btn:hover {
  transform: translateY(-1px);
}

.login-error {
  margin: 0 0 1rem;
  padding: 0.6rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--bad);
  background: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.25);
}

code {
  font-size: 0.84rem;
  padding: 0.12rem 0.4rem;
  border-radius: 6px;
  background: rgba(30, 58, 138, 0.45);
  color: #bae6fd;
}

/* -------------------------------------------------------------------------- */
/* Dark/Graphite redesign                                                     */
/* -------------------------------------------------------------------------- */

:root {
  --bg0: #06070a;
  --bg1: #0c0f14;
  --bg2: #12161d;
  --surface: rgba(14, 18, 24, 0.9);
  --surface2: rgba(10, 13, 18, 0.96);
  --accent: #4f7cff;
  --accent-bright: #7aa2ff;
  --accent-dim: rgba(79, 124, 255, 0.22);
  --text: #edf2ff;
  --muted: #9ea8bb;
  --border: rgba(148, 163, 184, 0.22);
  --border-strong: rgba(122, 162, 255, 0.5);
  --ok: #4ade80;
  --bad: #fb7185;
}

.page-dashboard {
  background: #050608;
}

.app-bg {
  background:
    radial-gradient(ellipse 90% 62% at 12% -16%, rgba(79, 124, 255, 0.22), transparent 58%),
    radial-gradient(ellipse 72% 55% at 95% 18%, rgba(92, 116, 166, 0.18), transparent 56%),
    radial-gradient(ellipse 60% 50% at 44% 102%, rgba(32, 39, 53, 0.35), transparent 58%),
    linear-gradient(160deg, #050608 0%, #0b0f15 50%, #111720 100%);
}

.app-bg::after {
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(122, 162, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(122, 162, 255, 0.05) 1px, transparent 1px);
}

.app-root {
  max-width: 1220px;
  padding: 1.6rem 1.25rem 2.9rem;
}

.app-header {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(140deg, rgba(18, 23, 31, 0.95) 0%, rgba(11, 15, 21, 0.92) 100%);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(148, 163, 184, 0.05) inset,
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.app-logo-wrap {
  border-radius: 16px;
  background: linear-gradient(145deg, #8aa9ff 0%, #4f7cff 48%, #2f4aa6 100%);
  box-shadow:
    0 10px 34px rgba(79, 124, 255, 0.42),
    inset 0 1px 0 rgba(238, 243, 255, 0.32);
}

.app-title {
  background: linear-gradient(120deg, #f8fbff 0%, #c9d7ff 46%, #8aa9ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.app-sub strong,
.app-footer strong {
  color: #d9e4ff;
}

.app-link-out {
  color: #d8e4ff;
  border-color: rgba(122, 162, 255, 0.38);
  background: rgba(79, 124, 255, 0.12);
}

.app-link-out:hover {
  background: rgba(79, 124, 255, 0.2);
  border-color: rgba(150, 178, 255, 0.68);
}

.main-tab-bar {
  gap: 0.55rem;
  padding: 0.55rem;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: linear-gradient(180deg, rgba(17, 21, 29, 0.9), rgba(11, 14, 20, 0.95));
  box-shadow:
    0 14px 28px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.main-tab {
  flex: 1 1 160px;
  padding: 0.8rem 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #abb6ca;
  letter-spacing: 0.01em;
}

.main-tab:hover {
  color: #e8efff;
  border-color: rgba(122, 162, 255, 0.3);
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.15), rgba(92, 116, 166, 0.18));
}

.main-tab-active {
  color: #f5f8ff;
  border-color: rgba(150, 178, 255, 0.62);
  background: linear-gradient(135deg, #4f7cff 0%, #3f64d9 58%, #2f4aa6 100%);
  box-shadow:
    0 10px 26px rgba(63, 100, 217, 0.42),
    inset 0 1px 0 rgba(230, 238, 255, 0.32);
}

.surface {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(170deg, rgba(17, 22, 30, 0.93), rgba(10, 13, 18, 0.95));
  box-shadow:
    0 20px 44px rgba(0, 0, 0, 0.44),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.surface-accent {
  border-left: 4px solid #4f7cff;
  background: linear-gradient(180deg, rgba(23, 29, 39, 0.93) 0%, rgba(12, 16, 22, 0.9) 100%);
}

.surface-title {
  color: #edf2ff;
}

.surface-badge {
  color: #c9d7ff;
  border-color: rgba(122, 162, 255, 0.3);
  background: rgba(79, 124, 255, 0.14);
}

.surface-lead {
  color: #9ea8bb;
}

.fld-label,
.sch-block-title {
  color: #aab4c8;
}

.fld-input,
.login-input {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: linear-gradient(180deg, rgba(9, 12, 17, 0.9), rgba(18, 23, 31, 0.78));
  color: #edf2ff;
}

.fld-input::placeholder,
.login-input::placeholder {
  color: #7f8ba3;
}

.fld-input:focus,
.login-input:focus {
  border-color: rgba(150, 178, 255, 0.72);
  box-shadow:
    0 0 0 3px rgba(79, 124, 255, 0.22),
    0 0 0 1px rgba(150, 178, 255, 0.12) inset;
}

.seg {
  background: rgba(11, 14, 20, 0.84);
  border-color: rgba(148, 163, 184, 0.22);
}

.seg-item {
  color: #a8b4c9;
}

.seg-item-active {
  color: #f4f8ff;
  background: linear-gradient(135deg, #4f7cff 0%, #3f64d9 100%);
  box-shadow: 0 6px 14px rgba(63, 100, 217, 0.4);
}

.btn-primary,
.login-btn {
  min-height: 2.8rem;
  border-radius: 12px;
  color: #f5f8ff;
  background: linear-gradient(138deg, #4f7cff 0%, #3f64d9 58%, #2f4aa6 100%);
  box-shadow:
    0 10px 26px rgba(63, 100, 217, 0.44),
    inset 0 1px 0 rgba(230, 238, 255, 0.28);
}

.btn-primary:hover,
.login-btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 14px 34px rgba(63, 100, 217, 0.5),
    inset 0 1px 0 rgba(230, 238, 255, 0.28);
}

.btn-secondary {
  border-color: rgba(122, 162, 255, 0.38);
  color: #d6e2ff;
  background: linear-gradient(160deg, rgba(79, 124, 255, 0.18), rgba(92, 116, 166, 0.16));
}

.btn-secondary:hover {
  background: linear-gradient(160deg, rgba(79, 124, 255, 0.26), rgba(92, 116, 166, 0.2));
}

.btn-ghost {
  border-color: rgba(122, 162, 255, 0.34);
  background: rgba(79, 124, 255, 0.1);
  color: #d2ddff;
}

.btn-tiny {
  border-color: rgba(148, 163, 184, 0.28);
  border-radius: 9px;
}

.btn-tiny-edit {
  background: rgba(79, 124, 255, 0.16);
  color: #d2ddff;
}

.btn-tiny-del {
  background: rgba(251, 113, 133, 0.14);
  color: #ff9cae;
  border-color: rgba(251, 113, 133, 0.34);
}

.card-li {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(160deg, rgba(79, 124, 255, 0.1), rgba(92, 116, 166, 0.08));
}

.card-li-title {
  color: #e8efff;
}

.list-sch .sch-item {
  border-bottom-color: rgba(148, 163, 184, 0.2);
}

.sch-item-main,
.card-li-meta,
.guess-k,
.vnav-hint,
.settings-desc,
.app-footer {
  color: #9ea8bb;
}

.guess-last {
  border: 1px solid rgba(122, 162, 255, 0.3);
  background: linear-gradient(160deg, rgba(79, 124, 255, 0.12), rgba(23, 31, 43, 0.24));
}

.guess-code {
  border-color: rgba(122, 162, 255, 0.28);
  background: rgba(8, 11, 16, 0.82);
  color: #dce6ff;
}

code {
  background: rgba(27, 36, 50, 0.7);
  color: #d7e4ff;
}

.form-actions,
.sch-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.section-actions {
  margin-top: 0.9rem;
}

.form-actions .btn-primary {
  width: auto;
  max-width: none;
  min-width: 220px;
}

@media (max-width: 640px) {
  .form-actions .btn-primary,
  .sch-form-actions .btn-primary,
  .btn-secondary {
    width: 100%;
    max-width: none;
  }
}

/* Доп. переопределения (раньше оставались «синие» слои из первой половины файла) */
.page-login {
  background: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(79, 124, 255, 0.28), transparent),
    linear-gradient(168deg, var(--bg0) 0%, var(--bg1) 100%);
}

.vnav-btn-active {
  color: #f5f8ff;
  background: linear-gradient(135deg, #4f7cff 0%, #3f64d9 55%, #2f4aa6 100%);
  box-shadow: 0 6px 18px rgba(63, 100, 217, 0.42);
}

.vnav-btn:hover {
  background: rgba(79, 124, 255, 0.1);
}

.badge {
  color: #d0ddff;
  border-color: rgba(122, 162, 255, 0.3);
  background: rgba(79, 124, 255, 0.14);
}

.login-title {
  background: linear-gradient(135deg, #f8fbff 0%, #c9d7ff 55%, #4f7cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card {
  border-color: rgba(148, 163, 184, 0.24);
  background: linear-gradient(165deg, rgba(19, 24, 33, 0.95), rgba(10, 14, 20, 0.94));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

/* -------------------------------------------------------------------------- */
/* Taskplus-like visual skin (visual only)                                    */
/* -------------------------------------------------------------------------- */

.page-dashboard .app-root {
  max-width: 1400px;
  padding: 1.2rem 1.2rem 2.2rem;
}

.page-dashboard .app-header {
  margin-bottom: 1rem;
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(17, 20, 27, 0.96), rgba(10, 13, 18, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.page-dashboard .app-main {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.page-dashboard .main-tab-bar {
  position: sticky;
  top: 1rem;
  margin: 0;
  padding: 0.85rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(15, 18, 24, 0.98), rgba(10, 13, 18, 0.98));
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.page-dashboard .main-tab {
  flex: 0 0 auto;
  width: 100%;
  text-align: left;
  border-radius: 11px;
  border: 1px solid transparent;
  background: transparent;
  color: #9ca7bc;
  padding: 0.72rem 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.page-dashboard .main-tab-ico {
  display: inline-block;
  width: 0.78rem;
  height: 0.78rem;
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(156, 167, 188, 0.9), rgba(121, 134, 156, 0.8));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  flex: 0 0 auto;
}

.page-dashboard .main-tab:hover {
  background: rgba(122, 162, 255, 0.1);
  border-color: rgba(122, 162, 255, 0.28);
  color: #e7edff;
}

.page-dashboard .main-tab-active {
  background: linear-gradient(145deg, rgba(108, 141, 235, 0.34), rgba(76, 101, 173, 0.24));
  border-color: rgba(146, 174, 255, 0.6);
  color: #f4f7ff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.page-dashboard .main-tab-active .main-tab-ico {
  background: linear-gradient(145deg, #f4f7ff, #cad9ff);
}

#main-tab-wipes .main-tab-ico {
  border-radius: 4px;
}

#main-tab-vip .main-tab-ico {
  border-radius: 999px;
}

#main-tab-all .main-tab-ico {
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}

#main-tab-server-tag .main-tab-ico {
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

#main-tab-temp-voice .main-tab-ico {
  clip-path: polygon(50% 0%, 88% 22%, 100% 62%, 78% 100%, 22% 100%, 0% 62%, 12% 22%);
}

.tg-socials-hint {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.tg-socials-add-row {
  margin-top: 0.5rem;
}

.tg-socials-rows {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.tg-social-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) auto;
  gap: 0.5rem;
  align-items: end;
}

@media (max-width: 720px) {
  .tg-social-row {
    grid-template-columns: 1fr;
  }
}

#main-tab-telegram .main-tab-ico {
  clip-path: polygon(50% 0%, 100% 38%, 78% 100%, 50% 75%, 22% 100%, 0% 38%);
}

.page-dashboard .main-stack {
  background: transparent;
}

.hero-panel {
  display: grid;
  grid-template-columns: 165px minmax(0, 1fr) 280px;
  gap: 1rem;
  align-items: stretch;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(155deg, rgba(20, 24, 32, 0.96), rgba(11, 14, 19, 0.95));
  padding: 1rem;
  box-shadow:
    0 24px 42px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.hero-progress {
  border-radius: 16px;
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
}

.hero-progress-ring {
  width: 90px;
  height: 90px;
  border-radius: 999px;
  border: 7px solid rgba(255, 255, 255, 0.08);
  border-top-color: #a7bdff;
  border-right-color: #7f9df4;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e8eeff;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.hero-main {
  border-radius: 16px;
  padding: 0.9rem 0.95rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-title {
  margin: 0;
  font-size: 1.35rem;
  line-height: 1.3;
  color: #f3f6ff;
}

.hero-text {
  margin: 0.65rem 0 0;
  color: #a7b1c5;
  font-size: 0.92rem;
  line-height: 1.55;
  max-width: 42rem;
}

.hero-actions {
  margin-top: 1rem;
}

.hero-checklist {
  border-radius: 16px;
  padding: 0.9rem 0.95rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.012));
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  gap: 0.7rem;
  align-content: start;
}

.hero-check {
  position: relative;
  padding-left: 1.55rem;
  color: #b4bed0;
  font-size: 0.86rem;
  line-height: 1.4;
}

.hero-check::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.05);
}

.hero-check-done::before {
  border-color: rgba(167, 189, 255, 0.85);
  background: linear-gradient(145deg, #a7bdff, #6f8fef);
}

.hero-mini {
  grid-template-columns: 165px minmax(0, 1fr);
}

.hero-mini .hero-main {
  width: 100%;
  justify-self: stretch;
}

.hero-mini .hero-text {
  max-width: none;
}

.quick-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.quick-card {
  min-height: 172px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  padding: 0.85rem;
  display: flex;
  flex-direction: column;
}

.quick-card-media {
  height: 72px;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(ellipse at 25% 28%, rgba(145, 170, 242, 0.32), transparent 58%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
}

.quick-card-title {
  margin: 0;
  color: #ebf0ff;
  font-size: 0.94rem;
  font-weight: 650;
}

.quick-card-text {
  margin: 0.45rem 0 0;
  color: #9faac0;
  font-size: 0.84rem;
  line-height: 1.45;
}

.page-dashboard .surface {
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(160deg, rgba(18, 22, 30, 0.95), rgba(12, 15, 21, 0.94));
  box-shadow:
    0 16px 35px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-dashboard .surface-accent {
  border-left: 1px solid rgba(255, 255, 255, 0.09);
}

.page-dashboard .surface-toolbar {
  padding: 1.05rem 1.15rem 0.2rem;
}

.page-dashboard .surface-title {
  font-size: 1.02rem;
  font-weight: 700;
}

.page-dashboard .surface-lead {
  padding: 0 1.15rem 0.85rem;
}

.page-dashboard .panel-inner {
  padding: 0 1.15rem 1.15rem;
}

.page-dashboard .surface-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.04);
  color: #cfd8ea;
}

.page-dashboard .vnav {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
}

.page-dashboard .vnav-btn {
  border: 1px solid transparent;
}

.page-dashboard .vnav-btn-active {
  border-color: rgba(146, 174, 255, 0.5);
  background: linear-gradient(145deg, rgba(108, 141, 235, 0.36), rgba(74, 96, 161, 0.3));
}

.page-dashboard .fld-input,
.page-dashboard .login-input {
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(10, 13, 18, 0.96), rgba(17, 21, 29, 0.9));
}

.page-dashboard .btn-primary {
  border-radius: 10px;
  background: linear-gradient(145deg, #6f8fef 0%, #5772c7 60%, #455b9e 100%);
}

.page-dashboard .btn-secondary,
.page-dashboard .btn-ghost {
  border-radius: 10px;
}

.page-dashboard .list-sch .sch-item,
.page-dashboard .card-li,
.page-dashboard .guess-last {
  border-radius: 14px;
  border-color: rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.01));
}

@media (max-width: 980px) {
  .page-dashboard .app-main {
    grid-template-columns: 1fr;
  }

  .page-dashboard .main-tab-bar {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .page-dashboard .main-tab {
    width: auto;
    flex: 1 1 160px;
    text-align: center;
  }

  .hero-panel {
    grid-template-columns: 1fr;
  }

  .quick-cards {
    grid-template-columns: 1fr;
  }
}
