/* Cantinho do Mucusse — Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
    --cm-primary: #0f4c75;
    --cm-primary-light: #3282b8;
    --cm-accent: #1b9c85;
    --cm-accent-light: #e8f7f4;
    --cm-dark: #0b2545;
    --cm-surface: #f4f7fb;
    --cm-surface-alt: #eef2f7;
    --cm-border: #dde4ee;
    --cm-text: #1e293b;
    --cm-text-muted: #64748b;
    --cm-white: #ffffff;
    --cm-radius: 0.75rem;
    --cm-radius-lg: 1rem;
    --cm-shadow: 0 4px 24px rgba(11, 37, 69, 0.08);
    --cm-shadow-sm: 0 2px 8px rgba(11, 37, 69, 0.06);
    --cm-shadow-hover: 0 12px 32px rgba(11, 37, 69, 0.12);
    --cm-transition: 0.2s ease;

    --bs-primary: #0f4c75;
    --bs-primary-rgb: 15, 76, 117;
    --bs-success: #1b9c85;
    --bs-success-rgb: 27, 156, 133;
    --bs-body-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    --bs-body-color: #1e293b;
    --bs-border-radius: 0.75rem;
    --bs-link-color: #0f4c75;
    --bs-link-hover-color: #3282b8;
}

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

body {
    font-family: var(--bs-body-font-family);
    color: var(--cm-text);
    background: var(--cm-white);
    -webkit-font-smoothing: antialiased;
}

/* ── Buttons ── */
.btn {
    font-weight: 600;
    border-radius: 0.5rem;
    padding: 0.5rem 1.25rem;
    transition: all var(--cm-transition);
}
.btn-primary {
    background: var(--cm-primary);
    border-color: var(--cm-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background: var(--cm-primary-light);
    border-color: var(--cm-primary-light);
}
.btn-accent {
    background: var(--cm-accent);
    border-color: var(--cm-accent);
    color: #fff;
}
.btn-accent:hover {
    background: #158f7a;
    border-color: #158f7a;
    color: #fff;
}
.btn-outline-primary {
    color: var(--cm-primary);
    border-color: var(--cm-primary);
}
.btn-outline-primary:hover {
    background: var(--cm-primary);
    border-color: var(--cm-primary);
}

/* ── Header & Navbar ── */
.cm-header {
    position: sticky;
    top: 0;
    z-index: 1030;
}

.cm-navbar-top {
    background: var(--cm-dark);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.78rem;
    padding: 0.4rem 0;
}
.cm-navbar-top-text { font-weight: 500; }
.cm-navbar-top-links {
    display: flex;
    gap: 1.25rem;
}
.cm-navbar-top-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    transition: color var(--cm-transition);
}
.cm-navbar-top-links a:hover { color: #fff; }

.cm-navbar {
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent;
    padding: 0.65rem 0;
    transition: box-shadow 0.25s ease, border-color 0.25s ease, padding 0.25s ease;
}
.cm-navbar.scrolled {
    border-bottom-color: var(--cm-border);
    box-shadow: 0 4px 20px rgba(11, 37, 69, 0.08);
    padding: 0.5rem 0;
}

/* Brand */
.cm-navbar .navbar-brand {
    font-weight: 700;
    color: var(--cm-dark) !important;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0;
    margin-right: 1.5rem;
}
.cm-navbar .brand-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    border-radius: 0.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(15, 76, 117, 0.25);
}
.cm-navbar .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}
.cm-navbar .brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--cm-dark);
}
.cm-navbar .brand-tagline {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--cm-accent);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Nav links */
.cm-nav-links { gap: 0.15rem; }
.cm-navbar .nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--cm-text-muted) !important;
    padding: 0.5rem 0.85rem !important;
    border-radius: 0.5rem;
    transition: all var(--cm-transition);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    position: relative;
}
.cm-navbar .nav-link i {
    font-size: 0.95rem;
    opacity: 0.7;
}
.cm-navbar .nav-link:hover {
    color: var(--cm-primary) !important;
    background: var(--cm-accent-light);
}
.cm-navbar .nav-link:hover i { opacity: 1; }
.cm-navbar .nav-link.active {
    color: var(--cm-primary) !important;
    background: var(--cm-accent-light);
    font-weight: 600;
}
.cm-navbar .nav-link.active i { opacity: 1; color: var(--cm-accent); }
.cm-navbar .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--cm-accent);
    border-radius: 2px;
}

