/* News 360 — Premium Design System */

*, *::before, *::after { box-sizing: border-box; }
:root {
    --brand-primary: #CC0000;
    --brand-secondary: #8B0000;
    --brand-accent: #B22222;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #9ca3af;
    --bg-body: #ffffff;
    --bg-alt: #f9fafb;
    --bg-warm: #fafaf9;
    --border: #e5e7eb;
    --border-light: #f3f4f6;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --font-heading: 'Playfair Display', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;
    --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
img { max-width: 100%; height: auto; }
a { color: var(--brand-primary); text-decoration: none; transition: color var(--transition); }
a:hover { text-decoration: underline; }

/* ================================================================
   LANDING PAGE — Premium Dark Hero + Modern Sections
   ================================================================ */
.landing-pro {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    overflow-x: hidden;
}
.landing-container { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }

/* Hero */
.landing-hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.landing-hero-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, #0a0f1e 0%, #111936 35%, #0d1424 70%, #0a0f1e 100%);
    z-index: 0;
}
.landing-hero-bg::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(204,0,0,0.12) 0%, transparent 70%);
    pointer-events: none;
}
.landing-hero-bg::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -15%;
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(59,130,246,0.06) 0%, transparent 70%);
    pointer-events: none;
}

/* Nav */
.landing-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 2.5rem;
    z-index: 10;
}
.landing-logo {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: #fff;
    font-weight: 400;
    letter-spacing: -0.02em;
}
.landing-logo:hover { text-decoration: none; }
.landing-nav-links { display: flex; align-items: center; gap: 2rem; }
.landing-nav-links a {
    color: rgba(255,255,255,0.75);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    letter-spacing: 0.01em;
    transition: color var(--transition);
}
.landing-nav-links a:hover { color: #fff; text-decoration: none; }

/* Hero Content */
.landing-hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 10rem 2rem 5rem;
    max-width: 800px;
    margin: 0 auto;
}
.landing-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    font-weight: 400;
    line-height: 1.08;
    margin: 0 0 1.75rem;
    color: #fff;
    letter-spacing: -0.03em;
}
.landing-hero-line { display: block; }
.landing-hero-accent {
    background: linear-gradient(135deg, #f87171, #ef4444, #dc2626);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.landing-hero-desc {
    font-size: 1.25rem;
    color: rgba(255,255,255,0.7);
    max-width: 540px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    font-weight: 300;
}
.landing-hero-ctas { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.landing-hero-scroll {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.4);
    font-size: 0.8rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
    transition: color var(--transition);
}
.landing-hero-scroll:hover { color: rgba(255,255,255,0.7); }
.landing-scroll-icon {
    width: 20px;
    height: 32px;
    border: 2px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    position: relative;
}
.landing-scroll-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 3px;
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 3px;
    animation: scrollPulse 2s infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
    50% { opacity: 0.3; transform: translateX(-50%) translateY(8px); }
}

/* Sections */
.landing-section { padding: 5rem 0; }
.landing-section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.75rem);
    text-align: center;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.landing-section-subtitle {
    color: var(--text-secondary);
    text-align: center;
    margin: 0 auto 3rem;
    max-width: 520px;
    font-size: 1.1rem;
    line-height: 1.6;
}
.landing-desc {
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-size: 1.05rem;
}

/* How it works */
.landing-how { background: #fff; }
.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
    counter-reset: step;
}
.landing-step {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    transition: transform var(--transition), box-shadow var(--transition);
    position: relative;
}
.landing-step:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-xl);
}
.landing-step-num {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #CC0000, #991b1b);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 14px rgba(204,0,0,0.3);
}
.landing-step h3 { font-size: 1.2rem; margin: 0 0 0.75rem; font-weight: 700; }
.landing-step p { font-size: 0.95rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* Demos */
.landing-demos { background: var(--bg-warm); }
.landing-demo-links {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    justify-content: center;
}
.btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.5rem;
    background: #fff;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-weight: 600;
    color: var(--text-primary);
    transition: all var(--transition);
    box-shadow: var(--shadow-sm);
}
.btn-demo:hover {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}
.btn-arrow { opacity: 0.5; transition: transform var(--transition), opacity var(--transition); }
.btn-demo:hover .btn-arrow { opacity: 1; transform: translateX(3px); }

.landing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}
.landing-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 0;
    overflow: hidden;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition), box-shadow var(--transition);
}
.landing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}
.landing-card-badge {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--accent, var(--brand-primary));
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    padding: 1.25rem 1.25rem 0;
}
.landing-card-img { margin: 0; }
.landing-card-img img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.landing-card-content { padding: 1rem 1.25rem 1.5rem; }
.landing-card h3 {
    font-size: 1.05rem;
    margin: 0.75rem 1.25rem 0.5rem;
    font-weight: 700;
    line-height: 1.3;
}
.landing-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: 0 1.25rem 1.25rem;
    line-height: 1.5;
}

