
:root {
  --ngp: var(--amber, #F59E0B);
  --ngp-ink: #1a1205;
  --ngp-soft: rgba(245, 158, 11, 0.14);
  --ngp-line: rgba(245, 158, 11, 0.42);
  --ngp-glow: rgba(245, 158, 11, 0.38);
}

.ngp-ribbon {
  position: relative; flex-shrink: 0;
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px 22px;
  padding: 10px 28px 10px 25px;
  border-bottom: 1px solid var(--ngp-line);
  border-left: 3px solid var(--ngp);
  background:
    radial-gradient(120% 220% at 0% 50%, rgba(245, 158, 11, 0.26), transparent 55%),
    linear-gradient(90deg, rgba(245, 158, 11, 0.10), rgba(245, 158, 11, 0.03) 70%),
    var(--bg-surface);
  font-family: 'Inter', sans-serif; color: var(--text);
  animation: ngp-in 0.32s ease;
}
.ngp-r-main { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ngp-r-pct {
  font-size: 32px; line-height: 1; font-weight: 900; letter-spacing: -0.04em;
  color: var(--ngp); text-shadow: 0 0 22px var(--ngp-glow);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.ngp-r-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ngp-r-txt b { font-size: 14px; font-weight: 800; letter-spacing: -0.01em; white-space: nowrap; }
.ngp-r-txt span { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }

.ngp-r-timer { display: flex; flex-direction: column; gap: 2px; margin-left: auto; text-align: right; }
.ngp-r-lbl { white-space: nowrap; font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-dim); }
.ngp-r-clock { font-size: 16px; font-weight: 800; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text); }
.ngp-r-clock.is-urgent { color: var(--ngp); animation: ngp-pulse 1.6s ease-in-out infinite; }

.ngp-cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--ngp); color: var(--ngp-ink);
  font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 800; white-space: nowrap;
  box-shadow: 0 4px 18px var(--ngp-glow), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: filter 0.15s, transform 0.15s;
}
.ngp-cta:hover { filter: brightness(1.08); transform: translateY(-1px); }
.ngp-cta:focus-visible, .ngp-r-icon:focus-visible, .ngp-r-strip:focus-visible { outline: 2px solid var(--ngp); outline-offset: 2px; }

.ngp-r-tools { display: flex; gap: 6px; }
.ngp-r-icon {
  width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; border: 1px solid var(--border-strong); background: rgba(0, 0, 0, 0.18);
  color: var(--text-muted); cursor: pointer; font: 700 13px/1 'Inter', sans-serif;
}
.ngp-r-icon:hover { color: var(--text); border-color: var(--ngp-line); }
.ngp-r-info[aria-expanded="true"] { color: var(--ngp); border-color: var(--ngp-line); }
.ngp-r-terms { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--text-muted); }

.ngp-r-strip { display: none; }
.ngp-ribbon.is-folded { padding: 0; gap: 0; border-left-width: 3px; animation: none; }
.ngp-ribbon.is-folded > :not(.ngp-r-strip) { display: none !important; }
.ngp-ribbon.is-folded .ngp-r-strip {
  display: flex; align-items: center; gap: 10px; width: 100%; height: 30px; padding: 0 28px 0 25px;
  border: 0; background: none; cursor: pointer; color: var(--text-muted);
  font: 600 12px/1 'Inter', sans-serif; text-align: left;
}
.ngp-r-strip b { color: var(--ngp); font-size: 14px; font-weight: 900; }
.ngp-r-strip .ngp-r-clock { font-size: 12px; margin-left: auto; }
.ngp-r-strip-chev { display: inline-flex; transform: rotate(180deg); color: var(--text-dim); }
.ngp-r-fold svg { transition: transform 0.15s; }

.menu-toggle.ngp-dot { position: relative; }
.menu-toggle.ngp-dot::after {
  content: ''; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--ngp); box-shadow: 0 0 0 2px var(--bg-surface), 0 0 10px var(--ngp-glow);
}

.ngp-struck { text-decoration: line-through; text-decoration-thickness: 2px; text-decoration-color: rgba(255, 255, 255, 0.45); color: var(--text-dim) !important; font-size: 0.62em; font-weight: 600; margin-right: 0.3em; }
.ngp-new { color: var(--ngp); white-space: nowrap; }
.ngp-tag, .ngp-chip {
  display: inline-flex; align-items: center; vertical-align: middle; margin-left: 8px;
  padding: 3px 8px; border-radius: 999px; background: var(--ngp); color: var(--ngp-ink);
  font: 800 11px/1.2 'Inter', sans-serif; letter-spacing: 0.01em; white-space: nowrap;
  box-shadow: 0 0 12px var(--ngp-glow);
}
.ngp-tag[hidden] { display: none; }

