/* Obunachi — kun / tun + responsive */

html[data-theme="light"] {
  --text: #0a0a0a;
  --text-soft: #111111;
  --muted: #3a3a3a;
  --bg: #f4f8fc;
  --panel-bg: #eef4fa;
  --card: #ffffff;
  --line: #d0dbe6;
  --input: #ffffff;
  --blue: #157fbf;
  --blue-hover: #0f6aa3;
  --teal: #0b7a6c;
  --ok: #06703a;
  --err: #b00000;
  --shadow: 0 6px 18px rgba(15, 40, 70, 0.08);
  --nav-text: #0a0a0a;
  --top-text: #0a0a0a;
  --hero-text: #ffffff;
  --drawer-bg: #ffffff;
  --drawer-text: #0a0a0a;
  --drawer-muted: #3a3a3a;
  --drawer-line: #d0dbe6;
  --drawer-hover: #e8f4fc;
  --theme-color: #157fbf;
}

html[data-theme="dark"] {
  --text: #ffffff;
  --text-soft: #fafafa;
  --muted: #c8c8c8;
  --bg: #000000;
  --panel-bg: #000000;
  --card: #0a0a0a;
  --line: #2a2a2a;
  --input: #121212;
  --blue: #4db3ef;
  --blue-hover: #3a9fd9;
  --teal: #2dd4bf;
  --ok: #4ade80;
  --err: #ff6b6b;
  --shadow: 0 8px 28px rgba(0, 0, 0, 0.7);
  --nav-text: #ffffff;
  --top-text: #ffffff;
  --hero-text: #ffffff;
  --drawer-bg: #000000;
  --drawer-text: #ffffff;
  --drawer-muted: #c8c8c8;
  --drawer-line: #2a2a2a;
  --drawer-hover: #141414;
  --theme-color: #000000;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: light;
}
html[data-theme="dark"] { color-scheme: dark; }
body {
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  min-height: 100dvh;
  line-height: 1.5;
  font-size: 16px;
  font-weight: 600;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "kern" 1, "liga" 1;
}
/* iOS zoom oldini olish — input kamida 16px */
input, select, textarea, button {
  font-size: 16px;
}
.mobile-brand { display: none; }
.nav-open, .nav-close { display: none; }
.nav-backdrop { display: none; }
.desktop-only { display: flex; }
h1, h2, h3, .page-title, .auth-hero h1 {
  font-family: Manrope, "Segoe UI", sans-serif;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 800;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: var(--text); }

