:root {
  --bg: #101111;
  --panel: #17191b;
  --panel-2: #202327;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f3f0e8;
  --muted: #a9aca5;
  --soft: #d8d1c0;
  --gold: #c9a861;
  --gold-2: #f1d58a;
  --green: #5ed0a0;
  --blue: #78a9ff;
  --red: #f47f7f;
  --shadow: 0 20px 70px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent 320px),
    radial-gradient(circle at 18% 0%, rgba(201, 168, 97, 0.16), transparent 32rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(16, 17, 17, 0.86);
  backdrop-filter: blur(18px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand__mark {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid rgba(201, 168, 97, 0.72);
  background:
    radial-gradient(circle at 28% 20%, rgba(237, 212, 138, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(28, 30, 28, 0.98), rgba(12, 16, 14, 0.94));
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.brand__mark svg {
  width: 34px;
  height: 34px;
  overflow: visible;
}

.logo-bg {
  fill: rgba(201, 168, 97, 0.08);
  stroke: rgba(237, 212, 138, 0.28);
  stroke-width: 1.2;
  rx: 5;
}

.logo-grid {
  fill: none;
  stroke: rgba(237, 212, 138, 0.28);
  stroke-width: 1.6;
  stroke-linecap: round;
}

.logo-line,
.logo-arrow {
  fill: none;
  stroke: #6ee7a8;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.logo-leaf {
  fill: rgba(237, 212, 138, 0.92);
  stroke: rgba(22, 20, 16, 0.38);
  stroke-width: 0.8;
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav a,
.mobile-menu a {
  color: var(--soft);
  padding: 10px 13px;
  border-radius: 8px;
  transition: 0.18s ease;
}

.nav a:hover,
.nav a.is-active,
.mobile-menu a:hover,
.mobile-menu a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.07);
}

.menu-btn,
.mobile-menu__close {
  display: none;
  border: 0;
  color: var(--text);
  background: transparent;
}

.menu-btn {
  width: 44px;
  height: 44px;
  place-items: center;
}

.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 3px 0;
  background: var(--text);
}

.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  width: min(320px, 86vw);
  padding: 76px 18px 24px;
  transform: translateX(105%);
  transition: transform 0.22s ease;
  border-left: 1px solid var(--line);
  background: rgba(18, 19, 20, 0.98);
  box-shadow: var(--shadow);
}

.mobile-menu.is-open {
  transform: translateX(0);
}

.mobile-menu a {
  display: block;
  margin-bottom: 6px;
}

.mobile-menu__close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  font-size: 28px;
}

.page {
  padding: 54px 0 70px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 44px 0 34px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-2);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--gold);
}

.hero h1,
.page-title {
  margin: 14px 0 18px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(42px, 6vw, 78px);
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.hero p,
.page-subtitle {
  max-width: 680px;
  margin: 0;
  color: var(--soft);
  font-size: 18px;
}

.hero__actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.hero__media {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #242424;
  box-shadow: var(--shadow);
}

.hero-slider {
  position: absolute;
  inset: 0;
}

.hero-slider img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
  opacity: 0;
  animation: heroFade 18s infinite;
}

.hero-slider img:nth-child(1) {
  animation-delay: 0s;
}

.hero-slider img:nth-child(2) {
  animation-delay: 6s;
}

.hero-slider img:nth-child(3) {
  animation-delay: 12s;
}

@keyframes heroFade {
  0%,
  28% {
    opacity: 1;
  }

  36%,
  100% {
    opacity: 0;
  }
}

.hero__badge {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.stat-pill {
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(16, 17, 17, 0.82);
  backdrop-filter: blur(12px);
}

.stat-pill b {
  display: block;
  color: var(--gold-2);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 24px;
  line-height: 1;
}

.stat-pill span {
  color: var(--muted);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.12);
}

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

.btn--primary {
  color: #15120b;
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
}

.btn--primary:hover {
  background: linear-gradient(135deg, #ffe4a0, #d8b76e);
}

.btn--ghost {
  border-color: var(--line);
  background: transparent;
}

.btn--telegram {
  border-color: rgba(120, 169, 255, 0.45);
  background: rgba(120, 169, 255, 0.16);
  color: var(--text);
}

.btn--telegram:hover {
  background: rgba(120, 169, 255, 0.24);
}

.btn--danger {
  border-color: rgba(244, 127, 127, 0.45);
  background: rgba(244, 127, 127, 0.12);
  color: var(--red);
}

.btn--full {
  width: 100%;
}

.section {
  padding: 36px 0;
}

.section-title {
  margin: 0 0 18px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.section-lead {
  max-width: 760px;
  margin: -8px 0 26px;
  color: var(--soft);
}

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

.grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18);
}

