/* NoiraHosting theme layer — dark neon reskin for Paymenter default theme */

.nh-gradient-text {
    background: linear-gradient(92deg, var(--g1) 0%, var(--a2) 45%, var(--g2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ---------- Hero ---------- */
.nh-hero {
    position: relative;
    overflow: hidden;
    border-radius: 1.25rem;
    border: 1px solid hsl(var(--color-neutral) / 0.7);
    padding: 4.5rem 1.5rem 3.5rem;
    text-align: center;
    background:
        radial-gradient(55% 90% at 50% -10%, rgba(var(--a2r), 0.28), transparent 70%),
        radial-gradient(40% 60% at 85% 110%, rgba(var(--g1r), 0.12), transparent 70%),
        hsl(var(--color-background-secondary));
}
.nh-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(hsl(var(--color-neutral) / 0.35) 1px, transparent 1px),
        linear-gradient(90deg, hsl(var(--color-neutral) / 0.35) 1px, transparent 1px);
    background-size: 44px 44px;
    -webkit-mask-image: radial-gradient(70% 80% at 50% 20%, black, transparent 80%);
    mask-image: radial-gradient(70% 80% at 50% 20%, black, transparent 80%);
    opacity: 0.25;
    pointer-events: none;
}
.nh-hero > * { position: relative; }
.nh-hero h1 {
    font-size: clamp(2.4rem, 6vw, 4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
.nh-hero-badge {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--a2r), 0.45);
    color: var(--g2);
    background: rgba(var(--a2r), 0.10);
    margin-bottom: 1.4rem;
}
.light .nh-hero-badge { color: var(--a1); }
.nh-hero-sub {
    margin: 1.1rem auto 0;
    max-width: 34rem;
    font-size: 1.05rem;
    color: hsl(var(--color-muted));
}
.nh-hero-cta {
    display: flex;
    gap: 0.8rem;
    justify-content: center;
    margin-top: 2rem;
    flex-wrap: wrap;
}
.nh-hero-feats {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.6rem;
    justify-content: center;
    margin-top: 2.6rem;
    font-size: 0.82rem;
    font-weight: 600;
    color: hsl(var(--color-muted));
}
.nh-hero-feats span { display: inline-flex; align-items: center; gap: 0.4rem; }
.nh-hero-feats svg { width: 0.95rem; height: 0.95rem; color: var(--g1); }

/* ---------- Buttons ---------- */
.nh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.6rem;
    border-radius: 0.6rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.nh-btn:active { transform: translateY(1px); }
.nh-btn-primary {
    color: #fff;
    background: linear-gradient(90deg, var(--a1), var(--a2));
    box-shadow: 0 0 0 1px rgba(var(--a2r), 0.4), 0 10px 28px -10px rgba(var(--a2r), 0.65);
}
.nh-btn-primary:hover {
    box-shadow: 0 0 0 1px rgba(var(--a2r), 0.7), 0 14px 34px -10px rgba(var(--a2r), 0.8);
    transform: translateY(-1px);
}
.nh-btn-ghost {
    color: hsl(var(--color-base));
    border: 1px solid hsl(var(--color-neutral));
    background: hsl(var(--color-background-secondary) / 0.6);
}
.nh-btn-ghost:hover { border-color: rgba(var(--a2r), 0.6); }

/* Primary buttons globally get a subtle neon edge on hover */
.dark button.bg-primary:hover, .dark a.bg-primary:hover, .dark .bg-primary.hover\:bg-primary\/80:hover {
    box-shadow: 0 0 0 1px rgba(var(--a2r), 0.5), 0 8px 24px -8px rgba(var(--a2r), 0.55);
}

/* ---------- Cards ---------- */
.nh-card {
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.nh-card:hover {
    transform: translateY(-3px);
    border-color: rgba(var(--a2r), 0.55);
    box-shadow: 0 0 0 1px rgba(var(--a2r), 0.28), 0 14px 34px -12px rgba(var(--a2r), 0.35);
}

.nh-price {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}
.nh-price small {
    font-size: 0.75rem;
    font-weight: 600;
    color: hsl(var(--color-muted));
    letter-spacing: 0;
}
.nh-chip {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(var(--g1r), 0.4);
    color: var(--g1);
    background: rgba(var(--g1r), 0.08);
}
.nh-chip--oos {
    border-color: hsl(0 75% 60% / 0.45);
    color: hsl(0 85% 68%);
    background: hsl(0 75% 60% / 0.1);
}

/* ---------- Product detail page ---------- */
.nh-pdp-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 2rem;
    align-items: start;
}
@media (max-width: 900px) {
    .nh-pdp-grid { grid-template-columns: 1fr; }
    .nh-pdp-side { position: static !important; }
}
.nh-pdp-side { position: sticky; top: 5.5rem; }

.nh-pdp-art {
    border-radius: 0.9rem;
    overflow: hidden;
    border: 1px solid hsl(var(--color-neutral));
    position: relative;
}
.nh-pdp-art img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.nh-pdp-art-accent {
    height: 0.6rem;
}

.nh-panel {
    background: hsl(var(--color-background-secondary));
    border: 1px solid hsl(var(--color-neutral));
    border-radius: 0.9rem;
    padding: 1.5rem;
}
.nh-panel + .nh-panel { margin-top: 1.25rem; }

.nh-panel h3 { font-weight: 700; margin-bottom: 1rem; }

.nh-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.9rem;
}
.nh-spec {
    border: 1px solid hsl(var(--color-neutral) / 0.7);
    border-radius: 0.65rem;
    padding: 0.75rem 0.9rem;
    background: hsl(var(--color-background) / 0.35);
}
.nh-spec b { display: block; font-size: 1.05rem; font-weight: 800; }
.nh-spec span {
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: hsl(var(--color-muted));
}

.nh-includes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 0.65rem 1.4rem;
    font-size: 0.875rem;
}
.nh-includes div { display: flex; align-items: center; gap: 0.55rem; }
.nh-includes svg { width: 1rem; height: 1rem; flex-shrink: 0; color: var(--g2); }