/* ===== Auth ===== */
body.auth-page {
  background: var(--land-bg, #f2f5f8);
}
html[data-theme="light"] body.auth-page {
  --land-bg: #f2f5f8;
  --land-card: #ffffff;
  --land-card-soft: #eef1f5;
  --land-text: #0a0a0a;
  --land-muted: #4a4a4a;
  --land-line: #dde3ea;
}
html[data-theme="dark"] body.auth-page {
  --land-bg: #000000;
  --land-card: #0a0a0a;
  --land-card-soft: #121212;
  --land-text: #ffffff;
  --land-muted: #c8c8c8;
  --land-line: #2a2a2a;
  background: #000;
}
.auth-sky {
  position: relative;
  min-height: auto;
  overflow-x: hidden;
  overflow-y: visible;
  padding: max(0.85rem, env(safe-area-inset-top)) max(0.85rem, env(safe-area-inset-right)) 2.2rem max(0.85rem, env(safe-area-inset-left));
  background: linear-gradient(180deg, #3db7ff 0%, #1f9ae8 55%, #57c8ff 100%);
}
html[data-theme="dark"] .auth-sky {
  background: linear-gradient(180deg, #000000 0%, #0a0a0a 70%, #000000 100%);
}
.auth-top {
  position: relative;
  z-index: 5;
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
}
.auth-top-row {
  width: 100%;
  max-width: 720px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.auth-top-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
  position: relative;
  z-index: 6;
}
.auth-theme-btn,
.auth-sky .theme-btn {
  width: 42px;
  height: 42px;
  min-width: 42px;
  font-size: 1.2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.65);
  color: #0b3d5c;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}
.lang-switch,
.side-lang {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.28);
}
.lang-switch a,
.side-lang a {
  min-width: 2rem;
  text-align: center;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
}
.lang-switch a.on,
.side-lang a.on {
  background: #fff;
  color: #0b3d5c;
}
.lang-switch-panel {
  background: var(--input);
  border: 1px solid var(--line);
}
.lang-switch-panel a {
  color: var(--muted);
}
.lang-switch-panel a.on {
  background: var(--blue);
  color: #fff;
}
.side-lang {
  margin: 0.55rem 0.2rem;
  background: var(--input);
  border: 1px solid var(--line);
  justify-content: center;
}
.side-lang a {
  color: var(--muted);
  flex: 1;
}
.side-lang a.on {
  background: var(--blue);
  color: #fff;
}
.auth-logo img {
  /* replaced by .logo-3d rules */
}
.auth-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  max-width: 100%;
}
.auth-nav a {
  background: rgba(255,255,255,0.18);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-weight: 800;
  font-size: 0.9rem;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.auth-nav a.on { background: #fff; color: #000; border-color: #fff; }
.auth-hero {
  max-width: 720px;
  margin: 1.2rem auto 1rem;
  text-align: center;
  color: var(--hero-text);
  padding: 0 0.4rem;
}
.auth-hero h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.45rem, 4.2vw, 2.35rem);
  color: #fff;
  text-wrap: balance;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  -webkit-font-smoothing: antialiased;
}
.auth-hero p {
  margin: 0 auto;
  max-width: 42ch;
  color: #fff;
  font-weight: 700;
  font-size: clamp(0.98rem, 2.5vw, 1.08rem);
}
.auth-flash { max-width: 720px; margin: 0 auto 0.75rem; }
.auth-card {
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  background: var(--card);
  color: var(--text);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.15rem 1.1rem 1.05rem;
  position: relative;
  z-index: 2;
  border: 1px solid var(--line);
}
.login-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.login-grid-single {
  margin-top: 0.85rem;
  grid-template-columns: 1fr;
}
.login-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  color: var(--text);
  font-size: 0.95rem;
}
.login-form input,
.login-form select {
  border: 1px solid var(--line);
  background: var(--input);
  border-radius: 10px;
  padding: 0.8rem 0.85rem;
  color: var(--text);
  width: 100%;
  min-height: 48px;
  font-weight: 600;
}
.phone-row {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) 1.2fr;
  gap: 0.5rem;
}
.phone-row select {
  font-size: 0.86rem;
  padding-right: 0.4rem;
}
.login-form input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
.mini-link { color: var(--blue); font-size: 0.84rem; font-weight: 600; }
.auth-form-hint {
  margin: 0 0 0.9rem;
  color: var(--muted, #5b6b7c);
  font-size: 0.92rem;
  line-height: 1.45;
}
.reset-channels {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0;
}
.reset-channel {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input);
  cursor: pointer;
}
.reset-channel input {
  width: auto;
  min-height: 0;
  margin: 0;
}
.reset-channel.is-off {
  opacity: 0.55;
}
.auth-btn, .btn-main {
  width: 100%;
  margin-top: 0.95rem;
  background: var(--teal);
  color: #fff !important;
  border: none;
  border-radius: 10px;
  padding: 0.9rem 1rem;
  font-size: 1.02rem;
  font-weight: 800;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.auth-foot { text-align: center; margin: 0.9rem 0 0; color: var(--muted); font-weight: 500; }
.auth-foot a { color: var(--blue); font-weight: 700; }
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1rem 0 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}
.google-captcha-form { margin: 0; }
button.btn-google {
  font-family: inherit;
  cursor: pointer;
}
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #1f1f1f !important;
  font-weight: 700;
  font-size: 0.98rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition: background 0.15s ease, transform 0.15s ease;
}
.btn-google:hover {
  background: #f7f7f7;
  transform: translateY(-1px);
}
html[data-theme="dark"] .btn-google {
  background: #121212;
  color: #fff !important;
  border-color: #2a2a2a;
}
html[data-theme="dark"] .btn-google:hover { background: #1a1a1a; }
.google-icon { width: 22px; height: 22px; flex-shrink: 0; }
.google-hint {
  margin: 0.55rem 0 0;
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 500;
}
.float { display: none; }
.wave { display: none; }

.social-floats {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.social-bubble {
  position: absolute;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  box-shadow: 0 16px 40px rgba(0,0,0,0.28);
  background: transparent;
  border: none;
  will-change: auto;
}
.auth-sky.is-hero-on .social-bubble {
  animation: floatY 6s ease-in-out infinite;
}
.s-tg { left: 5%; top: 18%; animation-duration: 6.2s; }
.s-ig { right: 5%; top: 14%; animation-duration: 5.6s; animation-delay: 0.5s; }
.s-tt { left: 7%; bottom: 14%; animation-duration: 6.8s; animation-delay: 1s; }
.s-yt { right: 6%; bottom: 15%; animation-duration: 6s; animation-delay: 0.3s; }
@keyframes floatY {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -14px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .auth-sky.is-hero-on .social-bubble { animation: none !important; }
}

@media (max-width: 900px) {
  .social-bubble { width: 96px; height: 96px; opacity: 0.85; }
}
@media (max-width: 560px) {
  .social-bubble { width: 56px; height: 56px; opacity: 0.45; }
  .s-tg { left: 1%; top: 22%; }
  .s-ig { right: 1%; top: 26%; }
  .s-tt { left: 2%; bottom: 8%; }
  .s-yt { right: 2%; bottom: 9%; }
  .auth-hero h1 { font-size: 1.35rem; }
  .auth-hero { margin: 0.75rem auto 0.85rem; }
  .auth-nav a { padding: 0.55rem 0.75rem; font-size: 0.82rem; }
  .auth-logo { min-width: 0; flex: 1 1 auto; }
  .auth-logo .logo-text {
    font-size: 1.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 42vw;
  }
  .auth-logo img.logo-3d { width: 40px; height: 40px; min-width: 40px; }
  .auth-top-actions { gap: 0.3rem; }
  .lang-switch a {
    min-width: 1.7rem;
    padding: 0.3rem 0.35rem;
    font-size: 0.72rem;
  }
  .auth-theme-btn,
  .auth-sky .theme-btn {
    width: 40px;
    height: 40px;
    min-width: 40px;
    font-size: 1.15rem;
  }
  .btn-google { min-height: 48px; font-size: 0.95rem; }
  .auth-btn, .btn-main { min-height: 48px; }
}

/* ===== Panel ===== */
.panel-body { background: var(--panel-bg); color: var(--text); }
.panel-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
}
.sidebar {
  background: var(--card);
  color: var(--nav-text);
  padding: 0.95rem 0.85rem 1.2rem;
  border-right: 1px solid var(--line);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.side-logo {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.35rem 0.25rem;
  overflow: visible;
  width: 100%;
  min-width: 0;
}
.side-logo img,
.auth-logo img.logo-3d,
.logo-3d {
  width: 56px;
  height: 56px;
  min-width: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: 0 8px 20px rgba(0,0,0,0.22);
  background: transparent;
  padding: 0;
}
.side-logo .logo-text,
.logo-text {
  font-family: Manrope, "Segoe UI", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text);
  letter-spacing: -0.02em;
  white-space: nowrap;
  text-transform: uppercase;
  line-height: 1.1;
  flex: 1 1 auto;
  min-width: 0;
}
.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}
.auth-logo .logo-text {
  color: #fff;
  font-size: clamp(1.25rem, 3.8vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}
html[data-theme="dark"] .auth-logo .logo-text { color: #fff; }
.auth-logo img {
  height: auto;
  background: transparent;
  border-radius: 50%;
  padding: 0;
}
.theme-btn {
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  flex-shrink: 0;
}
.side-nav {
  display: grid;
  gap: 0.3rem;
  flex: 1 1 auto;
  align-content: start;
}
.side-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.78rem 0.85rem;
  border-radius: 12px;
  color: var(--text);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  letter-spacing: 0.01em;
  line-height: 1.25;
  text-transform: none;
}
.side-nav a .nav-ico {
  width: 1.4rem;
  text-align: center;
  font-size: 1.05rem;
  opacity: 0.9;
  flex-shrink: 0;
}
.side-nav a.active,
.side-nav a:hover {
  background: var(--blue);
  color: #fff !important;
}
.nav-sep {
  height: 1px;
  background: var(--line);
  margin: 0.45rem 0.2rem;
}
.side-user {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.65rem;
  border-top: 1px solid var(--line);
  border-radius: 12px;
}
.side-user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(145deg, #3ba4e6, #1677b5);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  object-fit: cover;
  flex-shrink: 0;
}
img.side-user-photo {
  padding: 0;
  background: var(--input);
  border: 1px solid var(--line);
}
.side-user-ton {
  display: block;
  font-size: 0.78rem !important;
  opacity: 0.85;
}
.admin-user-cell {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}
.admin-avatar {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.admin-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3ba4e6, #1677b5);
  color: #fff;
  font-weight: 800;
  font-size: 0.9rem;
}
.admin-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.service-section {
  margin-bottom: 1.35rem;
}
.service-section-title {
  margin: 0 0 0.55rem;
  font-size: 1.05rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.service-section-title span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}
.service-edit-form {
  display: grid;
  gap: 0.35rem;
  min-width: 220px;
}
.service-edit-form input[type="text"] {
  width: 100%;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
  font: inherit;
  font-weight: 600;
}
.service-edit-price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.service-edit-price input {
  width: 110px;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  color: var(--text);
}
.service-edit-price em {
  font-style: normal;
  opacity: 0.75;
}
.service-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  white-space: nowrap;
}
.service-toggle form {
  margin: 0;
  display: inline-flex;
}
.service-toggle-btn {
  min-width: 5.8rem;
  justify-content: center;
}
.side-user-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.1rem;
}
.side-user-meta strong {
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.side-user-meta span {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}
.side-user-out {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--blue);
  white-space: nowrap;
}
.side-settings {
  position: relative;
  flex-shrink: 0;
}
.side-settings-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--input);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.side-settings-btn:hover,
.side-settings.is-open .side-settings-btn {
  color: var(--blue);
  border-color: color-mix(in srgb, var(--blue) 40%, var(--line));
}
.side-settings-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 150px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 0.35rem;
  z-index: 40;
  display: grid;
  gap: 0.15rem;
}
.side-settings-menu[hidden] { display: none !important; }
.side-settings-menu a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.side-settings-menu a:hover { background: var(--input); }
.side-settings-logout { color: var(--blue) !important; }

.profile-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem 1.15rem;
  margin-bottom: 1rem;
  max-width: 560px;
}
.profile-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.profile-avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid var(--line);
  flex-shrink: 0;
}
.profile-avatar-fallback {
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #3ba4e6, #1677b5);
  color: #fff;
  font-weight: 800;
  font-size: 1.35rem;
}
.profile-head h2 {
  margin: 0;
  font-size: 1.2rem;
}
.profile-head p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}
.profile-fields {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.profile-fields > div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--line);
}
.profile-fields > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.profile-fields dt {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
}
.profile-fields dd {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 700;
}
.profile-fields .hint {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
}
.profile-sub {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
}
.profile-pass-form {
  display: grid;
  gap: 0.75rem;
}
.profile-pass-form label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  font-size: 0.92rem;
}
.profile-pass-form input {
  border: 1px solid var(--line);
  background: var(--input);
  border-radius: 10px;
  padding: 0.75rem 0.85rem;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  min-height: 46px;
}
.profile-pass-form .btn-main {
  width: auto;
  justify-self: start;
  margin-top: 0.25rem;
}

