[data-platform-navbar] {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background: #12161C;
  border-bottom: 1px solid #292E32;
}

.platform-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 1000;
  background: #12161C;
  border-bottom: 1px solid #292E32;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

.platform-navbar * {
  box-sizing: border-box;
}

.platform-navbar-inner {
  height: 60px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.platform-nav-left,
.platform-nav-user {
  display: flex;
  align-items: center;
}

.platform-nav-left {
  min-width: 0;
  gap: 20px;
}

.platform-nav-logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 80px;
  width: 80px;
  min-width: 80px;
}

.platform-nav-logo img {
  width: 80px;
  height: 30px;
  display: block;
  object-fit: contain;
}

.platform-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.platform-nav-links a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 4px 0;
  color: #636669;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  font-weight: 600;
  transition: color 0.2s;
  position: relative;
}

.platform-nav-links a:hover {
  color: #F5F5F5;
}

.platform-nav-links a.active {
  color: #F5F5F5;
}

.platform-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  right: 0;
  height: 2px;
  background: #5021DE;
  border-radius: 1px;
}

.platform-nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 0;
}

.platform-nav-guest-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.platform-nav-membership {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 16px;
  border: 1px solid #2f3640;
  border-radius: 18px;
  background: #1b2129;
  color: #f5f5f5;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.platform-nav-membership:hover {
  border-color: #4f46e5;
  background: #202736;
  color: #fff;
}

.platform-nav-login-btn {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 6px 18px;
  border: 1px solid #5021DE;
  border-radius: 20px;
  color: #5021DE;
  background: transparent;
  font-size: 13px;
  cursor: pointer;
  user-select: none;
  transition: all 0.2s;
}

.platform-nav-login-btn:hover {
  background: #5021DE;
  color: #fff;
}

.platform-nav-user {
  gap: 12px;
  min-width: 0;
}

.platform-nav-credits {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 24px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #00D4AA;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
}

.platform-nav-credits:hover {
  opacity: 0.85;
}

.platform-credits-icon {
  width: 17px;
  height: 17px;
  display: block;
}

.platform-nav-nickname {
  max-width: 128px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #E8E9EA;
  font-size: 14px;
  font-weight: 600;
}

.platform-nav-logout {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: #636669;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.2s;
}

.platform-nav-logout:hover {
  color: #C8C9CA;
  background: none;
}

.platform-membership-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.platform-membership-overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

.platform-membership-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 8, 12, 0.72);
  backdrop-filter: blur(4px);
}

.platform-membership-modal {
  position: relative;
  width: min(1280px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  margin: 24px auto;
  padding: 28px;
  overflow: auto;
  border: 1px solid #2a3037;
  border-radius: 24px;
  background: #15181e;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.platform-membership-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #20252d;
  color: #f5f5f5;
  font-size: 22px;
  cursor: pointer;
}

.platform-membership-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.platform-membership-eyebrow {
  color: #7c8aa0;
  font-size: 12px;
  margin-bottom: 8px;
}

.platform-membership-header h2 {
  margin: 0;
  color: #f7f8fa;
  font-size: 30px;
  line-height: 1.15;
}

.platform-membership-header p {
  margin: 10px 0 0;
  color: #8f98a4;
  font-size: 14px;
}

.platform-membership-summary {
  display: grid;
  gap: 8px;
  min-width: 280px;
  padding: 14px 16px;
  border: 1px solid #272d35;
  border-radius: 16px;
  background: #191d23;
  color: #ccd2da;
  font-size: 13px;
}

.platform-membership-tabs {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: #1d2128;
}

.platform-membership-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #9098a3;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.platform-membership-tab em {
  color: #23c6ff;
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
}

.platform-membership-tab.active {
  background: #2a313b;
  color: #fff;
}

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

.platform-membership-card {
  display: flex;
  flex-direction: column;
  min-height: 760px;
  border: 1px solid #272d35;
  border-radius: 24px;
  background: #1b1f25;
  overflow: hidden;
}