.nh-buy-meta {
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--color-neutral));
    font-size: 0.85rem;
    color: hsl(var(--color-muted));
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.nh-buy-meta div { display: flex; align-items: center; gap: 0.5rem; }
.nh-buy-meta svg { width: 1rem; height: 1rem; flex-shrink: 0; }
.nh-buy-meta a { text-decoration: underline; text-underline-offset: 2px; }

.nh-crumb {
    font-size: 0.8rem;
    color: hsl(var(--color-muted));
    margin-bottom: 1.1rem;
}
.nh-crumb a { color: hsl(var(--color-muted)); }
.nh-crumb a:hover { color: var(--g1); }

/* ---------- Nav ---------- */
.dark nav, .dark header {
    backdrop-filter: blur(10px);
}

/* Scrollbar (subtle, matches theme) */
.dark ::-webkit-scrollbar { width: 10px; height: 10px; }
.dark ::-webkit-scrollbar-thumb { background: var(--dim); border-radius: 6px; }
.dark ::-webkit-scrollbar-thumb:hover { background: var(--a2); }

/* ---------- Product page background art ---------- */
.nh-pdp-bg {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 560px;
    background-size: cover;
    background-position: center 30%;
    opacity: 0.22;
    filter: blur(2px) saturate(1.1);
    -webkit-mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, transparent 100%);
    pointer-events: none;
    z-index: 0;
}
.light .nh-pdp-bg { opacity: 0.15; }
.nh-pdp-wrap { position: relative; z-index: 1; }