.panel-main {
  padding: 0.9rem 1rem 2rem;
  min-width: 0;
  overflow-x: hidden;
}
.panel-top {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.balance-pill {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  font-weight: 800;
  box-shadow: var(--shadow);
}
.top-links {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  color: var(--top-text);
  font-weight: 700;
}
.user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.top-links a {
  color: var(--top-text);
  text-decoration: underline;
  font-weight: 800;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.stat-card {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  display: flex;
  gap: 0.75rem;
  align-items: center;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stat-card strong {
  display: block;
  font-size: 1.05rem;
  color: var(--text);
  overflow-wrap: anywhere;
}
.stat-card span { color: var(--muted); font-size: 0.9rem; font-weight: 600; }
.stat-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--line);
}
.stat-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--input);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.order-board {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  align-items: start;
  max-width: 720px;
}
.order-card, .info-card, .table-card, .wallet-card {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.platform-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.85rem;
}
.plat {
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 0.88rem;
}
.plat.on { background: var(--blue); color: #fff !important; border-color: var(--blue); }

.smm-form { display: grid; gap: 0.75rem; }
.smm-form label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
  color: var(--text);
  font-size: 0.92rem;
}
.smm-form input,
.smm-form select,
.smm-form textarea {
  border: 1px solid var(--line);
  background: var(--input);
  border-radius: 10px;
  padding: 0.8rem 0.85rem;
  color: var(--text);
  width: 100%;
  max-width: 100%;
}
.smm-form select {
  text-overflow: ellipsis;
}
.desc-box {
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  color: var(--text-soft);
  min-height: 64px;
  line-height: 1.45;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.total-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  font-weight: 800;
  color: var(--text);
}
.info-card h3, .table-card h3 { margin: 0 0 0.55rem; color: var(--text); }
.info-card p { color: var(--muted); line-height: 1.5; font-weight: 500; }
.btn-soft {
  display: inline-flex;
  margin-top: 0.7rem;
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-weight: 800;
}
.hint { color: var(--muted); font-size: 0.88rem; margin: 0; font-weight: 500; }

.page-title {
  color: var(--text);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  margin: 0 0 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 520px; }
th, td {
  text-align: left;
  padding: 0.7rem 0.45rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--text);
  vertical-align: top;
}
th { color: var(--muted); font-weight: 700; }
.badge {
  background: var(--input);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.18rem 0.55rem;
  font-size: 0.78rem;
  font-weight: 800;
  display: inline-block;
  max-width: 18rem;
  line-height: 1.3;
  white-space: normal;
  text-align: center;
}
.empty-cell { text-align: center; color: var(--muted); padding: 1.4rem !important; }
.grid-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.7rem;
}
.svc {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.9rem;
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}
.svc strong { color: var(--text); overflow-wrap: anywhere; }
.svc .tag {
  width: fit-content;
  background: var(--input);
  color: var(--text);
  border-radius: 999px;
  padding: 0.15rem 0.5rem;
  font-size: 0.76rem;
  font-weight: 800;
}
.svc em { color: var(--muted); font-style: normal; font-size: 0.88rem; font-weight: 600; }
.status-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.status-grid span { display: block; color: var(--muted); font-size: 0.84rem; margin-bottom: 0.2rem; font-weight: 700; }
.status-grid strong { color: var(--text); overflow-wrap: anywhere; }
.break { word-break: break-all; }

.flash-wrap { margin-bottom: 0.7rem; }
.flash {
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  margin: 0.3rem 0;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  overflow-wrap: anywhere;
}
.flash-ok { color: var(--ok); }
.flash-error { color: var(--err); }

.api-key-box {
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  font-family: ui-monospace, Consolas, monospace;
  word-break: break-all;
  font-size: 0.88rem;
  color: var(--text);
  font-weight: 600;
}
button.api-key-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
button.api-key-copy code {
  background: transparent;
  padding: 0;
  font: inherit;
  color: inherit;
  word-break: break-all;
}
button.api-key-copy:hover {
  border-color: var(--blue);
}
.api-copy-label {
  flex-shrink: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--blue);
  font-family: inherit;
}
.api-code-copy {
  margin-top: 0.65rem;
  width: auto;
}
.docs-card h4 { margin: 1rem 0 0.35rem; color: var(--text); }
.docs-card pre {
  background: #0a0a0a;
  color: #ffffff;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  overflow: auto;
  font-size: 0.84rem;
}
html[data-theme="light"] .docs-card pre {
  background: #111111;
  color: #ffffff;
}
.docs-card code {
  background: var(--input);
  color: var(--text);
  padding: 0.1rem 0.35rem;
  border-radius: 6px;
  font-weight: 700;
}
.smm-form textarea { resize: vertical; min-height: 110px; }

/* ===== Panel 3D icons ===== */
.icon3d {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
  box-shadow:
    0 10px 18px rgba(0,0,0,0.25),
    inset 0 -6px 10px rgba(0,0,0,0.2),
    inset 0 6px 10px rgba(255,255,255,0.35);
  animation: bob3d 3.6s ease-in-out infinite;
  transform-style: preserve-3d;
}
.icon3d span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
  position: relative;
}
.icon3d-user {
  background: radial-gradient(circle at 30% 28%, #7ad0ff, #1f8fd8 55%, #0d5f9a);
}
.icon3d-user span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: #1f8fd8;
}
.icon3d-user span::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 3px;
  width: 14px;
  height: 8px;
  margin-left: -7px;
  border-radius: 8px 8px 2px 2px;
  background: #1f8fd8;
}
.icon3d-wallet {
  background: radial-gradient(circle at 30% 28%, #ffe08a, #f0b429 55%, #c48400);
  animation-delay: 0.35s;
}
.icon3d-wallet span {
  border-radius: 5px;
  width: 24px;
  height: 16px;
  background: #fff;
}
.icon3d-wallet span::after {
  content: "";
  position: absolute;
  right: -3px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f0b429;
  border: 2px solid #fff;
}

.plat-3d {
  display: inline-flex !important;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem 0.45rem 0.45rem !important;
}
.picon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  box-shadow:
    0 8px 14px rgba(0,0,0,0.22),
    inset 0 -4px 8px rgba(0,0,0,0.22),
    inset 0 4px 8px rgba(255,255,255,0.35);
  animation: bob3d 3.8s ease-in-out infinite;
  position: relative;
}
.picon::after {
  content: "";
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 3px;
}
.p-all {
  background: radial-gradient(circle at 30% 25%, #9ad8ff, #2aa3e8 60%, #0f6fa8);
}
.p-all::after { border-radius: 50%; }
.picon-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: contain;
  display: inline-block;
  box-shadow: 0 6px 12px rgba(0,0,0,0.2);
  animation: bob3d 3.8s ease-in-out infinite;
  background: transparent;
}
.plat.on .picon,
.plat.on .picon-img {
  animation-duration: 2.4s;
  transform: scale(1.06);
}

.info-card-rich {
  position: relative;
  overflow: hidden;
  min-height: 220px;
}
.info-orbits {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.orbit {
  position: absolute;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: contain;
  display: block;
  box-shadow: 0 10px 18px rgba(0,0,0,0.28);
  animation: floatOrbit 5s ease-in-out infinite;
  background: transparent;
}
.o-tg { left: 12%; top: 18%; }
.o-ig { right: 14%; top: 22%; animation-delay: 0.5s; }
.o-tt { left: 18%; bottom: 18%; animation-delay: 0.9s; }
.o-yt { right: 16%; bottom: 16%; animation-delay: 1.2s; }
.info-card-rich h3,
.info-card-rich p,
.info-card-rich .btn-soft {
  position: relative;
  z-index: 2;
}

@keyframes bob3d {
  0%, 100% { transform: translateY(0) rotateX(0deg) rotateY(0deg); }
  50% { transform: translateY(-7px) rotateX(8deg) rotateY(-6deg); }
}
@keyframes floatOrbit {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-10px) scale(1.06); }
}

