/* ==========================================================================
   The Business & Markets News Today - Stylesheet
   Design: Modern Financial Newspaper & Digital Magazine
   ========================================================================== */

:root {
    --bg-main: #fbfbfb;
    --bg-surface: #ffffff;
    --bg-subtle: #f3f4f6;
    --bg-dark: #0f172a;
    --text-primary: #111827;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --accent-navy: #0b1e36;
    --accent-burgundy: #8b0000;
    --accent-gold: #b45309;
    --accent-blue: #0284c7;
    --accent-green: #059669;
    --accent-red: #dc2626;
    --border-color: #e5e7eb;
    --border-dark: #111827;
    --font-serif: "Merriweather", "Georgia", "Times New Roman", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color 0.15s ease-in-out;
}

a:hover {
    color: var(--accent-blue);
}

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

.container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

/* Top Markets Ticker Bar */
.ticker-bar {
    background: #0f172a;
    color: #f8fafc;
    font-size: 13px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 1px solid #1e293b;
    padding: 6px 0;
}

.ticker-inner {
    display: inline-block;
    padding-left: 100%;
    animation: marquee 35s linear infinite;
}

.ticker-inner:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% { transform: translate(0, 0); }
    100% { transform: translate(-100%, 0); }
}

.ticker-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-right: 28px;
}

.ticker-name {
    color: #94a3b8;
    font-weight: 600;
}

.ticker-val {
    font-family: var(--font-mono);
}

.ticker-change {
    font-size: 11px;
    font-weight: 600;
    padding: 1px 5px;
    border-radius: 3px;
}

.ticker-change.up {
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
}

.ticker-change.down {
    color: #f87171;
    background: rgba(239, 68, 68, 0.15);
}

/* Masthead Header */
.site-header {
    background: var(--bg-surface);
    border-bottom: 2px solid var(--border-dark);
    padding: 16px 0 0 0;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}

.header-meta-left {
    font-size: 13px;
    color: var(--text-muted);
    font-weight: 500;
}

.header-top-right {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

.user-session-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    background: #f1f5f9;
    padding: 5px 12px;
    border-radius: 20px;
    border: 1px solid #cbd5e1;
    color: #1e293b;
}

.user-name {
    color: #0f172a;
}

.badge-role-guest {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: #e2e8f0;
    color: #475569;
    padding: 2px 6px;
    border-radius: 3px;
    margin-left: 4px;
    letter-spacing: 0.5px;
}

.user-divider {
    color: #cbd5e1;
    font-size: 10px;
}

.user-logout-link {
    color: #dc2626;
    font-weight: 700;
    text-decoration: none;
    transition: color 0.15s ease;
}

.user-logout-link:hover {
    color: #991b1b;
    text-decoration: underline;
}

.edition-switcher {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-subtle);
    padding: 4px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
}

.edition-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    padding-left: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.edition-btn {
    font-size: 13px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 16px;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.edition-btn:hover {
    color: var(--text-primary);
    background: rgba(0, 0, 0, 0.05);
}

.edition-btn.active {
    background: var(--accent-navy);
    color: #ffffff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.header-masthead {
    text-align: center;
    padding: 22px 0 14px 0;
}

.site-title {
    font-family: var(--font-serif);
    font-size: 42px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: var(--accent-navy);
    text-transform: uppercase;
}

.site-title a:hover {
    color: var(--accent-navy);
}

.site-tagline {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-gold);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-top: 6px;
}

/* Main Navigation Bar */
.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border-dark);
    margin-top: 12px;
    padding: 0;
}

.nav-links {
    list-style: none;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
}

.nav-links li a {
    display: block;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 12px 14px;
    color: var(--text-primary);
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease;
}

.nav-links li a:hover,
.nav-links li a.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-link {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0f172a;
    color: #ffffff;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-link:hover {
    background: var(--accent-blue);
    color: #ffffff;
}

/* Breaking Banner */
.breaking-bar {
    background: #fef2f2;
    border-left: 4px solid var(--accent-burgundy);
    border-top: 1px solid #fee2e2;
    border-bottom: 1px solid #fee2e2;
    padding: 10px 16px;
    margin: 18px 0;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    border-radius: var(--radius-sm);
}