/* Features */
.landing-features { background: #fff; }
.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}
.landing-feature {
    padding: 2rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
}
.landing-feature:hover {
    border-color: rgba(204,0,0,0.2);
    box-shadow: 0 8px 24px rgba(204,0,0,0.06);
    transform: translateY(-2px);
}
.landing-feature-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 1.25rem;
    color: var(--brand-primary);
    background: rgba(204,0,0,0.06);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}
.landing-feature-icon svg { width: 100%; height: 100%; }
.landing-feature h3 { font-size: 1.1rem; margin: 0 0 0.5rem; font-weight: 700; }
.landing-feature p { font-size: 0.95rem; color: var(--text-secondary); margin: 0; line-height: 1.6; }

/* CTA */
.landing-cta-section {
    background: linear-gradient(160deg, #0a0f1e 0%, #111936 50%, #0d1424 100%);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.landing-cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(ellipse, rgba(204,0,0,0.08) 0%, transparent 60%);
    pointer-events: none;
}
.landing-cta-section h2 {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0 0 0.75rem;
    position: relative;
}
.landing-cta-section p { opacity: 0.8; margin: 0 0 2rem; font-size: 1.1rem; position: relative; }
.landing-cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; position: relative; }
.landing-cta-section .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.landing-cta-section .btn-outline:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.5); }

/* Footer */
.landing-footer {
    background: #060a14;
    color: rgba(255,255,255,0.5);
    padding: 2rem 0;
    text-align: center;
    font-size: 0.85rem;
}
.landing-footer-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.landing-footer strong { color: rgba(255,255,255,0.8); }

/* Ads section on landing */
.landing-ads-section { padding: 2rem 0; }
.landing-ads-section .n360-ad { max-width: 800px; margin: 0.75rem auto; }

/* Landing responsive */
@media (max-width: 1024px) {
    .landing-features-grid { grid-template-columns: repeat(2, 1fr); }
    .landing-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .landing-nav { padding: 1rem 1.5rem; }
    .landing-nav-links a:not(.btn) { display: none; }
    .landing-nav-links .btn { font-size: 0.85rem; padding: 0.4rem 0.9rem; }
    .landing-hero-content { padding: 7rem 1.5rem 4rem; }
    .landing-section { padding: 3.5rem 0; }
    .landing-steps { grid-template-columns: 1fr; gap: 1.25rem; }
    .landing-features-grid { grid-template-columns: 1fr; }
    .landing-grid { grid-template-columns: 1fr; }
    .landing-container { padding: 0 1.25rem; }
}

/* ================================================================
   PUBLIC NEWS FEED — Newspaper Style
   ================================================================ */
.news-public { min-height: 100vh; display: flex; flex-direction: column; background: #fafafa; }

.news-topbar {
    background: var(--text-primary);
    color: #fff;
    padding: 0.6rem 0;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.news-container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.news-topbar .news-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}
.news-date { opacity: 0.7; }
.news-tagline { color: #f87171; font-weight: 700; letter-spacing: 0.12em; }

.news-header-banner { width: 100%; max-height: 220px; overflow: hidden; }
.news-header-banner img { width: 100%; height: 220px; object-fit: cover; display: block; }

.news-masthead {
    border-bottom: 3px solid var(--brand-primary);
    padding: 1.75rem 0;
    background: #fff;
    box-shadow: 0 1px 0 var(--border);
}
.news-logo { max-height: 70px; max-width: 280px; object-fit: contain; display: block; }
.news-brand {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    line-height: 1.1;
}
.news-masthead-line {
    height: 3px;
    background: linear-gradient(90deg, var(--brand-primary), transparent);
    margin-top: 0.75rem;
    width: 100px;
    border-radius: 2px;
}

.news-main { flex: 1; padding: 3rem 0; }
.news-empty { text-align: center; padding: 5rem 2rem; color: var(--text-muted); font-size: 1.1rem; }

/* Lead article */
.news-lead {
    margin-bottom: 3rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid var(--border);
}
.news-label {
    display: inline-block;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    padding: 0.3rem 0.75rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    border-radius: 2px;
}
.news-lead-title {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    margin: 0 0 1rem;
    color: var(--text-primary);
    max-width: 850px;
    letter-spacing: -0.02em;
}
.news-byline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.news-author { font-weight: 600; color: var(--text-secondary); }
.news-sep { opacity: 0.3; }
.news-lead-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 780px;
}
.news-lead-content p { margin: 0 0 1.25rem; }
.news-lead-content img, .news-article-content-full img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    margin: 1rem 0;
}
.news-lead-content .editor-video-wrap, .news-article-content-full .editor-video-wrap,
.news-lead-content div[class*="video"], .news-article-content-full div[class*="video"] {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    margin: 1rem 0;
    border-radius: var(--radius-md);
}
.news-lead-content iframe, .news-article-content-full iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.news-lead-content p:last-child { margin-bottom: 0; }
.news-lead-content a, .news-article-content-full a { color: var(--brand-primary); word-break: break-all; }
.news-lead-content a:hover, .news-article-content-full a:hover { text-decoration: underline; }
.news-links { margin-top: 1.25rem; }
.news-links-list { list-style: none; padding: 0; margin: 0; }
.news-links-list li { margin: 0.5rem 0; }
.news-links-list a::before { content: "→ "; color: var(--brand-primary); }
.news-media { margin: 0 0 1.75rem; }
.news-image img {
    width: 100%;
    max-height: 450px;
    object-fit: cover;
    border-radius: var(--radius-md);
}
.news-video-wrap {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: var(--radius-md);
}
.news-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }

