*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --green: #37714f;
  --green-dark: #2a5740;
  --green-deep: #1e3f2e;
  --ink: #17211b;
  --muted: #3e5148;
  --line: #d9e3dc;
  --paper: #f5f7f6;
  --white: #ffffff;
  --danger: #6f1d1d;
  --danger-bg: #fdecec;
  --ok: #145233;
  --ok-bg: #e7f5ec;
  --shadow: 0 18px 50px rgba(23, 33, 27, 0.08);
  color-scheme: light;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(55, 113, 79, 0.1), transparent 34%),
    var(--paper);
}

main {
  flex: 1;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1,
h2 {
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

h3 {
  margin: 12px 0 6px;
  font-size: 1.15rem;
}

p {
  margin: 0 0 12px;
}

a {
  color: var(--green-deep);
}

img,
svg {
  display: block;
  max-width: 100%;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--green);
  color: var(--white);
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.sr-only,
.hp-field {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(245, 247, 246, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-bar {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.nav-search {
  display: flex;
  align-items: center;
  flex: 1 1 180px;
  max-width: 560px;
  min-width: 0;
  margin: 0 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  padding: 0 4px 0 14px;
}

.nav-search input {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.nav-search input:focus {
  outline: none;
}

.nav-search:focus-within {
  outline: 3px solid rgba(55, 113, 79, 0.45);
  outline-offset: 2px;
}

.nav-search button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  cursor: pointer;
  flex: none;
}

.logo-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--green);
  color: var(--white);
}

.nav-check {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}

.nav-burger > span:not(.sr-only) {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.nav-check:focus-visible + .nav-burger,
.btn:focus-visible,
.nav-link:focus-visible,
.lang-link:focus-visible,
.text-btn:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(55, 113, 79, 0.45);
  outline-offset: 2px;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 8px 16px;
  margin-left: auto;
}

.nav-link {
  padding: 8px 2px;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.nav-link.is-active {
  color: var(--green);
}

.nav-tools-label {
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.nav-tools-label::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 6px;
  vertical-align: 2px;
  border-top: 4px solid currentColor;
  border-right: 4px solid transparent;
  border-left: 4px solid transparent;
}

.nav-user {
  max-width: 140px;
  overflow: hidden;
  color: var(--muted);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.lang-link {
  padding: 6px 10px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
  text-decoration: none;
}

.lang-link.is-current {
  background: var(--green);
  color: var(--white);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--green);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--green-deep);
  border-color: #c5d7cb;
}

.nav-cta {
  min-height: 40px;
  padding: 0 14px;
}

.hero {
  padding: 36px 0 12px;
}

.hero-grid,
.steps,
.split,
.stats {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
}

.hero-grid {
  gap: 32px;
  align-items: center;
}

.kicker {
  margin: 0 0 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lede {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.hero-actions,
.closing-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-actions {
  margin-top: 20px;
}

.chips,
.check-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.chips li {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--green-deep);
  font-weight: 700;
}

.preview {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.preview-screen {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 220px;
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(160deg, #2f6a4c, #173528);
}

.preview-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--green-deep);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.play-btn {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.preview-body {
  padding: 18px 18px 22px;
}

.preview-body strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.15rem;
}

.preview-body p,
.audience p,
.step p,
.closing p {
  color: var(--muted);
}

.band {
  padding: 28px 0;
}

.step,
.audience,
.stat,
.auth-card {
  border: 1px solid var(--line);
  background: var(--white);
}

.step,
.audience {
  border-radius: 24px;
  padding: 22px;
}

.audience {
  border-top: 4px solid var(--green);
}

.step-index {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #e7f2eb;
  color: var(--green);
  font-weight: 800;
}

.check-list li {
  position: relative;
  margin: 10px 0;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 14px;
  height: 8px;
  border-bottom: 2px solid var(--green);
  border-left: 2px solid var(--green);
  transform: rotate(-45deg);
}

.closing {
  padding: 36px 24px;
  border-radius: 28px;
  background: var(--green);
  color: var(--white);
  text-align: center;
}

.closing p {
  color: var(--white);
}

.closing-actions {
  justify-content: center;
  margin-top: 18px;
}

.closing .btn-primary {
  background: var(--white);
  color: var(--green-deep);
}

.closing .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.75);
}

.auth-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.auth-card {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 28px 22px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.auth-shell .feed-end {
  margin-top: 28px;
}

.page-top-ad,
.auth-shell .page-top-ad {
  margin-top: 0;
  margin-bottom: 22px;
}

.auth-card h1 {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
}

.field {
  margin-bottom: 14px;
}

[data-adskeeper-interstitial] {
  position: absolute;
  width: 0;
  height: 0;
  overflow: visible;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
}

.field input {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
}

.field input.is-locked {
  background: #f3f6f4;
  color: var(--ink);
  cursor: default;
}

.hint,
.switch-auth,
.account-meta {
  color: var(--muted);
}

.hint,
.switch-auth {
  font-size: 0.92rem;
}

.password-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.password-row input {
  flex: 1;
  min-width: 0;
}

.text-btn {
  min-height: 44px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font-weight: 800;
  cursor: pointer;
}

.js-only {
  display: none;
}

.has-js .js-only {
  display: inline-flex;
}

.form-actions {
  display: grid;
  margin-top: 8px;
}

.auth-card .btn {
  width: 100%;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  border-radius: 12px;
}

.alert ul {
  margin: 0;
  padding-left: 1.1rem;
}

.alert li + li {
  margin-top: 4px;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger);
}

.alert-success {
  background: var(--ok-bg);
  color: var(--ok);
}

.page-head {
  padding: 32px 0 8px;
}

.account-meta {
  overflow-wrap: anywhere;
}

.panel-page {
  padding-top: 28px;
}

.stats {
  padding-bottom: 48px;
}

.stat {
  display: flex;
  min-height: 140px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px;
  border-radius: 20px;
}

.stat-label {
  color: var(--muted);
  font-weight: 700;
}

.stat-value {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

.stat.is-accent {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.stat.is-accent .stat-label {
  color: var(--white);
}

.has-js .needs-js-note {
  display: none;
}

.upload-card {
  width: min(560px, 100%);
}

.profile-grid {
  display: grid;
  gap: 18px;
  width: min(640px, 100%);
  margin: 32px auto 48px;
}

.profile-card {
  width: 100%;
  margin: 0;
}

.profile-card h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
}

.profile-card .lede {
  margin-bottom: 16px;
}

.avatar-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.avatar-row .field {
  flex: 1 1 180px;
  min-width: 0;
  margin-bottom: 0;
}

.avatar-row input[type="file"] {
  max-width: 100%;
}

.avatar,
.avatar-fallback {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  flex: none;
}

.avatar {
  object-fit: cover;
  background: #e7f2eb;
}

.avatar-fallback {
  display: grid;
  place-items: center;
  background: #e7f2eb;
  color: var(--green);
  font-size: 2rem;
  font-weight: 800;
}

.profile-facts {
  display: grid;
  gap: 12px;
  margin: 4px 0 18px;
}

.profile-facts div {
  display: grid;
  gap: 2px;
}

.profile-facts span {
  color: var(--muted);
  font-size: 0.92rem;
}

.profile-facts strong {
  font-weight: 700;
  overflow-wrap: anywhere;
}

.plan-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.plan-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.plan-list p {
  margin: 0;
}

.plan-list span {
  color: var(--muted);
}

.plan-list a {
  font-weight: 700;
  text-underline-offset: 2px;
}

.plan-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.plan-actions label {
  font-size: 0.85rem;
  font-weight: 700;
}

.plan-list form,
.plan-actions form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.plan-list select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.plan-list .btn {
  min-height: 40px;
}

.earn-card {
  align-items: flex-start;
}

.earn-card .badge {
  margin-left: 8px;
  vertical-align: 1px;
}

.earn-balance {
  margin: 8px 0 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.earn-balance span {
  margin-right: 6px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.earn-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.plan-list input.earn-input {
  width: 5.5rem;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.admin-ad-page {
  width: min(1280px, calc(100% - 32px));
  padding-top: 28px;
}

.admin-ad-scroll {
  max-width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.admin-ad-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
}

.admin-ad-table col.col-name { width: 13%; }
.admin-ad-table col.col-image { width: 9%; }
.admin-ad-table col.col-link { width: 15%; }
.admin-ad-table col.col-count { width: 8%; }
.admin-ad-table col.col-ctr { width: 6%; }
.admin-ad-table col.col-money { width: 12%; }
.admin-ad-table col.col-status { width: 17%; }

.admin-ad-table th,
.admin-ad-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  overflow-wrap: anywhere;
}

.admin-ad-table th {
  background: #f6faf7;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}

.admin-ad-table tbody tr:last-child td {
  border-bottom: 0;
}

.admin-ad-table td.is-num {
  font-variant-numeric: tabular-nums;
}

.admin-ad-name,
.admin-ad-link,
.admin-ad-user {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.admin-ad-name {
  font-weight: 700;
}

.admin-ad-user {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.admin-ad-status {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.admin-ad-status form {
  margin: 0;
}

.admin-ad-status select,
.admin-ad-status .btn {
  width: 100%;
  min-width: 0;
  min-height: 36px;
}

.admin-ad-status select {
  padding: 6px 8px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.user-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 16px;
}

.user-search input {
  flex: 1 1 220px;
  min-width: 0;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.user-search .btn {
  min-height: 40px;
}

.field input[type="file"] {
  padding: 12px;
  font: inherit;
}

.field select {
  width: 100%;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.birth-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: 10px;
}

.birth-grid .field {
  margin-bottom: 0;
}

@media (max-width: 560px) {
  .birth-grid {
    grid-template-columns: 1fr;
  }
}

.field textarea {
  width: 100%;
  min-height: 140px;
  padding: 10px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.thumb-error {
  margin-top: 10px;
  margin-bottom: 0;
}

.thumb-preview {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-top: 10px;
  object-fit: cover;
  border-radius: 12px;
  background: #e7f2eb;
}

.thumb-preview[hidden] {
  display: none;
}

.choice-field {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.choice-field legend {
  margin-bottom: 8px;
  font-weight: 800;
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.choice-row label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.choice-row input[type="radio"],
.choice-row input[type="checkbox"] {
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 0;
}

.video-description {
  max-width: 760px;
  margin: 0 0 48px;
  white-space: pre-wrap;
}

.video-description a {
  color: var(--green-deep);
  font-weight: 700;
}

.has-js .video-description.is-clipped {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  line-clamp: 4;
}

.video-description.is-open {
  display: block;
}

.progress {
  height: 10px;
  margin: 8px 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e7f2eb;
}

.progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
}

#upload-status:empty {
  display: none;
}

.tag-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 4px 8px 4px 10px;
  border-radius: 999px;
  background: #e7f2eb;
  color: var(--green-deep);
  font-weight: 700;
}

.tag-chip span {
  overflow-wrap: anywhere;
}

.tag-remove {
  width: auto;
  min-height: 0;
  padding: 0 2px;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}

.tag-box input[type="text"] {
  flex: 1 1 140px;
  width: auto;
  min-width: 120px;
  min-height: 32px;
  padding: 4px 6px;
  border: 0;
}

.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 8px 0 24px;
}

.editor-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0 48px;
}

.editor-card {
  display: grid;
  grid-template-columns: minmax(140px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.editor-card.is-current {
  outline: 3px solid rgba(55, 113, 79, 0.45);
}

.editor-thumb-link {
  display: block;
  min-width: 0;
  color: inherit;
}

.editor-card-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.editor-card h2,
.editor-form-card h2 {
  margin: 0;
  font-size: 1.15rem;
}

.editor-card p {
  margin: 0;
  color: var(--muted);
}

.editor-card .editor-earn,
.editor-form-card .editor-earn {
  margin: 0;
  color: var(--green-deep);
  font-weight: 800;
}

.editor-ready {
  margin: 0 0 12px;
  font-weight: 800;
}

.editor-ready.is-ready {
  color: var(--green-deep);
}

.editor-ready.is-waiting {
  color: #8a5a12;
}

.editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.editor-actions form {
  margin: 0;
}

.editor-form-card {
  margin-bottom: 28px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.editor-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 40px;
}

.editor-pages a,
.editor-pages [aria-current="page"] {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: inherit;
  font-weight: 800;
  text-decoration: none;
}

.editor-pages [aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: var(--white);
}

@media (max-width: 700px) {
  .editor-card {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr));
  gap: 16px;
  padding: 8px 0 48px;
}

.video-card {
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
  color: inherit;
  text-decoration: none;
}

.video-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #e7f2eb;
}

.video-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
}

.video-card h2 {
  margin: 0;
  font-size: 1.05rem;
}

.video-card p,
.watch-meta {
  margin: 0;
  color: var(--muted);
}

.badge {
  align-self: flex-start;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e7f2eb;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge.is-failed {
  background: var(--danger-bg);
  color: var(--danger);
}

.badge.is-waiting {
  background: #f7ecda;
  color: #8a5a12;
}

.player-wrap {
  width: min(960px, 100%);
  margin: 8px 0 48px;
}

.watch-shell {
  width: min(1580px, calc(100% - 32px));
  min-width: 0;
}

.watch-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  padding: 18px 0 48px;
}

.watch-main {
  min-width: 0;
}

.watch-layout .player-wrap {
  width: 100%;
  margin: 0 0 14px;
}

.watch-layout .player-frame {
  border-radius: 12px;
}

.watch-info h1 {
  margin: 8px 0 6px;
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  line-height: 1.3;
}

.watch-byline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.watch-channel {
  display: flex;
  align-items: center;
  flex: 1 1 240px;
  flex-wrap: wrap;
  gap: 10px;
  min-width: 0;
}

.watch-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #e7f2eb;
}

.watch-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 800;
}

.watch-identity {
  display: grid;
  gap: 4px;
  min-width: 0;
  flex: 1 1 0;
}

.watch-user {
  margin: 0;
  min-width: 0;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.watch-monetized {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  margin-left: 0.45rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 40%),
    linear-gradient(160deg, #2f8a56 0%, #1a6a3f 50%, #0f4a2c 100%);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.7) inset,
    0 2px 6px rgba(20, 82, 51, 0.35);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
  vertical-align: middle;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.18);
  transform: translateY(-0.08rem);
}

.watch-user a {
  color: inherit;
  text-decoration: none;
}

.watch-user a:hover {
  text-decoration: underline;
}

.watch-followers {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.3;
}

.follow-form {
  display: inline-flex;
  margin: 0;
}

.follow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.follow-btn:hover {
  background: var(--green-dark);
}

.follow-btn.is-on {
  border: 1px solid var(--green);
  background: var(--white);
  color: var(--green);
}

.follow-btn.is-on:hover {
  background: #e7f2eb;
}

.watch-views,
.watch-date {
  margin: 0;
  color: var(--muted);
}

.watch-views {
  flex: none;
  font-weight: 700;
}

.watch-kbc {
  margin-top: 14px;
}

.watch-kbc summary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  max-width: 100%;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.watch-kbc summary::-webkit-details-marker {
  display: none;
}

.watch-kbc summary::marker {
  content: "";
}

.watch-kbc summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 3px solid transparent;
  border-bottom: 3px solid transparent;
  border-left: 4px solid currentColor;
}

.watch-kbc[open] summary::before {
  border-top: 4px solid currentColor;
  border-right: 3px solid transparent;
  border-bottom: 0;
  border-left: 3px solid transparent;
}

.watch-kbc .watch-kbc-hide,
.watch-kbc[open] .watch-kbc-show {
  display: none;
}

.watch-kbc[open] .watch-kbc-hide {
  display: inline;
}

.watch-kbc-body {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.watch-kbc p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 12px 14px;
  border: 1px solid #d7e6dc;
  border-radius: 14px;
  background: var(--white);
}

.watch-kbc p span {
  color: var(--muted);
}

.watch-kbc strong {
  font-size: 1.05rem;
  white-space: nowrap;
}

.feed-page {
  padding-top: 20px;
}

.feed-list {
  display: grid;
  gap: 16px;
}

.feed-channels {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.feed-channel {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  text-decoration: none;
}

.feed-channel-mark {
  display: grid;
  flex: 0 0 44px;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #e7f3ec;
  color: var(--green-deep);
  font-weight: 800;
  object-fit: cover;
}

.feed-channel-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.feed-channel-copy strong,
.feed-channel-copy span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feed-channel-copy span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.feed-ad-mobile {
  margin-bottom: 16px;
}

.feed-ad-mobile iframe,
.feed-ad-sky iframe {
  display: block;
  border: 0;
  background: transparent;
}

.feed-ad-mobile iframe {
  width: 300px;
  max-width: 100%;
  height: 250px;
}

.feed-ad-mobile .user-ad-link img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.feed-ad-sky {
  display: none;
}

.feed-ad-sky iframe {
  width: 160px;
  height: 600px;
}

.feed-ad-sky .user-ad-link img {
  display: block;
  width: 160px;
  max-width: 100%;
  height: auto;
}

.feed-ad-sky [data-adskeeper-widget] {
  display: block;
  width: 160px;
  max-width: 100%;
  min-height: 600px;
}

.feed-end {
  margin-top: 20px;
}

.feed-end-desktop {
  display: none;
}

.feed-end iframe {
  display: block;
  margin-inline: auto;
  border: 0;
  background: transparent;
}

.feed-end-mobile iframe {
  width: 300px;
  max-width: 100%;
  height: 250px;
}

.feed-end-desktop iframe {
  width: 728px;
  height: 90px;
}

.user-ad-link {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

.feed-end-mobile [data-adskeeper-widget],
.feed-ad-mobile [data-adskeeper-widget],
.feed-end-mobile [data-type="_mgwidget"] {
  display: block;
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  margin-inline: auto;
}

.feed-end-desktop [data-adskeeper-widget],
.feed-end-desktop [data-type="_mgwidget"] {
  display: block;
  width: 728px;
  max-width: 100%;
  min-height: 90px;
  margin-inline: auto;
}

.feed-end-mobile .user-ad-link img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.feed-end-desktop .user-ad-link img {
  display: block;
  width: 728px;
  max-width: 100%;
  height: auto;
}

@media (min-width: 961px) {
  .feed-layout:has(.feed-ad-sky) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 28px;
    align-items: start;
  }

  .feed-ad-mobile {
    display: none;
  }

  .feed-ad-sky {
    display: block;
    position: sticky;
    top: 88px;
  }

  .feed-end-mobile {
    display: none;
  }

  .feed-end-desktop {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

.feed-more-wrap {
  display: flex;
  justify-content: center;
  margin: 18px 0 0;
}

.feed-more {
  min-height: 44px;
}

.feed-card {
  display: grid;
  grid-template-columns: minmax(140px, 280px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.feed-media {
  position: relative;
  display: block;
  min-width: 0;
}

.feed-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #d7e3db;
}

.feed-card .feed-duration {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.feed-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.feed-title {
  display: -webkit-box;
  min-width: 0;
  overflow: hidden;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: normal;
  word-break: normal;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.feed-meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.watch-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}

.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.share-btn:hover {
  background: var(--green-dark);
}

.like-btn.is-on {
  border-color: var(--green);
  background: #e7f2eb;
  color: var(--green-deep);
}

.like-btn-small {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.comments {
  margin-top: 28px;
}

.comments h2 {
  font-size: 1.25rem;
}

.comment-form,
.reply-box form {
  display: grid;
  gap: 10px;
  margin: 12px 0 18px;
}

.comment-form textarea,
.reply-box textarea,
.comment-edit textarea {
  width: 100%;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.emoji-field {
  display: grid;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

.emoji-open {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #c5d7cb;
  border-radius: 999px;
  background: var(--white);
  color: var(--green-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.emoji-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  padding: 8px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
}

.emoji-panel[hidden] {
  display: none;
}

.emoji-char {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}

.emoji-char:hover,
.emoji-char:focus-visible {
  background: #e7f2eb;
}

.comment-text {
  overflow-wrap: anywhere;
}

.comment-form textarea {
  min-height: 84px;
}

.reply-box {
  flex: 1 1 100%;
  align-self: stretch;
  width: 100%;
  min-width: 0;
}

.reply-box[open] {
  height: max-content;
}

.reply-box textarea {
  min-height: 168px;
}

.comment-text-btn {
  min-height: 32px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.comment-delete {
  margin: 0;
}

.comment-edit {
  flex: 1 1 100%;
  align-self: stretch;
  width: 100%;
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 8px 0 0;
}

.comment-edit[hidden] {
  display: none;
}

.comment-edit textarea {
  min-height: 140px;
}

.comment-edit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.comment-edit-actions .btn {
  width: auto;
}

.comment-form .btn,
.reply-box .btn {
  justify-self: start;
  width: auto;
}

.comment-list,
.comment-replies {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.replies-fold {
  margin: 8px 0 0 50px;
}

.replies-fold summary {
  width: max-content;
  max-width: 100%;
  color: var(--green-deep);
  font-weight: 800;
  cursor: pointer;
}

.replies-fold .replies-hide,
.replies-fold[open] .replies-show {
  display: none;
}

.replies-fold[open] .replies-hide {
  display: inline;
}

.replies-fold .comment-replies {
  margin: 12px 0 0;
}

@media (max-width: 700px) {
  .replies-fold {
    margin-left: 16px;
  }

  .watch-byline {
    align-items: flex-start;
    gap: 12px;
  }

  .watch-channel {
    flex-basis: 100%;
  }

  .watch-actions {
    width: 100%;
    justify-content: space-between;
  }

  .follow-btn {
    min-height: 40px;
  }

  .side-video {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .feed-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .feed-title {
    font-size: 0.92rem;
  }
}

.comment {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.comment-body {
  flex: 1;
  min-width: 0;
}

.comment-body p {
  margin: 0 0 6px;
  white-space: pre-wrap;
}

.comment-meta {
  color: var(--muted);
  font-size: 0.9rem;
}

.comment-meta a {
  font-weight: 800;
  text-decoration: none;
}

.comment-meta a:hover,
.comment-meta a:focus-visible {
  text-decoration: underline;
}

.comment-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.reply-box summary {
  color: var(--green-deep);
  font-weight: 800;
  cursor: pointer;
}

.watch-more {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green-deep);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.has-js .watch-more {
  display: inline;
}

.has-js .watch-more[hidden] {
  display: none;
}

.watch-layout .video-description {
  max-width: 100%;
  margin: 16px 0 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.watch-layout .video-description a {
  overflow-wrap: anywhere;
}

.watch-side {
  display: grid;
  gap: 12px;
  align-content: start;
}

.watch-related {
  display: grid;
  gap: 12px;
}

.watch-ad iframe {
  display: block;
  width: 100%;
  max-width: 300px;
  height: 250px;
  border: 0;
  background: transparent;
}

.watch-ad [data-adskeeper-widget],
.watch-leader-mobile [data-adskeeper-widget] {
  display: block;
  width: 300px;
  max-width: 100%;
  min-height: 250px;
  margin-inline: auto;
}

.watch-leader-desktop [data-adskeeper-widget] {
  display: block;
  width: 728px;
  max-width: 100%;
  min-height: 90px;
  margin-inline: auto;
}

.watch-ad .user-ad-link img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.watch-leader {
  margin-top: 28px;
  max-width: 100%;
}

.watch-leader iframe {
  display: block;
  border: 0;
  background: transparent;
}

.watch-leader-mobile iframe {
  width: 300px;
  max-width: 100%;
  height: 250px;
}

.watch-leader-mobile .user-ad-link img {
  display: block;
  width: 300px;
  max-width: 100%;
  height: auto;
}

.watch-leader-desktop {
  display: none;
}

.watch-leader-desktop iframe {
  width: 728px;
  height: 90px;
}

.watch-leader-desktop .user-ad-link img {
  display: block;
  width: 728px;
  max-width: 100%;
  height: auto;
}

@media (min-width: 961px) {
  .watch-leader-mobile {
    display: none;
  }

  .watch-leader-desktop {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }
}

@media (max-width: 700px) {
  .feed-ad-mobile .user-ad-link,
  .feed-end-mobile .user-ad-link,
  .watch-leader-mobile .user-ad-link,
  .watch-ad .user-ad-link {
    width: 100%;
  }

  .feed-ad-mobile iframe,
  .feed-ad-mobile .user-ad-link img,
  .feed-end-mobile .user-ad-link img,
  .watch-leader-mobile iframe,
  .watch-leader-mobile .user-ad-link img,
  .watch-ad iframe,
  .watch-ad .user-ad-link img {
    width: 100%;
    max-width: 100%;
    height: auto;
    aspect-ratio: 300 / 250;
  }

  .feed-end-mobile iframe,
  .feed-ad-mobile iframe,
  .watch-leader-mobile iframe,
  .watch-ad iframe {
    width: 100%;
    max-width: 100%;
    height: 250px;
    aspect-ratio: auto;
  }
}

.side-video {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: inherit;
  text-decoration: none;
}

.side-media {
  position: relative;
  display: block;
  min-width: 0;
}

.side-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  background: #d7e3db;
}

.side-video .side-duration {
  position: absolute;
  z-index: 1;
  right: 6px;
  bottom: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.3;
}

.side-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.side-title {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.35;
}

.side-user,
.side-views {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.82rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.player-frame {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 20px;
  background: #102117;
}

.player-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.watch-meter {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  height: 6px;
  background: rgba(8, 20, 14, 0.45);
  pointer-events: none;
}

.watch-meter span {
  display: block;
  height: 100%;
  width: 0;
  background: #8ee0ad;
}

.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
}

.footer-bar p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  width: 100%;
}

.footer-links a {
  color: var(--green-deep);
  font-weight: 700;
  text-decoration: none;
}

.footer-links a[aria-current="page"] {
  text-decoration: underline;
}

.legal-page {
  padding-bottom: 56px;
}

.legal-page .page-head h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
}

.legal-meta {
  color: var(--muted);
  font-size: 0.92rem;
}

.legal-block {
  max-width: 46rem;
  scroll-margin-top: 88px;
}

.legal-block h2 {
  margin-top: 28px;
  font-size: 1.35rem;
}

.legal-block h3 {
  margin: 18px 0 8px;
  font-size: 1.05rem;
}

.legal-list {
  margin: 0 0 12px;
  padding-left: 1.2rem;
}

.legal-list li + li {
  margin-top: 8px;
}

.legal-related {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 12px 0 0;
}

.earn-grid {
  margin-top: 8px;
}

.ad-form,
.ad-item {
  display: grid;
  gap: 12px;
}

.ad-form {
  max-width: 720px;
  margin-bottom: 28px;
}

.ad-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ad-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.ad-item p {
  margin: 0;
}

.ad-item textarea,
.ad-form textarea {
  width: 100%;
  min-height: 140px;
  padding: 12px 14px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: #f3f6f4;
  color: var(--ink);
  font: inherit;
  line-height: 1.45;
  resize: vertical;
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cookie-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.cookie-bar[hidden] {
  display: none;
}

.cookie-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 8px 0;
}

.cookie-bar p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.cookie-ok {
  min-height: 36px;
  padding: 0 16px;
}

body:has(.cookie-bar:not([hidden])) {
  padding-bottom: 64px;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  }
}

@media (min-width: 1000px) {
  .stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .watch-layout {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 36px;
  }
}

@media (max-width: 960px) {
  .logo-type {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .nav-burger {
    display: inline-flex;
    flex: none;
    margin-left: 0;
  }

  .nav-search {
    flex: 1 1 0;
    width: auto;
    max-width: none;
    min-width: 0;
    margin: 0;
  }

  .nav-search input {
    text-overflow: ellipsis;
  }

  .nav-panel {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 16px;
  }

  .nav-check:checked ~ .nav-panel {
    display: flex;
  }

  .nav-tools {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .nav-tools-label {
    display: none;
  }

  .nav-tools-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
  }

  .nav-cta {
    width: 100%;
  }

  .lang-switch {
    align-self: flex-start;
  }

  .header-bar {
    flex-wrap: wrap;
    gap: 8px;
    min-height: 64px;
  }

  .logo {
    flex: none;
    gap: 0;
  }
}

@media (min-width: 961px) {
  .nav-check {
    display: none;
  }

  .nav-tools {
    position: relative;
  }

  .nav-tools-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 30;
    min-width: 190px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--white);
    box-shadow: 0 12px 30px rgba(16, 33, 23, 0.12);
  }

  .nav-tools:hover > .nav-tools-menu,
  .nav-tools:focus-within > .nav-tools-menu {
    display: grid;
  }

  .nav-tools-menu .nav-link,
  .nav-tools-menu .nav-cta {
    justify-content: flex-start;
    width: auto;
    min-height: 0;
    padding: 10px 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-weight: 700;
  }

  .nav-tools-menu .nav-link:hover,
  .nav-tools-menu .nav-link:focus-visible,
  .nav-tools-menu .nav-cta:hover,
  .nav-tools-menu .nav-cta:focus-visible {
    background: #e7f2eb;
  }
}

@media (hover: hover) {
  .btn-primary:hover {
    background: var(--green-dark);
  }

  .closing .btn-primary:hover {
    background: #e7f2eb;
  }

  .btn-secondary:hover,
  .nav-link:hover {
    border-color: var(--green);
  }

  .side-video:hover .side-title {
    color: var(--green-deep);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

.home-shelf {
  padding-top: 14px;
  padding-bottom: 6px;
}

.home-ad {
  padding: 10px 0 16px;
}

.home-ad .feed-end {
  margin-top: 0;
}

.home-ad .watch-leader {
  margin-top: 0;
}

.home-ad .watch-leader-mobile iframe,
.home-ad .watch-leader-desktop iframe {
  margin-inline: auto;
}

.home-shelf h2 {
  margin: 4px 0 12px;
  font-size: 1.35rem;
  font-weight: 700;
}

.home-media {
  position: relative;
  display: block;
}

.home-card .home-duration {
  position: absolute;
  z-index: 1;
  right: 8px;
  bottom: 8px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.3;
}

.home-card .home-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: inherit;
  font-size: 15px;
  line-height: 1;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.home-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
  color: inherit;
  text-decoration: none;
}

.home-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  background: #d7e3db;
}

.home-card strong {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 0.95rem;
  line-height: 1.35;
}

.home-card span {
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 1000px) {
  .home-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .home-shelf {
    padding-top: 8px;
    padding-bottom: 2px;
  }

  .home-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 14px;
  }

  .home-card {
    gap: 8px;
  }
}

.channel-page {
  padding-top: 8px;
  padding-bottom: 48px;
}

.channel-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0 18px;
}

.channel-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
  background: #e7f2eb;
}

.channel-avatar-fallback {
  display: grid;
  place-items: center;
  color: var(--green);
  font-weight: 800;
  font-size: 2rem;
}

.channel-identity {
  min-width: 0;
  flex: 1 1 auto;
}

.channel-identity h1 {
  margin: 0;
  font-size: 1.6rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.channel-handle,
.channel-followers {
  margin: 4px 0 0;
  color: var(--muted);
}

.channel-head .follow-form,
.channel-head > .follow-btn {
  margin-left: auto;
}

.channel-empty {
  margin: 8px 0 24px;
  color: var(--muted);
}

.channel-sort {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 16px;
}

.channel-sort label {
  color: var(--muted);
  font-size: 0.92rem;
}

.channel-sort select {
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.channel-sort button {
  min-height: 40px;
  padding: 8px 14px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.has-js .channel-sort button {
  display: none;
}

.channel-videos .home-grid {
  margin-top: 8px;
}

@media (max-width: 700px) {
  .channel-head {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .channel-avatar {
    width: 72px;
    height: 72px;
  }

  .channel-identity h1 {
    font-size: 1.35rem;
  }

  .channel-head .follow-form,
  .channel-head > .follow-btn {
    margin-left: 0;
    width: 100%;
  }

  .channel-head .follow-btn {
    width: 100%;
  }

  .channel-sort {
    justify-content: stretch;
    flex-wrap: wrap;
  }

  .channel-sort select,
  .channel-sort button {
    width: 100%;
  }
}

.affiliate-page {
  width: min(1040px, calc(100% - 32px));
  padding-top: 12px;
  padding-bottom: 56px;
}

.affiliate-hero {
  max-width: 40rem;
  padding: 18px 0 8px;
}

.affiliate-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.affiliate-hero .lede {
  margin: 0;
}

.affiliate-invite {
  display: grid;
  gap: 14px;
  margin: 18px 0 20px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(55, 113, 79, 0.1), transparent 46%),
    var(--white);
  box-shadow: var(--shadow);
}

.affiliate-invite label {
  font-weight: 800;
}

.affiliate-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.affiliate-link-row input {
  flex: 1 1 280px;
  min-width: 0;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid #c5d7cb;
  border-radius: 999px;
  background: #f7faf8;
  color: var(--ink);
  font: inherit;
}

.affiliate-page .stats {
  width: 100%;
  padding-bottom: 8px;
}

.affiliate-page .stat {
  min-height: 132px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.affiliate-page .stat.is-accent {
  background: linear-gradient(155deg, #2f6a4c, #173528);
  border-color: transparent;
}

.affiliate-page .stat.is-accent .stat-number,
.affiliate-page .stat.is-accent .stat-unit {
  color: var(--white);
}

.affiliate-panel {
  margin-top: 18px;
  padding: 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.affiliate-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 14px 14px 6px;
}

.affiliate-panel-head h2 {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.affiliate-search {
  display: flex;
  flex: 1 1 280px;
  gap: 8px;
  max-width: 480px;
  margin: 0;
}

.affiliate-search input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.affiliate-search .btn {
  min-height: 44px;
}

.affiliate-empty {
  margin: 8px 16px 16px;
  color: var(--muted);
}

.affiliate-people {
  margin: 0;
  padding: 0 8px;
  list-style: none;
}

.affiliate-people li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 14px 10px;
  border-top: 1px solid var(--line);
}

.affiliate-avatar {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #e7f2eb;
  color: var(--green-deep);
  font-weight: 800;
}

.affiliate-person {
  flex: 0 1 320px;
  min-width: 0;
}

.affiliate-person a,
.affiliate-person strong,
.affiliate-person span {
  display: block;
  overflow-wrap: anywhere;
}

.affiliate-person a,
.affiliate-person strong {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.affiliate-person span,
.affiliate-earn span {
  color: var(--muted);
  font-size: 0.92rem;
}

.affiliate-earn {
  display: flex;
  flex: 1 1 180px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  min-width: 0;
}

.affiliate-earn strong,
.affiliate-earn span {
  display: inline;
}

.affiliate-earn strong {
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.affiliate-page .pager {
  width: auto;
  margin: 12px 10px 0;
}

.plans-page {
  padding-top: 28px;
  padding-bottom: 48px;
}

.plans {
  display: grid;
  gap: 16px;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
}

.plan-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.plan-card h2 {
  margin: 0 0 8px;
  font-size: 1.45rem;
}

.plan-quota {
  margin: 0 0 4px;
  color: var(--green-deep);
  font-size: 1.25rem;
  font-weight: 800;
}

.plan-card .check-list {
  margin-bottom: 16px;
}

.plan-card .btn {
  width: 100%;
  margin-top: auto;
}

.plan-card.is-current {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

.plan-card.is-premium {
  border-top: 4px solid var(--green);
}

.plan-badge {
  width: fit-content;
  margin: 0 0 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e7f2eb;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (min-width: 900px) {
  .plans {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.badge.is-ready {
  background: #e7f2eb;
  color: var(--green-deep);
}

.panel-page .stats {
  grid-template-columns: minmax(0, 1fr);
}

.panel-page .stat {
  min-width: 0;
  overflow: hidden;
  container-type: inline-size;
}

.panel-page .stat-label {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.panel-page .stat-label .badge {
  align-self: center;
}

.panel-page .stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
  max-width: 100%;
  font-size: clamp(1.05rem, calc(92cqi / var(--len, 4)), 2rem);
  line-height: 1.15;
  letter-spacing: 0;
}

.panel-page .stat-number {
  min-width: 0;
  overflow: hidden;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.panel-page .stat-unit {
  flex: none;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

@media (min-width: 700px) {
  .panel-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .panel-page .stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 700px) {
  .affiliate-page .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .affiliate-invite,
  .affiliate-panel {
    padding-right: 14px;
    padding-left: 14px;
    border-radius: 22px;
  }

  .affiliate-link-row .btn,
  .affiliate-search {
    width: 100%;
    max-width: none;
  }

  .affiliate-search .btn {
    flex: none;
  }

  .affiliate-earn {
    flex-basis: 100%;
    padding-left: 64px;
  }
}

.wallet-balance {
  padding-bottom: 0;
}

.wallet-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.wallet-list li {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.wallet-list p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.wallet-list span,
.wallet-list a {
  overflow-wrap: anywhere;
}

.wallet-list span {
  color: var(--muted);
  font-size: 0.92rem;
}

.wallet-list form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.wallet-list input[type="text"] {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  font: inherit;
}

.wallet-list .btn {
  min-height: 40px;
}

.wallet-status.is-approved {
  color: var(--ok);
}

.wallet-status.is-pending {
  color: #8a5a12;
}

.deposit-page {
  padding-top: 28px;
  padding-bottom: 48px;
}

.deposit-page .page-head {
  margin-bottom: 24px;
}

.deposit-layout {
  display: grid;
  gap: 18px;
  margin-bottom: 28px;
}

@media (min-width: 960px) {
  .deposit-layout {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: start;
  }
}

.deposit-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.deposit-panel h2 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.deposit-panel .form-actions {
  margin-bottom: 0;
}

.deposit-wallet-card {
  border-color: rgba(55, 113, 79, 0.28);
  background:
    linear-gradient(180deg, rgba(238, 246, 241, 0.95), rgba(255, 255, 255, 0.98)),
    var(--white);
}

.deposit-wallet {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 14px 0 18px;
}

.deposit-wallet-address {
  display: block;
  flex: 1 1 240px;
  min-width: 0;
  margin: 0;
  padding: 16px 18px;
  border: 1px solid rgba(55, 113, 79, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--green-deep);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
  word-break: break-all;
  cursor: pointer;
}

.deposit-wallet .btn {
  flex: 0 0 auto;
}

.deposit-links {
  display: grid;
  gap: 10px;
}

.deposit-links p {
  margin: 0;
  color: var(--muted);
}

.deposit-links span {
  display: block;
  margin-bottom: 2px;
  font-size: 0.9rem;
}

.deposit-contract {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-weight: 700;
}

.deposit-history {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.deposit-history-head {
  margin-bottom: 18px;
}

.deposit-history-head h2 {
  margin: 0;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
}

.deposit-empty {
  margin: 0;
  padding: 28px 18px;
  border: 1px dashed #c9d7cf;
  border-radius: 16px;
  background: #f7faf8;
  color: var(--muted);
  text-align: center;
}

.deposit-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.deposit-item {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, #fbfcfb, #ffffff);
}

.deposit-item.is-pending {
  border-color: #e4cf9d;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.deposit-item.is-approved {
  border-color: #b9dcc7;
  background: linear-gradient(180deg, #f3faf6, #ffffff);
}

.deposit-item.is-rejected {
  border-color: #e7bcbc;
  background: linear-gradient(180deg, #fff6f6, #ffffff);
}

.deposit-item-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.deposit-item-label {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.deposit-item-amount {
  margin: 0;
  color: var(--green-deep);
  font-size: clamp(1.35rem, 2.8vw, 1.8rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.deposit-status {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.deposit-status.is-pending {
  background: #f7ecda;
  color: #8a5a12;
}

.deposit-status.is-approved {
  background: var(--ok-bg);
  color: var(--ok);
}

.deposit-status.is-rejected {
  background: var(--danger-bg);
  color: var(--danger);
}

.deposit-item-meta {
  display: grid;
  gap: 10px;
}

@media (min-width: 720px) {
  .deposit-item-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.deposit-item-meta p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.deposit-item-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.deposit-item-meta strong {
  font-size: 0.98rem;
}

.deposit-hash {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f3f7f4;
  text-decoration: none;
  transition: background 0.15s ease, transform 0.15s ease;
}

.deposit-hash:hover {
  background: #e8f1eb;
  transform: translateY(-1px);
}

.deposit-hash span,
.deposit-hash em {
  color: var(--muted);
  font-size: 0.86rem;
  font-style: normal;
}

.deposit-hash strong {
  overflow: hidden;
  color: var(--green-deep);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deposit-history .pager {
  margin-top: 18px;
}

.admin-deposits-page {
  padding-top: 28px;
  padding-bottom: 48px;
}

.admin-deposits-page .page-head {
  margin-bottom: 22px;
}

.admin-deposit-list {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.admin-deposit-item {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fbfcfb, #ffffff);
  box-shadow: var(--shadow);
}

.admin-deposit-item.is-pending {
  border-color: #e4cf9d;
  background: linear-gradient(180deg, #fffaf0, #ffffff);
}

.admin-deposit-item.is-approved {
  border-color: #b9dcc7;
  background: linear-gradient(180deg, #f3faf6, #ffffff);
}

.admin-deposit-item.is-rejected {
  border-color: #e7bcbc;
  background: linear-gradient(180deg, #fff6f6, #ffffff);
}

.admin-deposit-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.admin-deposit-user {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.admin-deposit-user strong {
  font-size: 1.05rem;
}

.admin-deposit-user a,
.admin-deposit-user > span:not(.admin-deposit-email) {
  color: var(--green-deep);
  font-weight: 700;
}

.admin-deposit-email {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.admin-deposit-amount {
  display: grid;
  gap: 4px;
}

.admin-deposit-amount span {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

.admin-deposit-amount strong {
  color: var(--green-deep);
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.admin-deposit-meta {
  display: grid;
  gap: 10px;
}

@media (min-width: 720px) {
  .admin-deposit-meta {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.admin-deposit-meta p {
  display: grid;
  gap: 2px;
  margin: 0;
}

.admin-deposit-meta span {
  color: var(--muted);
  font-size: 0.88rem;
}

.admin-deposit-meta strong {
  font-size: 0.98rem;
}

.admin-deposit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
}

.admin-deposits-page .pager,
.admin-withdrawals-page .pager {
  margin-top: 18px;
}

.admin-withdrawals-page {
  padding-top: 28px;
  padding-bottom: 48px;
}

.admin-withdrawal-wallet {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.admin-deposit-actions .hint {
  flex: 1 1 100%;
  margin: 0;
}

.admin-deposit-actions input[type="text"] {
  flex: 1 1 220px;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid #c5d7cb;
  border-radius: 12px;
  font: inherit;
}

.panel-page .form-actions,
.ad-page .form-actions {
  margin: 0 0 40px;
}

.ad-page {
  padding-top: 28px;
  padding-bottom: 28px;
}

.ad-list {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
}

.ad-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--white);
}

.ad-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.ad-card h2 {
  flex: 1 1 12rem;
  min-width: 0;
  margin: 0;
  font-size: 1.05rem;
  overflow-wrap: anywhere;
}

.ad-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin: 0;
  color: var(--muted);
}

.ad-url {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.ad-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ad-actions form {
  margin: 0;
}

.ad-actions .btn {
  min-height: 40px;
}

.ad-banner-preview {
  display: block;
  max-width: 100%;
  max-height: 280px;
  width: auto;
  height: auto;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  object-fit: contain;
}

.ad-banner-preview[hidden] {
  display: none;
}

.ad-status {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #e7f2eb;
  color: var(--green-deep);
  font-size: 0.78rem;
  font-weight: 800;
}

.ad-status.is-pending {
  background: #f4f0e4;
  color: #6a5420;
}

.ad-status.is-approved {
  background: var(--ok-bg);
  color: var(--ok);
}

.ad-status.is-rejected,
.ad-status.is-reproved {
  background: var(--danger-bg);
  color: var(--danger);
}

.ad-status.is-paused {
  background: #eef1f4;
  color: #3d4a55;
}

.wallet-status.is-rejected {
  color: var(--danger);
}