.breaking-tag {
    background: var(--accent-burgundy);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 3px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.breaking-text {
    font-weight: 600;
    color: #7f1d1d;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.breaking-text:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Home Page & News Cards
   ========================================================================== */

/* Hero Featured Section */
.hero-section {
    margin-top: 28px;
    margin-bottom: 36px;
}

.hero-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-card:hover {
    box-shadow: var(--shadow-md);
}

.hero-media {
    position: relative;
    background: #e2e8f0;
    overflow: hidden;
    min-height: 340px;
}

.hero-media img,
.hero-media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.hero-card:hover .hero-media img {
    transform: scale(1.02);
}

.hero-content {
    padding: 28px 32px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hero-badge-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.category-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 4px 10px;
    background: var(--accent-navy);
    color: #ffffff;
    border-radius: 3px;
}

.category-badge.markets { background: #0284c7; }
.category-badge.ipos { background: #7c3aed; }
.category-badge.investments { background: #059669; }
.category-badge.earnings { background: #d97706; }
.category-badge.economy { background: #475569; }
.category-badge.insurance { background: #0891b2; }

.region-tag {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-headline {
    font-family: var(--font-serif);
    font-size: 28px;
    line-height: 1.25;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 14px;
}

.hero-headline a:hover {
    color: var(--accent-blue);
}

.hero-blurb {
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

.card-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
    font-size: 13px;
    color: var(--text-muted);
}

.author-date {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.meta-author {
    font-weight: 700;
    color: var(--text-primary);
}

.meta-date {
    font-size: 12px;
}

/* Category Sections */
.category-section {
    margin-bottom: 44px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--accent-navy);
    padding-bottom: 8px;
    margin-bottom: 22px;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 800;
    color: var(--accent-navy);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-view-all {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-blue);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-view-all:hover {
    text-decoration: underline;
}

/* News Cards Grid */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.news-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.news-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-media {
    position: relative;
    background: #e2e8f0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.card-media img,
.card-media svg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-media img {
    transform: scale(1.03);
}

.card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: space-between;
}

.card-header-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.card-headline {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.card-headline a:hover {
    color: var(--accent-blue);
}

.card-blurb {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Likes Button Component */
.like-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.like-btn:hover {
    border-color: #fda4af;
    background: #fff1f2;
    color: #e11d48;
}

.like-btn.liked {
    background: #ffe4e6;
    border-color: #f43f5e;
    color: #e11d48;
}

.like-icon {
    font-size: 14px;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.like-btn.liked .like-icon {
    transform: scale(1.2);
}

/* ==========================================================================
   Article Detail Page
   ========================================================================== */

.article-page {
    padding: 24px 0 60px 0;
}

.breadcrumbs {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.breadcrumbs a:hover {
    color: var(--accent-blue);
    text-decoration: underline;
}

.article-header {
    max-width: 880px;
    margin: 0 auto 28px auto;
}

.article-meta-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.article-main-title {
    font-family: var(--font-serif);
    font-size: 38px;
    line-height: 1.2;
    font-weight: 900;
    color: var(--accent-navy);
    margin-bottom: 18px;
}

.article-standfirst {
    font-size: 19px;
    line-height: 1.5;
    color: var(--text-secondary);
    font-weight: 400;
    border-left: 3px solid var(--accent-gold);
    padding-left: 16px;
    margin-bottom: 24px;
}

.article-author-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    flex-wrap: wrap;
    gap: 16px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--accent-navy);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
}

.publish-time {
    font-size: 13px;
    color: var(--text-muted);
}

.share-buttons {
    display: flex;
    align-items: center;
    gap: 8px;
}

.share-btn {
    border: 1px solid var(--border-color);
    background: var(--bg-surface);
    color: var(--text-secondary);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-btn:hover {
    background: var(--bg-subtle);
    color: var(--text-primary);
}

.article-featured-image {
    max-width: 980px;
    margin: 0 auto 32px auto;
    border-radius: var(--radius-md);
    overflow: hidden;
    background: #e2e8f0;
    border: 1px solid var(--border-color);
}

.article-featured-image img,
.article-featured-image svg {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: cover;
}

.image-caption {
    padding: 10px 16px;
    background: var(--bg-subtle);
    font-size: 13px;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
}

/* Article Body Typography */
.article-content {
    max-width: 820px;
    margin: 0 auto;
    font-size: 18px;
    line-height: 1.75;
    color: #1f2937;
}

.article-content p {
    margin-bottom: 22px;
}

.article-content h3.article-section-title {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--accent-navy);
    margin: 36px 0 16px 0;
    padding-top: 14px;
    border-top: 1px solid var(--border-color);
}

.article-key-point {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin: 20px 0;
    padding: 16px 20px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-blue);
    border-radius: var(--radius-sm);
}

.key-point-num {
    font-size: 20px;
    font-weight: 900;
    color: var(--accent-blue);
    line-height: 1;
}

.key-point-content strong {
    font-size: 17px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.key-point-content p {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.article-content blockquote.article-quote {
    border-left: 4px solid var(--accent-gold);
    background: #fffbeb;
    padding: 18px 24px;
    margin: 28px 0;
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 19px;
    line-height: 1.6;
    color: #78350f;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-engagement-bar {
    max-width: 820px;
    margin: 40px auto;
    padding: 20px 0;
    border-top: 2px solid var(--border-dark);
    border-bottom: 2px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.engagement-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Related Articles Section */
.related-section {
    max-width: 1080px;
    margin: 60px auto 0 auto;
    padding-top: 36px;
    border-top: 1px solid var(--border-color);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: #0b1e36;
    color: #94a3b8;
    padding: 50px 0 30px 0;
    border-top: 4px solid var(--accent-gold);
    margin-top: 60px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 36px;
    margin-bottom: 40px;
}

.footer-brand h4 {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: #94a3b8;
}

.footer-col h5 {
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a {
    font-size: 13px;
    color: #94a3b8;
}

.footer-col ul li a:hover {
    color: #ffffff;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    flex-wrap: wrap;
    gap: 12px;
}

/* Toast Message */
.toast-msg {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #0f172a;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 600;
    z-index: 9999;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.25s ease;
    pointer-events: none;
}

.toast-msg.show {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .site-title { font-size: 30px; }
    .hero-card { grid-template-columns: 1fr; }
    .hero-media { min-height: 220px; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .main-nav { flex-direction: column; align-items: stretch; }
    .nav-links { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 6px; }
}

@media (max-width: 600px) {
    .header-top { flex-direction: column; gap: 10px; align-items: stretch; }
    .edition-switcher { justify-content: center; }
    .site-title { font-size: 24px; }
    .news-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .article-main-title { font-size: 28px; }
}

/* ==========================================================================
   Editorial Card Capabilities, NEW Badges & Modals
   ========================================================================== */

/* NEW Badge */
.badge-new {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(16, 185, 129, 0.35);
    line-height: 1.4;
}

.card-badge-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

/* Card Admin Actions Toolbar (at bottom right of each card) */
.card-admin-actions {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.admin-cat-select {
    height: 27px;
    padding: 0 6px;
    font-size: 11px;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    cursor: pointer;
    max-width: 110px;
    outline: none;
    transition: border-color 0.15s ease;
}

.admin-cat-select:hover,
.admin-cat-select:focus {
    border-color: #0284c7;
}

.admin-btn {
    height: 27px;
    padding: 0 7px;
    font-size: 11px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    border: 1px solid transparent;
    transition: all 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
}

.admin-btn:hover {
    transform: translateY(-1px);
}

.admin-btn-lead {
    background: #fef3c7;
    color: #92400e;
    border-color: #fde68a;
}
.admin-btn-lead:hover {
    background: #fde68a;
    color: #78350f;
}
.admin-btn-lead.is-active {
    background: #f59e0b;
    color: #ffffff;
    border-color: #d97706;
    cursor: default;
    transform: none;
}

.admin-btn-image {
    background: #ecfdf5;
    color: #065f46;
    border-color: #a7f3d0;
}
.admin-btn-image:hover {
    background: #d1fae5;
    color: #047857;
}

.admin-btn-edit {
    background: #eff6ff;
    color: #1e40af;
    border-color: #bfdbfe;
}
.admin-btn-edit:hover {
    background: #dbeafe;
    color: #1d4ed8;
}

.admin-btn-delete {
    background: #fef2f2;
    color: #991b1b;
    border-color: #fecaca;
    padding: 0 6px;
}
.admin-btn-delete:hover {
    background: #fee2e2;
    color: #7f1d1d;
    border-color: #fca5a5;
}

/* Modals & Backdrop */
.nrx-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px);
    z-index: 10000;
}

.nrx-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    width: 92%;
    max-width: 540px;
    border-radius: 10px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    z-index: 10001;
    overflow: hidden;
    animation: modalIn 0.2s ease-out;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: translate(-50%, -47%) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.nrx-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
}

.nrx-modal-header h3 {
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.nrx-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #94a3b8;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.nrx-modal-close:hover {
    color: #0f172a;
}

.nrx-modal-body {
    padding: 20px;
}

.nrx-form-group {
    margin-bottom: 15px;
}

.nrx-form-group label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #475569;
    margin-bottom: 6px;
}

.nrx-form-input,
.nrx-form-textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.nrx-form-input:focus,
.nrx-form-textarea:focus {
    border-color: #0284c7;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.15);
}

.nrx-help-text {
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

.nrx-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.nrx-btn {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nrx-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.nrx-btn-secondary:hover {
    background: #e2e8f0;
}

.nrx-btn-primary {
    background: #0b1e36;
    color: #ffffff;
    border: 1px solid #0b1e36;
}

.nrx-btn-primary:hover {
    background: #1e293b;
}

/* Tabs */
.nrx-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 10px;
}

.nrx-tab-btn {
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    background: #f8fafc;
    color: #64748b;
    cursor: pointer;
    transition: all 0.15s ease;
}

.nrx-tab-btn.active {
    background: #0b1e36;
    color: #ffffff;
    border-color: #0b1e36;
}

/* Image Preview */
.nrx-image-preview-box {
    margin-top: 14px;
    padding: 10px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 6px;
}

.preview-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    color: #64748b;
    margin-bottom: 6px;
}

.preview-wrap {
    height: 130px;
    overflow: hidden;
    border-radius: 4px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