/* Article grid */
.news-section-title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    margin: 0 0 1.75rem;
    color: var(--text-primary);
    padding-bottom: 0.75rem;
    border-bottom: 3px solid var(--brand-primary);
    display: inline-block;
    letter-spacing: -0.01em;
}
.news-articles {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.75rem;
}
.news-article {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: box-shadow var(--transition), transform var(--transition);
    display: flex;
    flex-direction: column;
}
.news-article:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}
.news-article-inner { padding: 1.5rem; flex: 1; }
.news-article-thumb { margin: 0; }
.news-article-thumb img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}
.news-article-date {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-primary);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-bottom: 0.5rem;
}
.news-article-title {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0 0 0.75rem;
    color: var(--text-primary);
}
.news-article-excerpt {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0 0 1rem;
}
.news-article-content-full {
    display: none;
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
    padding: 0 1.5rem;
    white-space: pre-wrap;
}
.news-article-meta { font-size: 0.8rem; color: var(--text-muted); }
.news-expand-btn {
    background: none;
    border: none;
    border-top: 1px solid var(--border-light);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.85rem 1.5rem;
    width: 100%;
    text-align: left;
    transition: background var(--transition);
    letter-spacing: 0.02em;
}
.news-expand-btn:hover { background: var(--bg-alt); }

/* Footer */
.news-footer {
    background: var(--text-primary);
    color: #fff;
    padding: 1.75rem 0;
    margin-top: auto;
}
.news-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.9rem;
}
.news-share-buttons { display: flex; align-items: center; gap: 0.5rem; }
.news-share-label { font-size: 0.8rem; opacity: 0.6; }
.news-share-btn {
    padding: 0.4rem 0.85rem;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 500;
}
.news-share-btn:hover { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); }
.news-footer span { opacity: 0.6; }

/* ================================================================
   BUTTONS — Global
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1.35rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.4;
    letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.97); }
.btn-primary {
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: #fff;
    box-shadow: 0 2px 8px rgba(220,38,38,0.25);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #b91c1c, #991b1b);
    box-shadow: 0 4px 12px rgba(220,38,38,0.35);
    transform: translateY(-1px);
}
.btn-secondary {
    background: #fff;
    color: var(--text-primary);
    border: 1.5px solid var(--border);
}
.btn-secondary:hover { background: var(--bg-alt); border-color: #d1d5db; }
.btn-ghost {
    background: rgba(255,255,255,0.08);
    border: 1.5px solid rgba(255,255,255,0.2);
    color: #fff;
    padding: 0.5rem 1.1rem;
    border-radius: var(--radius-sm);
}
.btn-ghost:hover { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.4); }
.btn-outline {
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.1); }
.btn-lg { padding: 0.95rem 2rem; font-size: 1.05rem; border-radius: var(--radius-md); }
.btn-block { width: 100%; }
.btn-small { padding: 0.4rem 0.9rem; font-size: 0.82rem; }
.btn-link {
    background: none;
    border: none;
    color: var(--brand-primary);
    cursor: pointer;
    font-size: 0.88rem;
    padding: 0;
    font-weight: 600;
}
.btn-link:hover { text-decoration: underline; }
.btn-danger { color: #dc2626; }

/* ================================================================
   TOAST
   ================================================================ */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    opacity: 0;
    padding: 0.85rem 1.75rem;
    background: #111827;
    color: #fff;
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 0.92rem;
    box-shadow: var(--shadow-xl);
    z-index: 9999;
    transition: opacity 0.3s, transform 0.3s;
}
.toast.toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ================================================================
   ALERTS
   ================================================================ */
.alert {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-weight: 500;
    font-size: 0.92rem;
    animation: slideDown 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.alert-success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}
.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ================================================================
   LOGIN PAGE
   ================================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0a0f1e 0%, #111936 100%);
    padding: 1.5rem;
}
.login-box {
    background: #fff;
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 60px -12px rgba(0,0,0,0.5);
    width: 100%;
    max-width: 420px;
}
.login-box h1 {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    margin: 0 0 0.25rem;
    text-align: center;
    letter-spacing: -0.02em;
}
.login-subtitle { margin: 0 0 2rem; color: var(--text-muted); text-align: center; font-size: 0.95rem; }
.login-form label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.88rem; color: var(--text-primary); }
.login-form input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    margin-bottom: 1.25rem;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
}
.login-form input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.1);
}
.login-form .btn-primary { width: 100%; margin-top: 0.5rem; padding: 0.85rem; }

