:root {
  --nn-bg: #e6ebf2;
  --nn-card: #ffffff;
  --nn-ink: #1a2332;
  --nn-muted: #8b95a3;
  --nn-green: #1f7a4a;
  --nn-green-dark: #176338;
  --nn-line: #e8edf3;
  --nn-rose: #b94a4a;
  --nn-rose-bg: #fdecec;
  --nn-rose-badge: #7a2428;
  --nn-max: 430px;
  --nn-dock: 108px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--nn-bg); color: var(--nn-ink); font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; }
button, input { font-family: inherit; }
button { cursor: pointer; }
body.modal-open { overflow: hidden; }

.nn-page { min-height: 100vh; padding: 16px 0 0; }
.nn-shell {
  width: min(var(--nn-max), calc(100% - 20px));
  margin: 0 auto;
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 16px 40px rgba(28, 40, 60, .08);
  padding-bottom: calc(var(--nn-dock) + 8px);
  position: relative;
  overflow: hidden;
}

.nn-top {
  display: flex;
  align-items: center;
  padding: 14px 16px 10px;
}
.nn-logo { display: flex; align-items: center; text-decoration: none; color: var(--nn-ink); font-weight: 800; font-size: 15px; }
.nn-logo img, .nn-logo .nb-media { height: 28px; width: auto; max-width: 110px; object-fit: contain; }
.nn-wa {
  width: 46px; height: 46px; border-radius: 999px; background: #1fa855; color: #fff;
  display: grid; place-items: center; text-decoration: none;
  box-shadow: 0 8px 18px rgba(31, 168, 85, .35);
  position: fixed; z-index: 45;
  right: max(14px, calc(50% - (var(--nn-max) / 2) + 6px));
  top: 46%;
}
.nn-wa svg { width: 24px; height: 24px; }