/* Search */
.cm-search {
    position: relative;
    display: flex;
    align-items: center;
    max-width: 200px;
    margin: 0 0.75rem;
}
.cm-search input {
    padding: 0.45rem 2.5rem 0.45rem 1rem;
    border: 1px solid var(--cm-border);
    border-radius: 2rem;
    background: var(--cm-surface);
    font-size: 0.85rem;
    width: 100%;
    transition: all var(--cm-transition);
}
.cm-search input:focus {
    border-color: var(--cm-primary-light);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.1);
    background: #fff;
    outline: none;
}
.cm-search-btn {
    position: absolute;
    right: 3px;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border: none;
    border-radius: 50%;
    background: var(--cm-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background var(--cm-transition);
}
.cm-search-btn:hover { background: var(--cm-primary-light); }
.cm-search-mobile {
    max-width: 100%;
    margin: 0;
}

/* Nav actions (auth) */
.cm-nav-actions { gap: 0.25rem; margin-left: 0.25rem; }
.cm-nav-icon-link {
    width: 38px;
    height: 38px;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 50% !important;
}
.cm-nav-icon-link:hover { background: #fde8e8 !important; color: #dc3545 !important; }
.cm-nav-icon-link.active { background: #fde8e8 !important; color: #dc3545 !important; }
.cm-nav-admin {
    background: var(--cm-surface) !important;
    border-radius: 0.5rem !important;
    font-size: 0.85rem !important;
}
.cm-nav-login {
    font-weight: 600 !important;
}
.cm-nav-register {
    font-size: 0.85rem;
    padding: 0.45rem 1.1rem !important;
    border-radius: 2rem !important;
}

/* User dropdown */
.cm-user-toggle {
    display: flex !important;
    align-items: center;
    gap: 0.5rem !important;
    padding: 0.35rem 0.5rem 0.35rem 0.35rem !important;
    border-radius: 2rem !important;
    border: 1px solid var(--cm-border);
    background: var(--cm-surface);
}
.cm-user-toggle::after { margin-left: 0.15rem; }
.cm-user-avatar {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.cm-user-avatar.lg {
    width: 40px;
    height: 40px;
    font-size: 1rem;
}
.cm-user-name {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--cm-dark);
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.cm-user-menu {
    border: 1px solid var(--cm-border) !important;
    border-radius: var(--cm-radius) !important;
    box-shadow: var(--cm-shadow) !important;
    padding: 0.5rem !important;
    min-width: 240px;
    margin-top: 0.5rem !important;
}
.cm-user-menu-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
}
.cm-user-menu-header strong {
    display: block;
    font-size: 0.9rem;
    color: var(--cm-dark);
}
.cm-user-menu-header small {
    color: var(--cm-text-muted);
    font-size: 0.78rem;
}
.cm-user-menu .dropdown-item {
    border-radius: 0.4rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}
.cm-user-menu .dropdown-item i { opacity: 0.65; width: 16px; }

/* Mobile togglers */
.cm-nav-toggler {
    border: 1px solid var(--cm-border);
    padding: 0.35rem 0.55rem;
    border-radius: 0.5rem;
}
.cm-nav-toggler:focus { box-shadow: none; }
.cm-nav-icon-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--cm-border);
    border-radius: 0.5rem;
    background: var(--cm-surface);
    color: var(--cm-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--cm-transition);
}
.cm-nav-icon-btn:hover {
    background: var(--cm-accent-light);
    color: var(--cm-primary);
    border-color: var(--cm-accent);
}

@media (max-width: 991.98px) {
    .cm-navbar .navbar-collapse {
        padding: 1rem 0 0.5rem;
        border-top: 1px solid var(--cm-border);
        margin-top: 0.75rem;
    }
    .cm-nav-links {
        margin-bottom: 0.75rem;
    }
    .cm-navbar .nav-link {
        padding: 0.65rem 0.75rem !important;
    }
    .cm-navbar .nav-link.active::after { display: none; }
    .cm-nav-actions {
        padding-top: 0.75rem;
        border-top: 1px solid var(--cm-border);
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    .cm-nav-register { width: 100%; text-align: center; }
    .cm-user-toggle { width: 100%; justify-content: flex-start; }
    .cm-navbar .brand-tagline { display: none; }
}

@media (max-width: 575.98px) {
    .cm-navbar .brand-name { font-size: 0.95rem; }
    .cm-navbar .brand-icon { width: 36px; height: 36px; font-size: 1rem; }
}

/* ── Hero ── */
.cm-hero {
    background: linear-gradient(135deg, var(--cm-dark) 0%, var(--cm-primary) 55%, var(--cm-primary-light) 100%);
    color: #fff;
    position: relative;
    overflow: hidden;
}
.cm-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.cm-hero .container { position: relative; z-index: 1; }
.cm-hero-badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 2rem;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

/* ── Sections ── */
.cm-section { padding: 4rem 0; }
.cm-section-alt { background: var(--cm-surface); }
.cm-section-title {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--cm-dark);
    margin-bottom: 0.35rem;
}
.cm-section-subtitle {
    color: var(--cm-text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}
.cm-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ── Page header (inner pages) ── */
.cm-page-header {
    background: var(--cm-surface);
    border-bottom: 1px solid var(--cm-border);
    padding: 2.5rem 0 2rem;
}
.cm-page-header h1 {
    font-weight: 700;
    font-size: 2rem;
    color: var(--cm-dark);
    margin-bottom: 0.35rem;
}
.cm-page-header p { color: var(--cm-text-muted); margin: 0; }
.cm-breadcrumb {
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
}
.cm-breadcrumb a { color: var(--cm-primary); text-decoration: none; }
.cm-breadcrumb a:hover { text-decoration: underline; }

/* ── Cards ── */
.cm-card {
    background: var(--cm-white);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    box-shadow: var(--cm-shadow-sm);
    overflow: hidden;
    transition: all var(--cm-transition);
}
.cm-card:hover { box-shadow: var(--cm-shadow-hover); }
.cm-article-card { height: 100%; display: flex; flex-direction: column; }
.cm-article-card .card-img-wrap {
    height: 200px;
    overflow: hidden;
    position: relative;
    background: var(--cm-surface-alt);
}
.cm-article-card .card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.cm-article-card:hover .card-img-wrap img { transform: scale(1.05); }
.cm-article-card .card-img-placeholder {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cm-text-muted);
    font-size: 2.5rem;
}
.cm-article-card .card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.cm-article-card .card-title {
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.4;
    margin-bottom: 0.5rem;
}
.cm-article-card .card-title a {
    color: var(--cm-dark);
    text-decoration: none;
    transition: color var(--cm-transition);
}
.cm-article-card .card-title a:hover { color: var(--cm-primary); }
.cm-article-card .card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--cm-border);
    font-size: 0.8rem;
    color: var(--cm-text-muted);
}