/* ================================================================
   ADMIN PANEL — Professional Dashboard
   ================================================================ */
.admin-page {
    min-height: 100vh;
    background: #f3f4f6;
    display: flex;
    flex-direction: column;
}
.admin-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-sm);
}
.admin-header .container { max-width: 1400px; margin: 0 auto; padding: 0 1.5rem; }
.admin-header h1 {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.flex-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0.85rem 0;
}
.admin-nav { display: flex; gap: 0.25rem; align-items: center; }
.admin-nav a {
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.88rem;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}
.admin-nav a:hover { background: var(--bg-alt); color: var(--brand-primary); text-decoration: none; }
.admin-nav a.active { background: rgba(204,0,0,0.08); color: var(--brand-primary); font-weight: 600; }
.admin-main { flex: 1; padding: 0; }
.admin-main .container { max-width: 1400px; margin: 0 auto; padding: 2rem 1.5rem; }

/* Dashboard */
.admin-page h2 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 1.75rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
}
.admin-card {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 1.75rem;
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition);
}
.admin-card:hover { box-shadow: var(--shadow-md); }
.admin-card h3 {
    font-size: 0.82rem;
    font-weight: 700;
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.link-fijo { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 0.75rem; line-height: 1.5; }
.link-box {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex-wrap: wrap;
    margin: 0.75rem 0;
}
.link-box code {
    flex: 1;
    min-width: 0;
    padding: 0.75rem 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-family: 'SF Mono', 'Fira Code', monospace;
    word-break: break-all;
    color: var(--text-secondary);
}
.big-number {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--brand-primary);
    margin: 0.5rem 0;
    letter-spacing: -0.03em;
    line-height: 1;
}
.stats-label { font-size: 0.82rem; color: var(--text-muted); display: block; }
.admin-qr-section { display: flex; align-items: center; gap: 1.5rem; margin-top: 1.25rem; flex-wrap: wrap; }
.admin-qr-preview {
    padding: 0.75rem;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}
.admin-qr-preview img { display: block; }
.admin-qr-actions { display: flex; flex-direction: column; gap: 0.5rem; }

/* ================================================================
   POSTS ADMIN — Editor
   ================================================================ */
.posts-admin { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.post-form-section {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}
.post-form-section h3 { font-size: 1.1rem; margin: 0 0 1.5rem; font-weight: 700; }
.post-form-section label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    font-size: 0.88rem;
    color: var(--text-primary);
}
.field-hint { font-size: 0.8rem; color: var(--text-muted); margin: -0.25rem 0 0.5rem; }
.field-hint-size {
    background: var(--bg-alt);
    padding: 0.6rem 0.85rem;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--brand-primary);
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
}
.post-form-section input,
.post-form-section select,
.post-form-section textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff;
}
.post-form-section input:focus,
.post-form-section select:focus,
.post-form-section textarea:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(204,0,0,0.08);
}
.post-form-section textarea { resize: vertical; min-height: 140px; }

/* Editor toolbar */
.editor-toolbar {
    display: flex;
    gap: 0.35rem;
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    align-items: center;
    padding: 0.5rem;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm) var(--radius-sm) 0 0;
    border-bottom: none;
}
.editor-toolbar-group {
    display: flex;
    gap: 0.2rem;
    padding-right: 0.5rem;
    border-right: 1px solid var(--border);
}
.editor-toolbar-group:last-child { border-right: none; padding-right: 0; }
.editor-toolbar button {
    padding: 0.35rem 0.55rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.82rem;
    color: var(--text-secondary);
    transition: all var(--transition);
}
.editor-toolbar button:hover { background: #fff; border-color: var(--border); color: var(--text-primary); }
.editor-video-wrap { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; margin: 0.5rem 0; }
.editor-video-wrap iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.emoji-picker {
    position: absolute;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 0.75rem;
    box-shadow: var(--shadow-xl);
    z-index: 100;
    margin-top: 0.25rem;
    min-width: 320px;
}
.emoji-picker-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-light);
}
.emoji-tab {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.72rem;
    padding: 0.3rem 0.5rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
}
.emoji-tab:hover { color: var(--text-primary); background: var(--bg-alt); }
.emoji-tab.active { color: var(--brand-primary); font-weight: 700; background: rgba(204,0,0,0.06); }
.emoji-picker-grid { display: grid; grid-template-columns: repeat(8, 1fr); gap: 0.2rem; max-height: 200px; overflow-y: auto; }
.emoji-btn { background: none; border: none; font-size: 1.25rem; cursor: pointer; padding: 0.3rem; border-radius: 4px; }
.emoji-btn:hover { background: var(--bg-alt); }
.editor-toolbar-wrap { position: relative; }
.editor-content {
    min-height: 180px;
    padding: 1rem 1.25rem;
    border: 1.5px solid var(--border);
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    background: #fff;
    margin-bottom: 1.25rem;
    line-height: 1.7;
    font-size: 0.95rem;
}
.editor-content:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(204,0,0,0.08); }
.form-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 0.75rem; }

