/* NewPrompt — main.css */

/* ─── Design tokens ─────────────────────────────────────────── */
:root {
    --np-bg:           #0a0c12;
    --np-bg-card:      #111318;
    --np-bg-input:     #0d0f15;
    --np-bg-hover:     rgba(255,255,255,0.028);
    --np-border:       rgba(255,255,255,0.07);
    --np-border-focus: rgba(99,102,241,0.5);

    --np-accent:       #635bff;
    --np-accent-light: #8b7dff;
    --np-accent-dim:   rgba(99,91,255,0.1);
    --np-hot:          #ff5a2f;
    --np-hot-light:    #ff7a45;

    --np-text-primary:   #f1f5f9;
    --np-text-secondary: #94a3b8;
    --np-text-muted:     #475569;

    --np-success:     #22c55e;
    --np-error:       #ef4444;
    --np-error-dim:   rgba(239,68,68,0.1);
    --np-error-border:rgba(239,68,68,0.35);

    --np-radius:    14px;
    --np-radius-sm: 8px;
    --np-radius-lg: 20px;

    --np-font:      system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --np-font-mono: 'Cascadia Code', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --np-shadow: 0 16px 48px rgba(0,0,0,0.28);
}

/* ─── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    background: var(--np-bg);
    color: var(--np-text-primary);
    font-family: var(--np-font);
    font-size: 0.9375rem;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }

img, svg { display: block; max-width: 100%; }

a {
    color: var(--np-accent-light);
    text-decoration: none;
}

a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
    margin: 0;
    line-height: 1.2;
    font-weight: 700;
    color: var(--np-text-primary);
}

p { margin: 0; }

ul, ol { margin: 0; padding: 0; }

/* ─── Layout containers ──────────────────────────────────────── */
.np-wrap,
.np-section-inner {
    width: 100%;
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

/* ─── Header ─────────────────────────────────────────────────── */
.np-header {
    border-bottom: 1px solid var(--np-border);
    background: rgba(10,12,18,0.9);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.np-header-inner {
    max-width: 1120px;
    margin-inline: auto;
    padding-inline: 1.5rem;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.np-logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.np-logo:hover { text-decoration: none; opacity: 0.88; }

/* Logo mark: SVG logotype, no extra CSS decoration */
.np-logo-mark {
    display: block;
    flex-shrink: 0;
}

.np-nav { display: flex; align-items: center; gap: 0.25rem; }

.np-nav-link {
    color: var(--np-text-secondary);
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.4rem 0.75rem;
    border-radius: var(--np-radius-sm);
    transition: background 0.15s, color 0.15s;
    text-decoration: none;
}

.np-nav-link:hover {
    background: var(--np-bg-hover);
    color: var(--np-text-primary);
    text-decoration: none;
}

.np-nav-link--pill {
    padding: 0.32rem 0.72rem;
    border-radius: 999px;
    color: #fff;
    background: linear-gradient(135deg, var(--np-hot), #ff3d18);
    box-shadow: 0 8px 26px rgba(255,90,47,0.35);
}

.np-nav-link--pill:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--np-hot-light), var(--np-hot));
}

.np-nav-link--pill--accent {
    background: linear-gradient(135deg, var(--np-accent), #5146e8);
    box-shadow: 0 8px 26px rgba(99,91,255,0.3);
}

.np-nav-link--pill--accent:hover {
    color: #fff;
    background: linear-gradient(135deg, var(--np-accent-light), var(--np-accent));
}

/* ─── Hamburger ──────────────────────────────────────────────── */
.np-hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 44px;
    height: 44px;
    padding: 10px 9px;
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-sm);
    background: var(--np-bg-card);
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.15s, border-color 0.15s;
}

.np-hamburger:hover { border-color: rgba(255,255,255,0.18); }

.np-hamburger__line {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--np-text-secondary);
    border-radius: 999px;
    transition: transform 0.22s ease, opacity 0.18s ease;
    transform-origin: center;
}

.np-hamburger.is-open { background: var(--np-accent); border-color: var(--np-accent); }
.np-hamburger.is-open .np-hamburger__line { background: #fff; }
.np-hamburger.is-open .np-hamburger__line:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.np-hamburger.is-open .np-hamburger__line:nth-child(2) { opacity: 0; transform: scaleX(0); }
.np-hamburger.is-open .np-hamburger__line:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 640px) {
    .np-hamburger { display: flex; }
    .np-nav        { display: none; }
}