@media (max-width: 700px) {
  .picon,
  .picon-img { width: 28px; height: 28px; }
  .icon3d { width: 42px; height: 42px; min-width: 42px; }
  .orbit { width: 32px; height: 32px; }
}

/* Mobile — api-fragment uslubida chap drawer */
@media (max-width: 980px) {
  .panel-shell { grid-template-columns: 1fr; }
  .desktop-only { display: none !important; }
  .admin-side-foot { display: none; }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 90;
  }
  .nav-backdrop[hidden] { display: none !important; }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: min(86vw, 320px);
    height: 100vh;
    height: 100dvh;
    z-index: 100;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    border-right: 1px solid var(--drawer-line);
    border-radius: 0 16px 16px 0;
    padding: max(0.85rem, env(safe-area-inset-top)) 0.85rem max(0.85rem, env(safe-area-inset-bottom));
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.28);
    background: var(--drawer-bg);
    color: var(--drawer-text);
  }
  body.nav-open .sidebar { transform: translateX(0); }
  body.nav-open { overflow: hidden; }

  .sidebar .logo-text,
  .sidebar .side-user-meta strong { color: var(--drawer-text); }
  .sidebar .side-user-meta span { color: var(--drawer-muted); }
  .sidebar .side-nav a { color: var(--drawer-text); font-weight: 700; }
  .sidebar .side-nav a:hover {
    background: var(--drawer-hover);
    color: var(--drawer-text) !important;
  }
  .sidebar .side-nav a.active {
    background: var(--blue);
    color: #fff !important;
  }
  .sidebar .nav-sep { background: var(--drawer-line); }
  .sidebar .side-user {
    border-top-color: var(--drawer-line);
    background: var(--drawer-hover);
  }
  .sidebar .side-user-out { color: var(--blue); }

  .nav-open,
  .nav-close {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--input);
    color: var(--text);
    font-size: 1.15rem;
    cursor: pointer;
    flex-shrink: 0;
  }
  .nav-close {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
  }

  .mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-right: auto;
    font-family: Manrope, "Segoe UI", sans-serif;
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text);
    text-decoration: none;
  }
  .mobile-brand img {
    width: 34px;
    height: 34px;
    min-width: 34px;
    border-radius: 50%;
  }

  .panel-main {
    padding: 0.65rem 0.7rem 1.5rem;
    padding-top: max(0.65rem, env(safe-area-inset-top));
  }
  .panel-top {
    justify-content: flex-start;
    position: sticky;
    top: 0;
    z-index: 40;
    background: var(--panel-bg);
    margin: -0.65rem -0.7rem 0.75rem;
    padding: 0.55rem 0.7rem;
    border-bottom: 1px solid var(--line);
    gap: 0.45rem;
  }

  .side-nav {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .side-nav a {
    min-height: 48px;
    font-size: 1rem;
    padding: 0.85rem 0.9rem;
  }

  .stats-row,
  .order-board,
  .login-grid,
  .status-grid { grid-template-columns: 1fr; }

  .platform-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.35rem;
  }
  .platform-row::-webkit-scrollbar { display: none; }
  .plat { flex: 0 0 auto; min-height: 42px; }

  .tg-menu { max-width: none; width: 100%; }
  .tg-menu-btn {
    font-size: 0.9rem;
    padding: 0.9rem 0.85rem;
    line-height: 1.3;
    white-space: normal;
    word-break: break-word;
    min-height: 48px;
  }
  .info-card-rich { min-height: 0; }
  .info-orbits { display: none; }
  .smm-form input,
  .smm-form select,
  .smm-form textarea {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }
  .btn-main, .btn-soft, .auth-btn { min-height: 48px; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .auth-card { padding: 0.95rem 0.8rem; width: 100%; }
  .balance-pill {
    font-size: 0.82rem;
    padding: 0.4rem 0.65rem;
    max-width: 40vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .grid-cards { grid-template-columns: 1fr; }
  table { min-width: 480px; }
  .stats-row { gap: 0.5rem; }
  .stat-card { padding: 0.75rem 0.8rem; }
  .stat-card strong { font-size: 0.95rem; }
  .page-title { font-size: 1.2rem; }
  .order-card, .info-card, .table-card, .wallet-card {
    padding: 0.85rem;
    border-radius: 14px;
  }
  .admin-actions { min-width: 0; }
  .admin-inline-form { width: 100%; }
  .admin-inline-form input[type="number"],
  .admin-inline-form select {
    flex: 1;
    width: auto;
    min-width: 90px;
  }
}

/* Telegram kategoriya menyusi */
.tg-menu {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  margin-top: 0.85rem;
  max-width: 520px;
}
.tg-menu-wide { max-width: 560px; }
.tg-menu-title {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tg-menu-btn {
  display: block;
  text-align: center;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  background: linear-gradient(180deg, #2a3a55, #1c283c);
  color: #fff !important;
  font-weight: 700;
  font-size: 0.98rem;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 6px 14px rgba(0,0,0,0.18);
  transition: transform 0.15s ease, filter 0.15s ease;
}
.tg-menu-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}
.tg-menu-btn.tg-back {
  background: linear-gradient(180deg, #3a4d6a, #243247);
  margin-top: 0.25rem;
}
.tg-cat-bar {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin: 0.75rem 0 0.5rem;
  flex-wrap: wrap;
}
.tg-back-link {
  font-weight: 700;
  text-decoration: none;
  color: var(--blue);
  white-space: nowrap;
  margin-top: 0.15rem;
}
.tg-hint {
  margin: 0.25rem 0 0.6rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.35;
}
html[data-theme="light"] .tg-menu-btn {
  background: linear-gradient(180deg, #1a2f4a, #122236);
  color: #fff !important;
  font-weight: 700;
}
html[data-theme="dark"] .tg-menu-btn {
  background: linear-gradient(180deg, #1a1a1a, #0d0d0d);
  border-color: #2a2a2a;
  color: #fff !important;
  font-weight: 700;
}
html[data-theme="dark"] .tg-menu-btn.tg-back {
  background: linear-gradient(180deg, #222, #111);
}
.tg-hint, .hint, .stat-card span, th, .svc em {
  font-weight: 600;
  color: var(--muted);
}
.page-title, .stat-card strong, .total-line strong, .balance-pill {
  font-weight: 800;
  color: var(--text);
}
html[data-theme="dark"] .flash {
  border-color: #2a2a2a;
}
html[data-theme="dark"] .panel-body,
html[data-theme="dark"] .panel-main,
html[data-theme="dark"] .panel-top {
  background: #000;
}
html[data-theme="light"] .panel-top {
  background: var(--panel-bg);
}

/* ===== Boshqaruv (admin) paneli ===== */
.admin-login-card {
  max-width: 420px;
  margin: 4rem auto 0;
}
.admin-login-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.55rem;
}
.admin-login-card .auth-sub {
  margin: 0 0 1rem;
  color: var(--muted);
}
.admin-side-foot {
  margin-top: auto;
  padding: 1rem 0.85rem 1.25rem;
}
.admin-side-foot a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
}
.admin-sidebar .side-nav {
  flex: 1;
}
.admin-sidebar {
  display: flex;
  flex-direction: column;
}
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.75rem;
}
.admin-stat {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}
.admin-stat-label {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 0.35rem;
  font-weight: 600;
}
.admin-stat strong {
  font-size: 1.15rem;
  font-family: Manrope, "Segoe UI", sans-serif;
}
.admin-actions {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 200px;
}
.admin-inline-form {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  flex-wrap: wrap;
}
.admin-inline-form input[type="number"],
.admin-inline-form select {
  min-width: 0;
  width: 110px;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}
.admin-inline-form .btn-soft {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
}
.admin-contact-form {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.55rem;
  max-width: 280px;
}
.admin-contact-form input,
.admin-contact-form select {
  width: 100%;
  padding: 0.35rem 0.45rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  font-size: 0.85rem;
}
.admin-phone-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 0.3rem;
}
.admin-contact-form .btn-soft {
  padding: 0.35rem 0.6rem;
  font-size: 0.85rem;
  justify-self: start;
}
.table-scroll { overflow-x: auto; }
.cell-link a { color: var(--blue); font-weight: 600; }
.cell-msg { max-width: 280px; white-space: normal; font-size: 0.9rem; }
.row-off { opacity: 0.55; }
.plat-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.plat-tabs a {
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  font-weight: 600;
  font-size: 0.9rem;
}
.plat-tabs a.active {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

@media (max-width: 960px) {
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .admin-stats { grid-template-columns: 1fr; }
}

/* ===== Landing (kirish pastidagi bo‘limlar) ===== */
.land {
  background: var(--land-bg);
  color: var(--land-text);
  padding: 2.5rem 1rem 3.5rem;
}
.land-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.land-block { margin-bottom: 3rem; }
.land-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: var(--land-card-soft);
  border: 1px solid var(--land-line);
  color: var(--land-muted);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}
.land-pill-center {
  display: flex;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.land-lead {
  margin: -0.55rem 0 1.25rem;
  max-width: 52ch;
  color: var(--land-muted);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.45;
}
.land-lead-center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.land-title {
  margin: 0 0 1.25rem;
  font-size: clamp(1.55rem, 3.8vw, 2.15rem);
  font-weight: 800;
  color: var(--land-text);
  letter-spacing: -0.035em;
  line-height: 1.12;
  max-width: 20ch;
  text-wrap: balance;
}
.land-brand-block {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 1rem;
  align-items: stretch;
}
.land-brand-intro {
  background: var(--land-card);
  border: 1px solid var(--land-line);
  border-radius: 22px;
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.land-brand-mark {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.land-brand-mark > img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  object-fit: cover;
  flex-shrink: 0;
  box-shadow: 0 8px 20px rgba(21, 127, 191, 0.2);
}
.land-brand-kicker {
  margin: 0 0 0.25rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: #157fbf;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.land-brand-name {
  margin: 0 0 0.4rem;
  font-size: clamp(1.55rem, 3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--land-text);
}
.land-brand-lead {
  margin: 0;
  color: var(--land-muted);
  font-weight: 600;
  line-height: 1.45;
  font-size: 0.95rem;
}
.land-brand-facts {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.land-brand-facts li {
  background: var(--land-card-soft);
  border: 1px solid var(--land-line);
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
  display: grid;
  gap: 0.15rem;
}
.land-brand-facts strong {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--land-text);
}
.land-brand-facts span {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--land-muted);
}
.land-brand-plats {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}
.land-brand-plats img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--land-card-soft);
  border: 1px solid var(--land-line);
  padding: 4px;
  object-fit: contain;
  animation: brandPlatPulse 4.5s ease-in-out infinite;
}
.land-brand-plats img:nth-child(2) { animation-delay: 0.4s; }
.land-brand-plats img:nth-child(3) { animation-delay: 0.8s; }
.land-brand-plats img:nth-child(4) { animation-delay: 1.2s; }
@keyframes brandPlatPulse {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}
.land-demo-video {
  margin-top: 0;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  background: linear-gradient(165deg, #1278b8 0%, #0b5a8d 55%, #094a75 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 16px 40px rgba(15, 90, 140, 0.28);
}
.land-demo-video .land-clip-stage {
  min-height: 220px;
  flex: 1;
}
.land-demo-video .land-clip-chrome {
  justify-content: flex-start;
}
.land-demo-live,
.land-demo-tag {
  margin-left: auto;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.18rem 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.land-demo-live {
  background: #ef4444;
  animation: liveBlink 1.4s ease-in-out infinite;
}
.land-clip-soft .land-demo-tag {
  background: rgba(26, 143, 214, 0.12);
  color: #157fbf;
}
@keyframes liveBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.55; }
}
.land-demo-caption {
  margin: 0;
  padding: 0.55rem 0.75rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
}
.clip-hero-demo {
  color: #fff;
}
.hero-demo-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}
.hero-demo-steps span {
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  opacity: 0.55;
}
.land-clip.is-on .hero-demo-steps span:nth-child(1) {
  animation: heroStep 12s ease-in-out infinite;
}
.land-clip.is-on .hero-demo-steps span:nth-child(2) {
  animation: heroStep 12s ease-in-out infinite 4s;
}
.land-clip.is-on .hero-demo-steps span:nth-child(3) {
  animation: heroStep 12s ease-in-out infinite 8s;
}
.hero-demo-steps span.on,
.land-clip.is-on .hero-demo-steps span:nth-child(1) {
  opacity: 1;
  background: rgba(255, 255, 255, 0.28);
}
@keyframes heroStep {
  0%, 5% { opacity: 0.45; background: rgba(255, 255, 255, 0.12); }
  10%, 28% { opacity: 1; background: rgba(255, 255, 255, 0.28); }
  33%, 100% { opacity: 0.45; background: rgba(255, 255, 255, 0.12); }
}
.hero-demo-frame {
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  top: 2.6rem;
  bottom: 0.75rem;
  display: grid;
  gap: 0.45rem;
  align-content: start;
  opacity: 0;
  pointer-events: none;
}
.hero-demo-frame.f1 { opacity: 1; }
.hero-demo-frame.f3 {
  place-items: center;
  align-content: center;
  text-align: center;
}
.land-clip.is-on .hero-demo-frame {
  animation: clipScene 12s ease-in-out infinite;
}
.land-clip.is-on .hero-demo-frame.f1 { animation-delay: 0s; }
.land-clip.is-on .hero-demo-frame.f2 { animation-delay: 4s; }
.land-clip.is-on .hero-demo-frame.f3 { animation-delay: 8s; }
.hero-demo-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 800;
}
.hero-demo-row img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #fff;
}
.hero-demo-field {
  padding: 0.45rem 0.6rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.88rem;
  font-weight: 700;
}
.hero-demo-field.on { background: rgba(255, 255, 255, 0.28); }
.hero-demo-pay {
  padding: 0.7rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.14);
  text-align: center;
}
.hero-demo-pay small {
  display: block;
  opacity: 0.85;
  font-weight: 700;
  font-size: 0.75rem;
}
.hero-demo-pay strong {
  font-size: 1.25rem;
}
.hero-demo-play {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
  opacity: 0.9;
}
.hero-demo-play::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 13px;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #0f6fad;
}
.land-clip.is-on .hero-demo-play {
  animation: playPulse 2.2s ease-in-out infinite;
}
@keyframes playPulse {
  0%, 100% { transform: scale(1); opacity: 0.85; }
  50% { transform: scale(1.06); opacity: 1; }
}
.land-card-top h3,
.land-why-card h3,
.land-compare-card h3,
.land-cta h2,
.land-ton h3 {
  letter-spacing: -0.03em;
  font-weight: 800;
  -webkit-font-smoothing: antialiased;
}
.land-title-center {
  text-align: center;
  max-width: none;
  margin-left: auto;
  margin-right: auto;
}
.land-grid3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.land-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}
.land-card {
  background: var(--land-card);
  border: 1px solid var(--land-line);
  border-radius: 22px;
  padding: 1.15rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100%;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}
