/* 9XTrade v2 — minimalist modern polish */

.content-panel,
.card,
.paygw-card,
.dash-section-card,
.admin-panel {
  border-radius: 14px;
  border-color: #ececec;
  box-shadow: 0 1px 2px rgba(28, 28, 28, 0.04);
}

.page-title-bar h1 {
  font-size: 1.28rem;
  letter-spacing: -0.02em;
}

.form-input {
  border-radius: 10px;
  border-color: #e5e5e5;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-input:focus {
  border-color: var(--yellow-dark);
  box-shadow: 0 0 0 3px rgba(248, 203, 70, 0.18);
  outline: none;
}

/* Support — one row pills */
.dash-support-row {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
}
.dash-support-pill {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 14px 8px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
  text-decoration: none;
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  transition: border-color 0.15s, transform 0.12s, background 0.15s;
}
.dash-support-pill i { font-size: 1.15rem; }
.dash-support-pill:hover {
  border-color: var(--yellow-dark);
  background: var(--yellow-soft);
  transform: translateY(-1px);
}
.dash-support-pill.wa i { color: #16a34a; }
.dash-support-pill.tg i { color: #0088cc; }

/* Live meeting banner */
.live-meeting-banner {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.2s, box-shadow 0.2s;
}
.live-meeting-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}
.lmb-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 50%, #1e1b4b 100%);
  opacity: 1;
}
.live-banner-telegram .lmb-bg { background: linear-gradient(135deg, #0c4a6e 0%, #0369a1 40%, #0f172a 100%); }
.live-banner-zoom .lmb-bg { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #0f172a 100%); }
.live-banner-meet .lmb-bg { background: linear-gradient(135deg, #b91c1c 0%, #ea580c 35%, #0f172a 100%); }
.lmb-content {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  flex-wrap: wrap;
}
.lmb-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #fca5a5;
  margin-bottom: 8px;
}
.lmb-title {
  margin: 0 0 4px;
  font-size: 1.15rem;
  font-family: var(--font-display);
  line-height: 1.25;
}
.lmb-sub {
  margin: 0;
  font-size: 0.82rem;
  opacity: 0.85;
}
.lmb-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.lmb-platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}
.lmb-platform-name { font-size: 0.75rem; opacity: 0.9; }
.lmb-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--yellow);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 0.82rem;
  margin-top: 4px;
}

/* Rank achievements */
.profile-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  max-width: 900px;
}
.profile-main-card { grid-column: 1 / -1; }
.rank-achievements-card { grid-column: 1 / -1; }
.profile-ref-card,
.profile-pass-card { min-width: 0; }

.rank-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-dark);
  color: var(--text);
}
.rank-current-bar {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--bg-muted);
  border-radius: 12px;
  margin-bottom: 14px;
}
.rank-current-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--rank-color) 15%, white);
  color: var(--rank-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.rank-current-meta { flex: 1; min-width: 0; }
.rank-current-meta strong { display: block; font-size: 1rem; }
.rank-progress-track {
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  margin: 8px 0 4px;
  overflow: hidden;
}
.rank-progress-fill { height: 100%; border-radius: 999px; transition: width 0.4s; }
.rank-ladder {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rank-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  opacity: 0.55;
}
.rank-step.unlocked { opacity: 1; background: var(--bg-muted); }
.rank-step.current {
  border-color: var(--yellow-dark);
  background: var(--yellow-soft);
  box-shadow: 0 0 0 2px rgba(248, 203, 70, 0.2);
}
.rank-step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--rank-color) 12%, white);
  color: var(--rank-color);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rank-step-body { flex: 1; min-width: 0; }
.rank-step-body strong { display: block; font-size: 0.88rem; }
.rank-step-body small { font-size: 0.72rem; color: var(--text-dim); }
.rank-step-check { color: var(--green); }
.rank-step-lock { color: var(--text-dim); font-size: 0.8rem; }

.profile-pass-form .form-group { margin-bottom: 12px; }
.profile-pass-form label { font-size: 0.78rem; font-weight: 600; display: block; margin-bottom: 4px; }

/* Landing footer — yellow circle only */
.footer-logo-only {
  display: inline-flex;
  text-decoration: none;
}
.footer-logo-only .logo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--yellow);
  border: 2px solid var(--yellow-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.72rem;
  color: var(--text);
}