.ngp-nudge {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; box-sizing: border-box; max-width: min(520px, calc(100% - 32px));
  margin: 12px auto 0; padding: 10px 12px 10px 14px; border-radius: 12px;
  border: 1px solid var(--ngp-line); background: var(--ngp-soft);
  font-family: 'Inter', sans-serif; text-align: left;
}
.ngp-nudge-pct { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; color: var(--ngp); line-height: 1; }
.ngp-nudge-txt { font-size: 13px; font-weight: 700; color: var(--text); }
.ngp-nudge-clock { font-size: 12px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.ngp-nudge-clock.is-urgent { color: var(--ngp); }
.ngp-nudge-cta { margin-left: auto; padding: 8px 14px; }

.btn-renew-primary .ngp-chip { margin-left: 10px; }
.sub-link .ngp-chip { display: none; }

.ngp-ts-plaque {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px; padding: 10px 14px;
  border-radius: 12px; border: 1px solid var(--ngp-line);
  background: radial-gradient(140% 200% at 0% 50%, rgba(245, 158, 11, 0.24), transparent 60%), var(--ngp-soft);
}
.ngp-ts-plaque b { font-size: 26px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; color: var(--ngp); }
.ngp-ts-plaque span { font-size: 13px; font-weight: 700; color: var(--text); }
.ngp-ts-plaque .ngp-r-clock { margin-left: auto; font-size: 13px; color: var(--text-muted); }
.ngp-ts-total { display: inline-flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ngp-ts-total s { color: var(--text-dim); font-weight: 600; font-size: 13px; }
.ngp-ts-total b { color: var(--ngp); font-size: 20px; font-weight: 900; letter-spacing: -0.02em; }
.ngp-ts-total small { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.ngp-ts-unit s { color: var(--text-dim); font-weight: 500; margin-right: 4px; }
b.ngp-ts-unit, .ts-server-price.ngp-ts-unit { color: var(--ngp) !important; }
.ts-game .ngp-game-chip { position: absolute; top: 10px; right: 40px; margin: 0; z-index: 1; }

.ngp-stat-price s { color: var(--text-dim); font-size: 0.6em; font-weight: 600; margin-right: 6px; }
.ngp-stat-price b { color: var(--ngp); }
.ngp-stat-note { font-size: 11px; font-weight: 700; color: var(--ngp); text-transform: uppercase; letter-spacing: 0.06em; margin-top: 4px; }
.period-badge.ngp-period-badge { background: var(--ngp); color: var(--ngp-ink); box-shadow: 0 2px 10px var(--ngp-glow); }
.ngp-total s { color: var(--text-dim); font-size: 0.6em; font-weight: 600; margin-right: 6px; }

.ngp-diff-tag { margin-left: 8px; }
.server-price .ngp-diff-tag { display: inline-flex; margin: 6px 0 0; }
.server-price .ngp-diff-tag[hidden] { display: none; }

.ngp-x-line {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px;
  margin-top: 14px; padding: 10px 12px 10px 14px; border-radius: 12px;
  border: 1px solid var(--ngp-line);
  background: radial-gradient(140% 220% at 0% 50%, rgba(245, 158, 11, 0.22), transparent 60%), var(--ngp-soft);
  font-family: 'Inter', sans-serif;
}
.ngp-x-line[hidden] { display: none; }
.ngp-x-pct { font-size: 24px; line-height: 1; font-weight: 900; letter-spacing: -0.04em; color: var(--ngp); text-shadow: 0 0 18px var(--ngp-glow); }
.ngp-x-txt { font-size: 13px; font-weight: 700; color: var(--text); min-width: 0; }
.ngp-x-info { margin-left: auto; }
.ngp-x-cta { padding: 8px 16px; }
.ngp-x-terms { flex-basis: 100%; font-size: 12px; line-height: 1.5; color: var(--text-muted); }

.ngp-cost { display: inline-flex; align-items: baseline; gap: 8px; }
.ngp-cost s { color: var(--text-dim); font-weight: 600; font-size: 0.8em; }
.ngp-cost b { color: var(--ngp); font-weight: 900; }
.ngp-calc {
  display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px;
  border-radius: 10px; background: var(--ngp-soft); border: 1px solid var(--ngp-line);
  font: 700 13px/1.3 'Inter', sans-serif; color: var(--text); font-variant-numeric: tabular-nums;
}
.ngp-calc[hidden] { display: none; }
.ngp-calc-pct { color: var(--ngp); font-weight: 900; }

@keyframes ngp-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes ngp-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

@media (max-width: 768px) {
  .ngp-ribbon {
    display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center;
    grid-template-areas: "main main tools" "timer cta cta" "terms terms terms";
    gap: 8px 12px; padding: 10px 16px 10px 13px;
  }
  .ngp-r-main { grid-area: main; gap: 10px; }
  .ngp-r-pct { font-size: 28px; }
  .ngp-r-txt b { font-size: 13px; }
  .ngp-r-tools { grid-area: tools; justify-self: end; }
  .ngp-r-timer { grid-area: timer; margin-left: 0; text-align: left; min-width: 0; }
  .ngp-r-clock { font-size: 15px; }
  .ngp-r-cta { grid-area: cta; justify-self: end; padding: 9px 14px; }
  .ngp-r-terms { grid-area: terms; }
  .ngp-ribbon.is-folded { display: block; }
  .ngp-ribbon.is-folded .ngp-r-strip { padding: 0 16px 0 13px; }
  .ngp-nudge-cta { margin-left: 0; width: 100%; }
  .ngp-x-cta { width: 100%; }
}
@media (max-width: 360px) {
  .ngp-r-txt span { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ngp-ribbon, .ngp-r-clock.is-urgent { animation: none; }
  .ngp-cta:hover { transform: none; }
}