.land-card-blue {
  background: linear-gradient(160deg, #1a8fd6 0%, #0f6fad 100%);
  border-color: transparent;
  color: #fff;
}
.land-card-blue .land-card-top h3,
.land-card-blue .land-card-top p,
.land-card-blue .land-brand { color: #fff; }
.land-card-blue .land-card-top p { opacity: 0.92; }
.land-card-top h3 {
  margin: 0.35rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--land-text);
}
.land-card-top p {
  margin: 0;
  color: var(--land-muted);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 600;
}
.land-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--blue);
}
.land-brand-orange { color: #d97706; }
.land-brand-green { color: #059669; }
.land-brand-red { color: #dc2626; }
.land-brand-blue { color: #157fbf; }
/* Branded demos — light, paused until .is-on (IntersectionObserver) */
.land-clip {
  margin-top: auto;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.22);
  contain: layout paint style;
  content-visibility: auto;
}
.land-clip-soft {
  background: var(--land-card-soft);
  border: 1px solid var(--land-line);
}
.land-clip-chrome {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  background: rgba(0, 0, 0, 0.18);
}
.land-clip-soft .land-clip-chrome {
  color: var(--land-muted);
  background: rgba(0, 0, 0, 0.04);
}
.land-clip-chrome img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
.land-clip-stage {
  position: relative;
  min-height: 140px;
  padding: 0.75rem;
  overflow: hidden;
}
.land-clip-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.land-clip-soft .land-clip-bar { background: var(--land-line); }
.land-clip-bar i {
  display: block;
  height: 100%;
  width: 100%;
  transform: scaleX(0.55);
  transform-origin: left center;
  background: #fff;
}
.land-clip-soft .land-clip-bar i { background: #1a8fd6; }
.land-clip.is-on .land-clip-bar i {
  animation: clipProgress 10s linear infinite;
}
@keyframes clipProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

/* Default: static first frame (no jank). Animate only when .is-on */
.clip-order .clip-scene {
  position: absolute;
  inset: 0.75rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  opacity: 0;
  pointer-events: none;
}
.clip-order .s1 { opacity: 1; }
.clip-order .s3 { place-items: center; align-content: center; text-align: center; }
.land-clip.is-on .clip-order .clip-scene {
  animation: clipScene 12s ease-in-out infinite;
}
.land-clip.is-on .clip-order .s1 { animation-delay: 0s; }
.land-clip.is-on .clip-order .s2 { animation-delay: 4s; }
.land-clip.is-on .clip-order .s3 { animation-delay: 8s; }
@keyframes clipScene {
  0%, 5% { opacity: 0; }
  10%, 28% { opacity: 1; }
  33%, 100% { opacity: 0; }
}
.clip-plat {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 800;
}
.clip-plat img { width: 28px; height: 28px; border-radius: 50%; }
.clip-line {
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 0.82rem;
  font-weight: 700;
}
.clip-line.on { background: rgba(255, 255, 255, 0.28); }
.clip-cta {
  margin-top: 0.15rem;
  text-align: center;
  padding: 0.5rem;
  border-radius: 10px;
  background: #fff;
  color: #0f6fad;
  font-weight: 800;
  font-size: 0.85rem;
}
.clip-cta.soft {
  background: var(--blue);
  color: #fff;
}
.clip-ok {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #22c55e;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0 auto 0.35rem;
}
.clip-order .s3 b { font-size: 1.05rem; }
.clip-order .s3 span { opacity: 0.85; font-weight: 700; font-size: 0.85rem; }

.clip-wallet { display: grid; gap: 0.55rem; align-content: center; }
.clip-bal {
  text-align: center;
  padding: 0.55rem;
  border-radius: 12px;
  background: var(--land-card);
  border: 1px solid var(--land-line);
}
.clip-bal small {
  display: block;
  color: var(--land-muted);
  font-weight: 700;
  font-size: 0.72rem;
}
.clip-bal-num {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--land-text);
  font-variant-numeric: tabular-nums;
}
.clip-bal em {
  font-style: normal;
  color: var(--land-muted);
  font-weight: 700;
  font-size: 0.85rem;
  margin-left: 0.2rem;
}
.clip-pay-row { display: flex; gap: 0.35rem; }
.clip-pay-row span {
  flex: 1;
  text-align: center;
  padding: 0.35rem 0.2rem;
  border-radius: 8px;
  border: 1px solid var(--land-line);
  background: var(--land-card);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--land-text);
  opacity: 0.45;
}
.clip-pay-row span:nth-child(2) {
  opacity: 1;
  border-color: #1a8fd6;
  color: #1a8fd6;
}

.clip-nets { min-height: 140px; }
.clip-net {
  position: absolute;
  inset: 0.75rem;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.35rem;
  opacity: 0;
}
.clip-net.n1 { opacity: 1; }
.clip-net img { width: 52px; height: 52px; border-radius: 50%; }
.clip-net b { font-size: 1.05rem; color: var(--land-text); }
.clip-net span { color: var(--land-muted); font-weight: 700; font-size: 0.85rem; }
.land-clip.is-on .clip-net {
  animation: clipFade 12s ease-in-out infinite;
}
.land-clip.is-on .clip-net.n1 { animation-delay: 0s; }
.land-clip.is-on .clip-net.n2 { animation-delay: 3s; }
.land-clip.is-on .clip-net.n3 { animation-delay: 6s; }
.land-clip.is-on .clip-net.n4 { animation-delay: 9s; }
@keyframes clipFade {
  0%, 6% { opacity: 0; }
  12%, 22% { opacity: 1; }
  28%, 100% { opacity: 0; }
}

.clip-multi { display: grid; gap: 0.4rem; }
.clip-ord {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.5rem;
  border-radius: 10px;
  background: var(--land-card);
  border: 1px solid var(--land-line);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--land-text);
  opacity: 1;
}
.clip-ord img { width: 22px; height: 22px; border-radius: 50%; }
.clip-ord em { font-style: normal; color: #1a8fd6; font-size: 0.7rem; }

.clip-quality { display: grid; gap: 0.35rem; }
.clip-svc {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: var(--land-card);
  border: 1px solid var(--land-line);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--land-text);
}
.clip-svc.bad { opacity: 0.35; text-decoration: line-through; }
.clip-svc b.hide { color: #ef4444; }
.clip-svc.good b { color: #16a34a; }
.clip-grow {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 36px;
  margin-top: 0.25rem;
}
.clip-grow i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  background: #1a8fd6;
  transform-origin: bottom;
}
.clip-grow i:nth-child(1) { height: 30%; }
.clip-grow i:nth-child(2) { height: 45%; }
.clip-grow i:nth-child(3) { height: 58%; }
.clip-grow i:nth-child(4) { height: 72%; }
.clip-grow i:nth-child(5) { height: 95%; }

.clip-price { display: grid; gap: 0.4rem; align-content: center; }
.clip-price-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: var(--land-card);
  border: 1px solid var(--land-line);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--land-text);
}
.clip-price-row b { color: #1a8fd6; }

.clip-status {
  display: grid;
  place-items: center;
  gap: 0.55rem;
}
.clip-ring {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  text-align: center;
  background:
    radial-gradient(circle at 40% 35%, rgba(255,255,255,0.35), transparent 45%),
    conic-gradient(#fff 72%, rgba(255,255,255,0.18) 0);
  border: 2px solid rgba(255,255,255,0.35);
}
.clip-pct { font-size: 1.15rem; font-weight: 800; }
.clip-ring span {
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0.85;
}
.clip-st-row {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 800;
}
.st-label { font-size: 0.82rem; }

.clip-api {
  display: grid;
  gap: 0.35rem;
  align-content: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.clip-code {
  display: block;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  background: var(--land-card);
  border: 1px solid var(--land-line);
  color: var(--land-text);
  font-size: 0.78rem;
  font-weight: 700;
  opacity: 0.5;
}
.clip-code.c1 {
  opacity: 1;
  border-color: #1a8fd6;
  color: #1a8fd6;
}

@media (prefers-reduced-motion: reduce) {
  .land-clip.is-on .land-clip-bar i,
  .land-clip.is-on .clip-order .clip-scene,
  .land-clip.is-on .clip-net,
  .land-clip.is-on .hero-demo-frame,
  .land-clip.is-on .hero-demo-steps span,
  .land-clip.is-on .hero-demo-play,
  .land-brand-plats img {
    animation: none !important;
  }
  .clip-order .s1,
  .clip-net.n1,
  .hero-demo-frame.f1 { opacity: 1; }
}
.land-ton {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.35rem;
  border-radius: 22px;
  background: var(--land-card);
  border: 1px solid var(--land-line);
}
.land-ton h3 {
  margin: 0 0 0.35rem;
  font-size: 1.2rem;
  color: var(--land-text);
}
.land-ton p {
  margin: 0;
  color: var(--land-muted);
  font-weight: 600;
  max-width: 46ch;
}
.land-ton-price {
  text-align: center;
  min-width: 120px;
  padding: 0.85rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(160deg, #1a8fd6, #0f6fad);
  color: #fff;
}
.land-ton-price strong {
  display: block;
  font-size: 1.8rem;
  font-family: Manrope, "Segoe UI", sans-serif;
}
.land-ton-price span {
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.9;
}
.land-why {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.land-why-card {
  background: var(--land-card);
  border: 1px solid var(--land-line);
  border-radius: 20px;
  padding: 1.15rem;
}
.land-why-card h3 {
  margin: 0.7rem 0 0.35rem;
  font-size: 1.02rem;
  color: var(--land-text);
}
.land-why-card p {
  margin: 0;
  color: var(--land-muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
}
.land-ico {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}
.land-ico-teal { background: #0f8a7a; }
.land-ico-blue { background: #157fbf; }
.land-ico-orange { background: #d97706; }
.land-ico-sky { background: #2563eb; }
.land-ico-navy { background: #0f5f8a; }
.land-ico-red { background: #dc2626; }
.land-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.land-compare-card {
  border-radius: 22px;
  padding: 1.25rem 1.2rem 1.1rem;
  border: 1px solid var(--land-line);
}
.land-compare-good {
  background: var(--land-card);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.06);
}
.land-compare-bad {
  background: var(--land-card-soft);
}
.land-compare-card h3 {
  margin: 0 0 0.85rem;
  font-size: 1.15rem;
  color: var(--land-text);
}
.land-compare-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.land-compare-card li {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--land-text);
  padding-left: 1.5rem;
  position: relative;
}
.land-compare-good li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #059669;
  font-weight: 900;
}
.land-compare-bad li::before {
  content: "✕";
  position: absolute;
  left: 0;
  color: #9ca3af;
  font-weight: 900;
}
.land-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 54px;
  margin-top: 1.1rem;
}
.land-bars i {
  flex: 1;
  border-radius: 6px 6px 2px 2px;
  display: block;
}
.land-bars-good i {
  background: linear-gradient(180deg, #86efac, #16a34a);
}
.land-bars-good i:nth-child(1) { height: 30%; }
.land-bars-good i:nth-child(2) { height: 42%; }
.land-bars-good i:nth-child(3) { height: 55%; }
.land-bars-good i:nth-child(4) { height: 68%; }
.land-bars-good i:nth-child(5) { height: 82%; }
.land-bars-good i:nth-child(6) { height: 100%; }
.land-bars-bad i:nth-child(-n+3) {
  background: #f59e0b;
}
.land-bars-bad i:nth-child(n+4) {
  background: #d1d5db;
}
html[data-theme="dark"] .land-bars-bad i:nth-child(n+4) {
  background: #333;
}
.land-bars-bad i:nth-child(1) { height: 28%; }
.land-bars-bad i:nth-child(2) { height: 38%; }
.land-bars-bad i:nth-child(3) { height: 48%; }
.land-bars-bad i:nth-child(4) { height: 62%; }
.land-bars-bad i:nth-child(5) { height: 78%; }
.land-bars-bad i:nth-child(6) { height: 95%; }
.land-cta {
  text-align: center;
  padding: 2rem 1.25rem;
  border-radius: 24px;
  background: var(--land-card);
  border: 1px solid var(--land-line);
}
.land-cta h2 {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  color: var(--land-text);
}
.land-cta p {
  margin: 0 auto 1.1rem;
  max-width: 40ch;
  color: var(--land-muted);
  font-weight: 600;
}
.land-cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.land-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  background: var(--blue);
  color: #fff !important;
  font-weight: 800;
}
.land-cta-btn-ghost {
  background: transparent;
  color: var(--land-text) !important;
  border: 1px solid var(--land-line);
}

@media (max-width: 900px) {
  .land-brand-block,
  .land-grid3,
  .land-why { grid-template-columns: 1fr; }
  .land-grid2,
  .land-compare { grid-template-columns: 1fr; }
  .land-title { max-width: none; }
  .land-demo-video .land-clip-stage { min-height: 200px; }
  .s-tt, .s-yt { display: none; }
}
@media (max-width: 560px) {
  .land { padding: 1.75rem 0.85rem 2.5rem; }
  .land-block { margin-bottom: 2.2rem; }
  .land-ton { flex-direction: column; align-items: stretch; }
  .land-ton-price { width: 100%; }
}

/* ===== Wallet / TON top-up (api-fragment style) ===== */
.wallet-board {
  display: grid;
  gap: 0.9rem;
  max-width: 720px;
}
.wallet-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: space-between;
  align-items: stretch;
}
.wallet-hero-bal,
.wallet-hero-rate {
  flex: 1 1 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}
.wallet-hero-bal span,
.wallet-hero-rate em {
  display: block;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.85rem;
}
.wallet-hero-bal strong {
  display: block;
  margin-top: 0.25rem;
  font-size: clamp(1.5rem, 3vw, 1.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.wallet-hero-rate {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.wallet-hero-rate img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
}
.wallet-hero-rate b {
  display: block;
  font-size: 0.95rem;
}
.wallet-pay h3,
.wallet-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}
.wallet-lead {
  margin: 0 0 0.9rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
}
.wallet-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.85rem;
}
.wallet-chip {
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}
.wallet-chip.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.wallet-amount-label {
  display: grid;
  gap: 0.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
}
.wallet-amount-label input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--text);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 1.05rem;
  font-weight: 700;
}
.wallet-ton-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}
.wallet-ton-box > div {
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}
.wallet-ton-box span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}
.wallet-ton-box strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.05rem;
}
.wallet-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}
.wallet-actions .btn-main {
  flex: 1 1 180px;
}
#tonConnectBtn {
  min-width: 160px;
}
.wallet-status {
  margin: 0.75rem 0 0;
  font-weight: 700;
  font-size: 0.9rem;
}
.wallet-status.is-ok { color: #16a34a; }
.wallet-status.is-err { color: #dc2626; }
.wallet-status.is-info { color: var(--blue); }
.wallet-inv-grid {
  display: grid;
  gap: 0.7rem;
  margin: 0.75rem 0 1rem;
}
.wallet-inv-grid > div {
  display: grid;
  gap: 0.3rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: var(--input);
  border: 1px solid var(--line);
}
.wallet-inv-grid span {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
}
.wallet-inv-grid code {
  word-break: break-all;
  font-size: 0.88rem;
  font-weight: 700;
}
.wallet-copy {
  width: fit-content;
  padding: 0.3rem 0.65rem;
  font-size: 0.8rem;
}
.wallet-warn code {
  display: block;
  margin-top: 0.4rem;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  background: var(--input);
  font-size: 0.85rem;
}
@media (max-width: 560px) {
  .wallet-ton-box { grid-template-columns: 1fr; }
}

/* Simple wallet top-up (Hamyon + Memo) */
.wallet-simple-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}
.wallet-copy-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 0.95rem;
  margin-bottom: 0.65rem;
  border-radius: 14px;
  background: var(--input);
  border: 1px solid var(--line);
}
.wallet-copy-meta {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 0.25rem;
}
.wallet-copy-meta span {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--muted);
  text-transform: none;
}
.wallet-copy-meta code {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  word-break: break-all;
  line-height: 1.35;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.wallet-copy-btn {
  flex-shrink: 0;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--blue);
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
}
.wallet-copy-btn:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.wallet-steps {
  margin: 0.85rem 0 1rem 1.1rem;
  padding: 0;
  color: var(--text);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.55;
}
.wallet-steps li { margin-bottom: 0.25rem; }