/* ─── Mobile nav overlay + slide panel ──────────────────────── */
.np-mobile-nav {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
}

.np-mobile-nav[aria-hidden="false"] { display: block; }

.np-mobile-nav__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0);
    transition: background 0.28s ease;
}

.np-mobile-nav.is-open .np-mobile-nav__backdrop { background: rgba(0,0,0,0.6); }

.np-mobile-nav__panel {
    position: absolute;
    top: 0; right: 0; bottom: 0;
    width: min(85vw, 320px);
    display: flex;
    flex-direction: column;
    background: #111318;
    border-left: 1px solid var(--np-border);
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.np-mobile-nav.is-open .np-mobile-nav__panel { transform: translateX(0); }

.np-mobile-nav__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1rem;
    height: 52px;
    border-bottom: 1px solid var(--np-border);
    flex-shrink: 0;
}

.np-mobile-nav__title {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--np-text-primary);
    letter-spacing: -0.01em;
}

.np-mobile-nav__close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--np-text-muted);
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}

.np-mobile-nav__close:hover {
    background: rgba(255,255,255,0.06);
    color: var(--np-text-primary);
}

.np-mobile-nav__cats {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

/* ─── Mobile nav category accordion ─────────────────────────── */
.np-mmenu-cat { border-bottom: 1px solid var(--np-border); }

.np-mmenu-cat-hdr {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.85rem 1rem;
    background: transparent;
    border: none;
    cursor: pointer;
    font: inherit;
    min-height: 48px;
    transition: background 0.12s;
}

.np-mmenu-cat-hdr:hover { background: rgba(255,255,255,0.03); }

.np-mmenu-cat-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.np-mmenu-cat-icon {
    font-size: 0.95rem;
    line-height: 1;
    /* default color — overridden per-category below */
    color: var(--np-text-muted);

    filter: drop-shadow(0 0 8px currentColor);
    font-size: 1rem;
}

/* Per-category icon + name colors */
[data-cat-key="prompt-builders"]  .np-mmenu-cat-icon { color: #a78bfa; 
    filter: drop-shadow(0 0 8px currentColor);
    font-size: 1rem;
}
[data-cat-key="structured-output"] .np-mmenu-cat-icon { color: #38bdf8; 
    filter: drop-shadow(0 0 8px currentColor);
    font-size: 1rem;
}
[data-cat-key="coding-workflows"]  .np-mmenu-cat-icon { color: #f59e0b; 
    filter: drop-shadow(0 0 8px currentColor);
    font-size: 1rem;
}
[data-cat-key="context-tools"]     .np-mmenu-cat-icon { color: #34d399; 
    filter: drop-shadow(0 0 8px currentColor);
    font-size: 1rem;
}
[data-cat-key="prompt-utilities"]  .np-mmenu-cat-icon { color: #fb7185; 
    filter: drop-shadow(0 0 8px currentColor);
    font-size: 1rem;
}

/* Mobile menu: category names always white — only icons are category-colored */
.np-mmenu-cat-name {
    font-size: 0.875rem;
    font-weight: 650;
    color: #ffffff;
}

.np-mmenu-cat-count {
    padding: 2px 7px;
    border-radius: 4px;
    background: rgba(255,255,255,0.09);
    color: var(--np-text-secondary);
    font-size: 0.68rem;
    font-weight: 700;
}

.np-mmenu-cat-chevron {
    color: var(--np-text-muted);
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.np-mmenu-cat-hdr.is-open .np-mmenu-cat-chevron { transform: rotate(180deg); }

/* ─── Mobile nav tool rows ───────────────────────────────────── */
.np-mmenu-tools { padding: 4px 0.625rem 0.625rem; }

.np-mmenu-tools[hidden] { display: none !important; }

.np-mmenu-tool {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.6rem 0.625rem;
    border-radius: 8px;
    min-height: 44px;
    text-decoration: none;
    transition: background 0.12s;
}

.np-mmenu-tool:hover { background: rgba(255,255,255,0.045); text-decoration: none; }

.np-mmenu-tool-name {
    font-size: 0.82rem;
    color: var(--np-text-secondary);
    line-height: 1.3;
}

.np-mmenu-tool-badge {
    font-size: 0.56rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    padding: 2px 5px;
    border-radius: 3px;
    flex-shrink: 0;
}

.np-mmenu-tool-badge--live {
    background: rgba(251,191,36,0.12);
    color: #fbbf24;
    border: 1px solid rgba(251,191,36,0.28);
}

.np-mmenu-tool-badge--soon {
    background: rgba(255,255,255,0.04);
    color: var(--np-text-muted);
    border: 1px solid var(--np-border);
}

/* ─── Footer ─────────────────────────────────────────────────── */
.np-footer {
    border-top: 1px solid var(--np-border);
    padding: 1.25rem 1.5rem;
    margin-top: 1.25rem;
}

.np-footer-inner {
    max-width: 1120px;
    margin-inline: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.np-footer-left {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.np-footer-logo-mark {
    color: var(--np-accent-light);
    font-size: 0.9rem;
    line-height: 1;
}

.np-footer-brand-text {
    color: var(--np-text-secondary);
    font-size: 0.8rem;
    font-weight: 700;
}

.np-footer-copy {
    color: var(--np-text-muted);
    font-size: 0.8rem;
}

.np-footer-links {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.np-footer-links a {
    color: var(--np-text-muted);
    font-size: 0.78rem;
    text-decoration: none;
}

.np-footer-links a:hover {
    color: var(--np-text-secondary);
    text-decoration: none;
}

/* ─── Shared buttons ─────────────────────────────────────────── */
.np-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 40px;
    padding: 0.55rem 1rem;
    border: 1px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s, transform 0.1s, opacity 0.15s;
}

.np-btn:active { transform: scale(0.975); }

.np-btn--primary {
    background: linear-gradient(135deg, var(--np-accent), #5146e8);
    color: #fff;
    box-shadow: 0 8px 24px rgba(99,91,255,0.3);
}

.np-btn--primary:hover {
    background: linear-gradient(135deg, var(--np-accent-light), var(--np-accent));
    text-decoration: none;
    color: #fff;
}

.np-btn--ghost {
    border-color: var(--np-border);
    background: rgba(255,255,255,0.03);
    color: var(--np-text-secondary);
}

.np-btn--ghost:hover {
    background: var(--np-bg-hover);
    border-color: rgba(255,255,255,0.12);
    color: var(--np-text-primary);
    text-decoration: none;
}

.np-btn:disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

/* ─── Badges ─────────────────────────────────────────────────── */
.np-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.np-badge--live {
    background: rgba(34,197,94,0.12);
    color: #4ade80;
    border: 1px solid rgba(34,197,94,0.25);
}

.np-badge--soon {
    background: rgba(148,163,184,0.08);
    color: var(--np-text-muted);
    border: 1px solid var(--np-border);
}

.np-badge--lg {
    font-size: 0.8125rem;
    padding: 0.35rem 0.85rem;
}

/* ─── Shared text links ──────────────────────────────────────── */
.np-link {
    color: var(--np-accent-light);
    text-decoration: none;
    font-weight: 500;
}

.np-link:hover { text-decoration: underline; }

.np-breadcrumb {
    color: var(--np-text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
}

.np-breadcrumb:hover {
    color: var(--np-text-primary);
    text-decoration: none;
}

/* ─── Page header (tools listing, category) ──────────────────── */
.np-page-header {
    max-width: 1120px;
    margin-inline: auto;
    padding: 3rem 1.5rem 2rem;
}

.np-page-kicker {
    font-size: 0.8125rem;
    color: var(--np-text-muted);
    margin-bottom: 0.5rem;
}

.np-page-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.np-page-sub {
    color: var(--np-text-secondary);
    font-size: 1rem;
    max-width: 560px;
}

/* ─── Category section ───────────────────────────────────────── */
.np-category-section {
    max-width: 1120px;
    margin-inline: auto;
    padding: 1rem 1.5rem 2.5rem;
}

.np-category-header {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.np-category-icon {
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 0.2rem;
    color: var(--np-accent-light);
}

.np-category-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.15rem;
}

.np-category-link {
    color: inherit;
    text-decoration: none;
}

.np-category-link:hover { color: var(--np-accent-light); text-decoration: none; }

.np-category-desc {
    color: var(--np-text-secondary);
    font-size: 0.875rem;
}

/* ─── Tool cards grid ────────────────────────────────────────── */
.np-tool-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 0.875rem;
}

.np-tool-card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.1rem 1.25rem;
    background: var(--np-bg-card);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.np-tool-card:hover {
    border-color: rgba(99,102,241,0.3);
    background: linear-gradient(180deg, rgba(99,102,241,0.05), rgba(99,102,241,0.02));
    transform: translateY(-1px);
    text-decoration: none;
}

.np-tool-card--soon {
    opacity: 0.6;
    pointer-events: none;
    cursor: default;
}

.np-tool-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.np-tool-name {
    font-weight: 650;
    font-size: 0.9375rem;
    color: var(--np-text-primary);
}

.np-tool-desc {
    color: var(--np-text-secondary);
    font-size: 0.8125rem;
    line-height: 1.5;
}

/* ─── Home hero ──────────────────────────────────────────────── */
.np-home { padding-bottom: 4rem; }

.np-hero {
    max-width: 1120px;
    margin-inline: auto;
    padding: 5rem 1.5rem 3.5rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.np-hero-kicker {
    color: var(--np-accent-light);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.np-hero-title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
    max-width: 720px;
}

.np-hero-sub {
    color: var(--np-text-secondary);
    font-size: 1.0625rem;
    max-width: 560px;
    line-height: 1.65;
}

.np-hero-stats {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--np-text-muted);
    font-size: 0.875rem;
}

.np-hero-stat strong { color: var(--np-text-primary); }
.np-hero-stat-sep { opacity: 0.4; }

/* ─── Tool page container ────────────────────────────────────── */
.np-tool-page {
    max-width: 1120px;
    margin-inline: auto;
    padding: 2rem 1.5rem 4rem;
}

/* ─── Content blocks (SEO sections) ─────────────────────────── */
.np-content-blocks {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 3.5rem;
    border-top: 1px solid var(--np-border);
    padding-top: 3rem;
    max-width: 760px;
}

.np-content-block-title {
    font-size: 1.125rem;
    margin-bottom: 0.75rem;
}

.np-content-block-body {
    color: var(--np-text-secondary);
    line-height: 1.7;
}

.np-content-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.np-content-list li {
    color: var(--np-text-secondary);
    padding-left: 1.25rem;
    position: relative;
    line-height: 1.6;
}

.np-content-list li::before {
    content: '–';
    position: absolute;
    left: 0;
    color: var(--np-text-muted);
}

.np-content-list--tips li::before {
    content: '✦';
    font-size: 0.6rem;
    top: 0.35rem;
    color: var(--np-accent);
}

.np-faq {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.np-faq-item {
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-sm);
    padding: 0.75rem 1rem;
}

.np-faq-q {
    cursor: pointer;
    font-weight: 600;
    color: var(--np-text-primary);
    font-size: 0.9375rem;
}

.np-faq-a {
    margin-top: 0.5rem;
    color: var(--np-text-secondary);
    line-height: 1.65;
    font-size: 0.9rem;
}

/* ─── Related tools ──────────────────────────────────────────── */
.np-related-tools {
    margin-top: 3rem;
}

.np-related-tools-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

/* ─── Coming soon page ───────────────────────────────────────── */
.np-coming-soon {
    max-width: 1120px;
    margin-inline: auto;
    padding: 5rem 1.5rem;
    display: flex;
    justify-content: center;
}

.np-coming-soon-card {
    background: var(--np-bg-card);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius-lg);
    padding: 3rem 2.5rem;
    max-width: 520px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.np-coming-soon-kicker { font-size: 0.8125rem; }

.np-coming-soon-title {
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}

.np-coming-soon-desc {
    color: var(--np-text-secondary);
    line-height: 1.6;
}

.np-coming-soon-hint {
    font-size: 0.875rem;
    color: var(--np-text-muted);
    padding-top: 0.5rem;
}

/* ─── Tools index / category pages ──────────────────────────── */
.np-tools-index, .np-category-page { padding-bottom: 4rem; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
    .np-hero { padding: 3rem 1rem 2rem; }
    .np-tool-grid { grid-template-columns: 1fr; }
    .np-coming-soon-card { padding: 2rem 1.25rem; }
    .np-footer-inner { flex-direction: column; align-items: flex-start; gap: 0.4rem; }
    /* Tighter footer padding on mobile */
    .np-footer { padding: 1rem; margin-top: 0.75rem; }
    /* Header stays single-line on small phones */
    .np-header-inner { height: 46px; padding-inline: 1rem; }
    .np-logo-word { font-size: 0.9rem; }
}

/* 390px — iPhone-sized phones */
@media (max-width: 390px) {
    .np-wrap, .np-section-inner { padding-inline: 0.875rem; }
    .np-header-inner { padding-inline: 0.875rem; }
    .np-footer { padding: 0.875rem; }
    /* Prevent tool name overflow in cards */
    .np-tool-name, .np-tc-title { word-break: break-word; }
}

/* 360px — smallest Android baseline */
@media (max-width: 360px) {
    .np-logo-word { display: none; } /* show only logo mark on tiny screens */
    .np-hero-badge { font-size: 0.65rem; }
}


.np-btn--hot {
    background: linear-gradient(135deg, var(--np-hot), #ff3d18);
    color: #fff;
    box-shadow: 0 6px 18px rgba(255,90,47,0.22);
}

.np-btn--hot:hover {
    background: linear-gradient(135deg, var(--np-hot-light), var(--np-hot));
    color: #fff;
    text-decoration: none;
}



/* NewPrompt logo mark — SVG element, no CSS background/border (SVG brings its own) */
.np-logo-mark {
    display: block;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

/* Footer logo mark — same SVG, smaller */
.np-footer-logo-mark {
    display: block;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.np-logo-word,
.np-logo-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-weight: 950;
    letter-spacing: -0.045em;
    font-size: 1.05rem;
    line-height: 1;
}

.np-logo-word-main,
.np-logo-new { color: #ffffff; }
.np-logo-word-accent,
.np-logo-prompt { color: #818cf8; }

.np-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.np-footer-brand .np-logo-word {
    font-size: 0.9rem;
}


/* ─── Cookie consent ───────────────────────────────────────── */
.np-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    padding: 0.75rem 1rem;
    background: rgba(10, 12, 20, 0.92);
    border-top: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
}
.np-cookie-consent[hidden] { display: none !important; }
.np-cookie-consent__inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 1rem 1.25rem;
    background: rgba(20,23,33,0.98);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.np-cookie-consent__content { min-width: 0; }
.np-cookie-consent__title {
    color: #fff;
    font-size: 0.88rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
}
.np-cookie-consent__text {
    color: var(--np-text-secondary);
    font-size: 0.78rem;
    line-height: 1.55;
}
.np-cookie-consent__text a { color: var(--np-accent-light); text-decoration: none; }
.np-cookie-consent__text a:hover { text-decoration: underline; }
.np-cookie-consent__actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-shrink: 0;
}
.np-cookie-btn {
    min-height: 38px;
    padding: 0.5rem 1.1rem;
    border-radius: 999px;
    font: inherit;
    font-size: 0.8rem;
    font-weight: 800;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.np-cookie-btn--decline {
    border: 1px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: var(--np-text-secondary);
}
.np-cookie-btn--decline:hover {
    background: rgba(255,255,255,0.1);
    color: #fff;
}
.np-cookie-btn--accept {
    border: 1px solid rgba(99,91,255,0.6);
    background: rgba(99,91,255,0.85);
    color: #fff;
}
.np-cookie-btn--accept:hover {
    background: var(--np-accent);
    border-color: var(--np-accent);
}
@media (max-width: 640px) {
    .np-cookie-consent__inner { flex-direction: column; align-items: stretch; gap: 1rem; }
    .np-cookie-consent__actions { justify-content: flex-end; }
}

/* ─── Feedback modal ────────────────────────────────────────── */
.np-footer-feedback {
    border: 0;
    background: transparent;
    color: var(--np-text-muted);
    font: inherit;
    font-size: 0.78rem;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
}

.np-footer-feedback:hover { color: var(--np-text-secondary); }

.feedback-modal {
    position: fixed;
    inset: 0;
    z-index: 500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1.25rem;
}

.feedback-modal[aria-hidden="false"] { display: flex; }

.feedback-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.feedback-modal__panel {
    position: relative;
    width: min(100%, 560px);
    max-height: min(760px, calc(100dvh - 2rem));
    overflow: auto;
    border: 1px solid rgba(129,140,248,0.24);
    border-radius: 24px;
    background: linear-gradient(180deg, #181b24 0%, #101218 100%);
    box-shadow: 0 28px 90px rgba(0,0,0,0.48);
    padding: 1.5rem;
}

.feedback-modal__close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid var(--np-border);
    background: rgba(255,255,255,0.04);
    color: var(--np-text-secondary);
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feedback-modal__close:hover {
    color: var(--np-text-primary);
    border-color: rgba(255,255,255,0.18);
}

.feedback-modal__header {
    padding-right: 2.5rem;
    margin-bottom: 1.2rem;
}

.feedback-modal__eyebrow {
    display: inline-flex;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(129,140,248,0.22);
    border-radius: 999px;
    padding: 0.2rem 0.6rem;
    color: var(--np-accent-light);
    background: var(--np-accent-dim);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.feedback-modal__header h2 {
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.15;
    margin-bottom: 0.45rem;
}

.feedback-modal__header p,
.feedback-form__note {
    color: var(--np-text-secondary);
    font-size: 0.92rem;
}

.feedback-form {
    display: grid;
    gap: 0.9rem;
}

.feedback-form__field {
    display: grid;
    gap: 0.35rem;
    color: var(--np-text-secondary);
    font-size: 0.84rem;
    font-weight: 700;
}

.feedback-form__field span { color: var(--np-text-muted); font-weight: 500; }

.feedback-form__field input,
.feedback-form__field textarea {
    width: 100%;
    border: 1px solid var(--np-border);
    border-radius: 14px;
    background: var(--np-bg-input);
    color: var(--np-text-primary);
    padding: 0.85rem 0.95rem;
    font: inherit;
    font-weight: 500;
}

.feedback-form__field textarea { resize: vertical; min-height: 150px; }

.feedback-form__field input:focus,
.feedback-form__field textarea:focus,
.feedback-modal__close:focus-visible {
    outline: 2px solid var(--np-accent-light);
    outline-offset: 3px;
}

.feedback-form__field--honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
}

.feedback-form__status {
    min-height: 1.25rem;
    color: var(--np-text-secondary);
    font-size: 0.86rem;
}

.feedback-form__status--success { color: #86efac; }
.feedback-form__status--error   { color: #fca5a5; }

.feedback-form__actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .feedback-modal { align-items: flex-end; padding: 0.75rem; }
    .feedback-modal__panel { width: 100%; border-radius: 22px; padding: 1.2rem; }
    .feedback-form__actions .np-btn { flex: 1 1 140px; justify-content: center; }
}

/* ─── Legal pages (About, Privacy, Cookies, Terms) ──────────── */
.np-legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 4rem;
}

.np-legal-page__header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--np-border);
}

.np-legal-page__header h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}

.np-legal-page__header p {
    color: var(--np-text-muted);
    font-size: 0.875rem;
}

.np-legal-page__body section {
    margin-bottom: 2rem;
}

.np-legal-page__body h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--np-text-primary);
    margin-bottom: 0.75rem;
}

.np-legal-page__body p {
    color: var(--np-text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

.np-legal-page__body ul {
    padding-left: 1.25rem;
    margin-bottom: 0.75rem;
}

.np-legal-page__body li {
    color: var(--np-text-secondary);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.35rem;
}

.np-legal-page__body strong {
    color: var(--np-text-primary);
    font-weight: 600;
}

.np-legal-page__body a {
    color: var(--np-accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.np-legal-page__contact {
    margin-top: 2.5rem;
    padding: 1.25rem 1.5rem;
    background: var(--np-bg-card);
    border: 1px solid var(--np-border);
    border-radius: var(--np-radius);
    font-size: 0.875rem;
    color: var(--np-text-secondary);
}

.np-legal-page__contact a {
    color: var(--np-accent-light);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.np-legal-feedback-link {
    border: 0;
    background: transparent;
    color: var(--np-accent-light);
    font: inherit;
    font-size: inherit;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.np-legal-feedback-link:hover { color: var(--np-text-primary); }