.card--pad {
  padding: 24px;
}

.principle h3,
.method h3,
.market-card h3,
.plan-card h2 {
  margin: 0 0 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  letter-spacing: 0;
}

.principle p,
.method p,
.market-card p,
.plan-card p,
.muted {
  color: var(--muted);
}

.method {
  display: grid;
  gap: 12px;
}

.method ul,
.plan-card ul {
  margin: 0;
  padding: 0 0 0 19px;
  color: var(--soft);
}

.legal-copy {
  display: grid;
  gap: 14px;
}

.legal-copy p {
  margin: 0;
}

.legal-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
  color: var(--soft);
}

.gallery {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 16px;
}

.proof {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 168, 97, 0.14), rgba(120, 169, 255, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.proof:first-child {
  min-height: 230px;
}

.proof b {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-2);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 24px;
}

.about-me__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 18px;
  align-items: stretch;
}

.about-video,
.about-award {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.about-video {
  display: grid;
  grid-template-rows: auto 1fr;
}

.about-video video,
.about-video__placeholder {
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 280px;
  background: rgba(201, 168, 97, 0.08);
}

.about-video video {
  display: block;
  object-fit: cover;
}

.about-video__placeholder {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
}

.about-video__placeholder b {
  color: var(--gold-2);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 24px;
}

.about-video__placeholder span,
.about-video p,
.about-award span {
  color: var(--muted);
}

.about-video p {
  margin: 0;
  padding: 18px;
}

.about-awards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.about-award {
  min-height: 168px;
  margin: 0;
}

.about-award img {
  width: 100%;
  height: 100%;
  min-height: 168px;
  object-fit: cover;
}

.about-award--empty {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border-style: dashed;
  background: rgba(201, 168, 97, 0.07);
}

.about-award--empty b {
  color: var(--gold-2);
  font-family: "Space Grotesk", Inter, sans-serif;
}

.market-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ticker {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.ticker__name {
  display: block;
  min-height: 42px;
  color: var(--soft);
  font-size: 14px;
}

.ticker__move {
  display: block;
  color: var(--green);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 26px;
  font-weight: 700;
}

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

.materials {
  display: grid;
  gap: 14px;
}

.material {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.review-card {
  min-height: 250px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.045);
}

.review-card:hover {
  border-color: rgba(201, 168, 97, 0.4);
}

.avatar {
  display: grid;
  place-items: center;
  overflow: hidden;
  width: 54px;
  height: 54px;
  margin-bottom: 16px;
  border-radius: 50%;
  color: #15120b;
  background: linear-gradient(135deg, var(--gold-2), var(--blue));
  font-weight: 800;
}

.avatar--image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.auth {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 220px);
}

.auth-card {
  width: min(470px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: var(--shadow);
}

.telegram-card {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(120, 169, 255, 0.35);
  border-radius: 8px;
  background: rgba(120, 169, 255, 0.08);
}

.telegram-card.is-linked {
  border-color: rgba(94, 208, 160, 0.45);
  background: rgba(94, 208, 160, 0.08);
}

.telegram-card b {
  display: block;
  margin-bottom: 6px;
}

.telegram-card p {
  margin: 0;
  color: var(--soft);
}

.telegram-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telegram-code {
  display: inline-flex;
  width: fit-content;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(0, 0, 0, 0.18);
  font-family: "Space Grotesk", Inter, monospace;
  font-weight: 800;
  letter-spacing: 0.08em;
}

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

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--soft);
  font-weight: 700;
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 13px;
  color: var(--text);
  background: rgba(0, 0, 0, 0.18);
  outline: none;
}

.textarea {
  min-height: 128px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  border-color: rgba(201, 168, 97, 0.7);
}

.app-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.app-shell > section,
.trade-layout > *,
.chart-grid > *,
.grid > * {
  min-width: 0;
}

.sidebar {
  position: sticky;
  top: 92px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--soft);
  font-weight: 800;
}

.side-nav {
  display: grid;
  gap: 4px;
}

.side-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--soft);
}