.nn-hero { margin: 0; border-radius: 0; overflow: hidden; background: #111; min-height: 168px; }
.nn-hero img, .nn-hero .nb-media { width: 100%; height: 168px; object-fit: cover; display: block; }
.nn-hero-empty { height: 168px; background: linear-gradient(160deg, #1a1a1a, #3a1010); }
.nn-meus {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: #111; color: #fff; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 11px; margin: 0;
}
.nn-meus svg, .nn-meus i { width: 16px; height: 16px; font-size: 14px; }

.nn-title-card {
  margin: 0; background: #fff; border-radius: 0;
  padding: 18px 16px 8px; text-align: center;
  box-shadow: none;
}
.nn-title-card h1 { margin: 0 0 6px; font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.nn-sub { margin: 0; color: #667484; font-size: 14px; font-weight: 500; }
.nn-pill {
  display: inline-block; background: #e5f6ea; color: var(--nn-green);
  border-radius: 999px; padding: 1px 8px; font-weight: 800; font-size: 13px;
}
.nn-date { display: block; margin-top: 2px; color: #9aa6b2; font-size: 13px; font-weight: 500; }

.nn-prizes-btn, .nn-block, .nn-nums, .nn-links a, .nn-legal {
  margin: 12px 14px 0; background: #fff; border-radius: 16px;
  box-shadow: none;
}
.nn-prizes-btn {
  width: calc(100% - 28px); border: 1px solid #eef1f5; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px; font-weight: 700; font-size: 15px; color: var(--nn-ink); background: #fff;
}
.nn-prizes-btn svg { width: 16px; height: 16px; color: var(--nn-rose); }

.nn-block, .nn-nums, .nn-legal { background: transparent; box-shadow: none; }
.nn-block { padding: 4px 2px 8px; }
.nn-block h2, .nn-nums h2, .nn-area h2, .nn-legal h2 {
  margin: 0 0 12px; font-size: 16px; font-weight: 800; display: flex; align-items: center; gap: 8px;
}
.nn-block h2 svg, .nn-nums h2 svg, .nn-area h2 svg { width: 16px; height: 16px; color: var(--nn-rose); }

.nn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.nn-combo {
  position: relative; border: 1px solid #eef2f6; background: #fff; border-radius: 18px;
  min-height: 124px; padding: 18px 8px 14px; text-align: center; color: var(--nn-ink);
  box-shadow: 0 1px 0 rgba(20, 30, 50, .02);
}
.nn-combo .q { font-size: 28px; font-weight: 800; line-height: 1; }
.nn-combo .u { display: block; color: var(--nn-muted); font-size: 13px; margin-top: 2px; }
.nn-combo .was { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 8px; color: #9aa3ad; font-size: 12px; }
.nn-combo .was s { text-decoration: line-through; }
.nn-combo .off { background: #e7f6ec; color: var(--nn-green); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 1px 6px; }
.nn-combo .now { display: block; margin-top: 2px; font-size: 18px; font-weight: 800; }
.nn-combo.popular {
  background: var(--nn-rose-bg); border: 2px solid var(--nn-rose);
}
.nn-combo.popular .now { color: #111; }
.nn-badge {
  position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  background: var(--nn-rose-badge); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .04em; border-radius: 999px; padding: 3px 8px; white-space: nowrap;
}
.nn-combo.sel { box-shadow: 0 0 0 2px var(--nn-green); }

.nn-steps {
  margin: 12px 12px 0; border-radius: 14px; overflow: hidden;
  background: linear-gradient(180deg, #7a1020 0%, #4a0a12 100%);
  color: #fff; padding: 12px 10px 14px; text-align: center;
}
.nn-steps strong { display: block; font-size: 16px; letter-spacing: .02em; }
.nn-steps strong b { color: #ffd15c; }
.nn-steps em { display: block; font-style: normal; background: #e10600; color: #fff; font-size: 11px; font-weight: 800; border-radius: 4px; padding: 3px 8px; margin: 6px auto 10px; width: fit-content; }
.nn-steps ol { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0; padding: 0; }
.nn-steps li { background: #111; border: 2px solid #e0b43a; border-radius: 12px; padding: 8px 4px; min-height: 92px; }
.nn-steps .n { width: 18px; height: 18px; border-radius: 999px; background: #e0b43a; color: #111; font-size: 11px; font-weight: 800; display: inline-grid; place-items: center; }
.nn-steps svg { width: 22px; height: 22px; color: #f5c451; display: block; margin: 4px auto; }
.nn-steps span { display: block; font-size: 9px; font-weight: 800; line-height: 1.15; letter-spacing: .02em; }
.nn-banner { margin: 12px 12px 0; border-radius: 14px; overflow: hidden; }
.nn-banner img, .nn-banner .nb-media { width: 100%; height: auto; display: block; }

.nn-nums { padding: 14px 12px 8px; }
.nn-nums-head { width: 100%; border: 0; background: none; display: flex; align-items: flex-start; justify-content: space-between; text-align: left; padding: 0; color: inherit; }
.nn-nums-head p { margin: 2px 0 0; color: var(--nn-muted); font-size: 12px; font-weight: 600; }
.nn-nums-head i { transition: transform .2s; }
.nn-nums.open .nn-nums-head i { transform: rotate(180deg); }
.nn-nums-body { display: none; }
.nn-nums.open .nn-nums-body { display: block; }
.nn-count { margin: 8px 0 10px; font-size: 13px; color: #66707c; font-weight: 600; }
.nn-filters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 12px; }
.nn-filters button {
  border: 1px solid #eceff3; background: #fff; border-radius: 14px; padding: 11px 4px; font-weight: 700; color: #4b5563;
}
.nn-filters button.on { background: #f6ddd9; border-color: #f6ddd9; color: #6d3a38; }
.nn-num { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.nn-num[hidden] { display: none; }
.nn-num-prize { font-weight: 800; font-size: 14px; }
.nn-num-row {
  margin-top: 4px; background: #f4f6f8; border-radius: 12px; padding: 10px 12px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
}
.nn-num-id { font-weight: 700; letter-spacing: .02em; display: inline-flex; align-items: center; gap: 8px; color: #243041; }
.nn-num-id i { color: #9aa6b2; font-size: 15px; }
.nn-st { border-radius: 999px; padding: 5px 12px; font-size: 12px; font-weight: 700; background: #e7f6ec; color: var(--nn-green); }
.nn-st.out { background: #fde8e8; color: #b42318; }
.nn-more { width: 100%; border: 0; background: none; color: #d12424; font-weight: 700; padding: 10px; font-size: 14px; }

.nn-area { margin: 18px 12px 0; }
.nn-area h2 { margin-bottom: 10px; }
.nn-links a, .nn-links button {
  width: calc(100% - 28px); margin: 8px 14px 0; border: 1px solid #eef1f5; background: #fff; border-radius: 16px;
  display: flex; align-items: center; gap: 10px; padding: 15px 14px; text-decoration: none; color: var(--nn-ink);
  font-weight: 700; font-size: 15px; box-shadow: none; text-align: left;
}
.nn-links svg { width: 18px; height: 18px; color: var(--nn-rose); flex: 0 0 auto; }
.nn-links .go { margin-left: auto; color: #c5ced6; }

.nn-legal { padding: 14px; }
.nn-legal-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.nn-legal h2 { margin: 0; }
.nn-legal-top a, .nn-legal-top button { border: 0; background: none; color: var(--nn-rose); font-weight: 800; text-decoration: none; }
.nn-legal-logo { display: flex; justify-content: center; margin: 12px 0; }
.nn-legal-logo img, .nn-legal-logo .nb-media { height: 42px; width: auto; }
.nn-legal p { margin: 0; color: #8b95a1; font-size: 12px; line-height: 1.55; text-align: center; }
.nn-copy { text-align: center; color: #98a2ad; font-size: 12px; margin: 14px 12px 0; }

.nn-dock {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; z-index: 40;
  width: min(var(--nn-max), calc(100% - 20px)); background: #fff;
  border-radius: 22px 22px 0 0; box-shadow: 0 -10px 30px rgba(28,36,48,.1);
  padding: 12px 14px 14px;
}
.nn-dock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.nn-cart { border: 0; background: none; display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--nn-ink); padding: 0; }
.nn-cart i { color: var(--nn-green); }
.nn-badge-n {
  width: 16px; height: 16px; border-radius: 999px; background: var(--nn-green); color: #fff;
  font-size: 10px; display: inline-grid; place-items: center;
}
.nn-stepper { display: flex; align-items: center; background: #f3f5f8; border-radius: 12px; padding: 4px; }
.nn-stepper button { width: 32px; height: 32px; border: 0; background: #fff; border-radius: 8px; font-size: 18px; color: #111; }
.nn-stepper input { width: 54px; border: 0; background: transparent; text-align: center; font-size: 16px; font-weight: 800; color: var(--nn-ink); }
.nn-dock-buy { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nn-price { font-size: 26px; font-weight: 800; line-height: 1; }
.nn-price small { display: block; margin-top: 2px; font-size: 12px; color: #9aa3ad; font-weight: 700; }
.nn-price small b { color: var(--nn-green); }
.nn-buy {
  flex: 0 0 48%; background: var(--nn-green); color: #fff; border: 0; border-radius: 14px;
  min-height: 54px; font-size: 16px; font-weight: 800; letter-spacing: .03em;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.nn-buy:hover { background: var(--nn-green-dark); }

.nn-overlay, .nn-sheet { display: none; }
.nn-overlay.on, .modal-overlay.on { display: block; position: fixed; inset: 0; background: rgba(20,24,32,.45); z-index: 80; }
.nn-sheet.on {
  display: block; position: fixed; z-index: 90; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(420px, calc(100% - 28px)); background: #fff; border-radius: 18px; padding: 16px;
  max-height: min(80vh, 520px); overflow: auto;
}
.nn-sheet-x, .nn-back {
  border: 0; background: none; font-size: 22px; line-height: 1; color: #66707c;
}
.nn-sheet h3 { margin: 0; font-size: 18px; }
.nn-sheet-head, .nn-data-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.nn-sheet p { margin: 4px 0 12px; color: #66707c; font-size: 13px; }
.nn-prize {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  border: 1px solid var(--nn-line); border-radius: 12px; padding: 12px;
}
.nn-prize b { display: block; }
.nn-tag { background: #e7f6ec; color: var(--nn-green); border-radius: 999px; font-size: 11px; font-weight: 800; padding: 3px 8px; }

.modal-overlay { display: none; }
.modal-box {
  display: none; position: fixed; inset: 0; z-index: 90; background: var(--nn-bg); overflow: auto;
  transform: none; width: auto; max-height: none; border-radius: 0; padding: 0; left: 0; top: 0;
}
.modal-box.on { display: block; }
.nn-data { width: min(var(--nn-max), 100%); margin: 0 auto; min-height: 100vh; background: #fff; padding: 8px 16px 120px; }
.nn-steps-buy { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 8px 0 18px; text-align: center; }
.nn-steps-buy span { display: block; font-size: 11px; color: #98a2ad; margin-top: 4px; }
.nn-steps-buy i {
  width: 28px; height: 28px; border-radius: 999px; display: inline-grid; place-items: center;
  background: #e8edf3; color: #98a2ad; font-style: normal; font-weight: 800; font-size: 13px;
}
.nn-steps-buy .done i { background: #f8d0d0; color: #9b1c1c; }
.nn-steps-buy .now i { background: #c41616; color: #fff; }
.nn-steps-buy .now span { color: #9b1c1c; font-weight: 700; }
.nn-data h1 { margin: 0 0 4px; font-size: 22px; }
.nn-data .lead { margin: 0 0 16px; color: #66707c; font-size: 14px; }
.nn-data label { display: block; font-size: 14px; font-weight: 700; margin: 12px 0 6px; }
.nn-data input {
  width: 100%; border: 1px solid #f0d4d4; border-radius: 12px; padding: 14px 12px; font-size: 16px; background: #fff; color: var(--nn-ink);
}
.nn-data input:focus { outline: none; border-color: #c41616; box-shadow: 0 0 0 3px rgba(196, 22, 22, .15); }
.nn-note { margin: 6px 0 0; color: #8b95a1; font-size: 12px; }
.nn-pay {
  position: fixed; left: 50%; transform: translateX(-50%); bottom: 0; width: min(var(--nn-max), 100%);
  background: #fff; border-top: 1px solid var(--nn-line); padding: 10px 12px 12px;
  display: flex; align-items: center; gap: 10px; z-index: 95;
}
.nn-pay .meta { flex: 0 0 38%; }
.nn-pay .meta b { display: block; font-size: 13px; }
.nn-pay .meta strong { font-size: 20px; }
.nn-pay .meta small { color: #9aa3ad; font-weight: 700; }
.btn-checkout {
  flex: 1; border: 0; border-radius: 12px; min-height: 52px; background: #e7b4b4; color: #fff;
  font-size: 16px; font-weight: 800; transition: background .2s ease;
}
.btn-checkout.is-ready { background: #c41616; }
.btn-checkout.is-ready:hover { background: #9f1010; }
.nn-accept { margin-top: 16px; background: #f7f8fa; border-radius: 12px; padding: 10px 12px; color: #66707c; font-size: 12px; line-height: 1.45; }

@media (min-width: 760px) {
  .nn-page { padding-top: 28px; }
}
@media (max-width: 460px) {
  .nn-shell, .nn-dock { width: calc(100% - 16px); }
  .nn-wa { right: 10px; }
}