/* Landing footer — logo-only layout */
.landing-footer-bot .footer-logo-only {
  justify-self: start;
}
.landing-footer-bot:has(.footer-logo-only) {
  align-items: center;
}

/* Landing mobile drawer */
@media (max-width: 768px) {
  .landing-nav .nav-actions { display: none; }
  .landing-nav.menu-open .nav-actions { display: flex; }
  .landing-menu-btn { margin-left: auto; }
}

.landing-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 98;
}
.landing-nav.menu-open .landing-nav-overlay { display: block; }
.landing-nav.menu-open .nav-links {
  display: flex !important;
  position: fixed;
  top: var(--landing-nav-h, 60px);
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  padding: 16px 20px;
  gap: 4px;
  z-index: 99;
  box-shadow: var(--shadow-md);
}
.landing-nav.menu-open .nav-links a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
}
.landing-nav.menu-open .nav-links a:hover { background: var(--bg-muted); }
.landing-nav.menu-open .nav-actions {
  position: fixed;
  top: calc(var(--landing-nav-h, 60px) + 200px);
  left: 16px;
  right: 16px;
  z-index: 99;
  display: flex;
  gap: 10px;
}
.landing-nav.menu-open .nav-actions .btn { flex: 1; justify-content: center; }

@media (max-width: 768px) {
  .profile-layout { grid-template-columns: 1fr; }
  .lmb-content { flex-direction: column; align-items: flex-start; }
  .lmb-right { align-items: flex-start; text-align: left; width: 100%; }
  .lmb-cta { width: 100%; justify-content: center; }
  .dash-support-pill { padding: 12px 6px; font-size: 0.72rem; }
  .dash-support-pill i { font-size: 1rem; }
}

@media (max-width: 360px) {
  .dash-support-pill span { font-size: 0.65rem; }
}

/* Payment step lines — vertically centered with step circles */
.page-payment .paygw-prog-line {
  margin-top: 13px;
  margin-bottom: 0;
}

/* V1 BV unlock */
.v1-bv-unlock-panel {
  margin: 12px 0 0;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-muted);
}
.bv-bottom-card .v1-bv-unlock-panel {
  margin: 14px 0 0;
  border: none;
  background: transparent;
  padding: 0;
}
.bv-modal .v1-bv-unlock-panel {
  margin: 0 0 16px;
}
.v1-bv-unlock-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}
.v1-bv-unlock-head i { font-size: 1.2rem; margin-top: 2px; }
.v1-bv-unlock-head.unlocked i { color: var(--green); }
.v1-bv-unlock-head.locked i { color: var(--text-dim); }
.v1-bv-unlock-head strong { display: block; font-size: 0.88rem; }
.v1-bv-unlock-head span { font-size: 0.75rem; }
.v1-bv-paths {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 10px;
  align-items: stretch;
}
.v1-bv-path {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  font-size: 0.76rem;
}
.v1-bv-path.met {
  border-color: var(--green);
  background: var(--green-soft);
}
.v1-bv-path-title {
  font-weight: 700;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 8px;
  color: var(--text-dim);
}
.v1-bv-path-stat { margin-bottom: 4px; line-height: 1.4; }
.v1-bv-path-or {
  display: flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
  padding: 0 2px;
}
.v1-bv-path-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--blue);
  text-decoration: none;
}
.v1-bv-path-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}
.bv-locked-card { border-color: rgba(148, 163, 184, 0.35); }
.v1-bv-unlock-head.schedule i { color: var(--yellow-dark); }
.v1-bv-unlock-meter { margin-top: 4px; }
.v1-bv-meter-track {
  height: 8px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}
.v1-bv-meter-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--yellow) 0%, var(--green) 100%);
  border-radius: 999px;
  transition: width 0.4s;
}
.v1-bv-meter-stats {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.76rem;
  margin-bottom: 4px;
}
.dash-bot-wallet-tile .dbwt-label {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  font-weight: 700;
}

@media (max-width: 640px) {
  .v1-bv-paths {
    grid-template-columns: 1fr;
  }
  .v1-bv-path-or {
    justify-content: center;
    padding: 4px 0;
  }
}

/* Global minimalist polish */
.auth-card,
.content-panel,
.stat-card {
  border-radius: 14px;
}
.top-header,
.bottom-nav {
  backdrop-filter: blur(8px);
}