/* ── Badges & Tags ── */
.cm-badge {
    display: inline-block;
    background: var(--cm-accent-light);
    color: var(--cm-accent);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.25rem 0.65rem;
    border-radius: 0.35rem;
}
.cm-tag {
    display: inline-block;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    color: var(--cm-text-muted);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all var(--cm-transition);
}
.cm-tag:hover {
    background: var(--cm-primary);
    border-color: var(--cm-primary);
    color: #fff;
}

/* ── Sidebar widget ── */
.cm-widget {
    background: var(--cm-white);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.cm-widget-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--cm-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--cm-accent);
    display: inline-block;
}
.cm-category-list { list-style: none; padding: 0; margin: 0; }
.cm-category-list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--cm-border);
    color: var(--cm-text);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color var(--cm-transition);
}
.cm-category-list li:last-child a { border-bottom: none; }
.cm-category-list li a:hover { color: var(--cm-primary); }
.cm-category-list .count {
    background: var(--cm-surface);
    color: var(--cm-text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.15rem 0.5rem;
    border-radius: 1rem;
}
.cm-popular-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--cm-border);
}
.cm-popular-item:last-child { border-bottom: none; }
.cm-popular-item .num {
    width: 28px;
    height: 28px;
    background: var(--cm-accent-light);
    color: var(--cm-accent);
    border-radius: 0.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.cm-popular-item a {
    color: var(--cm-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    line-height: 1.4;
}
.cm-popular-item a:hover { color: var(--cm-primary); }
.cm-popular-item small { color: var(--cm-text-muted); display: block; margin-top: 0.15rem; }

/* ── Article detail ── */
.cm-article-header h1 {
    font-weight: 800;
    font-size: 2.25rem;
    color: var(--cm-dark);
    line-height: 1.25;
}
.cm-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    color: var(--cm-text-muted);
    font-size: 0.875rem;
    padding: 1rem 0;
    border-top: 1px solid var(--cm-border);
    border-bottom: 1px solid var(--cm-border);
    margin: 1.5rem 0;
}
.cm-article-meta span { display: flex; align-items: center; gap: 0.35rem; }
.cm-article-content {
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--cm-text);
}
.cm-article-content p { margin-bottom: 1.25rem; }
.cm-share-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 1.25rem;
    background: var(--cm-surface);
    border-radius: var(--cm-radius);
    margin: 2rem 0;
}
.cm-share-bar .share-btn {
    width: 38px;
    height: 38px;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--cm-border);
    background: #fff;
    color: var(--cm-text-muted);
    text-decoration: none;
    transition: all var(--cm-transition);
}
.cm-share-bar .share-btn:hover { transform: translateY(-2px); }
.cm-share-bar .share-btn.fb:hover { background: #1877f2; color: #fff; border-color: #1877f2; }
.cm-share-bar .share-btn.li:hover { background: #0a66c2; color: #fff; border-color: #0a66c2; }
.cm-share-bar .share-btn.wa:hover { background: #25d366; color: #fff; border-color: #25d366; }
.cm-share-bar .share-btn.tw:hover { background: #000; color: #fff; border-color: #000; }
.cm-share-bar .share-btn.tg:hover { background: #0088cc; color: #fff; border-color: #0088cc; }

/* ── Comments ── */
.cm-comment {
    background: var(--cm-white);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.cm-comment-author {
    font-weight: 700;
    color: var(--cm-dark);
}
.cm-comment-reply {
    margin-left: 1.5rem;
    margin-top: 0.75rem;
    padding: 1rem;
    background: var(--cm-surface);
    border-radius: var(--cm-radius);
    border-left: 3px solid var(--cm-accent);
}

/* ── Footer ── */
.cm-footer {
    background: var(--cm-dark);
    color: rgba(255,255,255,0.7);
    padding: 4rem 0 2rem;
}
.cm-footer h5, .cm-footer h6 {
    color: #fff;
    font-weight: 700;
    margin-bottom: 1rem;
}
.cm-footer a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: color var(--cm-transition);
}
.cm-footer a:hover { color: #fff; }
.cm-footer .footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.1rem;
    color: #fff;
    margin-bottom: 0.75rem;
}
.cm-footer hr { border-color: rgba(255,255,255,0.12); }

/* ── Auth ── */
.cm-auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--cm-surface);
    background-image: linear-gradient(135deg, var(--cm-surface) 0%, var(--cm-accent-light) 100%);
}
.cm-auth-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    box-shadow: var(--cm-shadow);
    padding: 2.5rem;
}
.cm-auth-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--cm-dark);
    text-decoration: none;
    margin-bottom: 2rem;
}