.side-nav a:hover,
.side-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.075);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.account-card {
  display: grid;
  min-height: 228px;
  padding: 24px;
  color: #15120b;
  background:
    linear-gradient(135deg, #f4d987, #a9863f 62%, #3f4142);
}

.account-card small {
  text-transform: uppercase;
  font-weight: 800;
}

.account-card strong {
  align-self: center;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 46px;
  line-height: 1;
}

.account-card span {
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 19px;
}

.account-card--deposit {
  background:
    linear-gradient(135deg, #78a9ff, #5ed0a0 58%, #3f4142);
}

.operation {
  display: grid;
  grid-template-columns: 1fr auto;
  min-width: 0;
  gap: 10px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.operation > * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.operation--admin {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.operation--admin .row-actions {
  grid-column: 1 / -1;
}

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

.admin-message {
  margin: 8px 0 0;
  color: var(--soft);
}

.operation:last-child {
  border-bottom: 0;
}

.status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border-radius: 8px;
  color: #15120b;
  background: var(--gold-2);
  font-size: 13px;
  font-weight: 800;
}

.status--success {
  background: var(--green);
}

.status--danger {
  background: var(--red);
}

.status--muted {
  color: var(--text);
  background: rgba(255, 255, 255, 0.12);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.plan-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.plan-card.is-featured {
  border-color: rgba(201, 168, 97, 0.5);
}

.badge {
  display: inline-flex;
  width: fit-content;
  min-height: 27px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 8px;
  color: #15120b;
  background: var(--gold-2);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.price {
  color: var(--gold-2);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 42px;
  font-weight: 800;
}

.tabs {
  display: inline-flex;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.tab {
  min-height: 39px;
  border: 0;
  border-radius: 8px;
  padding: 9px 14px;
  color: var(--soft);
  background: transparent;
}

.tab.is-active {
  color: #15120b;
  background: var(--gold-2);
  font-weight: 800;
}

.deposit-box {
  display: grid;
  gap: 16px;
}

.deposit-request {
  max-width: 560px;
}

.deposit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.address-box {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgba(201, 168, 97, 0.55);
  border-radius: 8px;
  background: rgba(201, 168, 97, 0.08);
}

.address-box--ready {
  border-color: rgba(120, 169, 255, 0.55);
  background: rgba(120, 169, 255, 0.09);
}

.code-line {
  overflow-wrap: anywhere;
  color: var(--gold-2);
  font-family: "Space Grotesk", Inter, monospace;
}

.qr {
  display: grid;
  place-items: center;
  width: 152px;
  height: 152px;
  border-radius: 8px;
  background:
    linear-gradient(90deg, #fff 8px, transparent 8px) 0 0 / 20px 20px,
    linear-gradient(#fff 8px, transparent 8px) 0 0 / 20px 20px,
    #151515;
  color: #151515;
}

.trade-layout {
  display: grid;
  gap: 16px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.chart-card {
  padding: 20px;
}

.chart-card canvas,
.tv-widget {
  width: 100%;
  height: 260px;
  display: block;
}

.tv-widget {
  min-height: 360px;
  border: 0;
  border-radius: 8px;
  background: #111315;
}

.contact-pill {
  display: inline-flex;
  width: fit-content;
  margin: 8px 0 16px;
  padding: 8px 10px;
  border: 1px solid rgba(201, 168, 97, 0.35);
  border-radius: 8px;
  color: var(--gold-2);
  background: rgba(201, 168, 97, 0.08);
  font-weight: 700;
}

.admin-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 16px;
  align-items: stretch;
  margin-bottom: 16px;
  padding: 24px;
  border: 1px solid rgba(201, 168, 97, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(201, 168, 97, 0.14), rgba(120, 169, 255, 0.08)),
    rgba(255, 255, 255, 0.045);
}

.admin-command h2 {
  margin: 10px 0 10px;
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
}

.admin-command p,
.admin-command__panel span {
  color: var(--soft);
}

.admin-command__panel {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-metrics b {
  display: block;
  color: var(--gold-2);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.admin-metrics span {
  color: var(--muted);
}

.admin-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.admin-nav-card {
  display: grid;
  gap: 8px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.admin-nav-card:hover {
  transform: translateY(-1px);
  border-color: rgba(201, 168, 97, 0.45);
}

.admin-nav-card b {
  color: var(--gold-2);
  font-size: 20px;
}

.admin-nav-card span {
  color: var(--muted);
}

.admin-form {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  align-items: end;
}

.admin-form .field {
  min-width: 0;
}

.pnl-preview {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
  font-weight: 800;
}

.review-editor-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.review-edit-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.review-edit-header {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.review-edit-header .avatar {
  margin: 0;
}

.field-title {
  display: block;
  margin-bottom: 8px;
  color: var(--soft);
  font-weight: 700;
}

.upload-form {
  margin-top: 16px;
}

.about-video-preview {
  display: grid;
  gap: 12px;
}

.about-video-preview video {
  width: 100%;
  max-height: 360px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  object-fit: contain;
}

.media-grid,
.license-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.media-tile,
.license-card {
  position: relative;
  overflow: hidden;
  min-height: 150px;
  border: 1px dashed rgba(201, 168, 97, 0.45);
  border-radius: 8px;
  background: rgba(201, 168, 97, 0.07);
}

.media-tile img {
  width: 100%;
  height: 100%;
  min-height: 150px;
  object-fit: cover;
}

.media-tile--empty {
  display: grid;
  place-items: center;
  color: var(--muted);
}

.media-remove {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(244, 127, 127, 0.45);
  border-radius: 8px;
  color: var(--red);
  background: rgba(16, 17, 17, 0.84);
}

.client-row.is-banned {
  border-color: rgba(244, 127, 127, 0.32);
  background: rgba(244, 127, 127, 0.06);
}

.banned-screen {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.webapp-page {
  min-height: 100vh;
  padding: 18px 0;
}

.webapp-shell {
  width: min(520px, calc(100% - 24px));
}

.webapp-balance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.webapp-balance div {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
}

.webapp-balance span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.webapp-balance b {
  display: block;
  margin-top: 6px;
  color: var(--gold-2);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 24px;
}

.license-card {
  padding: 18px;
}

.license-card b {
  display: block;
  margin-bottom: 8px;
  color: var(--gold-2);
  font-family: "Space Grotesk", Inter, sans-serif;
  font-size: 22px;
}

.license-card span {
  color: var(--muted);
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.table th,
.table td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.table th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.pnl-plus {
  color: var(--green);
  font-weight: 800;
}

.pnl-minus {
  color: var(--red);
  font-weight: 800;
}

.footer {
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  color: var(--muted);
  font-size: 14px;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(0, 0, 0, 0.62);
}

.modal[hidden] {
  display: none;
}

.modal__dialog {
  width: min(580px, 100%);
  max-height: calc(100vh - 36px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #17191b;
  box-shadow: var(--shadow);
}

.modal__header,
.modal__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal__footer {
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.modal__header h2 {
  margin: 0;
  font-size: 22px;
}

.modal__body {
  padding: 20px;
}

.modal__close {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  color: var(--text);
  background: transparent;
  font-size: 28px;
}

.empty {
  padding: 18px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
}

@media (max-width: 980px) {
  .nav {
    display: none;
  }

  .menu-btn {
    display: grid;
  }

  .hero,
  .app-shell,
  .dashboard-grid,
  .chart-grid,
  .admin-command,
  .admin-metrics,
  .admin-nav-grid,
  .admin-form,
  .review-editor-grid,
  .review-edit-header,
  .about-me__grid,
  .media-grid,
  .license-grid,
  .grid--2,
  .gallery {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 0;
  }

  .hero__media,
  .hero-slider img {
    min-height: 420px;
  }

  .sidebar {
    position: static;
  }

  .side-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .market-grid,
  .plan-grid,
  .reviews-grid,
  .grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 22px, 1120px);
  }

  .topbar__inner {
    min-height: 64px;
  }

  .page {
    padding: 34px 0 52px;
  }

  .hero {
    padding-top: 22px;
    gap: 26px;
  }

  .hero h1,
  .page-title {
    font-size: 36px;
  }

  .hero p,
  .page-subtitle {
    font-size: 16px;
  }

  .hero__media,
  .hero-slider img {
    min-height: 360px;
  }

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

  .about-awards {
    grid-template-columns: 1fr;
  }

  .market-grid,
  .plan-grid,
  .reviews-grid,
  .grid--3 {
    grid-template-columns: 1fr;
  }

  .side-nav {
    grid-template-columns: 1fr;
  }

  .webapp-balance {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 20px 0;
  }

  .auth-card,
  .card--pad,
  .plan-card {
    padding: 20px;
  }
}
