@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  --bg-main: #050a16;
  --bg-surface: #0d162d;
  --bg-surface-2: #111f3d;
  --text-main: #edf3ff;
  --text-soft: #9fb2d6;
  --brand-gold: #f0b236;
  --brand-cyan: #58d6ff;
  --line: rgba(255, 255, 255, 0.12);
  --line-soft: rgba(255, 255, 255, 0.07);
  --nav-height: 74px;
  --shadow: 0 16px 45px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 15% 12%, rgba(88, 214, 255, 0.11), transparent 36%),
    radial-gradient(circle at 82% 0%, rgba(240, 178, 54, 0.14), transparent 34%),
    linear-gradient(180deg, #050914, #070f1f 38%, #09152b 100%);
  color: var(--text-main);
  font-family: 'Manrope', sans-serif;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(10px);
  background: rgba(7, 12, 26, 0.92);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  max-width: 1360px;
  margin: 0 auto;
  min-height: var(--nav-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 20px;
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(145deg, #f0b236, #c38a16);
  color: #0b1122;
  box-shadow: 0 8px 25px rgba(240, 178, 54, 0.35);
  font-size: 0.92rem;
  font-weight: 800;
}

.brand-text {
  font-size: 1.02rem;
  text-transform: uppercase;
}

.brand-text .brand-h {
  color: var(--brand-gold);
}

.brand-text .brand-c {
  color: #ffe08e;
}

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

.nav-links a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 0.94rem;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-main);
  background: rgba(88, 214, 255, 0.08);
  border-color: rgba(88, 214, 255, 0.32);
}

.nav-links a.active {
  color: #0b1327;
  background: linear-gradient(135deg, var(--brand-gold), #ffd27f);
  border-color: rgba(255, 210, 127, 0.55);
}

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

.nav-pill {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  color: var(--text-main);
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s ease;
}

.nav-pill:hover {
  border-color: rgba(88, 214, 255, 0.65);
  background: rgba(88, 214, 255, 0.1);
}

.nav-pill.ip {
  border-color: rgba(240, 178, 54, 0.52);
  background: linear-gradient(130deg, rgba(240, 178, 54, 0.16), rgba(240, 178, 54, 0.06));
}

.nav-pill.ip.copied {
  border-color: rgba(88, 214, 255, 0.7);
  background: rgba(88, 214, 255, 0.2);
}

.nav-account {
  min-width: 174px;
  text-decoration: none;
  padding: 7px 11px;
  border-radius: 12px;
  border: 1px solid rgba(88, 214, 255, 0.45);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9rem;
  font-weight: 700;
  background: rgba(88, 214, 255, 0.09);
  transition: 0.2s ease;
}

.nav-account:hover {
  border-color: rgba(88, 214, 255, 0.8);
  background: rgba(88, 214, 255, 0.14);
}

.account-avatar {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
}

.account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.account-avatar.fallback {
  font-size: 0.84rem;
  color: #d8e6ff;
  font-weight: 800;
}

.account-label {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-main);
  font-size: 1.1rem;
}

.layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 28px 20px 55px;
}

.layout-embed {
  max-width: 100%;
  padding: 0;
  min-height: calc(100dvh - var(--nav-height));
}

.hero {
  margin-top: 12px;
  padding: 38px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.03), transparent),
    linear-gradient(130deg, rgba(88, 214, 255, 0.12), rgba(240, 178, 54, 0.08));
  box-shadow: var(--shadow);
}

.eyebrow {
  color: var(--brand-cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 700;
  font-size: 0.8rem;
}

.hero h1 {
  margin: 14px 0 10px;
  font-weight: 800;
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  line-height: 1.05;
}

.hero p {
  margin: 0;
  max-width: 760px;
  color: var(--text-soft);
  font-size: 1.06rem;
  line-height: 1.55;
}

.actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn {
  text-decoration: none;
  padding: 11px 18px;
  border-radius: 12px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: 0.2s ease;
}

.btn-primary {
  color: #0d1326;
  background: linear-gradient(140deg, var(--brand-gold), #ffd27f);
}

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

.btn-secondary {
  color: var(--text-main);
  border-color: rgba(88, 214, 255, 0.35);
  background: rgba(88, 214, 255, 0.08);
}

.btn-secondary:hover {
  border-color: rgba(88, 214, 255, 0.7);
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.card {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  padding: 16px;
}

.card h3 {
  margin: 0;
  font-size: 1.06rem;
}

.card p {
  margin: 8px 0 0;
  color: var(--text-soft);
  line-height: 1.45;
}

.frame-shell {
  margin-top: 0;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  background: #071024;
  box-shadow: none;
}

.embed-frame {
  width: 100%;
  height: calc(100dvh - var(--nav-height) - 2px);
  border: 0;
  display: block;
  background: #071024;
}

.section-title {
  margin: 0;
  padding: 16px 20px 8px;
  font-size: 1.12rem;
  font-weight: 800;
  color: #d6e4ff;
  letter-spacing: 0.02em;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(8, 14, 27, 0.84);
}

.section-subtitle {
  margin: 0;
  padding: 0 20px 14px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--line);
  background: rgba(8, 14, 27, 0.84);
}

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

.kpi {
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.kpi strong {
  display: block;
  font-size: 1.08rem;
}

.kpi span {
  color: var(--text-soft);
}

.notice {
  margin-top: 20px;
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 210, 127, 0.35);
  background: rgba(240, 178, 54, 0.08);
  color: #ffe5b0;
}

.footer {
  margin-top: 36px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: #92a4c6;
  font-size: 0.95rem;
}

.stage {
  min-height: calc(100dvh - var(--nav-height));
  display: grid;
  place-items: center;
  padding: 24px;
}

.stage-card {
  width: min(920px, 100%);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
  box-shadow: var(--shadow);
  padding: 26px;
}

.stage-card h1 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
}

.stage-card p {
  margin: 0;
  color: var(--text-soft);
  line-height: 1.55;
}

.nav-panel {
  display: none;
}

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

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

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

  .burger {
    display: inline-grid;
    place-items: center;
  }

  .topbar.open .nav-panel {
    display: block;
    border-top: 1px solid var(--line);
    background: rgba(8, 14, 27, 0.97);
  }

  .nav-panel-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 20px 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-panel a,
  .nav-panel button {
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.02);
    font-size: 0.94rem;
    font-weight: 700;
    text-align: left;
  }

  .nav-panel button {
    cursor: pointer;
    font-family: inherit;
  }

  .embed-frame {
    height: calc(100dvh - var(--nav-height) - 1px);
    min-height: 580px;
  }
}

@media (max-width: 650px) {
  .layout {
    padding: 20px 14px 40px;
  }

  .hero {
    padding: 24px 18px;
  }

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

  .section-title {
    padding: 14px;
  }

  .section-subtitle {
    padding: 0 14px 12px;
  }

  .stage {
    padding: 14px;
  }

  .stage-card {
    padding: 18px;
  }
}
