:root {
    --cm-bg: #050816;
    --cm-bg-2: #0a1020;
    --cm-surface: #0f172a;
    --cm-surface-2: #151e32;
    --cm-border: rgba(148, 163, 184, 0.14);
    --cm-text: #f1f5f9;
    --cm-muted: #94a3b8;
    --cm-blue: #3b82f6;
    --cm-blue-2: #2563eb;
    --cm-purple: #a855f7;
    --cm-green: #22c55e;
    --cm-orange: #f59e0b;
    --cm-red: #ef4444;
    --cm-radius: 0.9rem;
    --cm-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "DM Sans", system-ui, sans-serif;
    background: var(--cm-bg);
    color: var(--cm-text);
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Sora", "DM Sans", sans-serif;
    letter-spacing: -0.02em;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #93c5fd; }
img { max-width: 100%; }

.cm-container {
    width: min(1240px, calc(100% - 2rem));
    margin-inline: auto;
}

/* Shared brand mark (navbar + footer + auth) */
.cm-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
}

.cm-logo-img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 14px rgba(59, 130, 246, 0.35));
}

.cm-brand-sm .cm-logo-img { width: 34px; height: 34px; }
.cm-brand-md .cm-logo-img { width: 42px; height: 42px; }
.cm-brand-lg .cm-logo-img { width: 52px; height: 52px; }
.cm-brand-xl .cm-logo-img { width: 88px; height: 88px; margin-inline: auto; }

.cm-logo-text { line-height: 1.15; text-align: left; }
.cm-logo-text strong {
    display: block;
    font-family: "Sora", sans-serif;
    font-size: 1.08rem;
    color: #fff;
}
.cm-logo-text small {
    display: block;
    color: #94a3b8;
    font-size: 0.68rem;
}

.cm-brand-lg .cm-logo-text strong { font-size: 1.2rem; }
.cm-brand-lg .cm-logo-text small { font-size: 0.72rem; }

.cm-auth-brand {
    display: inline-flex;
    margin-bottom: 1.25rem;
}
.cm-auth-brand:hover { color: inherit; }

.cm-coming-logo {
    display: flex;
    justify-content: center;
}