.platform-membership-card.featured {
  border-color: #15b5f0;
  background: linear-gradient(180deg, rgba(17, 40, 58, 0.96), #131922 48%);
  box-shadow: 0 0 0 1px rgba(21, 181, 240, 0.12) inset;
}

.platform-membership-card.warm {
  border-color: #ff8a00;
  background: linear-gradient(180deg, rgba(53, 31, 15, 0.92), #1e1a19 48%);
  box-shadow: 0 0 0 1px rgba(255, 138, 0, 0.12) inset;
}

.platform-membership-card-top,
.platform-membership-card-bottom {
  padding: 26px 26px 22px;
}

.platform-membership-card-bottom {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1 1 auto;
}

.platform-membership-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.platform-membership-card-head h3 {
  margin: 0;
  color: #f6f7fa;
  font-size: 26px;
  line-height: 1.2;
}

.platform-membership-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  height: 26px;
  border-radius: 999px;
  background: rgba(255, 141, 16, 0.16);
  color: #ff9d2f;
  font-size: 12px;
  font-weight: 700;
}

.platform-membership-price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.platform-membership-price {
  color: #f6f7fa;
  font-size: 52px;
  line-height: 1;
  font-weight: 700;
}

.platform-membership-period,
.platform-membership-original,
.platform-membership-ratio,
.platform-membership-tagline,
.platform-membership-points span {
  color: #8f98a4;
}

.platform-membership-period {
  font-size: 18px;
  font-weight: 600;
}

.platform-membership-original {
  font-size: 16px;
  text-decoration: line-through;
}

.platform-membership-ratio {
  font-size: 14px;
}

.platform-membership-tagline {
  min-height: 40px;
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
}

.platform-membership-spacer {
  height: 40px;
}

.platform-membership-points {
  display: grid;
  gap: 6px;
  margin: 20px 0 16px;
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
}

.platform-membership-points strong {
  color: #f6f7fa;
  font-size: 28px;
  line-height: 1.1;
}

.platform-membership-action {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: #eef3f9;
  color: #1d232b;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.platform-membership-divider {
  height: 1px;
  margin: 0 26px;
  background: rgba(255, 255, 255, 0.08);
}

.platform-membership-card-bottom h4 {
  margin: 0;
  color: #fff;
  font-size: 18px;
}

.platform-membership-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.platform-membership-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf0f5;
  font-size: 12px;
  font-weight: 600;
}

.platform-membership-features {
  display: grid;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.platform-membership-features li {
  position: relative;
  padding-left: 18px;
  color: #d5dae1;
  font-size: 14px;
  line-height: 1.45;
}

.platform-membership-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: #f7f8fa;
  font-size: 12px;
}

@media (max-width: 900px) {
  .platform-navbar-inner {
    padding: 0 14px;
    gap: 12px;
  }

  .platform-nav-links {
    display: none;
  }

  .platform-nav-nickname {
    display: none;
  }

  .platform-nav-membership {
    padding: 0 12px;
  }

  .platform-membership-modal {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 20px);
    margin: 10px auto;
    padding: 20px;
    border-radius: 18px;
  }

  .platform-membership-header {
    flex-direction: column;
  }

  .platform-membership-summary {
    width: 100%;
    min-width: 0;
  }

  .platform-membership-tabs {
    display: flex;
    width: 100%;
    overflow: auto;
  }

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

  .platform-membership-card {
    min-height: 0;
  }

  .platform-membership-price {
    font-size: 42px;
  }
}

body.platform-embedded [data-platform-navbar],
body.platform-embedded .platform-navbar,
body.platform-embedded #platform-navbar-image {
  display: none !important;
}

body.platform-embedded {
  padding-top: 0 !important;
  overflow: auto;
}

body.platform-embedded .main-content,
body.platform-embedded .page-layout {
  margin-top: 0 !important;
  padding-top: 24px !important;
}

body.platform-route-cover::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  z-index: 2147483000;
  background: #12161C;
  pointer-events: none;
}
