/*
Theme Name: Private Zone
Author: ChatGPT
Version: 14.2
*/

:root {
  --bg: #05050a;
  --text: #f8f7ff;
  --muted: rgba(248,247,255,.68);
  --line: rgba(255,255,255,.12);
  --hot: #ff2bd6;
  --violet: #7c3cff;
  --cyan: #16f1ff;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

/* Полоса прокрутки страницы (внутри чужого iframe стилизовать нельзя) */
html {
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 60, 255, 0.72) rgba(255, 255, 255, 0.07);
}

html::-webkit-scrollbar {
  width: 11px;
}

html::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 999px;
  margin: 6px 0;
}

html::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--hot), var(--violet));
  border-radius: 999px;
  border: 2px solid rgba(5, 5, 10, 0.85);
  box-shadow: 0 0 12px rgba(255, 43, 214, 0.35);
}

html::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #ff4de0, #8f5cff);
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,43,214,.25), transparent 30%),
    radial-gradient(circle at 80% 10%, rgba(22,241,255,.2), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(124,60,255,.25), transparent 40%),
    linear-gradient(135deg,#05050a,#0b0816,#030309);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: -120px;
  pointer-events: none;
  background:
    conic-gradient(from 180deg, transparent, rgba(255,43,214,.16), transparent, rgba(22,241,255,.13), transparent);
  filter: blur(50px);
  animation: bgMove 14s ease-in-out infinite alternate;
  z-index: 0;
}

@keyframes bgMove {
  from { transform: translate3d(-2%, -1%, 0) rotate(0deg); }
  to { transform: translate3d(2%, 1%, 0) rotate(8deg); }
}

a { color: inherit; }

.home-screen {
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.container {
  position: relative;
  z-index: 2;
  text-align: center;
  width: calc(100% - 40px);
  max-width: 900px;
}

.page-wrap {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 70px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 54px;
}

.logo {
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -.04em;
  font-size: 20px;
}

.back {
  color: var(--muted);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  background: rgba(255,255,255,.055);
  backdrop-filter: blur(14px);
}

h1 {
  font-size: clamp(58px,10vw,120px);
  line-height: .9;
  letter-spacing: -.08em;
  margin: 0 0 20px;
}

.page-title {
  font-size: clamp(46px, 7vw, 86px);
  line-height: .92;
  letter-spacing: -.075em;
  margin: 0 0 18px;
}

.gradient {
  background: linear-gradient(90deg,#fff,#ffb9f2,#9fefff,#fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  min-width: 290px;
  min-height: 78px;
  padding: 0 30px;
  border-radius: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 20px;
  font-weight: 900;
  border: 1px solid rgba(255,255,255,.14);
  transition: .25s ease;
  cursor: pointer;
  appearance: none;
}

.btn:hover { transform: translateY(-4px); }

.btn:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.btn[aria-disabled="true"] {
  opacity: .45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
}

.btn[aria-disabled="true"]:hover {
  transform: none;
}

.btn-beat {
  background: linear-gradient(135deg,var(--hot),var(--violet));
  box-shadow: 0 20px 60px rgba(255,43,214,.35);
}

.btn-all {
  background: linear-gradient(135deg,rgba(255,255,255,.12),rgba(22,241,255,.2));
  box-shadow: 0 20px 60px rgba(22,241,255,.18);
}

.tools-grid {
  display: grid;
  grid-template-columns: minmax(280px, 520px);
  gap: 18px;
  margin-top: 34px;
}

.tools-grid--wide {
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  max-width: 1100px;
}

.tool-card {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 32px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  backdrop-filter: blur(18px);
  overflow: hidden;
  position: relative;
  transition: .25s ease;
}

.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255,255,255,.3);
}

.tool-card::before {
  content: "";
  position: absolute;
  width: 230px;
  height: 230px;
  right: -70px;
  top: -90px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,43,214,.42), transparent 68%);
}

.tool-card h2 {
  position: relative;
  z-index: 1;
  font-size: 34px;
  letter-spacing: -.055em;
  margin: 0 0 14px;
}

.tool-card p {
  position: relative;
  z-index: 1;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

.tool-label {
  position: relative;
  z-index: 1;
  margin-top: 30px;
  color: white;
  font-weight: 900;
}

.upload-grid,
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.upload-grid { margin-top: 32px; }

.upload-grid--single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.cover-tool-lead {
  max-width: 720px;
  margin: 0 0 8px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 17px;
}

.cover-tool-lead strong {
  color: var(--text);
  font-weight: 800;
}

/* ——— Ускорение TG ——— */
.cover-tool-section:has(.tg-boost) .page-title {
  margin-bottom: clamp(28px, 5vw, 52px);
}

.tg-boost {
  max-width: 720px;
  margin: 0 auto;
}

.tg-boost-card {
  padding: 28px 26px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(255,255,255,.11), rgba(255,255,255,.04));
  backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(0,0,0,.25);
  margin-bottom: 26px;
}

.tg-boost-card-text {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.6;
  font-size: 17px;
}

.tg-boost-card-text strong {
  color: var(--text);
  font-weight: 800;
}

.tg-boost-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tg-boost-links li {
  margin: 0;
}