.btn-cm {
    background: var(--cm-blue);
    border: 1px solid var(--cm-blue);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
    box-shadow: 0 8px 22px rgba(59, 130, 246, 0.3);
}
.btn-cm:hover { background: var(--cm-blue-2); border-color: var(--cm-blue-2); color: #fff; }

.btn-cm-outline {
    background: transparent;
    border: 1px solid rgba(255,255,255,0.18);
    color: #fff;
    border-radius: 999px;
    font-weight: 600;
    padding: 0.7rem 1.25rem;
}
.btn-cm-outline:hover { background: rgba(255,255,255,0.05); color: #fff; }

.btn-cm-soft {
    background: rgba(59, 130, 246, 0.15);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #93c5fd;
    border-radius: 0.65rem;
    font-weight: 600;
}
.btn-cm-soft:hover { background: rgba(59, 130, 246, 0.25); color: #fff; }

.btn-cm-sm { padding: 0.4rem 0.9rem; font-size: 0.875rem; }

/* HERO */
.cm-hero {
    padding: 3.5rem 0 2.5rem;
    background:
        radial-gradient(ellipse 55% 50% at 15% 15%, rgba(59, 130, 246, 0.18), transparent 55%),
        radial-gradient(ellipse 40% 40% at 75% 20%, rgba(168, 85, 247, 0.16), transparent 50%),
        var(--cm-bg);
}

.cm-hero-title {
    font-size: clamp(2.1rem, 4.4vw, 3.3rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1rem;
}
.cm-hero-title .grad {
    background: linear-gradient(90deg, #c4b5fd, #60a5fa 60%, #38bdf8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.cm-hero-text {
    color: var(--cm-muted);
    font-size: 1.05rem;
    max-width: 34rem;
    margin-bottom: 1.4rem;
    line-height: 1.65;
}

.cm-profile-card {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 1rem;
    align-items: center;
    background: linear-gradient(160deg, rgba(30, 41, 59, 0.75), rgba(15, 23, 42, 0.95));
    border: 1px solid var(--cm-border);
    border-radius: 1.25rem;
    padding: 1.15rem;
    box-shadow: var(--cm-shadow);
}

.cm-avatar-ring {
    width: min(100%, 220px);
    aspect-ratio: 1;
    margin-inline: auto;
    border-radius: 50%;
    padding: 5px;
    background: conic-gradient(from 180deg, #3b82f6, #a855f7, #38bdf8, #3b82f6);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.4);
    position: relative;
}
.cm-avatar-ring-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #0b1220;
    display: grid;
    place-items: center;
    overflow: hidden;
}
.cm-avatar-ring svg { width: 90%; height: auto; }

.cm-profile-panel { padding: 0.25rem 0.15rem; }
.cm-profile-panel h3 {
    font-size: 1.2rem;
    margin-bottom: 0.1rem;
}
.cm-profile-panel .role {
    color: #93c5fd;
    font-size: 0.82rem;
    font-weight: 600;
}
.cm-profile-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 0.9rem;
}
.cm-profile-list li {
    display: flex;
    gap: 0.5rem;
    align-items: flex-start;
    color: #cbd5e1;
    font-size: 0.82rem;
    margin-bottom: 0.4rem;
}
.cm-profile-list i { color: #60a5fa; margin-top: 0.15rem; }

.cm-creator-social a {
    display: inline-grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--cm-border);
    color: #cbd5e1;
    margin-right: 0.3rem;
}
.cm-creator-social a:hover {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.5);
}

.cm-hero-stats-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    margin-top: 1.75rem;
}
.cm-hero-stat {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: 0.85rem;
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 132px;
}
.cm-hero-stat i {
    width: 34px;
    height: 34px;
    border-radius: 0.55rem;
    display: grid;
    place-items: center;
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
}
.cm-hero-stat strong { display: block; font-size: 0.9rem; }
.cm-hero-stat span { display: block; color: var(--cm-muted); font-size: 0.72rem; }

.cm-promo-card {
    background: linear-gradient(160deg, #1e3a8a, #4c1d95 55%, #312e81);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.15rem;
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-shadow: var(--cm-shadow);
}
.cm-promo-card h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}
.cm-promo-card p {
    color: #ddd6fe;
    margin-bottom: 1.25rem;
}
.cm-promo-art {
    position: relative;
    height: 120px;
    margin-bottom: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.75rem;
}
.cm-promo-art .bi-laptop {
    font-size: 4rem;
    color: rgba(255,255,255,0.85);
}
.cm-promo-art .bi-phone {
    font-size: 2.4rem;
    color: rgba(191, 219, 254, 0.9);
    margin-bottom: 0.35rem;
}

/* SECTIONS */
.cm-section { padding: 2.75rem 0; }
.cm-section-title {
    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    font-weight: 700;
    margin-bottom: 0.3rem;
}
.cm-section-sub {
    color: var(--cm-muted);
    margin-bottom: 1.35rem;
}

.cm-card {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow);
    height: 100%;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.cm-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.35);
    color: inherit;
}
.cm-card-body { padding: 1.1rem; }

.cm-cat-card {
    text-align: center;
    padding: 1.15rem 0.65rem;
    border-radius: 0.9rem;
    border: 1px solid var(--cm-border);
    background: var(--cm-surface);
    height: 100%;
    transition: transform 0.18s ease, border-color 0.18s ease;
}
.cm-cat-card:hover {
    transform: translateY(-3px);
    border-color: rgba(59, 130, 246, 0.4);
    color: inherit;
}
.cm-cat-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
    margin-bottom: 0.65rem;
}
.cm-cat-card h6 { margin: 0 0 0.15rem; font-size: 0.9rem; }
.cm-cat-card small { color: var(--cm-muted); font-size: 0.74rem; }