/* ── Admin ── */
.cm-admin-body { background: var(--cm-surface); }
.cm-admin-sidebar {
    min-height: 100vh;
    background: var(--cm-dark);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
}
.cm-admin-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    text-decoration: none;
    padding: 0 1.25rem;
    margin-bottom: 2rem;
}
.cm-admin-sidebar .sidebar-brand small {
    display: block;
    font-weight: 500;
    font-size: 0.7rem;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.cm-admin-sidebar .nav-link {
    color: rgba(255,255,255,0.65) !important;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.6rem 1.25rem !important;
    margin: 0.1rem 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    transition: all var(--cm-transition);
}
.cm-admin-sidebar .nav-link:hover,
.cm-admin-sidebar .nav-link.active {
    background: rgba(255,255,255,0.1);
    color: #fff !important;
}
.cm-admin-sidebar .nav-link.active {
    background: var(--cm-primary);
}
.cm-admin-sidebar .nav-divider {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin: 1rem 1.25rem;
}
.cm-admin-main { padding: 2rem; }
.cm-admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.cm-admin-header h1 {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--cm-dark);
    margin: 0;
}
.cm-stat-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    padding: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    box-shadow: var(--cm-shadow-sm);
    transition: all var(--cm-transition);
}
.cm-stat-card:hover { box-shadow: var(--cm-shadow); }
.cm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}
.cm-stat-icon.blue { background: #e8f0f8; color: var(--cm-primary); }
.cm-stat-icon.green { background: var(--cm-accent-light); color: var(--cm-accent); }
.cm-stat-icon.amber { background: #fef3e2; color: #d97706; }
.cm-stat-icon.purple { background: #f0e8fe; color: #7c3aed; }
.cm-stat-icon.slate { background: var(--cm-surface); color: var(--cm-text-muted); }
.cm-stat-value { font-weight: 800; font-size: 1.75rem; color: var(--cm-dark); line-height: 1; }
.cm-stat-label { font-size: 0.85rem; color: var(--cm-text-muted); margin-top: 0.25rem; }

.cm-panel {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    box-shadow: var(--cm-shadow-sm);
    overflow: hidden;
}
.cm-panel-header {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--cm-border);
    font-weight: 700;
    color: var(--cm-dark);
    background: var(--cm-surface);
}
.cm-panel-body { padding: 0; }
.cm-panel .list-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1.5rem;
    border-bottom: 1px solid var(--cm-border);
    font-size: 0.9rem;
}
.cm-panel .list-item:last-child { border-bottom: none; }

.cm-table { margin: 0; }
.cm-table thead th {
    background: var(--cm-surface);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cm-text-muted);
    border-bottom: 1px solid var(--cm-border);
    padding: 0.85rem 1rem;
}
.cm-table tbody td {
    padding: 0.85rem 1rem;
    vertical-align: middle;
    border-bottom: 1px solid var(--cm-border);
    font-size: 0.9rem;
}
.cm-table tbody tr:last-child td { border-bottom: none; }
.cm-table tbody tr:hover { background: var(--cm-surface); }