.tg-boost-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 18px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(0,0,0,.28);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.tg-boost-link:hover {
  transform: translateY(-2px);
  border-color: rgba(22,241,255,.35);
  box-shadow: 0 12px 36px rgba(22,241,255,.12);
}

.tg-boost-link--accent {
  border-color: rgba(255,43,214,.35);
  background:
    linear-gradient(135deg, rgba(255,43,214,.12), rgba(124,60,255,.08)),
    rgba(0,0,0,.22);
}

.tg-boost-link--accent:hover {
  border-color: rgba(255,43,214,.5);
  box-shadow: 0 12px 36px rgba(255,43,214,.18);
}

.tg-boost-link-label {
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.tg-boost-link-hint {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

.tg-boost-steps {
  padding: 22px 24px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(0,0,0,.2);
  margin-bottom: 22px;
}

.tg-boost-steps-title {
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.tg-boost-steps-list {
  margin: 0;
  padding-left: 1.35em;
  color: var(--muted);
  line-height: 1.65;
  font-size: 16px;
}

.tg-boost-steps-list li {
  margin: 0 0 10px;
  padding-left: 4px;
}

.tg-boost-steps-list li:last-child {
  margin-bottom: 0;
}

.tg-boost-steps-list strong {
  color: var(--text);
  font-weight: 800;
}

/* ——— Рандом имя бита ——— */
.page-wrap--beat-namer {
  max-width: 960px;
}

.page-wrap--beat-namer .beat-namer-lead {
  max-width: 52rem;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-wrap--beat-namer .page-title {
  text-align: center;
}

.beat-namer-panel {
  margin: 36px auto 0;
  max-width: 52rem;
  padding: clamp(24px, 4vw, 40px);
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(165deg, rgba(255,255,255,.1), rgba(255,255,255,.03));
  backdrop-filter: blur(20px);
  box-shadow:
    0 4px 24px rgba(0,0,0,.2),
    inset 0 1px 0 rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.beat-namer-generate {
  min-width: min(100%, 280px);
}

.beat-namer-output {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px 18px;
  width: 100%;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(0,0,0,.4);
}

.beat-namer-word {
  flex: 1 1 auto;
  min-width: min(100%, 280px);
  text-align: center;
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1.1;
  color: #fff;
  text-shadow: 0 0 40px rgba(124, 60, 255, 0.4), 0 0 80px rgba(22, 241, 255, 0.15);
  padding: 8px 4px;
}

.beat-namer-copy {
  flex: 0 0 auto;
  margin: 0;
  padding: 14px 22px;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  border: 1px solid rgba(255,255,255,.2);
  color: var(--text);
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(22,241,255,.18));
  box-shadow: 0 8px 28px rgba(22,241,255,.12);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

.beat-namer-copy:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(22,241,255,.45);
  box-shadow: 0 12px 36px rgba(22,241,255,.2);
}

.beat-namer-copy:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.beat-namer-copy-hint {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

/* ——— Теги трека ——— */
.page-wrap--tag-editor {
  padding-bottom: 70px;
}

.tag-editor-lead {
  max-width: 720px;
  margin: 0 0 8px;
}

.tag-editor-stack {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 32px;
  max-width: 820px;
}

.tag-editor-block {
  min-height: 0;
}

.tag-editor-block .dropzone {
  margin-top: 4px;
}

.tag-fields-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 4px;
}

.tag-editor-actions {
  max-width: 820px;
  margin-top: 18px;
}

.tag-meta-status {
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

.tag-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.tag-field--cover {
  margin-bottom: 20px;
}

.tag-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.tag-hint {
  margin-top: -4px;
  font-size: 13px;
  color: var(--muted);
}

.tag-input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 18px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
  background: rgba(0,0,0,.28);
  transition: border-color .2s ease, background .2s ease;
}

.tag-input::placeholder {
  color: rgba(255,255,255,.35);
  font-weight: 600;
}

.tag-input:focus {
  outline: none;
  border-color: rgba(22,241,255,.45);
  background: rgba(0,0,0,.4);
}

.tag-textarea {
  resize: vertical;
  min-height: 96px;
  line-height: 1.5;
}

.dropzone--compact {
  min-height: 132px;
  padding: 18px;
}

.dropzone--compact .dropzone-title {
  font-size: 18px;
}

.action-grid {
  margin-top: 22px;
  align-items: start;
}

.action-grid .btn {
  width: 100%;
  min-width: 0;
  min-height: 58px;
}

.upload-box {
  min-height: 330px;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 28px;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035));
  backdrop-filter: blur(18px);
}

.upload-box--action {
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.upload-box--action p {
  margin-bottom: 14px;
}

.action-slot {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.upload-box h2 {
  margin: 0 0 14px;
  font-size: 30px;
  letter-spacing: -.05em;
}

.upload-box p {
  margin: 0 0 24px;
  color: var(--muted);
  line-height: 1.55;
}

.dropzone {
  width: 100%;
  min-height: 180px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px dashed rgba(255,255,255,.28);
  border-radius: 28px;
  background:
    radial-gradient(circle at 50% 0%, rgba(255,255,255,.10), transparent 52%),
    rgba(0,0,0,.20);
  color: var(--muted);
  padding: 24px;
  cursor: pointer;
  transition: .2s ease;
  position: relative;
  overflow: hidden;
}

.dropzone:hover,
.dropzone.is-dragover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.52);
  background:
    radial-gradient(circle at 50% 0%, rgba(255,43,214,.22), transparent 55%),
    rgba(255,255,255,.075);
}

.dropzone input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.dropzone-title {
  display: block;
  color: white;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.035em;
  margin-bottom: 8px;
}

.dropzone-text {
  display: block;
  font-size: 15px;
  line-height: 1.45;
}

.dropzone-file {
  display: block;
  margin-top: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  word-break: break-word;
}

.alert {
  margin-top: 24px;
  border-radius: 24px;
  padding: 18px 20px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: var(--text);
  white-space: pre-wrap;
}

.alert.error { border-color: rgba(255,43,214,.35); }
.alert.success { border-color: rgba(22,241,255,.35); }

@media (max-width: 900px) {
  .tools-grid,
  .upload-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .page-wrap--cover-tool {
    width: calc(100% - 24px);
    padding: 24px 0 52px;
  }

  .page-wrap--cover-tool .topbar {
    margin-bottom: 28px;
    gap: 12px;
    flex-wrap: wrap;
  }

  .cover-tool-section .upload-grid {
    margin-top: 20px;
    gap: 14px;
  }

  .cover-tool-section .action-grid {
    margin-top: 14px;
    gap: 14px;
  }

  .cover-tool-section .upload-box {
    padding: 22px;
    border-radius: 28px;
    min-height: 300px;
  }

  .cover-tool-section .upload-box--action {
    min-height: 0;
  }

  .cover-tool-section .upload-box h2 {
    font-size: 26px;
  }

  .tg-boost-card {
    padding: 24px 20px;
  }

  .tg-boost-steps {
    padding: 20px 18px;
  }

  .beat-namer-panel {
    margin-top: 28px;
  }

  .page-wrap--tag-editor {
    padding-top: 24px;
    padding-bottom: 52px;
  }

  .tag-editor-stack,
  .tag-editor-actions {
    margin-top: 20px;
    max-width: none;
  }
}

@media (max-width: 640px) {
  h1 { font-size: 58px; }
  .btn { width: 100%; min-width: 0; min-height: 54px; font-size: 17px; padding: 0 22px; border-radius: 20px; }
  .topbar { margin-bottom: 34px; }
  .page-title { font-size: 50px; }

  .cover-tool-section .page-title {
    font-size: clamp(32px, 9vw, 44px);
    line-height: 1;
    margin-bottom: 14px;
  }

  .cover-tool-section .upload-grid,
  .cover-tool-section .action-grid {
    gap: 12px;
  }

  .cover-tool-section .upload-box {
    padding: 18px;
    border-radius: 24px;
    min-height: 0;
  }

  .cover-tool-section .upload-box h2 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .cover-tool-section .upload-box p {
    margin-bottom: 16px;
    font-size: 14px;
    line-height: 1.5;
  }

  .cover-tool-section .dropzone {
    min-height: 148px;
    padding: 16px;
    border-radius: 20px;
  }

  .cover-tool-section .dropzone-title {
    font-size: 17px;
  }

  .cover-tool-section .dropzone-text {
    font-size: 14px;
  }

  .cover-tool-section .action-grid .btn {
    min-height: 52px;
  }

  .tg-boost-card {
    padding: 20px 18px;
    border-radius: 24px;
  }

  .tg-boost-link {
    padding: 14px 16px;
  }

  .tg-boost-link-label {
    font-size: 17px;
  }

  .tg-boost-card-text,
  .tg-boost-steps-list {
    font-size: 15px;
  }

  .tg-boost-steps-title {
    font-size: 18px;
  }

  .beat-namer-panel {
    padding: 16px 14px;
    gap: 18px;
  }

  .beat-namer-output {
    flex-direction: column;
  }

  .beat-namer-word {
    min-width: 100%;
    font-size: clamp(1.75rem, 9vw, 2.5rem);
  }

  .beat-namer-copy {
    width: 100%;
    max-width: 320px;
  }

  .tag-editor-block .upload-box h2,
  .tag-editor-block h2 {
    font-size: 22px;
  }

  .tag-input {
    font-size: 15px;
    padding: 12px 14px;
  }

  .dropzone--compact {
    min-height: 118px;
  }

  .page-wrap--cover-tool .topbar {
    margin-bottom: 22px;
  }

  .page-wrap--cover-tool .logo {
    font-size: 17px;
  }

  .page-wrap--cover-tool .back {
    padding: 8px 12px;
    font-size: 14px;
  }
}

/*
 * Главная: без прокрутки корня всегда.
 * Cover Tool: то же на десктопе; на моб. класс не вешается (см. functions.php).
 */
html:has(body.privatezone-no-doc-scroll),
body.privatezone-no-doc-scroll {
  overflow: hidden;
  height: 100%;
}

body.privatezone-no-doc-scroll {
  height: 100vh;
  height: 100dvh;
}