.cm-path-card {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: 1rem;
    padding: 1.1rem;
    height: 100%;
    display: block;
    color: inherit;
}
.cm-path-card:hover { color: inherit; border-color: rgba(59, 130, 246, 0.4); }
.cm-path-icon {
    width: 44px;
    height: 44px;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.cm-path-card h5 { font-size: 1rem; margin-bottom: 0.15rem; }
.cm-path-card p {
    color: var(--cm-muted);
    font-size: 0.84rem;
    margin-bottom: 0.8rem;
    min-height: 2.5rem;
}
.cm-path-meta {
    display: flex;
    justify-content: space-between;
    color: var(--cm-muted);
    font-size: 0.78rem;
    margin-bottom: 0.5rem;
}
.cm-progress {
    height: 7px;
    background: rgba(255,255,255,0.08);
    border-radius: 999px;
    overflow: hidden;
}
.cm-progress > span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, var(--cm-blue), #60a5fa);
}

.cm-side-card {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: 1rem;
    padding: 1.1rem;
    height: 100%;
}
.cm-side-tabs { display: flex; gap: 0.35rem; margin-bottom: 0.75rem; }
.cm-side-tabs span {
    font-size: 0.76rem;
    padding: 0.25rem 0.55rem;
    border-radius: 999px;
    color: var(--cm-muted);
}
.cm-side-tabs span.active {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    font-weight: 600;
}
.cm-tut-item {
    display: flex;
    gap: 0.7rem;
    align-items: flex-start;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--cm-border);
}
.cm-tut-item:last-child { border-bottom: 0; }
.cm-tut-item h6 { font-size: 0.86rem; margin: 0 0 0.15rem; line-height: 1.3; }
.cm-tut-item small { color: var(--cm-muted); font-size: 0.74rem; }
.cm-tut-item .bookmark { color: #64748b; margin-left: auto; }

.cm-project-thumb {
    height: 140px;
    display: grid;
    place-items: center;
    position: relative;
}
.cm-project-shop { background: linear-gradient(135deg, #1d4ed8, #7c3aed); }
.cm-project-tasks { background: linear-gradient(135deg, #0284c7, #2563eb); }
.cm-project-chat { background: linear-gradient(135deg, #7c3aed, #db2777); }
.cm-project-folio { background: linear-gradient(135deg, #059669, #0d9488); }

.cm-ui-fake {
    width: 78%;
    height: 70%;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 0.7rem;
    padding: 0.65rem;
}
.cm-ui-fake span {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    margin-right: 0.25rem;
}
.cm-ui-fake .bars { margin-top: 0.75rem; display: grid; gap: 0.3rem; }
.cm-ui-fake .bars i {
    display: block;
    height: 9px;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
}
.cm-ui-fake .bars i:nth-child(1) { width: 90%; }
.cm-ui-fake .bars i:nth-child(2) { width: 68%; }
.cm-ui-fake .bars i:nth-child(3) { width: 78%; }

.cm-tag {
    display: inline-block;
    padding: 0.18rem 0.45rem;
    border-radius: 999px;
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 0.7rem;
    font-weight: 600;
    margin-right: 0.2rem;
    margin-bottom: 0.2rem;
}
.cm-stars { color: var(--cm-muted); font-size: 0.86rem; font-weight: 600; }
.cm-stars i { color: #f59e0b; }

.badge-easy { background: rgba(34,197,94,.15); color: #86efac; border-radius: 999px; padding: .15rem .5rem; font-size: .7rem; font-weight: 700; }
.badge-medium { background: rgba(245,158,11,.15); color: #fcd34d; border-radius: 999px; padding: .15rem .5rem; font-size: .7rem; font-weight: 700; }
.badge-hard { background: rgba(239,68,68,.15); color: #fca5a5; border-radius: 999px; padding: .15rem .5rem; font-size: .7rem; font-weight: 700; }

.cm-mini-list-item {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--cm-border);
}
.cm-mini-list-item:last-child { border-bottom: 0; }

.cm-editor {
    background: #020617;
    border: 1px solid var(--cm-border);
    border-radius: 0.85rem;
    overflow: hidden;
}
.cm-editor-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    border-bottom: 1px solid var(--cm-border);
    background: #0b1220;
}
.cm-editor pre {
    margin: 0;
    padding: 0.9rem;
    color: #e2e8f0;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    min-height: 140px;
}
.cm-editor .kw { color: #c084fc; }
.cm-editor .fn { color: #60a5fa; }
.cm-editor .str { color: #86efac; }
.cm-editor-out {
    border-top: 1px solid var(--cm-border);
    padding: 0.65rem 0.85rem;
    color: #94a3b8;
    font-size: 0.8rem;
    background: #071018;
}

.cm-tool-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem;
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: 0.85rem;
    height: 100%;
}
.cm-tool-card:hover {
    border-color: rgba(59, 130, 246, 0.4);
    color: inherit;
}
.cm-tool-icon {
    width: 40px;
    height: 40px;
    border-radius: 0.7rem;
    display: grid;
    place-items: center;
    color: #fff;
    flex-shrink: 0;
}
.cm-tool-card h6 { margin: 0; font-size: 0.88rem; }
.cm-tool-card small { color: var(--cm-muted); font-size: 0.74rem; }

/* ===== Bottom content: Articles / Videos / Testimonials ===== */
.cm-panel {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: 1rem;
    padding: 1.2rem 1.15rem;
    box-shadow: var(--cm-shadow);
}

.cm-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.cm-panel-head h3 {
    font-size: 1.05rem;
    margin: 0;
}
.cm-panel-head a {
    color: #60a5fa;
    font-size: 0.86rem;
    font-weight: 600;
    white-space: nowrap;
}
.cm-panel-head a:hover { color: #93c5fd; }

.cm-article-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--cm-border);
    color: inherit;
}
.cm-article-item:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
.cm-article-item:first-of-type { padding-top: 0.15rem; }
.cm-article-item:hover { color: inherit; }
.cm-article-item:hover h4 { color: #93c5fd; }

.cm-article-icon {
    width: 48px;
    height: 48px;
    border-radius: 0.75rem;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border: 1px solid var(--cm-border);
}
.cm-article-body h4 {
    font-size: 0.92rem;
    margin: 0 0 0.25rem;
    line-height: 1.35;
}
.cm-article-body p {
    color: var(--cm-muted);
    font-size: 0.8rem;
    margin: 0 0 0.35rem;
    line-height: 1.45;
}
.cm-article-body span {
    color: #64748b;
    font-size: 0.74rem;
}

.cm-video-item {
    display: flex;
    gap: 0.85rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--cm-border);
    color: inherit;
}
.cm-video-item:last-child { border-bottom: 0; padding-bottom: 0.2rem; }
.cm-video-item:hover { color: inherit; }
.cm-video-item:hover h4 { color: #93c5fd; }

.cm-video-thumb {
    width: 96px;
    height: 64px;
    border-radius: 0.65rem;
    flex-shrink: 0;
    position: relative;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 1.25rem;
    overflow: hidden;
}
.cm-video-time {
    position: absolute;
    right: 0.35rem;
    bottom: 0.3rem;
    background: rgba(0,0,0,0.7);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 600;
    border-radius: 0.3rem;
    padding: 0.08rem 0.3rem;
}
.cm-video-body h4 {
    font-size: 0.92rem;
    margin: 0 0 0.3rem;
    line-height: 1.35;
}
.cm-video-body span {
    color: #64748b;
    font-size: 0.74rem;
}

.cm-testimonial-panel {
    display: flex;
    flex-direction: column;
}
.cm-quote-mark {
    width: 40px;
    height: 40px;
    border-radius: 0.7rem;
    background: rgba(59, 130, 246, 0.15);
    color: #60a5fa;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}
.cm-quote {
    color: #cbd5e1;
    font-size: 0.98rem;
    line-height: 1.65;
    margin: 0 0 1.15rem;
    flex: 1;
}
.cm-testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}
.cm-testimonial-author img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(59, 130, 246, 0.4);
}
.cm-testimonial-author strong {
    display: block;
    font-size: 0.95rem;
}
.cm-testimonial-author span {
    display: block;
    color: var(--cm-muted);
    font-size: 0.8rem;
}
.cm-testimonial-proof {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    padding-top: 0.95rem;
    border-top: 1px solid var(--cm-border);
}
.cm-testimonial-proof > span {
    color: var(--cm-muted);
    font-size: 0.82rem;
}
.cm-avatars { display: flex; align-items: center; }
.cm-avatars img, .cm-avatars span {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #0f172a;
    margin-left: -7px;
    object-fit: cover;
}
.cm-avatars img:first-child, .cm-avatars span:first-child { margin-left: 0; }

/* ===== Newsletter / Subscription ===== */
.cm-newsletter {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #1e3a8a 0%, #3730a3 45%, #4c1d95 100%);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 1.35rem;
    padding: 1.5rem;
    box-shadow: var(--cm-shadow);
}
.cm-newsletter-glow {
    position: absolute;
    inset: auto -10% -40% auto;
    width: 280px;
    height: 280px;
    background: radial-gradient(circle, rgba(96,165,250,0.35), transparent 65%);
    pointer-events: none;
}
.cm-newsletter-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
}
.cm-newsletter-illust { flex-shrink: 0; }
.cm-envelope {
    width: 84px;
    height: 84px;
    border-radius: 1.1rem;
    background: linear-gradient(145deg, #60a5fa, #2563eb);
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: 0 12px 30px rgba(0,0,0,0.25);
    color: #fff;
    font-size: 2rem;
}
.cm-letter {
    position: absolute;
    top: -8px;
    right: -6px;
    width: 34px;
    height: 40px;
    border-radius: 0.35rem;
    background: #fff;
    color: #2563eb;
    display: grid;
    place-items: center;
    font-size: 1rem;
    box-shadow: 0 6px 14px rgba(0,0,0,0.2);
}
.cm-newsletter-copy h3 {
    font-size: clamp(1.2rem, 2.2vw, 1.55rem);
    margin: 0 0 0.35rem;
}
.cm-newsletter-copy p {
    margin: 0;
    color: #ddd6fe;
    font-size: 0.95rem;
    max-width: 34rem;
}
.cm-newsletter-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(2, 6, 23, 0.45);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 999px;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    min-width: min(100%, 360px);
}
.cm-newsletter-form .form-control {
    background: transparent;
    border: 0;
    color: #fff;
    box-shadow: none;
    padding: 0.55rem 0.4rem;
}
.cm-newsletter-form .form-control::placeholder { color: #cbd5e1; }
.cm-newsletter-form .form-control:focus {
    background: transparent;
    color: #fff;
    box-shadow: none;
}
.cm-newsletter-form .btn-cm {
    white-space: nowrap;
    border-radius: 999px;
    padding: 0.6rem 1rem;
}

/* Inner pages keep dark */
.page-hero {
    background: linear-gradient(180deg, #0a1020, var(--cm-bg));
    color: #fff;
    padding: 2.4rem 0 1.6rem;
}
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.2rem); margin-bottom: 0.35rem; }
.page-hero p { color: var(--cm-muted); margin: 0; }

.cm-content, .cm-sidebar-card, .cm-auth-card, .cm-stat-light {
    background: var(--cm-surface);
    border: 1px solid var(--cm-border);
    border-radius: var(--cm-radius);
    box-shadow: var(--cm-shadow);
}
.cm-content { padding: 1.75rem; }
.cm-content pre {
    background: #020617;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1rem;
    overflow-x: auto;
}
.cm-sidebar-card { padding: 1.15rem; margin-bottom: 1rem; }
.cm-sidebar-card a { display: block; color: var(--cm-muted); padding: 0.35rem 0; }
.cm-sidebar-card a:hover { color: #93c5fd; }

.cm-auth-wrap {
    min-height: calc(100vh - 180px);
    display: grid;
    place-items: center;
    padding: 3rem 0;
}
.cm-auth-card { width: min(440px, 100%); padding: 2rem; }
.form-control.cm-input, .form-select.cm-input {
    background: #020617;
    border: 1px solid var(--cm-border);
    color: var(--cm-text);
    border-radius: 0.7rem;
    padding: 0.7rem 0.9rem;
}
.form-control.cm-input:focus, .form-select.cm-input:focus {
    background: #020617;
    color: var(--cm-text);
    border-color: rgba(59, 130, 246, 0.55);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.form-label { color: var(--cm-muted); font-size: 0.9rem; }
.cm-stat-light { padding: 1rem 1.1rem; }
.cm-stat-light strong { display: block; font-size: 1.35rem; }
.cm-stat-light span { color: var(--cm-muted); font-size: 0.9rem; }
.cm-badge-soft {
    background: rgba(59, 130, 246, 0.15);
    color: #93c5fd;
    border-radius: 999px;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 600;
}

/* ===== Footer ===== */
.cm-footer {
    background: #030712;
    border-top: 1px solid var(--cm-border);
    color: #cbd5e1;
    padding: 3.25rem 0 1.35rem;
    margin-top: 0.5rem;
}
.cm-footer-grid {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) 2.8fr;
    gap: 2rem 2.5rem;
}
.cm-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    color: #fff !important;
    margin-bottom: 0.9rem;
}
.cm-footer-brand p {
    color: #94a3b8;
    font-size: 0.92rem;
    line-height: 1.6;
    max-width: 22rem;
    margin-bottom: 1rem;
}
.cm-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.cm-footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 0.6rem;
    border: 1px solid var(--cm-border);
    background: rgba(255,255,255,0.03);
    color: #94a3b8;
    display: inline-grid;
    place-items: center;
    margin: 0;
}
.cm-footer-social a:hover {
    color: #fff;
    border-color: rgba(59, 130, 246, 0.5);
    background: rgba(59, 130, 246, 0.12);
}
.cm-footer-links {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 1.25rem 1rem;
}
.cm-footer h6 {
    color: #fff;
    margin-bottom: 0.85rem;
    font-size: 0.92rem;
}
.cm-footer-links a {
    display: block;
    color: #94a3b8;
    margin-bottom: 0.45rem;
    font-size: 0.88rem;
}
.cm-footer-links a:hover { color: #fff; }
.cm-footer-bottom {
    border-top: 1px solid var(--cm-border);
    margin-top: 2rem;
    padding-top: 1.15rem;
    color: #64748b;
    font-size: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem 1rem;
}
.cm-heart { color: #f43f5e; }

.cm-social {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid var(--cm-border);
    color: #94a3b8;
    margin-right: 0.35rem;
}
.cm-social:hover { color: #fff; border-color: rgba(59, 130, 246, 0.5); }

@media (max-width: 1199px) {
    .cm-footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .cm-newsletter-inner { grid-template-columns: auto 1fr; }
    .cm-newsletter-form { grid-column: 1 / -1; min-width: 100%; }
}

@media (max-width: 991px) {
    .cm-profile-card { grid-template-columns: 1fr; margin-top: 0.5rem; }
    .cm-footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

@media (max-width: 767px) {
    .cm-footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cm-newsletter {
        border-radius: 1.1rem;
        padding: 1.25rem;
    }
    .cm-newsletter-inner {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
    }
    .cm-newsletter-copy p { margin-inline: auto; }
    .cm-newsletter-form {
        flex-direction: column;
        border-radius: 1rem;
        padding: 0.75rem;
        align-items: stretch;
    }
    .cm-newsletter-form .form-control {
        text-align: center;
        padding: 0.65rem 0.5rem;
    }
    .cm-video-thumb { width: 84px; height: 58px; }
    .cm-testimonial-proof { justify-content: flex-start; }
}

@media (max-width: 575px) {
    .cm-hero-stat { min-width: calc(50% - 0.4rem); }
    .cm-panel { padding: 1rem 0.95rem; }
    .cm-article-icon { width: 42px; height: 42px; }
    .cm-footer-bottom { flex-direction: column; text-align: center; }
}