.badge-bad { background: #fee2e2; color: #b91c1c; }
tr.is-blocked td { opacity: 0.72; }
.btn-warn { color: #b45309 !important; border-color: #fbbf24 !important; }
.btn-danger { color: #b91c1c !important; border-color: #fca5a5 !important; }
a.wallet-chip { text-decoration: none; display: inline-flex; align-items: center; }

.recaptcha-wrap {
  display: flex;
  justify-content: center;
  margin: 0.85rem 0 0.35rem;
  transform-origin: center;
}
.recaptcha-wrap .g-recaptcha {
  max-width: 100%;
}

/* ===== Support chat (page-integrated, no frame) ===== */
.panel-main:has(.chat-shell) {
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  min-height: calc(100vh - 2rem);
}
.chat-shell {
  flex: 1;
  display: flex;
  flex-direction: column;
  max-width: none;
  width: 100%;
  margin: 0 -1rem;
  min-height: 28rem;
}
.chat-window {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 1rem 0.85rem;
  background: transparent;
  border-bottom: 0;
}
.chat-head-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}
.chat-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--blue) 14%, transparent);
  border: 0;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.chat-head strong {
  display: block;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 800;
}
.chat-online {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: #16a34a;
  font-size: 0.78rem;
  font-weight: 600;
}
html[data-theme="dark"] .chat-online { color: #4ade80; }
.chat-online i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.chat-close-form { margin: 0; }
.chat-close-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.45rem 0.75rem;
  background: transparent;
  color: #b91c1c;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  font-family: inherit;
}
html[data-theme="dark"] .chat-close-btn { color: #f87171; }
.chat-close-btn:hover { background: color-mix(in srgb, #b91c1c 10%, transparent); }
.chat-close-btn:disabled {
  opacity: 0.45;
  cursor: default;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.35rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  background: transparent;
}
.chat-empty {
  margin: auto;
  color: var(--muted);
  text-align: center;
  font-weight: 600;
  font-size: 0.95rem;
  max-width: 320px;
  line-height: 1.5;
}
.chat-row {
  display: flex;
  flex-direction: column;
  max-width: min(72%, 520px);
}
.chat-row.mine { align-self: flex-end; align-items: flex-end; }
.chat-row.theirs { align-self: flex-start; align-items: flex-start; }
.chat-bubble {
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
}
.chat-row.mine .chat-bubble {
  background: var(--blue);
  color: #fff;
  border-bottom-right-radius: 5px;
}
.chat-row.theirs .chat-bubble {
  background: color-mix(in srgb, var(--text) 6%, transparent);
  color: var(--text);
  border: 0;
  border-bottom-left-radius: 5px;
}
.chat-row time {
  margin-top: 0.2rem;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 600;
}
.chat-operator-suggest {
  flex-shrink: 0;
  margin: 0 1rem 0.55rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  display: grid;
  gap: 0.5rem;
}
.chat-operator-suggest p {
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.4;
  color: var(--muted);
  font-weight: 600;
}
.chat-operator-btn {
  width: 100%;
  border: 1px solid var(--blue);
  background: color-mix(in srgb, var(--blue) 12%, transparent);
  color: var(--blue);
  border-radius: 11px;
  padding: 0.55rem 0.8rem;
  font: inherit;
  font-weight: 800;
  font-size: 0.9rem;
  cursor: pointer;
}
.chat-operator-btn:hover {
  background: var(--blue);
  color: #fff;
}
.chat-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-shrink: 0;
  padding: 0.7rem 1rem;
  padding-bottom: max(0.7rem, env(safe-area-inset-bottom));
  background: var(--panel-bg);
  border-top: 0;
}
.chat-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.8rem 1rem;
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  outline: none;
}
.chat-input:focus {
  border-color: var(--blue);
}
.chat-input::placeholder { color: var(--muted); }
.chat-input:disabled { opacity: 0.5; }
.chat-send {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.chat-send:disabled { opacity: 0.45; cursor: default; }
.chat-send:hover:not(:disabled) { background: var(--blue-hover); }
.admin-chat-shell {
  max-width: none;
  margin: 0;
}

/* Telefon: butun chat ekranga mahkam — input doim pastda */
@media (max-width: 980px) {
  body.chat-page {
    overflow: hidden !important;
    height: var(--app-h, 100dvh);
    max-height: var(--app-h, 100dvh);
  }
  body.chat-page .panel-shell {
    height: var(--app-h, 100dvh);
    max-height: var(--app-h, 100dvh);
    overflow: hidden;
    display: block;
  }
  body.chat-page .panel-main {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: flex !important;
    flex-direction: column;
    min-height: 0 !important;
    max-height: none !important;
    height: var(--app-h, 100dvh) !important;
    padding: 0.45rem 0.75rem 0 !important;
    margin: 0 !important;
    overflow: hidden !important;
    background: var(--panel-bg);
  }
  body.chat-page .panel-top {
    flex: 0 0 auto;
    margin-bottom: 0.25rem !important;
  }
  body.chat-page .flash-wrap {
    flex: 0 0 auto;
  }
  body.chat-page .chat-shell {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    display: flex !important;
    flex-direction: column;
  }
  body.chat-page .chat-window {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    display: flex !important;
    flex-direction: column;
  }
  body.chat-page .chat-head {
    flex: 0 0 auto;
    padding: 0.2rem 0.15rem 0.45rem;
  }
  body.chat-page .chat-body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 0.2rem 0.15rem 0.5rem;
    -webkit-overflow-scrolling: touch;
  }
  body.chat-page .chat-foot {
    flex: 0 0 auto !important;
    position: relative;
    z-index: 5;
    padding: 0.5rem 0.15rem;
    padding-bottom: max(0.7rem, env(safe-area-inset-bottom, 0px));
    background: var(--panel-bg);
  }
  body.chat-page .chat-row { max-width: 88%; }
  body.chat-page .chat-input {
    padding: 0.7rem 0.9rem;
    font-size: 16px; /* iOS zoom oldini olish */
  }
  body.chat-page .chat-send { width: 44px; height: 44px; }
}

/* Admin support unread + actions */
.nav-badge {
  margin-left: 0.35rem;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.badge-new {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: #fee2e2;
  color: #b91c1c;
  font-size: 0.7rem;
  font-weight: 800;
  vertical-align: middle;
}
html[data-theme="dark"] .badge-new {
  background: #3f1515;
  color: #fca5a5;
}
tr.row-unread td {
  background: color-mix(in srgb, #ef4444 7%, transparent);
}
.support-toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0.75rem;
}
.support-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.chat-head-actions {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  flex-wrap: wrap;
}