/* Posts list */
.posts-list-admin h3 { font-size: 1.1rem; margin: 0 0 1.25rem; font-weight: 700; }
.posts-list-simple { list-style: none; padding: 0; margin: 0; }
.posts-list-simple li {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    margin-bottom: 0.5rem;
    flex-wrap: wrap;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.posts-list-simple li:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.posts-list-simple strong { flex: 1; min-width: 0; font-weight: 600; }
.posts-list-simple .post-date { font-size: 0.82rem; color: var(--text-muted); }
.posts-list-simple .post-actions { display: flex; gap: 0.5rem; }
.posts-list-simple .post-actions a { font-size: 0.88rem; font-weight: 600; }
.empty { color: var(--text-muted); font-style: italic; padding: 1.5rem; text-align: center; }
.filter-links { font-size: 0.88rem; margin-bottom: 1rem; }
.filter-links a { font-weight: 600; }
.post-edition {
    font-size: 0.75rem;
    color: var(--brand-primary);
    margin-left: 0.5rem;
    padding: 0.15rem 0.5rem;
    background: rgba(204,0,0,0.06);
    border-radius: 4px;
    font-weight: 600;
}

/* ================================================================
   STATISTICS
   ================================================================ */
.stats-filters { margin-bottom: 1.5rem; }
.stats-filter-form { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.stats-filter-form label { margin-right: 0.25rem; font-weight: 600; font-size: 0.88rem; }
.stats-filter-form select {
    padding: 0.55rem 0.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 0.9rem;
}
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}
.stats-card-big { grid-column: 1 / -1; }
.stats-period { font-size: 0.88rem; color: var(--text-muted); }
.stats-section { margin-bottom: 1.5rem; }
.stats-section h3 { font-size: 1.1rem; margin: 0 0 1rem; font-weight: 700; }
.stats-table { width: 100%; border-collapse: collapse; }
.stats-table th, .stats-table td {
    padding: 0.85rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--border-light);
}
.stats-table th { font-weight: 700; color: var(--text-muted); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.stats-table tr:hover td { background: var(--bg-alt); }
.stats-daily-chart { max-width: 500px; }
.stats-bar-row { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 0.5rem; font-size: 0.88rem; }
.stats-bar-label { width: 55px; color: var(--text-muted); font-size: 0.82rem; }
.stats-bar-wrap { flex: 1; height: 24px; background: var(--bg-alt); border-radius: var(--radius-sm); overflow: hidden; }
.stats-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--brand-primary), #ef4444);
    border-radius: var(--radius-sm);
    min-width: 2px;
    transition: width 0.5s ease;
}
.stats-bar-value { width: 60px; text-align: right; font-weight: 700; font-size: 0.88rem; }

/* ================================================================
   EDITIONS
   ================================================================ */
