/**
 * NSO Theme — modern Ink + Ember
 * Charcoal chrome, slate surfaces, vivid orange accents
 */
@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --nso-primary: #ea580c;
  --nso-primary-deep: #c2410c;
  --nso-primary-dark: #0f172a;
  --nso-accent: #f97316;
  --nso-gold: #fbbf24;
  --nso-gold-bright: #fde68a;
  --nso-cream: #f1f5f9;
  --nso-cream-soft: #f8fafc;
  --nso-paper: #ffffff;
  --nso-line: #e2e8f0;
  --nso-border: #cbd5e1;
  --nso-text: #0f172a;
  --nso-text-mid: #334155;
  --nso-text-soft: #64748b;
  --nso-text-bold: #ea580c;
  --nso-danger: #ef4444;
  --nso-ink: #0b1220;
  --nso-ink-soft: #1e293b;
  --nso-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.14);
  --nso-shadow-lg: 0 18px 40px -16px rgba(15, 23, 42, 0.28);
  --nso-radius: 16px;
  --nso-radius-sm: 10px;
  --nso-font: 'Manrope', 'Be Vietnam Pro', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --node-green: var(--nso-primary);
  --node-green-hover: var(--nso-primary-deep);
  --node-green-soft: #fff7ed;
  --node-text: var(--nso-text);
  --node-text-muted: var(--nso-text-soft);
  --node-border: var(--nso-line);
  --node-bg: #ffffff;
  --node-bg-subtle: var(--nso-cream-soft);
  --node-font: var(--nso-font);
  --node-radius: var(--nso-radius);
}

/* —— Base —— */
html {
  background: var(--nso-cream-soft) !important;
}

body.nso-pony {
  font-family: var(--nso-font) !important;
  background:
    radial-gradient(1200px 420px at 10% -10%, rgba(249, 115, 22, 0.12), transparent 55%),
    radial-gradient(900px 360px at 95% 0%, rgba(14, 165, 233, 0.08), transparent 50%),
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 180px, #f1f5f9 100%) !important;
  color: var(--nso-text) !important;
  -webkit-font-smoothing: antialiased;
}

/* —— Topbar —— */
.nso-pony .nso-topbar {
  background: #0f172a !important;
  background-color: #0f172a !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.22) !important;
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.35) !important;
}

.nso-pony .nso-topbar-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 64px;
  padding: 0.45rem 0.9rem;
}

.nso-pony .nso-brand {
  display: inline-flex !important;
  align-items: center;
  gap: 0.65rem !important;
  text-decoration: none !important;
  min-width: 0;
}

.nso-pony .nso-brand-logo,
.nso-pony .nso-brand img {
  width: 42px !important;
  height: 42px !important;
  object-fit: cover;
  border-radius: 12px !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  background: linear-gradient(135deg, #fb923c, #ea580c);
  flex: 0 0 auto;
}

.nso-pony .nso-brand-name {
  display: block;
  color: #f8fafc !important;
  font-size: 1.08rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.nso-pony .nso-brand-subtext {
  color: #94a3b8 !important;
  font-weight: 600 !important;
  font-size: 0.72rem !important;
  text-shadow: none !important;
}

.nso-pony .nso-hamburger {
  border: 1px solid rgba(148, 163, 184, 0.35) !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
}

@media (min-width: 992px) {
  .nso-pony .nso-hamburger {
    display: none !important;
  }
}

@media (max-width: 991.98px) {
  .nso-pony .nso-hamburger {
    display: inline-flex !important;
  }
}

.nso-pony .nso-hamburger span {
  background: #e2e8f0 !important;
  display: block;
  height: 2px;
  border-radius: 2px;
}

.nso-pony .nso-topbar-nav {
  align-items: center;
  gap: 0.25rem;
}

.nso-pony .nso-topbar-nav a,
.nso-pony .nso-topbar-nav .dropdown > a {
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  padding: 0.45rem 0.9rem !important;
  opacity: 1 !important;
  transition: background 0.15s ease, color 0.15s ease;
}

.nso-pony .nso-topbar-nav a.active,
.nso-pony .nso-topbar-nav a:hover,
.nso-pony .nso-topbar-nav .dropdown > a:hover {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.14) !important;
}

.nso-pony .nso-topbar-nav a.active {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.35);
}