/* ---------- Edition toggle ---------- */
.nh-ed-btn {
    padding: 0.5rem 1.4rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: hsl(var(--color-muted));
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.nh-ed-btn:hover { color: hsl(var(--color-base)); }
.nh-ed-btn--active {
    color: #fff;
    background: linear-gradient(90deg, var(--a1), var(--a2));
    box-shadow: 0 4px 16px -4px rgba(var(--a2r), 0.6);
}

/* Dimmer backdrop for text-heavy pages */
.nh-pdp-bg--dim {
    opacity: 0.12;
    filter: blur(5px) saturate(0.9);
}

/* Status page */
.nh-status-banner { display:flex; align-items:center; gap:.6rem; padding:.9rem 1.1rem; border-radius:.75rem; font-weight:600; border:1px solid; }
.nh-status-ok { background:rgba(74,222,128,.1); border-color:rgba(74,222,128,.35); color:#4ade80; }
.nh-status-down { background:rgba(248,113,113,.1); border-color:rgba(248,113,113,.4); color:#f87171; }
.nh-status-degraded { background:rgba(251,191,36,.1); border-color:rgba(251,191,36,.35); color:#fbbf24; }
.nh-dot { width:.6rem; height:.6rem; border-radius:9999px; flex-shrink:0; }
.nh-dot--ok { background:#4ade80; box-shadow:0 0 8px #4ade80; animation:nh-pulse 2s infinite; }
.nh-dot--down { background:#f87171; box-shadow:0 0 8px #f87171; animation:nh-pulse 2s infinite; }
.nh-dot--warn { background:#fbbf24; box-shadow:0 0 8px #fbbf24; }
@keyframes nh-pulse { 0%,100%{opacity:1} 50%{opacity:.4} }
.nh-status-row { display:flex; align-items:center; justify-content:space-between; gap:1rem; padding:.9rem 1.1rem; border-radius:.75rem; background:var(--nh-card-bg,rgba(255,255,255,.03)); border:1px solid rgba(148,163,184,.15); }
.nh-pill { font-size:.75rem; font-weight:700; padding:.2rem .7rem; border-radius:9999px; white-space:nowrap; }
.nh-pill--up { background:rgba(74,222,128,.12); color:#4ade80; border:1px solid rgba(74,222,128,.3); }
.nh-pill--down { background:rgba(248,113,113,.12); color:#f87171; border:1px solid rgba(248,113,113,.3); }
.nh-meter { height:.5rem; border-radius:9999px; background:rgba(148,163,184,.15); overflow:hidden; }
.nh-meter__fill { height:100%; border-radius:9999px; background:linear-gradient(90deg,var(--a2),var(--g1)); transition:width .4s ease; }
.nh-live { display:inline-flex; align-items:center; gap:.45rem; font-size:.8rem; font-weight:700; white-space:nowrap; }
.nh-live--up { color:#4ade80; }
.nh-live--down { color:#f87171; }

/* Product page v2 */
.nh-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:1rem; margin-top:.75rem; }
.nh-step { background:rgba(255,255,255,.03); border:1px solid rgba(148,163,184,.12); border-radius:.75rem; padding:.9rem 1rem; }
.nh-step b { display:block; font-size:.9rem; margin:.4rem 0 .25rem; }
.nh-step p { font-size:.78rem; color:rgba(255,255,255,.5); line-height:1.45; margin:0; }
.nh-step__num { display:inline-flex; align-items:center; justify-content:center; width:1.6rem; height:1.6rem; border-radius:9999px; font-size:.8rem; font-weight:800; color:#0f172a; background:linear-gradient(135deg,var(--a2),var(--g1)); }
@media (max-width:640px){ .nh-steps { grid-template-columns:1fr; } }
.nh-faq details { border:1px solid rgba(148,163,184,.12); border-radius:.6rem; padding:.7rem .95rem; margin-top:.6rem; background:rgba(255,255,255,.02); }
.nh-faq summary { cursor:pointer; font-weight:600; font-size:.9rem; list-style:none; display:flex; justify-content:space-between; align-items:center; }
.nh-faq summary::-webkit-details-marker { display:none; }
.nh-faq summary::after { content:"+"; color:var(--g2); font-weight:800; font-size:1.1rem; }
.nh-faq details[open] summary::after { content:"–"; }
.nh-faq details p { margin:.6rem 0 .1rem; font-size:.85rem; color:rgba(255,255,255,.55); line-height:1.5; }
.nh-compat p { font-size:.85rem; color:rgba(255,255,255,.65); margin:.45rem 0; line-height:1.5; }
.nh-upsell { border-left:3px solid var(--a2); }
.nh-upsell svg { width:1.1rem; height:1.1rem; color:var(--a2); }

/* Product page v3 */
.nh-pdp-hero { position:relative; border-radius:1rem; overflow:hidden; margin-bottom:1.25rem; }
.nh-pdp-hero img { width:100%; height:clamp(200px,30vw,340px); object-fit:cover; display:block; }
.nh-pdp-hero-fade { position:absolute; inset:0; background:linear-gradient(180deg,transparent 30%,rgba(10,10,18,.55) 75%,rgba(10,10,18,.92) 100%); }
.nh-pdp-hero-title { position:absolute; left:1.5rem; bottom:2rem; }
.nh-pdp-hero-title h1 { font-size:clamp(1.5rem,3vw,2.25rem); font-weight:800; line-height:1.1; margin:.25rem 0 0; }
.nh-pdp-hero-cat { font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; color:var(--g1); }
.nh-buy { border-top:3px solid transparent; border-image:linear-gradient(90deg,var(--a2),var(--g1)) 1; }
.nh-side-title { font-size:.95rem; font-weight:700; margin-bottom:.75rem; }
.nh-hw { display:grid; grid-template-columns:1fr 1fr; gap:.65rem; }
.nh-hw > div { display:flex; flex-direction:column; gap:.1rem; background:rgba(255,255,255,.03); border:1px solid rgba(148,163,184,.12); border-radius:.6rem; padding:.6rem .75rem; }
.nh-hw svg { width:1.05rem; height:1.05rem; color:var(--g2); margin-bottom:.2rem; }
.nh-hw b { font-size:.82rem; }
.nh-hw span { font-size:.68rem; color:rgba(255,255,255,.45); text-transform:uppercase; letter-spacing:.05em; }
.nh-rel__row { display:flex; justify-content:space-between; align-items:center; gap:.75rem; padding:.55rem .7rem; border-radius:.5rem; font-size:.85rem; transition:background .15s; }
.nh-rel__row:hover { background:rgba(var(--a2r),.08); }
.nh-rel__price { color:var(--g2); font-weight:700; font-size:.8rem; white-space:nowrap; }

/* Product description */
.nh-desc { padding:1.25rem 1.5rem; }
.nh-desc__lede { font-size:1.02rem; line-height:1.65; color:rgba(255,255,255,.85); margin:0; font-weight:500; }
.nh-desc__tip { display:flex; gap:.6rem; align-items:flex-start; margin-top:.9rem; padding:.7rem .9rem; border-radius:.6rem; background:rgba(var(--a2r),.07); border:1px solid rgba(var(--a2r),.2); font-size:.85rem; line-height:1.55; color:rgba(255,255,255,.6); }
.nh-desc__tip svg { width:1rem; height:1rem; color:var(--g2); flex-shrink:0; margin-top:.15rem; }
.light .nh-desc__lede { color:rgba(20,20,35,.85); }
.light .nh-desc__tip { color:rgba(20,20,35,.6); }

/* Section header accents */
.nh-panel h3 { position:relative; padding-bottom:.5rem; margin-bottom:.75rem; }
.nh-panel h3::after { content:""; position:absolute; left:0; bottom:0; width:2.2rem; height:2px; border-radius:2px; background:linear-gradient(90deg,var(--a2),var(--g1)); }
.nh-desc__lede::first-letter { }