.admin-desc { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 0.95rem; }
.editions-admin { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.edition-form-section, .editions-list {
    padding: 2rem;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}
.edition-form-section h3, .editions-list h3 { font-size: 1.1rem; margin: 0 0 1.25rem; font-weight: 700; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.editions-list-simple { list-style: none; padding: 0; margin: 0; }
.editions-list-simple li {
    padding: 1rem;
    border-bottom: 1px solid var(--border-light);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}
.editions-list-simple li:last-child { border-bottom: none; }
.edition-dates { font-size: 0.82rem; color: var(--text-muted); }
.edition-actions { display: flex; gap: 0.75rem; margin-left: auto; }
.edition-actions a { font-size: 0.88rem; font-weight: 600; }

/* ================================================================
   SETTINGS
   ================================================================ */
.settings-form {
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    max-width: 640px;
    box-shadow: var(--shadow-sm);
}
.settings-form label { display: block; margin-bottom: 0.4rem; font-weight: 600; font-size: 0.88rem; }
.settings-form input[type="text"],
.settings-form input[type="url"],
.settings-form select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    font-family: inherit;
}
.color-input-wrap { display: flex; align-items: center; gap: 0.5rem; }
.settings-form input[type="color"] {
    width: 48px;
    height: 40px;
    padding: 2px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
}
.color-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.color-text { width: 90px; font-size: 0.88rem; padding: 0.4rem 0.5rem; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.logo-preview { margin: 0.5rem 0; }
.settings-form h3 {
    margin: 2rem 0 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
    font-size: 1rem;
    font-weight: 700;
}
.settings-form h3:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.settings-desc { font-size: 0.95rem; color: var(--text-secondary); margin-bottom: 1rem; }
.required { color: var(--brand-primary); }

/* ================================================================
   MOBILE NAV HAMBURGER
   ================================================================ */
.admin-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    padding: 7px;
    background: none;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    z-index: 200;
    transition: border-color var(--transition);
}
.admin-menu-toggle:hover { border-color: #d1d5db; }
.admin-menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}
.admin-menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.admin-menu-toggle.active span:nth-child(2) { opacity: 0; }
.admin-menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   FOCUS / ACCESSIBILITY
   ================================================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[contenteditable]:focus-visible {
    outline: 2px solid var(--brand-primary);
    outline-offset: 2px;
}

/* ================================================================
   HOME (404, 403)
   ================================================================ */
.home-page {
    min-height: 100vh;
    background: linear-gradient(160deg, #0a0f1e 0%, #111936 50%, #0a0f1e 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.center-content {
    text-align: center;
    max-width: 560px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.home-page h1 { font-family: var(--font-heading); font-size: 2.5rem; margin: 0 0 0.5rem; }
.home-page p { opacity: 0.8; margin: 0.5rem 0; }
.home-page a { color: #fff; text-decoration: underline; font-weight: 500; }
.demo-links { margin-top: 2rem; text-align: left; }
.demo-title { font-size: 0.88rem; opacity: 0.6; margin-bottom: 0.75rem; }
.demo-links ul { list-style: none; padding: 0; margin: 0; }
.demo-links li { margin: 0.5rem 0; }
.demo-links a { font-weight: 500; }

/* ================================================================
   SUPER ADMIN
   ================================================================ */
.sa-page { background: #f5f3ff; }
.sa-header { border-bottom: 2px solid #7c3aed; }
.sa-header .admin-nav a.active { background: rgba(124,58,237,0.1); color: #7c3aed; font-weight: 600; }
.sa-header .admin-nav a:hover { color: #7c3aed; }
.sa-logo { display: flex; align-items: center; gap: 0.75rem; }
.sa-badge {
    font-size: 0.6rem;
    font-weight: 800;
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* SA Stats */
.sa-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}
.sa-stat-card { text-align: center; }
.sa-stat-card .big-number { color: #7c3aed; }
.sa-stat-accent { border-top: 3px solid #7c3aed; }
.sa-stat-link { font-size: 0.88rem; font-weight: 600; color: #7c3aed; }

.sa-page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.sa-page-header h2 { margin: 0; }

/* SA Ad Form */
.sa-ad-form { max-width: 100%; }
.sa-form-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.5rem; }
.sa-form-main label, .sa-form-side label {
    display: block;
    margin-bottom: 0.35rem;
    font-weight: 600;
    font-size: 0.88rem;
    margin-top: 1rem;
    color: var(--text-primary);
}
.sa-form-main label:first-child, .sa-form-side label:first-child { margin-top: 0; }
.sa-input {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    font-family: inherit;
    transition: border-color var(--transition), box-shadow var(--transition);
    background: #fff;
}
.sa-input:focus { outline: none; border-color: #7c3aed; box-shadow: 0 0 0 3px rgba(124,58,237,0.1); }
.sa-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sa-color-row { display: flex; gap: 1.25rem; margin-top: 0.5rem; }
.sa-color-row div { text-align: center; }
.sa-color-row small { display: block; font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.35rem; font-weight: 500; }
.sa-color-row input[type="color"] {
    width: 48px;
    height: 40px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    padding: 3px;
}
.sa-biz-checkboxes {
    max-height: 200px;
    overflow-y: auto;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-top: 0.35rem;
    background: #fff;
}
.sa-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    font-size: 0.88rem;
    padding: 0.35rem 0;
    cursor: pointer;
    transition: color var(--transition);
}
.sa-checkbox-label:hover { color: #7c3aed; }
.sa-active-toggle { margin-top: 1.25rem; font-weight: 700; padding: 0.5rem 0; }

/* SA Ad List */
.sa-ads-list { display: flex; flex-direction: column; gap: 1rem; }
.sa-ad-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 0;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: box-shadow var(--transition);
    background: #fff;
}
.sa-ad-item:hover { box-shadow: var(--shadow-md); }
.sa-ad-inactive { opacity: 0.5; }
.sa-ad-preview {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 90px;
}
.sa-ad-preview-img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.sa-ad-preview-text { display: flex; flex-direction: column; gap: 0.25rem; }
.sa-ad-preview-text strong { font-size: 0.92rem; }
.sa-ad-preview-text span { font-size: 0.78rem; opacity: 0.8; line-height: 1.4; }
.sa-ad-meta {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.6rem;
    border-left: 1px solid var(--border-light);
}
.sa-ad-badges { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.sa-tag {
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
    background: var(--bg-alt);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.sa-tag-active { background: #ecfdf5; color: #065f46; }
.sa-tag-inactive { background: #fef2f2; color: #991b1b; }
.sa-tag-biz { background: #ede9fe; color: #5b21b6; }
.sa-ad-stats-mini { font-size: 0.78rem; color: var(--text-muted); display: flex; gap: 1rem; }
.sa-ad-actions { display: flex; gap: 0.75rem; }
.sa-ad-actions a, .sa-ad-actions button { font-size: 0.82rem; font-weight: 600; }
.sa-table-wrap { overflow-x: auto; }

/* SA button override */
.sa-btn-primary {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
    color: #fff;
    box-shadow: 0 2px 8px rgba(124,58,237,0.25);
}
.sa-btn-primary:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
    box-shadow: 0 4px 12px rgba(124,58,237,0.35);
    transform: translateY(-1px);
}

/* ================================================================
   DISCRETE ADS (Public feed)
   ================================================================ */
.n360-ad {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin: 1rem 0;
    border: 1px solid rgba(0,0,0,0.06);
    transition: box-shadow var(--transition);
}
.n360-ad:hover { box-shadow: var(--shadow-md); }
.n360-ad-label {
    position: absolute;
    top: 0.5rem;
    right: 0.6rem;
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.35;
    pointer-events: none;
}

/* Inline */
.n360-ad-inline {
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    grid-column: 1 / -1;
}
.n360-ad-inline .n360-ad-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}
.n360-ad-body { flex: 1; }
.n360-ad-title { display: block; font-size: 0.95rem; margin-bottom: 0.3rem; font-weight: 700; }
.n360-ad-text { font-size: 0.85rem; margin: 0; opacity: 0.8; line-height: 1.5; }
.n360-ad-btn {
    display: inline-block;
    margin-top: 0.6rem;
    padding: 0.4rem 1rem;
    color: #fff !important;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity var(--transition);
    letter-spacing: 0.02em;
}
.n360-ad-btn:hover { opacity: 0.85; }

/* Banner */
.n360-ad-banner { grid-column: 1 / -1; margin: 2rem 0; }
.n360-ad-banner-inner {
    display: flex;
    gap: 1.75rem;
    padding: 1.75rem;
    align-items: center;
}
.n360-ad-banner-img {
    width: 180px;
    height: 120px;
    object-fit: cover;
    border-radius: var(--radius-md);
    flex-shrink: 0;
}
.n360-ad-banner-content { flex: 1; }
.n360-ad-banner .n360-ad-title { font-size: 1.15rem; }
.n360-ad-banner .n360-ad-text { font-size: 0.92rem; }

/* Strip */
.n360-ad-strip {
    border-radius: 0;
    margin: 0 0 1rem;
    border: none;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}
.n360-ad-strip .n360-ad-label { top: 50%; transform: translateY(-50%); }
.n360-ad-strip-inner {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.65rem 1.25rem;
    font-size: 0.85rem;
}
.n360-ad-strip-img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.n360-ad-strip-text { flex: 1; display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.n360-ad-strip-text strong { font-size: 0.85rem; }
.n360-ad-strip-text span { font-size: 0.78rem; opacity: 0.75; }
.n360-ad-strip .n360-ad-btn { margin: 0; padding: 0.25rem 0.75rem; font-size: 0.72rem; }

/* ================================================================
   HELP SYSTEM — Tooltips, hints, guide cards
   ================================================================ */
.help-banner {
    background: linear-gradient(135deg, #f0f9ff 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.75rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
}
.help-banner-icon {
    width: 36px;
    height: 36px;
    background: #dbeafe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #2563eb;
}
.help-banner-body { flex: 1; }
.help-banner-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #1e40af;
    margin: 0 0 0.3rem;
}
.help-banner-text {
    font-size: 0.85rem;
    color: #3b82f6;
    margin: 0;
    line-height: 1.55;
}
.help-banner-text strong { color: #1e40af; }
.help-banner-close {
    background: none;
    border: none;
    color: #93c5fd;
    cursor: pointer;
    padding: 0.25rem;
    font-size: 1.1rem;
    line-height: 1;
    flex-shrink: 0;
    transition: color 0.2s;
}
.help-banner-close:hover { color: #2563eb; }
.help-banner.help-banner-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border-color: #bbf7d0;
}
.help-banner-green .help-banner-icon { background: #dcfce7; color: #16a34a; }
.help-banner-green .help-banner-title { color: #166534; }
.help-banner-green .help-banner-text { color: #22c55e; }
.help-banner-green .help-banner-text strong { color: #166534; }
.help-banner.help-banner-amber {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border-color: #fde68a;
}
.help-banner-amber .help-banner-icon { background: #fef3c7; color: #d97706; }
.help-banner-amber .help-banner-title { color: #92400e; }
.help-banner-amber .help-banner-text { color: #b45309; }
.help-banner-amber .help-banner-text strong { color: #92400e; }

.help-tip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #6b7280;
    font-size: 0.65rem;
    font-weight: 800;
    cursor: help;
    position: relative;
    vertical-align: middle;
    margin-left: 4px;
    flex-shrink: 0;
    transition: all 0.2s;
}
.help-tip:hover { background: #2563eb; color: #fff; }
.help-tip::after {
    content: attr(data-help);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 400;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    white-space: normal;
    width: max-content;
    max-width: 260px;
    line-height: 1.45;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}
.help-tip:hover::after { opacity: 1; }
.help-tip::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #1f2937;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s;
    z-index: 100;
}
.help-tip:hover::before { opacity: 1; }

.help-inline {
    font-size: 0.8rem;
    color: var(--text-muted);
    background: var(--bg-alt);
    border-left: 3px solid #bfdbfe;
    padding: 0.5rem 0.75rem;
    border-radius: 0 6px 6px 0;
    margin: 0.5rem 0 1rem;
    line-height: 1.5;
}
.help-inline strong { color: var(--text-secondary); }

.help-steps {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
    flex-wrap: wrap;
}
.help-step {
    flex: 1;
    min-width: 140px;
    text-align: center;
    padding: 1rem;
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 10px;
}
.help-step-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--brand-primary);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
}
.help-step-text { font-size: 0.82rem; color: var(--text-secondary); line-height: 1.4; }
.help-step-text strong { color: var(--text-primary); display: block; margin-bottom: 0.15rem; }

/* ================================================================
   LABEL VARIANTS
   ================================================================ */
.news-label-outline {
    background: transparent;
    border: 2px solid var(--brand-primary);
    color: var(--brand-primary);
}
.news-label-accent {
    background: var(--brand-accent);
}

/* ================================================================
   FEATURED ARTICLE
   ================================================================ */
.news-article-featured {
    border: 2px solid var(--brand-accent);
    background: linear-gradient(135deg, rgba(139,92,246,0.03), rgba(139,92,246,0.01));
}

/* ================================================================
   RESPONSIVE — Global
   ================================================================ */
@media (max-width: 900px) {
    .posts-admin { grid-template-columns: 1fr; }
    .editions-admin { grid-template-columns: 1fr; }
    .dashboard-cards { grid-template-columns: 1fr; }
    .sa-form-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .admin-menu-toggle { display: flex; }
    .admin-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 0.5rem 0;
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-lg);
        z-index: 150;
    }
    .admin-nav.open { display: flex; }
    .admin-nav a { padding: 0.85rem 1.5rem; border-radius: 0; font-size: 0.95rem; }
    .admin-nav a:hover { background: var(--bg-alt); }
    .admin-header .container { position: relative; }
    .news-articles { grid-template-columns: 1fr; }
    .stats-filter-form { flex-direction: column; align-items: stretch; }
    .stats-filter-form select { width: 100%; }
    .link-box { flex-direction: column; }
    .link-box code { font-size: 0.75rem; }
    .admin-qr-section { flex-direction: column; align-items: flex-start; }
    .editor-toolbar { gap: 0.2rem; padding: 0.35rem; }
    .editor-toolbar-group { padding-right: 0.25rem; }
    .sa-ad-item { grid-template-columns: 1fr; }
    .sa-ad-meta { border-left: none; border-top: 1px solid var(--border-light); }
    .sa-stats-grid { grid-template-columns: 1fr 1fr; }
    .n360-ad-inline { flex-direction: column; text-align: center; }
    .n360-ad-inline .n360-ad-img { width: 100%; height: 120px; }
    .n360-ad-banner-inner { flex-direction: column; text-align: center; }
    .n360-ad-banner-img { width: 100%; height: 140px; }
    .n360-ad-strip-inner { flex-wrap: wrap; }
}

@media (max-width: 480px) {
    .container, .news-container, .landing-container { padding: 0 1rem; }
    .admin-card { padding: 1.25rem; }
    .post-form-section { padding: 1.25rem; }
    .settings-form { padding: 1.5rem; }
    .news-lead-title { font-size: 1.5rem; }
    .news-brand { font-size: 2rem; }
    .big-number { font-size: 2.25rem; }
    .landing-hero-title { font-size: 2.25rem; }
    .news-footer-inner { flex-direction: column; text-align: center; gap: 0.5rem; }
    .news-share-buttons { justify-content: center; }
    .sa-stats-grid { grid-template-columns: 1fr; }
}

/* ================================================================
   PRINT
   ================================================================ */
@media print {
    .admin-header, .admin-nav, .news-topbar, .news-footer,
    .news-share-buttons, .news-expand-btn, .btn, button { display: none !important; }
    .news-article-content-full { display: block !important; }
    .news-article-excerpt { display: none !important; }
    body { font-size: 12pt; color: #000; background: #fff; }
}