.nso-pony .nso-btn-login,
.nso-pony .nso-btn-register {
  font-family: var(--nso-font) !important;
  font-weight: 700 !important;
  border-radius: 999px !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1.05rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nso-pony .nso-btn-login {
  background: rgba(255, 255, 255, 0.14) !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-weight: 800 !important;
}

.nso-pony .nso-btn-register {
  background: linear-gradient(135deg, #fb923c, #ea580c) !important;
  border: 1px solid transparent !important;
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(234, 88, 12, 0.35) !important;
}

.nso-pony .nso-btn-login:hover,
.nso-pony .nso-btn-register:hover {
  transform: translateY(-1px);
}

.nso-pony .nso-topbar-user-btn {
  border-color: rgba(148, 163, 184, 0.4) !important;
}

/* —— Drawer mobile —— */
.nso-pony .nso-drawer .offcanvas-header {
  background: linear-gradient(135deg, #111827, #0f172a) !important;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2) !important;
  align-items: center;
}

.nso-pony .nso-drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.nso-pony .nso-drawer-brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  object-fit: cover;
}

.nso-pony .nso-drawer .offcanvas-title {
  color: #fff !important;
  font-weight: 800 !important;
  margin: 0 !important;
  font-size: 1rem !important;
}

.nso-pony .nso-drawer-sub {
  margin: 2px 0 0;
  color: #94a3b8;
  font-size: 0.75rem;
}

.nso-pony .nso-drawer .offcanvas-body {
  background: #f8fafc !important;
}

.nso-pony .nso-drawer .nso-drawer-nav {
  display: grid;
  gap: 6px;
}

.nso-pony .nso-drawer .nso-drawer-nav a {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  color: var(--nso-text-mid) !important;
  font-weight: 650 !important;
  border-radius: 14px !important;
  padding: 0.8rem 0.9rem !important;
  text-decoration: none !important;
  background: #fff;
  border: 1px solid var(--nso-line);
}

.nso-pony .nso-drawer .nso-drawer-nav a .bi {
  color: var(--nso-primary) !important;
  font-size: 1.15rem;
}

.nso-pony .nso-drawer .nso-drawer-nav a.active,
.nso-pony .nso-drawer .nso-drawer-nav a:hover {
  background: #fff7ed !important;
  border-color: #fdba74 !important;
  color: var(--nso-primary-deep) !important;
}

.nso-pony .nso-drawer-auth {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--nso-line);
}

.nso-pony .nso-drawer-auth .nso-btn-login,
.nso-pony .nso-drawer-auth .nso-btn-register {
  width: 100%;
  padding: 0.75rem 1rem !important;
  border-radius: 14px !important;
}

.nso-pony .nso-drawer-auth .nso-btn-login {
  background: #fff !important;
  color: var(--nso-text) !important;
  border: 1px solid var(--nso-border) !important;
}

/* —— Bottom nav mobile —— */
.nso-pony .nso-bottom-nav {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--nso-line) !important;
  box-shadow: 0 -10px 30px rgba(15, 23, 42, 0.08) !important;
  padding: 0.4rem 0.3rem max(0.5rem, env(safe-area-inset-bottom)) !important;
  gap: 2px;
}

.nso-pony .nso-bottom-nav a {
  color: var(--nso-text-soft) !important;
  font-weight: 650 !important;
  font-size: 0.62rem !important;
  border-radius: 14px;
  transition: color 0.15s ease, background 0.15s ease;
  padding: 0.4rem 0.2rem !important;
}

.nso-pony .nso-bottom-nav a .bi {
  font-size: 1.2rem !important;
  color: inherit !important;
}

.nso-pony .nso-bottom-nav a.active,
.nso-pony .nso-bottom-nav a.active .bi {
  color: var(--nso-primary) !important;
  background: rgba(234, 88, 12, 0.1) !important;
}

/* —— Hero —— */
.nso-pony .nso-hero-banner--classic .nso-hero-overlay {
  background: linear-gradient(
    180deg,
    rgba(2, 6, 23, 0.35) 0%,
    rgba(2, 6, 23, 0.55) 55%,
    rgba(2, 6, 23, 0.72) 100%
  ) !important;
}

.nso-pony .nso-hero-quote {
  background: rgba(15, 23, 42, 0.55) !important;
  border: 1px solid rgba(248, 250, 252, 0.16) !important;
  border-radius: var(--nso-radius) !important;
  color: #fff !important;
  backdrop-filter: blur(8px);
}

.nso-pony .nso-hero-btn {
  font-family: var(--nso-font) !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.nso-pony .nso-hero-btn--download {
  background: linear-gradient(135deg, #fb923c, #ea580c) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(234, 88, 12, 0.4);
}

.nso-pony .nso-hero-btn--register {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

.nso-pony .nso-hero-btn--recharge {
  background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
  color: #1c1917 !important;
}

/* —— Content surfaces —— */
.nso-pony .nso-main,
.nso-pony .node-download,
.nso-pony .node-blog,
.nso-pony .node-community {
  color: var(--nso-text);
}

.nso-pony .nso-news-card,
.nso-pony .nso-banner,
.nso-pony .nso-dl-card,
.nso-pony .nso-announcement-card,
.nso-pony .node-download-item,
.nso-pony .node-download-guide,
.nso-pony .node-community-card,
.nso-pony .card {
  background: #fff !important;
  border: 1px solid var(--nso-line) !important;
  border-radius: var(--nso-radius) !important;
  box-shadow: var(--nso-shadow) !important;
}

.nso-pony .nso-section-title,
.nso-pony .nso-announcement-title,
.nso-pony .nso-card-title,
.nso-pony .node-blog-title {
  color: var(--nso-text) !important;
}

.nso-pony .nso-section-sub,
.nso-pony .nso-announcement-desc,
.nso-pony .nso-card-desc,
.nso-pony .node-blog-sub {
  color: var(--nso-text-soft) !important;
}

.nso-pony .nso-announcement-tag {
  background: linear-gradient(135deg, #f97316, #ea580c) !important;
  color: #fff !important;
  border-radius: 999px !important;
}

.nso-pony .btn-primary,
.nso-pony .node-download-btn {
  background: linear-gradient(135deg, #fb923c, #ea580c) !important;
  border-color: transparent !important;
  color: #fff !important;
  border-radius: 999px !important;
}

.nso-pony .node-download-tabs {
  background: #fff !important;
  border: 1px solid var(--nso-line) !important;
  border-radius: 999px !important;
  padding: 4px !important;
}

.nso-pony .node-download-tab.active {
  color: #fff !important;
  background: linear-gradient(135deg, #fb923c, #ea580c) !important;
  border-color: transparent !important;
  box-shadow: 0 6px 16px rgba(234, 88, 12, 0.28) !important;
}

.nso-pony .node-download-item--latest {
  border-color: #fdba74 !important;
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 70%) !important;
}

.nso-pony .node-download-badge,
.nso-pony .node-download-step-num,
.nso-pony .node-download-tab.active .node-download-tab-count {
  background: linear-gradient(135deg, #fb923c, #ea580c) !important;
}