.cm-form-panel {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    padding: 1.5rem;
    box-shadow: var(--cm-shadow-sm);
}
.cm-form-panel h6 {
    font-weight: 700;
    color: var(--cm-dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--cm-border);
}

/* ── Forms ── */
.form-control, .form-select {
    border: 1px solid var(--cm-border);
    border-radius: 0.5rem;
    padding: 0.6rem 0.85rem;
    font-size: 0.9rem;
}
.form-control:focus, .form-select:focus {
    border-color: var(--cm-primary-light);
    box-shadow: 0 0 0 3px rgba(15, 76, 117, 0.12);
}
.form-label { font-weight: 600; font-size: 0.875rem; color: var(--cm-text); }

/* ── Alerts ── */
.cm-alert {
    border: none;
    border-radius: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

/* ── Empty state ── */
.cm-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--cm-text-muted);
}
.cm-empty i { font-size: 3rem; opacity: 0.4; margin-bottom: 1rem; display: block; }

/* ── Category cards ── */
.cm-category-card {
    background: #fff;
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius-lg);
    padding: 1.75rem;
    height: 100%;
    transition: all var(--cm-transition);
    text-decoration: none;
    display: block;
    color: inherit;
}
.cm-category-card:hover {
    border-color: var(--cm-primary-light);
    box-shadow: var(--cm-shadow);
    transform: translateY(-3px);
    color: inherit;
}
.cm-category-card .icon {
    width: 48px;
    height: 48px;
    background: var(--cm-accent-light);
    color: var(--cm-accent);
    border-radius: 0.65rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}
.cm-category-card h5 { font-weight: 700; color: var(--cm-dark); margin-bottom: 0.5rem; }
.cm-category-card p { color: var(--cm-text-muted); font-size: 0.875rem; margin-bottom: 1rem; }

/* ── Newsletter CTA ── */
.cm-newsletter-cta {
    background: linear-gradient(135deg, var(--cm-primary), var(--cm-accent));
    border-radius: var(--cm-radius-lg);
    padding: 3rem;
    color: #fff;
    text-align: center;
}
.cm-newsletter-cta h3 { font-weight: 700; margin-bottom: 0.5rem; }
.cm-newsletter-cta p { opacity: 0.85; margin-bottom: 1.5rem; }
.cm-newsletter-cta .form-control {
    border: none;
    border-radius: 0.5rem 0 0 0.5rem;
}
.cm-newsletter-cta .btn { border-radius: 0 0.5rem 0.5rem 0; background: var(--cm-dark); border-color: var(--cm-dark); }

@media (max-width: 768px) {
    .cm-hero h1 { font-size: 1.75rem; }
    .cm-article-header h1 { font-size: 1.65rem; }
    .cm-section { padding: 2.5rem 0; }
    .cm-admin-sidebar { min-height: auto; position: static; }
}
