/* YFcloud Media & Gaming Hub — Cyber Neon Violet & Obsidian */
:root {
  --bg: #080412;
  --surface: #120B24;
  --surface-2: #1B1136;
  --text: #F5F3FF;
  --muted: #A78BFA;
  --violet: #8B5CF6;
  --magenta: #EC4899;
  --cyan: #06B6D4;
  --border: rgba(139, 92, 246, 0.25);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", sans-serif;
  background: radial-gradient(circle at 50% 0%, rgba(139, 92, 246, 0.22), transparent 50%),
              radial-gradient(circle at 90% 80%, rgba(236, 72, 153, 0.12), transparent 40%),
              var(--bg);
  color: var(--text); line-height: 1.7; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { max-width: 1220px; margin: 0 auto; padding: 0 24px; }

/* Header */
.cy-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(8, 4, 18, 0.85); backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.cy-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.cy-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; white-space: nowrap; }
.cy-brand img { width: 36px; height: 36px; border-radius: 10px; box-shadow: 0 0 16px rgba(139, 92, 246, 0.5); }
.cy-brand-text { font-size: 19px; font-weight: 800; }
.cy-brand-text span { background: linear-gradient(90deg, #A78BFA, #EC4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.cy-nav { display: flex; align-items: center; gap: 5px; overflow-x: auto; scrollbar-width: none; }
.cy-nav::-webkit-scrollbar { display: none; }
.cy-nav a {
  padding: 8px 13px; border-radius: 8px; font-size: 14px; font-weight: 600; color: #C4B5FD;
  transition: all 0.2s; white-space: nowrap !important; flex-shrink: 0 !important;
}
.cy-nav a:hover, .cy-nav a.active { background: rgba(139, 92, 246, 0.2); color: #FFF; }
.btn-neon {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 22px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #FFF;
  background: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  box-shadow: 0 6px 24px rgba(236, 72, 153, 0.35); border: none; cursor: pointer;
  white-space: nowrap !important; flex-shrink: 0 !important; transition: transform 0.2s;
}
.btn-neon:hover { transform: translateY(-2px); }

/* Center Neon Hero */
.neon-hero { padding: 72px 0 54px; text-align: center; }
.neon-badge {
  display: inline-block; padding: 6px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  background: rgba(6, 182, 212, 0.14); color: var(--cyan); border: 1px solid rgba(6, 182, 212, 0.35);
  margin-bottom: 18px;
}
.neon-hero h1 { font-size: clamp(34px, 4.5vw, 54px); font-weight: 900; line-height: 1.15; margin-bottom: 18px; }
.neon-hero h1 span { background: linear-gradient(90deg, #38BDF8, #A78BFA, #EC4899); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.neon-hero p { color: #C4B5FD; max-width: 700px; margin: 0 auto 28px; font-size: 17px; }

/* Radar Grid */
.section { padding: 56px 0; }
.radar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.radar-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px;
  display: flex; flex-direction: column; gap: 8px;
}
.radar-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 16px; }
.status-ok { font-size: 11px; padding: 3px 8px; border-radius: 999px; background: rgba(16, 185, 129, 0.16); color: #34D399; border: 1px solid rgba(16,185,129,0.3); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cy-card {
  background: linear-gradient(165deg, var(--surface-2) 0%, var(--surface) 100%);
  border: 1px solid var(--border); border-radius: 18px; padding: 28px;
}
.cy-card h3 { font-size: 19px; margin-bottom: 10px; color: #FFF; }
.cy-card p { font-size: 14px; color: #C4B5FD; }

/* Calculator */
.calc-box {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px;
  max-width: 820px; margin: 0 auto;
}
.calc-controls { display: flex; gap: 12px; flex-wrap: wrap; margin: 16px 0; }
.calc-btn {
  padding: 9px 18px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2);
  color: #E9D5FF; font-weight: 600; cursor: pointer;
}
.calc-btn.active { background: var(--cyan); color: #080412; border-color: var(--cyan); }

/* Ecosystem */
.yf-eco-section { padding: 52px 0; background: rgba(18, 11, 36, 0.7); border-top: 1px solid var(--border); }
.yf-eco-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 20px; }
.yf-eco-card { display: block; padding: 15px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); }
.yf-eco-card:hover, .yf-eco-active { border-color: var(--magenta); }
.yf-eco-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; gap: 6px; }
.yf-eco-dom { font-size: 12px; font-weight: 700; color: var(--cyan); }
.yf-eco-badge { font-size: 11px; padding: 2px 6px; background: rgba(236,72,153,0.18); color: #F472B6; border-radius: 4px; font-weight: 700; }
.yf-eco-title { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.yf-eco-desc { font-size: 12px; color: #A78BFA; line-height: 1.4; }
.cy-footer { padding: 30px 0; text-align: center; font-size: 13px; color: #A78BFA; border-top: 1px solid var(--border); }

@media (max-width: 960px) {
  .radar-grid, .grid-3, .yf-eco-grid { grid-template-columns: 1fr; }
}
