body {
    margin: 0;
    background: radial-gradient(circle at top, #19335f, #081426 58%);
    color: #081426;
    font-family: Arial, sans-serif;
}

.cm-app,
.cm-app * {
    box-sizing: border-box;
}

.cm-app {
    max-width: 1500px;
    margin: 0 auto;
    padding: 22px;
}

/* =========================================================
   Navigation
========================================================= */

.cm-nav {
    width: 100%;
    position: relative;
    z-index: 99999;
    background: linear-gradient(135deg, #0f172a, #17315f);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    padding: 18px 22px;
    margin: 0 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cm-brand {
    flex: 0 1 auto;
    max-width: 42%;
}

.cm-brand a {
    display: block;
    color: #ffd000;
    text-decoration: none;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .055em;
    font-size: clamp(18px, 1.45vw, 26px);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cm-burger {
    display: none;
    width: 46px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    flex: 0 0 auto;
}

.cm-burger span {
    display: block;
    width: 31px;
    height: 4px;
    background: #ffffff;
    border-radius: 999px;
    margin: 5px auto;
}

.cm-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 0;
    min-width: 0;
}

.cm-menu a,
.cm-drop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 19px;
    border-radius: 14px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.14);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 1000;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.cm-menu a:hover,
.cm-drop-btn:hover {
    background: rgba(255,255,255,.12);
}

.cm-highlight,
.cm-btn-gold {
    background: #ffd000 !important;
    color: #000000 !important;
    border-color: #ffd000 !important;
}

.cm-drop {
    position: relative;
    display: inline-block;
}

.cm-drop-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 270px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    padding: 9px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    z-index: 1000000;
}

.cm-drop-panel a {
    display: block;
    width: 100%;
    min-height: auto;
    margin: 0 0 7px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 0;
    color: #ffffff;
    text-align: left;
    font-weight: 900;
}

.cm-drop-panel a:last-child {
    margin-bottom: 0;
}

.cm-drop-panel a:hover {
    background: rgba(255,208,0,.18);
    color: #ffd000;
}

.cm-drop.cm-drop-open > .cm-drop-panel {
    display: block;
}

@media (min-width: 961px) {
    .cm-drop:hover > .cm-drop-panel {
        display: block;
    }
}

/* =========================================================
   Core Layout
========================================================= */

.cm-hero {
    background: linear-gradient(135deg, #0f172a, #17315f);
    color: #fff;
    border-radius: 26px;
    padding: 34px;
    margin-bottom: 22px;
    display: grid;
    grid-template-columns: 1.3fr .7fr;
    gap: 20px;
    align-items: center;
    box-shadow: 0 18px 55px rgba(0,0,0,.22);
}

.cm-hero h1 {
    color: #ffffff;
    font-size: clamp(38px, 5vw, 76px);
    line-height: 1;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.cm-hero p {
    font-size: 20px;
    line-height: 1.45;
    color: #e5e7eb;
}

.cm-card {
    background: #fff;
    color: #081426;
    border-radius: 22px;
    padding: 24px;
    box-shadow: 0 14px 35px rgba(15,23,42,.13);
    margin-bottom: 20px;
}

.cm-card h1,
.cm-card h2,
.cm-card h3,
.cm-card h4,
.cm-card strong {
    color: #081426;
}

.cm-card p,
.cm-card span,
.cm-card div,
.cm-card li {
    color: #334155;
}

.cm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}

.cm-stat {
    background: #fff;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 10px 28px rgba(15,23,42,.11);
}

.cm-stat span {
    display: block;
    color: #64748b;
    font-weight: 800;
    text-transform: uppercase;
    font-size: 13px;
}

.cm-stat strong {
    color: #081426;
    font-size: 36px;
    display: block;
    margin-top: 8px;
}

.cm-btn {
    background: #0f172a;
    color: #fff !important;
    text-decoration: none;
    border: 0;
    border-radius: 12px;
    padding: 12px 18px;
    font-weight: 800;
    display: inline-block;
    cursor: pointer;
}

.cm-btn-light {
    background: #fff;
    color: #0f172a !important;
    border: 1px solid #dbe3ef;
}

.cm-btn-danger {
    background: #b91c1c;
    color: #fff !important;
}

.cm-btn-gold {
    background: #ffd000 !important;
    color: #000000 !important;
    border-color: #ffd000 !important;
}

.cm-form label {
    display: block;
    font-weight: 800;
    margin: 14px 0 6px;
    color: #081426;
}

.cm-form input,
.cm-form textarea,
.cm-form select {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 13px;
    font-size: 16px;
    color: #081426;
    background: #ffffff;
}

.cm-form textarea {
    min-height: 120px;
}

.cm-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
}

.cm-table th {
    background: #0f172a;
    color: #fff;
    text-align: left;
    padding: 14px;
}

.cm-table td {
    color: #081426;
    padding: 14px;
    border-bottom: 1px solid #e5e7eb;
}

.cm-table td a {
    color: #0f172a;
    font-weight: 800;
}

.cm-alert {
    max-width: 900px;
    margin: 30px auto;
    background: #fff;
    color: #081426;
    border-radius: 18px;
    padding: 26px;
    box-shadow: 0 14px 35px rgba(15,23,42,.12);
}

.cm-alert h1,
.cm-alert h2,
.cm-alert h3,
.cm-alert p {
    color: #081426;
}

.cm-alert-warning {
    border-left: 6px solid #f59e0b;
}

.cm-alert-danger {
    border-left: 6px solid #b91c1c;
}

.cm-alert-success {
    border-left: 6px solid #16a34a;
}

.cm-small {
    font-size: 13px;
    color: #64748b !important;
}

/* =========================================================
   Hero Right Card Text Fix
========================================================= */

.cm-hero .cm-card {
    background: #ffffff !important;
    color: #081426 !important;
}

.cm-hero .cm-card h1,
.cm-hero .cm-card h2,
.cm-hero .cm-card h3,
.cm-hero .cm-card h4,
.cm-hero .cm-card strong {
    color: #081426 !important;
}

.cm-hero .cm-card p,
.cm-hero .cm-card span,
.cm-hero .cm-card div,
.cm-hero .cm-card li {
    color: #334155 !important;
}

.cm-hero .cm-card .cm-small {
    color: #64748b !important;
}

.cm-hero .cm-card a:not(.cm-btn) {
    color: #0f172a !important;
}

.cm-hero .cm-card .cm-btn {
    color: #ffffff !important;
}

.cm-hero .cm-card .cm-btn-light {
    color: #0f172a !important;
}

.cm-hero .cm-card .cm-btn-gold {
    color: #000000 !important;
}

/* =========================================================
   Contest Cards
========================================================= */

.cm-contest-card,
.cm-entry-card {
    overflow: hidden;
}

.cm-contest-cover,
.cm-entry-image {
    width: 100%;
    height: 260px;
    background: #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    margin-bottom: 18px;
}

.cm-contest-cover img,
.cm-entry-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* =========================================================
   Voting Grid
========================================================= */

.cm-vote-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: end;
}

.cm-vote-search-row label {
    color: #081426;
}

.cm-vote-search-row input {
    width: 100%;
    border: 2px solid #dbe3ef;
    border-radius: 16px;
    padding: 16px 18px;
    font-size: 18px;
    outline: none;
    color: #081426;
    background: #ffffff;
}

.cm-search-count {
    min-width: 190px;
    background: #0f172a;
    color: #ffffff;
    border-radius: 16px;
    padding: 15px 16px;
    text-align: center;
    font-weight: 1000;
}

.cm-search-count span {
    color: #ffd000;
}

.cm-vote-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.cm-vote-list-card {
    background: #ffffff;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(15,23,42,.13);
    display: flex;
    flex-direction: column;
}

.cm-vote-list-image {
    width: 100%;
    height: 360px;
    background: #f8fafc;
    overflow: hidden;
    display: block;
}

.cm-vote-list-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
}

.cm-vote-list-body {
    padding: 22px;
}

.cm-vote-list-body h2 {
    color: #081426;
    font-size: clamp(24px, 2vw, 32px);
    line-height: 1.05;
    margin: 0 0 10px;
}

.cm-vote-list-body p {
    color: #334155;
}

.cm-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e5e7eb;
    color: #64748b;
    font-weight: 900;
}

/* =========================================================
   Candidate Page
========================================================= */

.cm-candidate-page {
    background: linear-gradient(135deg,#0f172a,#17315f);
    border-radius: 30px;
    padding: 28px;
    display: grid;
    grid-template-columns: minmax(320px, .82fr) minmax(420px, 1.18fr);
    gap: 28px;
    align-items: stretch;
    box-shadow: 0 22px 60px rgba(0,0,0,.28);
    margin-bottom: 24px;
}

.cm-candidate-info {
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
}

.cm-candidate-info h1 {
    color: #ffffff;
    font-size: clamp(34px, 4vw, 64px);
    line-height: 1.02;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -.03em;
}

.cm-candidate-info p {
    color: #e5e7eb;
    font-size: 19px;
    line-height: 1.45;
}

.cm-top-actions {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.cm-page-kicker {
    color: #ffd000;
    text-transform: uppercase;
    font-weight: 1000;
    letter-spacing: .1em;
    font-size: 13px;
}

.cm-vote-card {
    min-height: 650px;
    background: linear-gradient(135deg,#081426,#152a4f);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 26px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 18px 50px rgba(0,0,0,.35);
    transition: transform .22s ease, box-shadow .22s ease;
}

.cm-vote-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 26px 70px rgba(0,0,0,.45);
}

.cm-vote-image {
    position: relative;
    flex: 1;
    min-height: 570px;
    padding: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at center, rgba(255,255,255,.09), rgba(255,255,255,0) 55%),
        linear-gradient(135deg,#0b1222,#162f57);
}

.cm-vote-image img {
    width: auto;
    max-width: 100%;
    max-height: 760px;
    height: auto;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
}

.cm-vote-footer {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    align-items: center;
    padding: 18px 22px;
    background: rgba(2,6,23,.9);
    color: #fff;
}

.cm-vote-footer span {
    color: #93c5fd;
    display: block;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .08em;
    font-weight: 900;
    margin-bottom: 4px;
}

.cm-vote-footer strong {
    color: #fff;
    font-size: 22px;
}

.cm-vote-label {
    position: absolute;
    left: 50%;
    z-index: 30;
    transform: translateX(-50%);
    background: #ffd000;
    color: #000;
    border-radius: 999px;
    padding: 12px 24px;
    font-size: 15px;
    line-height: 1;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .04em;
    white-space: nowrap;
    box-shadow: 0 12px 30px rgba(0,0,0,.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}

.cm-vote-label-top {
    top: 8px;
}

.cm-vote-label-bottom {
    bottom: 8px;
}

.cm-vote-card:hover .cm-vote-label {
    opacity: 1;
}

.cm-vote-plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(.55);
    color: #ffd000;
    font-size: 76px;
    line-height: 1;
    font-weight: 1000;
    opacity: 0;
    pointer-events: none;
    text-shadow: 0 6px 20px rgba(0,0,0,.5);
}

.cm-vote-plus.animate {
    animation: cmVotePlus .7s ease-out forwards;
}

.cm-vote-success {
    box-shadow: 0 0 0 4px rgba(255,208,0,.26), 0 24px 70px rgba(255,208,0,.24) !important;
}

.cm-vote-loading {
    opacity: .78;
    pointer-events: none;
}

.cm-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-weight: 1000;
    background: rgba(255,255,255,.12);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,.16);
    margin: 0 8px 8px 0;
}

.cm-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* =========================================================
   Admin / Dashboard Forms
========================================================= */

.cm-inline-form {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
    margin-bottom: 10px;
}

.cm-inline-form select {
    min-width: 140px;
    border: 1px solid #dbe3ef;
    border-radius: 10px;
    padding: 10px;
    font-weight: 800;
    color: #081426;
    background: #ffffff;
}

.cm-inline-form .cm-btn {
    padding: 10px 14px;
}

/* =========================================================
   Rewards / Share Links
========================================================= */

.cm-copy-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.cm-copy-box input {
    width: 100%;
    border: 2px solid #dbe3ef;
    border-radius: 14px;
    padding: 14px 16px;
    font-size: 16px;
    color: #081426;
    background: #ffffff;
}

/* =========================================================
   Team Access
========================================================= */

.cm-role-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 7px 12px;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #ffffff;
    background: #0f172a;
}

.cm-role-owner {
    background: #7c2d12;
}

.cm-role-manager {
    background: #1d4ed8;
}

.cm-role-report_viewer {
    background: #475569;
}

/* =========================================================
   Settings Page
========================================================= */

.cm-two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cm-three-col {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cm-preview-box {
    margin-top: 14px;
    width: 100%;
    max-width: 420px;
    height: 220px;
    background: #e5e7eb;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid #dbe3ef;
}

.cm-preview-logo {
    max-width: 220px;
    height: 220px;
    border-radius: 999px;
}

.cm-preview-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.cm-sticky-save {
    position: sticky;
    bottom: 14px;
    z-index: 50;
    border: 1px solid #dbe3ef;
}

/* =========================================================
   Toast
========================================================= */

.cm-toast {
    position: fixed;
    bottom: 28px;
    right: 28px;
    z-index: 99999999;
    background: #0f172a;
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgba(0,0,0,.35);
    border: 1px solid rgba(255,255,255,.14);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    font-weight: 800;
}

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

/* =========================================================
   Video Popup - Fixed Overlay
========================================================= */

.cm-video-modal {
    display: none;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(2, 6, 23, .88) !important;
    z-index: 9999999 !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 22px !important;
}

.cm-video-modal.active {
    display: flex !important;
}

.cm-video-modal-box {
    width: min(100%, 980px) !important;
    max-height: 92vh !important;
    background: #0f172a !important;
    border-radius: 24px !important;
    box-shadow: 0 28px 90px rgba(0,0,0,.65) !important;
    overflow: hidden !important;
    border: 1px solid rgba(255,255,255,.18) !important;
}

.cm-video-modal-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 20px !important;
    color: #ffffff !important;
    font-weight: 1000 !important;
    border-bottom: 1px solid rgba(255,255,255,.12) !important;
    background: #081426 !important;
}

.cm-video-modal-close {
    background: #ffd000 !important;
    color: #000 !important;
    border: 0 !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    font-weight: 1000 !important;
    cursor: pointer !important;
}

.cm-video-frame-wrap {
    position: relative !important;
    width: 100% !important;
    padding-top: 56.25% !important;
    background: #000 !important;
}

.cm-video-frame-wrap iframe,
.cm-video-frame-wrap video {
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    border: 0 !important;
}

body.cm-video-open {
    overflow: hidden !important;
}

/* =========================================================
   Marketplace Public Presentation
========================================================= */

.cm-market-hero {
    background: linear-gradient(135deg, #081426, #17315f);
    color: #ffffff;
    border-radius: 30px;
    padding: 36px;
    margin-bottom: 24px;
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr);
    gap: 28px;
    align-items: center;
    box-shadow: 0 22px 70px rgba(0,0,0,.28);
}

.cm-market-kicker {
    display: inline-flex;
    align-items: center;
    color: #ffd000;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 1000;
    font-size: 13px;
    margin-bottom: 12px;
}

.cm-market-hero h1 {
    color: #ffffff;
    font-size: clamp(42px, 5vw, 78px);
    line-height: .98;
    margin: 0 0 16px;
    text-transform: uppercase;
    letter-spacing: -.04em;
}

.cm-market-hero p {
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.45;
}

.cm-market-search-card {
    background: #ffffff;
    color: #081426;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.cm-market-search-card h2,
.cm-market-search-card p,
.cm-market-search-card label {
    color: #081426;
}

.cm-market-toolbar {
    background: #ffffff;
    border-radius: 20px;
    padding: 18px 20px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(15,23,42,.10);
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.cm-market-toolbar strong {
    color: #081426;
}

.cm-market-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.cm-market-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 14px 40px rgba(15,23,42,.14);
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.cm-market-cover {
    position: relative;
    display: block;
    width: 100%;
    height: 260px;
    overflow: hidden;
    background: #dbe3ef;
}

.cm-market-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .28s ease;
}

.cm-market-card:hover .cm-market-cover img {
    transform: scale(1.045);
}

.cm-market-cover-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a, #17315f);
    display: flex;
    align-items: center;
    justify-content: center;
}

.cm-market-cover-placeholder span {
    color: #ffd000;
    font-size: 86px;
    font-weight: 1000;
    text-transform: uppercase;
}

.cm-status-pill {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
    border-radius: 999px;
    padding: 8px 13px;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
    background: #0f172a;
    color: #ffffff;
    box-shadow: 0 8px 22px rgba(0,0,0,.22);
}

.cm-status-active {
    background: #16a34a;
}

.cm-status-completed {
    background: #334155;
}

.cm-status-draft,
.cm-status-pending {
    background: #f59e0b;
    color: #000000;
}

.cm-status-paused {
    background: #475569;
}

.cm-status-cancelled,
.cm-status-rejected {
    background: #b91c1c;
}

.cm-market-card-body {
    padding: 22px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.cm-market-title-row {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 14px;
}

.cm-market-logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    background: #e5e7eb;
    border: 1px solid #dbe3ef;
}

.cm-market-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #ffd000 !important;
    font-size: 28px;
    font-weight: 1000;
}

.cm-market-card-body h2 {
    color: #081426;
    margin: 0 0 6px;
    font-size: 26px;
    line-height: 1.08;
}

.cm-market-card-body p {
    color: #334155;
    line-height: 1.45;
}

.cm-market-date {
    color: #0f172a !important;
    font-weight: 900;
}

.cm-market-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: auto 0 18px;
}

.cm-entry-market-card .cm-market-stats {
    grid-template-columns: repeat(2, 1fr);
}

.cm-market-stats div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.cm-market-stats strong {
    display: block;
    color: #081426;
    font-size: 22px;
}

.cm-market-stats span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cm-market-actions {
    display: flex;
    gap: 9px;
    flex-wrap: wrap;
    margin: 0;
}

/* =========================================================
   Contest Public Hero
========================================================= */

.cm-contest-public-hero {
    position: relative;
    overflow: hidden;
    min-height: 620px;
    border-radius: 34px;
    margin-bottom: 24px;
    background: linear-gradient(135deg, #081426, #17315f);
    box-shadow: 0 26px 80px rgba(0,0,0,.34);
}

.cm-contest-public-bg {
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    filter: saturate(1.1);
    transform: scale(1.02);
}

.cm-contest-public-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(2,6,23,.92), rgba(2,6,23,.70), rgba(2,6,23,.38)),
        radial-gradient(circle at top right, rgba(255,208,0,.18), rgba(255,208,0,0) 34%);
}

.cm-contest-public-content {
    position: relative;
    z-index: 2;
    min-height: 620px;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
    gap: 30px;
    align-items: center;
    padding: clamp(28px, 5vw, 64px);
}

.cm-contest-public-main {
    max-width: 860px;
}

.cm-contest-public-logo-wrap {
    margin-bottom: 18px;
}

.cm-contest-public-logo {
    width: 104px;
    height: 104px;
    border-radius: 26px;
    object-fit: cover;
    background: #ffffff;
    border: 3px solid rgba(255,255,255,.65);
    box-shadow: 0 18px 46px rgba(0,0,0,.34);
}

.cm-contest-public-logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffd000;
    color: #000000 !important;
    font-size: 44px;
    font-weight: 1000;
}

.cm-contest-public-main h1 {
    color: #ffffff;
    font-size: clamp(46px, 6vw, 96px);
    line-height: .94;
    margin: 0 0 18px;
    text-transform: uppercase;
    letter-spacing: -.055em;
}

.cm-contest-public-main p {
    color: #e5e7eb;
    font-size: 20px;
    line-height: 1.5;
}

.cm-contest-public-subtitle {
    font-size: 24px !important;
    font-weight: 800;
    color: #ffffff !important;
}

.cm-contest-date-line {
    display: inline-flex;
    background: rgba(255,255,255,.12);
    color: #ffd000 !important;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 1000;
}

.cm-contest-public-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.cm-contest-public-panel {
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(255,255,255,.28);
    border-radius: 26px;
    padding: 24px;
    box-shadow: 0 24px 70px rgba(0,0,0,.32);
}

.cm-contest-public-panel h2 {
    color: #081426;
    margin-top: 0;
}

.cm-public-stat-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 16px;
}

.cm-public-stat-list div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
    text-align: center;
}

.cm-public-stat-list strong {
    display: block;
    color: #081426;
    font-size: 34px;
}

.cm-public-stat-list span {
    display: block;
    color: #64748b;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .07em;
}

/* =========================================================
   Owner Dashboard Moderation Upgrade
========================================================= */

.cm-status-filter-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(145px, 1fr));
    gap: 10px;
}

.cm-status-filter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: #f8fafc;
    color: #081426;
    text-decoration: none;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 13px 14px;
    font-weight: 900;
}

.cm-status-filter strong {
    background: #0f172a;
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 12px;
}

.cm-status-filter.active {
    background: #ffd000;
    color: #000000;
    border-color: #ffd000;
}

.cm-status-filter.active strong {
    background: #000000;
    color: #ffd000;
}

.cm-dashboard-filter-form .cm-btn {
    margin-top: 0;
}

.cm-bulk-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 16px;
}

.cm-bulk-toolbar label {
    color: #081426;
    font-weight: 900;
}

.cm-bulk-controls {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cm-bulk-controls select {
    min-width: 210px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 11px;
    color: #081426;
    background: #ffffff;
    font-weight: 800;
}

.cm-owner-entry-table th,
.cm-owner-entry-table td {
    vertical-align: top;
}

.cm-entry-mini {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-width: 220px;
}

.cm-entry-mini img,
.cm-entry-mini > span {
    width: 46px !important;
    height: 46px !important;
    max-width: 46px !important;
    max-height: 46px !important;
    min-width: 46px !important;
    min-height: 46px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    background: #0f172a !important;
    color: #ffd000 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-weight: 1000 !important;
    font-size: 20px !important;
    line-height: 1 !important;
}

.cm-entry-mini img {
    display: block !important;
}

.cm-table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 10px 0 0;
}

.cm-mini-action-form {
    display: inline-flex;
    margin: 0;
}

.cm-mini-action-form .cm-btn {
    padding: 10px 14px;
}

/* =========================================================
   Entry Status History
========================================================= */

.cm-history-table .cm-status-pill {
    position: static;
    display: inline-flex;
    box-shadow: none;
}

.cm-history-table td {
    vertical-align: top;
}

/* =========================================================
   Moderation Notification Controls
========================================================= */

.cm-notify-check {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #081426;
    font-weight: 900;
    white-space: nowrap;
}

.cm-notify-check input {
    width: auto;
}

.cm-moderation-note {
    min-width: 220px;
    border: 1px solid #dbe3ef;
    border-radius: 12px;
    padding: 11px;
    color: #081426;
    background: #ffffff;
    font-weight: 700;
}

.cm-bulk-controls .cm-moderation-note {
    min-width: 280px;
}

/* =========================================================
   My Entries / Promotion Tools / Templates
========================================================= */

.cm-promo-grid,
.cm-template-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.cm-promo-card h2,
.cm-template-card h2 {
    margin-top: 0;
}

.cm-promo-head {
    margin-bottom: 18px;
}

.cm-copy-section {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #e5e7eb;
}

.cm-copy-section h3 {
    margin: 0 0 10px;
    color: #081426;
}

.cm-copy-section textarea {
    width: 100%;
    min-height: 110px;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 14px;
    color: #081426;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.45;
}

.cm-template-card {
    position: relative;
    overflow: hidden;
}

.cm-template-card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: #ffd000;
}

.cm-template-card form {
    margin-top: 18px;
}

/* =========================================================
   Navigation V3 - Compact Dropdown Design
========================================================= */

.cm-nav.cm-nav-v3 {
    width: 100%;
    background: linear-gradient(135deg, #0f172a, #17315f);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 24px;
    padding: 18px 22px;
    margin: 0 0 24px;
    position: relative;
    z-index: 99999;
    box-shadow: 0 18px 38px rgba(0,0,0,.22);
    display: block;
}

.cm-nav-v3 .cm-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.cm-nav-v3 .cm-brand {
    min-width: 0;
    max-width: none;
}

.cm-nav-v3 .cm-brand a {
    display: block;
    color: #ffd000;
    text-decoration: none;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .055em;
    font-size: clamp(20px, 2vw, 30px);
    line-height: 1.05;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.cm-current-strip {
    margin-top: 14px;
    background: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-width: 0;
    max-width: 420px;
}

.cm-current-strip span {
    display: block;
    color: #7db3ff;
    font-size: 18px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    line-height: 1.1;
}

.cm-current-strip a {
    display: block;
    color: #ffffff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.35;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
}

.cm-current-strip a:hover {
    color: #dbeafe;
}

.cm-nav-v3 .cm-menu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
    min-width: 0;
}

.cm-nav-v3 .cm-menu a,
.cm-nav-v3 .cm-drop-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 13px 19px;
    border-radius: 14px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.14);
    color: #ffffff;
    text-decoration: none;
    font-size: 15px;
    font-weight: 1000;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
}

.cm-nav-v3 .cm-menu a:hover,
.cm-nav-v3 .cm-drop-btn:hover {
    background: rgba(255,255,255,.12);
}

.cm-nav-v3 .cm-highlight {
    background: #ffd000 !important;
    color: #000000 !important;
    border-color: #ffd000 !important;
}

.cm-nav-v3 .cm-drop {
    position: relative;
    display: inline-block;
}

.cm-nav-v3 .cm-drop-panel {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 270px;
    background: #0f172a;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 16px;
    padding: 9px;
    box-shadow: 0 20px 60px rgba(0,0,0,.45);
    z-index: 1000000;
}

.cm-nav-v3 .cm-drop:hover > .cm-drop-panel,
.cm-nav-v3 .cm-drop.cm-drop-open > .cm-drop-panel {
    display: block;
}

.cm-nav-v3 .cm-drop-panel a {
    display: block;
    width: 100%;
    min-height: auto;
    margin: 0 0 7px;
    padding: 13px 14px;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    border: 0;
    color: #ffffff;
    text-align: left;
    font-weight: 900;
    white-space: nowrap;
}

.cm-nav-v3 .cm-drop-panel a:last-child {
    margin-bottom: 0;
}

.cm-nav-v3 .cm-drop-panel a:hover {
    background: rgba(255,208,0,.18);
    color: #ffd000;
}

.cm-nav-v3 .cm-admin-panel {
    min-width: 320px;
}

.cm-drop-heading {
    color: #ffd000;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 1000;
    padding: 9px 10px 7px;
}

.cm-drop-divider {
    height: 1px;
    background: rgba(255,255,255,.12);
    margin: 8px 4px;
}

.cm-nav-v3 .cm-burger {
    display: none;
    width: 46px;
    height: 42px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    padding: 5px;
    flex: 0 0 auto;
}

.cm-nav-v3 .cm-burger span {
    display: block;
    width: 31px;
    height: 4px;
    background: #ffffff;
    border-radius: 999px;
    margin: 5px auto;
}

/* =========================================================
   Animations
========================================================= */

@keyframes cmVotePlus {
    0% {
        opacity: 0;
        transform: translate(-50%, -25%) scale(.5);
    }

    22% {
        opacity: 1;
        transform: translate(-50%, -60%) scale(1.12);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -145%) scale(.85);
    }
}

/* =========================================================
   Responsive
========================================================= */

@media (max-width: 1100px) {
    .cm-market-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-market-hero,
    .cm-contest-public-content {
        grid-template-columns: 1fr;
    }

    .cm-contest-public-content {
        min-height: auto;
    }
}

@media (max-width: 1050px) {
    .cm-vote-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-candidate-page {
        grid-template-columns: 1fr;
    }

    .cm-vote-card {
        min-height: auto;
    }

    .cm-vote-image {
        min-height: 480px;
    }
}

@media (max-width: 960px) {
    .cm-nav {
        flex-wrap: wrap;
        align-items: center;
        padding: 16px 18px;
    }

    .cm-brand {
        flex: 1 1 auto;
        max-width: calc(100% - 64px);
        min-width: 0;
    }

    .cm-burger {
        display: block;
        margin-left: auto;
    }

    .cm-menu {
        display: none;
        width: 100%;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        padding-top: 14px;
    }

    .cm-nav.cm-nav-open .cm-menu,
    .cm-menu.open {
        display: flex;
    }

    .cm-menu a,
    .cm-drop,
    .cm-drop-btn {
        width: 100%;
    }

    .cm-menu a,
    .cm-drop-btn {
        justify-content: space-between;
        min-height: 52px;
        padding: 14px 16px;
        font-size: 16px;
    }

    .cm-drop {
        position: relative;
        display: block;
    }

    .cm-drop-panel {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        background: rgba(255,255,255,.05);
    }

    .cm-drop.cm-drop-open > .cm-drop-panel {
        display: block;
    }

    .cm-hero {
        grid-template-columns: 1fr;
    }

    .cm-brand {
        max-width: calc(100% - 58px);
    }

    .cm-nav-v3 .cm-burger {
        display: block;
    }

    .cm-nav-v3 .cm-menu {
        display: none;
        width: 100%;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 9px;
        padding-top: 14px;
    }

    .cm-nav-v3.cm-nav-open .cm-menu,
    .cm-nav-v3 .cm-menu.open {
        display: flex;
    }

    .cm-nav-v3 .cm-menu a,
    .cm-nav-v3 .cm-drop,
    .cm-nav-v3 .cm-drop-btn {
        width: 100%;
    }

    .cm-nav-v3 .cm-menu a,
    .cm-nav-v3 .cm-drop-btn {
        justify-content: space-between;
        min-height: 52px;
        padding: 14px 16px;
        font-size: 16px;
    }

    .cm-nav-v3 .cm-drop {
        position: relative;
        display: block;
    }

    .cm-nav-v3 .cm-drop-panel {
        position: static;
        display: none;
        min-width: 0;
        width: 100%;
        margin-top: 8px;
        box-shadow: none;
        background: rgba(255,255,255,.05);
    }

    .cm-nav-v3 .cm-drop.cm-drop-open > .cm-drop-panel {
        display: block;
    }

    .cm-current-strip {
        max-width: none;
        padding: 12px 14px;
        gap: 5px;
    }

    .cm-current-strip span {
        font-size: 16px;
    }

    .cm-current-strip a {
        font-size: 13px;
    }
}

@media (max-width: 900px) {
    .cm-promo-grid,
    .cm-template-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .cm-app {
        padding: 14px;
    }

    .cm-hero {
        padding: 24px;
        grid-template-columns: 1fr;
    }

    .cm-hero h1 {
        font-size: clamp(34px, 11vw, 52px);
    }

    .cm-vote-grid,
    .cm-vote-search-row,
    .cm-market-grid,
    .cm-copy-box,
    .cm-two-col,
    .cm-three-col {
        grid-template-columns: 1fr;
    }

    .cm-vote-list-image {
        height: 320px;
    }

    .cm-top-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-vote-image {
        min-height: 330px;
        padding: 12px;
    }

    .cm-vote-footer {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cm-entry-actions,
    .cm-market-actions,
    .cm-contest-public-actions {
        flex-direction: column;
    }

    .cm-entry-actions .cm-btn,
    .cm-market-actions .cm-btn,
    .cm-contest-public-actions .cm-btn,
    .cm-copy-box .cm-btn {
        width: 100%;
        text-align: center;
    }

    .cm-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }

    .cm-inline-form {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-inline-form select,
    .cm-inline-form .cm-btn {
        width: 100%;
    }

    .cm-sticky-save {
        position: static;
    }

    .cm-market-hero {
        padding: 24px;
        grid-template-columns: 1fr;
    }

    .cm-market-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-market-cover {
        height: 230px;
    }

    .cm-contest-public-hero {
        min-height: auto;
    }

    .cm-contest-public-content {
        padding: 26px;
    }

    .cm-contest-public-main h1 {
        font-size: clamp(42px, 13vw, 66px);
    }

    .cm-public-stat-list {
        grid-template-columns: 1fr;
    }

    .cm-bulk-toolbar,
    .cm-bulk-controls {
        flex-direction: column;
        align-items: stretch;
    }

    .cm-bulk-controls select,
    .cm-bulk-controls .cm-btn {
        width: 100%;
    }

    .cm-status-filter-row {
        grid-template-columns: 1fr;
    }

    .cm-moderation-note,
    .cm-bulk-controls .cm-moderation-note {
        width: 100%;
        min-width: 0;
    }

    .cm-notify-check {
        width: 100%;
    }
}
/* =========================================================
   Rewards Page Upgrade
========================================================= */

.cm-rewards-hero .cm-card {
    min-height: 230px;
}

.cm-ref-code {
    display: inline-flex;
    background: #0f172a;
    color: #ffd000 !important;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 28px !important;
    font-weight: 1000;
    letter-spacing: .04em;
}

.cm-reward-stats {
    margin-bottom: 22px;
}

.cm-share-panel {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 18px;
}

.cm-share-panel h3 {
    margin: 0 0 8px;
    color: #081426;
}

.cm-reward-rule-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.cm-reward-rule-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 20px;
}

.cm-reward-rule-grid span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    background: #ffd000;
    color: #000000 !important;
    border-radius: 999px;
    font-weight: 1000;
    margin-bottom: 12px;
}

.cm-reward-rule-grid h3 {
    margin: 0 0 8px;
    color: #081426;
}

.cm-reward-rule-grid p {
    margin: 0;
    color: #334155;
}

.cm-reward-values {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.cm-reward-values div {
    background: #0f172a;
    color: #ffffff;
    border-radius: 18px;
    padding: 20px;
}

.cm-reward-values strong {
    display: block;
    color: #ffd000 !important;
    font-size: 34px;
}

.cm-reward-values span {
    color: #dbeafe !important;
    font-weight: 800;
}

.cm-you-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffd000;
    color: #000000 !important;
    border-radius: 999px;
    padding: 4px 9px;
    font-size: 11px;
    font-weight: 1000;
    margin-left: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

@media (max-width: 900px) {
    .cm-reward-rule-grid,
    .cm-reward-values {
        grid-template-columns: 1fr;
    }

    .cm-ref-code {
        font-size: 22px !important;
    }
}
/* =========================================================
   Promotion Tools Upgrade
========================================================= */

.cm-promo-grid-upgraded {
    grid-template-columns: 1fr;
}

.cm-promo-card-upgraded {
    overflow: hidden;
}

.cm-promo-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0 8px;
}

.cm-promo-summary-grid div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    text-align: center;
}

.cm-promo-summary-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.cm-promo-summary-grid strong {
    display: block;
    color: #081426;
    font-size: 24px;
    margin-top: 5px;
}

.cm-promo-tool-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 22px;
    align-items: start;
}

.cm-promo-tool-main {
    min-width: 0;
}

.cm-promo-tool-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 18px;
}

.cm-promo-tool-main input,
.cm-promo-tool-main textarea {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 14px;
    padding: 14px;
    color: #081426;
    background: #ffffff;
    font-size: 15px;
    line-height: 1.45;
}

.cm-promo-tool-main label {
    display: block;
    color: #081426;
    font-weight: 900;
    margin: 12px 0 6px;
}

.cm-qr-card,
.cm-share-buttons-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    padding: 18px;
}

.cm-qr-card h3,
.cm-share-buttons-card h3 {
    margin: 0 0 10px;
    color: #081426;
}

.cm-qr-box {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    text-align: center;
    margin: 14px 0;
}

.cm-qr-box img {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: inline-block;
}

.cm-social-share-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.cm-social-share-grid .cm-btn {
    width: 100%;
    text-align: center;
}

@media (max-width: 1100px) {
    .cm-promo-tool-layout {
        grid-template-columns: 1fr;
    }

    .cm-promo-tool-side {
        position: static;
    }
}

@media (max-width: 760px) {
    .cm-promo-summary-grid {
        grid-template-columns: 1fr;
    }

    .cm-promo-tool-main .cm-copy-box {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Sponsor Tools
========================================================= */

.cm-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.cm-sponsor-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 20px;
    box-shadow: 0 14px 35px rgba(15,23,42,.10);
}

.cm-sponsor-card-head {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    margin-bottom: 16px;
}

.cm-sponsor-card-head img,
.cm-sponsor-card-head span {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    object-fit: cover;
    background: #0f172a;
    color: #ffd000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
    font-size: 28px;
}

.cm-sponsor-card-head h3 {
    margin: 0 0 5px;
    color: #081426;
    font-size: 24px;
}

.cm-sponsor-stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.cm-sponsor-stat-row div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px;
    text-align: center;
}

.cm-sponsor-stat-row strong {
    display: block;
    color: #081426;
    font-size: 20px;
}

.cm-sponsor-stat-row span {
    display: block;
    color: #64748b;
    font-size: 10px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cm-sponsor-edit {
    margin-top: 18px;
    border-top: 1px solid #e5e7eb;
    padding-top: 14px;
}

.cm-sponsor-edit summary {
    cursor: pointer;
    font-weight: 1000;
    color: #081426;
}

@media (max-width: 1000px) {
    .cm-sponsor-grid {
        grid-template-columns: 1fr;
    }

    .cm-sponsor-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .cm-sponsor-stat-row {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Public Sponsor Display
========================================================= */

.cm-public-sponsors-section {
    overflow: hidden;
}

.cm-public-sponsor-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.cm-public-sponsor-head h2 {
    margin: 4px 0 8px;
    font-size: clamp(28px, 3vw, 44px);
    color: #081426;
}

.cm-public-sponsor-head p {
    margin: 0;
    color: #334155;
    max-width: 720px;
}

.cm-public-sponsor-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cm-public-sponsor-grid-full {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cm-public-sponsor-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 10px 28px rgba(15,23,42,.08);
    display: flex;
    flex-direction: column;
}

.cm-public-sponsor-logo {
    height: 160px;
    background: linear-gradient(135deg, #0f172a, #17315f);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 22px;
}

.cm-public-sponsor-logo img {
    max-width: 100%;
    max-height: 112px;
    object-fit: contain;
    display: block;
    background: #ffffff;
    border-radius: 16px;
    padding: 8px;
}

.cm-public-sponsor-logo span {
    width: 86px;
    height: 86px;
    border-radius: 24px;
    background: #ffd000;
    color: #000000 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 1000;
}

.cm-public-sponsor-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.cm-public-sponsor-body h3 {
    margin: 0;
    color: #081426;
    font-size: 24px;
    line-height: 1.08;
}

.cm-public-sponsor-body p {
    color: #334155;
    line-height: 1.45;
}

.cm-sponsor-level-pill {
    display: inline-flex;
    width: fit-content;
    align-items: center;
    justify-content: center;
    background: #0f172a;
    color: #ffd000 !important;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cm-public-sponsor-body .cm-btn {
    margin-top: auto;
    text-align: center;
}

/* Entry-specific sponsors */

.cm-entry-sponsors-section h2 {
    margin-top: 4px;
    font-size: clamp(28px, 3vw, 42px);
}

.cm-entry-sponsor-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.cm-entry-sponsor-card {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 18px;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.cm-entry-sponsor-logo {
    width: 88px;
    height: 88px;
    background: #0f172a;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.cm-entry-sponsor-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #ffffff;
    padding: 8px;
}

.cm-entry-sponsor-logo span {
    color: #ffd000 !important;
    font-size: 36px;
    font-weight: 1000;
}

.cm-entry-sponsor-card h3 {
    margin: 0 0 5px;
    color: #081426;
    font-size: 24px;
}

.cm-entry-sponsor-card p {
    margin: 0 0 10px;
}

/* Sponsor strip */

.cm-sponsor-strip {
    background: #ffffff;
    border-radius: 22px;
    padding: 18px;
    margin-bottom: 20px;
    box-shadow: 0 12px 30px rgba(15,23,42,.10);
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}

.cm-sponsor-strip-title span {
    display: block;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: 11px;
    font-weight: 1000;
}

.cm-sponsor-strip-title strong {
    display: block;
    color: #081426;
    font-size: 22px;
}

.cm-sponsor-strip-list {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.cm-sponsor-strip-list a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 8px 12px 8px 8px;
    text-decoration: none;
    color: #081426;
    font-weight: 900;
}

.cm-sponsor-strip-logo {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: #0f172a;
    color: #ffd000 !important;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 1000;
}

.cm-sponsor-strip-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cm-sponsor-strip-logo span {
    color: #ffd000 !important;
}

@media (max-width: 1100px) {
    .cm-public-sponsor-grid,
    .cm-public-sponsor-grid-full {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cm-sponsor-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .cm-public-sponsor-head {
        flex-direction: column;
    }

    .cm-public-sponsor-grid,
    .cm-public-sponsor-grid-full,
    .cm-entry-sponsor-list {
        grid-template-columns: 1fr;
    }

    .cm-entry-sponsor-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .cm-entry-sponsor-logo {
        margin: 0 auto;
    }
}
/* =========================================================
   Contest Packages
========================================================= */

.cm-package-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin-bottom: 24px;
}

.cm-package-card {
    position: relative;
    overflow: hidden;
}

.cm-package-card:before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 7px;
    background: #ffd000;
}

.cm-package-current {
    box-shadow: 0 0 0 4px rgba(255,208,0,.22), 0 18px 45px rgba(15,23,42,.16);
}

.cm-package-price {
    background: #0f172a;
    border-radius: 18px;
    padding: 18px;
    margin: 18px 0;
}

.cm-package-price strong {
    display: block;
    color: #ffd000 !important;
    font-size: 42px;
    line-height: 1;
}

.cm-package-price span {
    color: #dbeafe !important;
    font-weight: 800;
}

.cm-package-fees {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.cm-package-fees div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.cm-package-fees span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.cm-package-fees strong {
    display: block;
    color: #081426;
    font-size: 24px;
    margin-top: 5px;
}

.cm-package-features {
    display: grid;
    gap: 10px;
    margin: 18px 0;
}

.cm-package-features div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
}

.cm-package-features span {
    color: #081426;
    font-weight: 900;
}

.cm-package-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.cm-package-pill-on {
    background: #dcfce7;
    color: #166534 !important;
}

.cm-package-pill-off {
    background: #fee2e2;
    color: #991b1b !important;
}

.cm-package-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
}

.cm-package-checks label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #081426;
    font-weight: 900;
}

.cm-package-checks input {
    width: auto;
}

@media (max-width: 1000px) {
    .cm-package-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .cm-package-fees,
    .cm-package-checks {
        grid-template-columns: 1fr;
    }

    .cm-package-price strong {
        font-size: 34px;
    }
}
/* =========================================================
   Access-Level Package Updates
========================================================= */

.cm-package-access-box {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0;
}

.cm-package-access-box h3 {
    margin: 0 0 8px;
    color: #081426;
}

.cm-package-access-box p {
    margin: 0 0 12px;
    color: #334155;
    line-height: 1.45;
}

.cm-package-locked {
    opacity: .92;
}

.cm-package-allowed {
    box-shadow: 0 0 0 4px rgba(34,197,94,.15), 0 18px 45px rgba(15,23,42,.12);
}

.cm-package-fees-muted small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

.cm-locked-fee {
    background: #f1f5f9 !important;
    opacity: .75;
    position: relative;
}

.cm-locked-fee:after {
    content: "LOCKED";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #64748b;
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: .06em;
}

.cm-package-purchase-box {
    background: #fff7d6;
    border: 1px solid #facc15;
    border-radius: 18px;
    padding: 16px;
    margin: 18px 0;
    display: grid;
    gap: 10px;
}

.cm-package-purchase-box h3 {
    margin: 0;
    color: #081426;
}

.cm-info-modal,
.cm-frame-popup {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999999;
    background: rgba(2, 6, 23, .82);
    padding: 24px;
    align-items: center;
    justify-content: center;
}

.cm-info-modal.active,
.cm-frame-popup.active {
    display: flex;
}

.cm-info-modal-box,
.cm-frame-popup-box {
    width: min(100%, 980px);
    max-height: 92vh;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0,0,0,.45);
}

.cm-info-modal-head,
.cm-frame-popup-head {
    background: #081426;
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.cm-info-modal-head strong,
.cm-frame-popup-head strong {
    color: #ffffff;
}

.cm-info-modal-head button,
.cm-frame-popup-head button {
    background: #ffd000;
    color: #000000;
    border: 0;
    border-radius: 10px;
    padding: 9px 14px;
    font-weight: 1000;
    cursor: pointer;
}

.cm-info-modal-body {
    padding: 22px;
    overflow-y: auto;
    max-height: calc(92vh - 62px);
}

.cm-access-rules-list {
    display: grid;
    gap: 12px;
}

.cm-access-rules-list div {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
}

.cm-access-rules-list h3 {
    margin: 0 0 6px;
    color: #081426;
}

.cm-access-rules-list p {
    margin: 0;
    color: #334155;
}

.cm-frame-popup iframe {
    width: 100%;
    height: 76vh;
    border: 0;
    display: block;
    background: #ffffff;
}

@media (max-width: 760px) {
    .cm-info-modal,
    .cm-frame-popup {
        padding: 12px;
    }

    .cm-frame-popup iframe {
        height: 72vh;
    }
}
/* =========================================================
   Owner Package Locked Fields
========================================================= */

.cm-input-locked {
    background: #e2e8f0 !important;
    color: #64748b !important;
    cursor: not-allowed !important;
    border-color: #cbd5e1 !important;
}

.cm-check-locked {
    opacity: .72;
    cursor: not-allowed;
}

.cm-check-locked input {
    cursor: not-allowed;
}
}
/* =========================================================
   Locked Owner Package Display
========================================================= */

.cm-package-locked-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 18px 0;
}

.cm-package-locked-grid div {
    background: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 14px;
    opacity: .88;
    position: relative;
}

.cm-package-locked-grid div:after {
    content: "LOCKED";
    position: absolute;
    top: 10px;
    right: 10px;
    background: #64748b;
    color: #ffffff;
    border-radius: 999px;
    padding: 4px 8px;
    font-size: 10px;
    font-weight: 1000;
    letter-spacing: .06em;
}

.cm-package-locked-grid span {
    display: block;
    color: #64748b;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .07em;
}

.cm-package-locked-grid strong {
    display: block;
    color: #081426;
    font-size: 26px;
    margin-top: 6px;
}

.cm-package-locked-grid small {
    display: block;
    margin-top: 6px;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .cm-package-locked-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   Owner Package Two-Column Locked Form Display
========================================================= */

.cm-package-readonly-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    margin: 22px 0;
}

.cm-package-readonly-field label {
    display: block;
    color: #081426;
    font-size: 18px;
    font-weight: 1000;
    margin: 0 0 8px;
}

.cm-package-readonly-field input {
    width: 100%;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    padding: 15px 16px;
    color: #081426;
    background: #f8fafc;
    font-size: 18px;
    cursor: not-allowed;
}

.cm-package-readonly-field p {
    margin: 10px 0 0;
    color: #51617a;
    font-size: 14px;
    line-height: 1.35;
}

.cm-package-readonly-field input:disabled {
    opacity: 1;
    color: #081426;
    -webkit-text-fill-color: #081426;
}

@media (max-width: 760px) {
    .cm-package-readonly-form {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}
/* =========================================================
   Package Learn More Buttons
========================================================= */

.cm-feature-learn-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 12px 14px;
}

.cm-feature-learn-row > span:first-child {
    color: #081426;
    font-weight: 900;
}

.cm-feature-learn-actions {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.cm-learn-more-btn,
.cm-field-learn-btn {
    border: 0;
    background: #0f172a;
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 1000;
    padding: 6px 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.cm-field-learn-btn {
    margin-left: 7px;
    vertical-align: middle;
    background: #ffd000;
    color: #000000;
}

.cm-package-pill-collect {
    background: #dbeafe;
    color: #1d4ed8 !important;
}

.cm-info-modal-body p#cmPackageLearnBody {
    color: #081426;
    font-size: 18px;
    line-height: 1.55;
    white-space: pre-wrap;
}

@media (max-width: 760px) {
    .cm-feature-learn-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .cm-feature-learn-actions {
        justify-content: flex-start;
    }
}
/* =========================================================
   Larger Package Popups + Stable Dropdowns
========================================================= */

.cm-info-modal-box {
    width: min(96vw, 1280px) !important;
    max-height: 94vh !important;
}

.cm-info-modal-body {
    max-height: calc(94vh - 70px) !important;
    overflow-y: auto !important;
}

.cm-frame-popup-box {
    width: min(98vw, 1440px) !important;
    max-height: 96vh !important;
}

.cm-frame-popup iframe {
    height: 86vh !important;
}

.cm-package-learn-text {
    color: #081426;
    font-size: 22px;
    line-height: 1.5;
    margin: 0 0 22px;
}

.cm-package-learn-actions {
    margin-top: 18px;
}

/* Disable unpredictable hover behavior and force click-controlled dropdowns */
.cm-drop .cm-drop-panel {
    display: none !important;
    z-index: 999999 !important;
}

.cm-drop.cm-drop-open .cm-drop-panel {
    display: block !important;
}

.cm-drop:hover .cm-drop-panel {
    display: none !important;
}

.cm-drop.cm-drop-open:hover .cm-drop-panel {
    display: block !important;
}

.cm-drop-panel {
    pointer-events: auto;
}

.cm-drop-btn {
    user-select: none;
}

@media (max-width: 760px) {
    .cm-info-modal-box,
    .cm-frame-popup-box {
        width: 96vw !important;
        border-radius: 18px !important;
    }

    .cm-frame-popup iframe {
        height: 78vh !important;
    }

    .cm-package-learn-text {
        font-size: 18px;
    }
}
/* =========================================================
   Featured Placement Engine
========================================================= */

.cm-featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd000, #ff9f1c);
    color: #081426 !important;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 8px 0;
    box-shadow: 0 8px 18px rgba(255, 208, 0, .28);
}

.cm-featured-badge:before {
    content: "?";
    margin-right: 6px;
}

.cm-featured-ribbon {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 3;
}

.cm-market-title-row .cm-featured-badge {
    margin-left: 0;
}

.cm-table .cm-featured-badge {
    margin: 0;
}
}
/* =========================================================
   Marketplace Contest Cards - Restore Premium Card Layout
========================================================= */

.cm-market-results {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 28px;
    margin: 32px 0;
}

.cm-market-card {
    background: #ffffff;
    border-radius: 26px;
    overflow: hidden;
    border: 1px solid rgba(226, 232, 240, .9);
    box-shadow: 0 18px 45px rgba(2, 6, 23, .18);
    position: relative;
    color: #06152a;
}

.cm-market-card-featured {
    box-shadow: 0 0 0 4px rgba(255, 208, 0, .22), 0 22px 58px rgba(2, 6, 23, .26);
}

.cm-market-image-wrap {
    display: block;
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    background: #081426;
}

.cm-market-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.cm-market-card-body {
    padding: 28px;
}

.cm-market-title-row {
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.cm-market-title-row:before {
    content: attr(data-initial);
    display: none;
}

.cm-market-logo-badge {
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: #081426;
    color: #ffd000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    font-weight: 1000;
    flex: 0 0 78px;
}

.cm-market-title-content {
    min-width: 0;
}

.cm-market-kicker {
    display: inline-block;
    color: #51617a;
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 8px;
}

.cm-market-title-row h2 {
    margin: 0;
    color: #06152a;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.08;
    font-weight: 1000;
}

.cm-market-title-row h2 a {
    color: #06152a;
    text-decoration: none;
}

.cm-market-title-row h2 a:hover {
    color: #0b5fff;
}

.cm-market-subtitle {
    color: #06152a;
    font-size: 20px;
    font-weight: 900;
    margin: 26px 0 12px;
}

.cm-market-description {
    color: #06152a;
    font-size: 18px;
    line-height: 1.45;
    margin: 0 0 22px;
}

.cm-market-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px 0;
    color: #51617a;
    font-size: 14px;
    font-weight: 700;
}

.cm-market-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0;
}

.cm-market-stat {
    background: #f8fafc;
    border: 1px solid #dbe3ef;
    border-radius: 18px;
    padding: 16px 10px;
    text-align: center;
}

.cm-market-stat strong {
    display: block;
    color: #06152a;
    font-size: 30px;
    line-height: 1;
    font-weight: 1000;
}

.cm-market-stat span {
    display: block;
    color: #51617a;
    font-size: 12px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-top: 8px;
}

.cm-market-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 18px 0 0;
}

.cm-market-actions .cm-btn {
    margin: 0;
}

.cm-status-pill {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    background: #16a34a;
    color: #ffffff;
    border-radius: 999px;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.cm-featured-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffd000, #ff9f1c);
    color: #081426 !important;
    border-radius: 999px;
    padding: 7px 13px;
    font-size: 11px;
    font-weight: 1000;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 8px 0;
    box-shadow: 0 8px 18px rgba(255, 208, 0, .28);
}

.cm-featured-badge:before {
    content: "?";
    margin-right: 6px;
}

.cm-featured-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 6;
}

@media (max-width: 760px) {
    .cm-market-results {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .cm-market-image-wrap {
        height: 240px;
    }

    .cm-market-card-body {
        padding: 24px;
    }

    .cm-market-title-row {
        gap: 14px;
    }

    .cm-market-logo-badge {
        width: 64px;
        height: 64px;
        border-radius: 18px;
        font-size: 28px;
        flex-basis: 64px;
    }

    .cm-market-title-row h2 {
        font-size: 30px;
    }

    .cm-market-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .cm-market-actions .cm-btn {
        width: 100%;
        justify-content: center;
    }
}
/* =========================================================
   Contest Marketplace Compact 3-Column Card Layout
   Add this at the very bottom so it overrides earlier card CSS.
========================================================= */

.cm-market-card-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 380px)) !important;
    justify-content: start !important;
    align-items: start !important;
    gap: 24px !important;
    margin: 28px 0 !important;
}

.cm-market-card-grid .cm-market-card {
    width: 100% !important;
    max-width: 380px !important;
    min-width: 0 !important;
    background: #ffffff !important;
    border-radius: 22px !important;
    overflow: hidden !important;
    border: 1px solid rgba(226, 232, 240, .95) !important;
    box-shadow: 0 18px 42px rgba(2, 6, 23, .24) !important;
    position: relative !important;
    color: #06152a !important;
}

.cm-market-card-grid .cm-market-image-wrap {
    height: 210px !important;
    border-radius: 0 !important;
}

.cm-market-card-grid .cm-market-image {
    object-fit: cover !important;
    object-position: center top !important;
}

.cm-market-card-grid .cm-status-pill {
    top: 12px !important;
    right: 12px !important;
    padding: 7px 14px !important;
    font-size: 12px !important;
}

.cm-market-card-grid .cm-featured-ribbon {
    top: 12px !important;
    left: 12px !important;
    z-index: 10 !important;
}

.cm-market-card-grid .cm-featured-badge {
    padding: 6px 10px !important;
    font-size: 10px !important;
    margin: 0 !important;
}

.cm-market-card-grid .cm-market-card-body {
    padding: 22px 18px 18px !important;
}

.cm-market-card-grid .cm-market-title-row {
    gap: 14px !important;
    margin-bottom: 22px !important;
}

.cm-market-card-grid .cm-market-logo-badge {
    width: 58px !important;
    height: 58px !important;
    flex: 0 0 58px !important;
    border-radius: 16px !important;
    font-size: 28px !important;
}

.cm-market-card-grid .cm-market-title-row h2 {
    font-size: 25px !important;
    line-height: 1.08 !important;
    margin: 0 0 8px !important;
}

.cm-market-card-grid .cm-market-mini-meta {
    font-size: 13px !important;
    line-height: 1.3 !important;
}

.cm-market-card-grid .cm-market-subtitle {
    font-size: 16px !important;
    line-height: 1.35 !important;
    margin: 0 0 18px !important;
}

.cm-market-card-grid .cm-market-description {
    font-size: 15px !important;
    line-height: 1.42 !important;
    margin: 0 0 18px !important;
}

.cm-market-card-grid .cm-market-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 9px !important;
    margin: 18px 0 !important;
}

.cm-market-card-grid .cm-market-stat {
    border-radius: 14px !important;
    padding: 12px 6px !important;
}

.cm-market-card-grid .cm-market-stat strong {
    font-size: 24px !important;
}

.cm-market-card-grid .cm-market-stat span {
    font-size: 10px !important;
    margin-top: 6px !important;
}

.cm-market-card-grid .cm-market-actions {
    display: grid !important;
    grid-template-columns: 1.25fr 1fr .75fr !important;
    gap: 8px !important;
}

.cm-market-card-grid .cm-market-actions .cm-btn {
    min-height: 48px !important;
    font-size: 16px !important;
    padding: 10px 12px !important;
    border-radius: 14px !important;
}

/* Keep the card responsive */
@media (min-width: 1200px) {
    .cm-market-card-grid {
        grid-template-columns: repeat(3, minmax(340px, 380px)) !important;
    }
}

@media (min-width: 1600px) {
    .cm-market-card-grid {
        grid-template-columns: repeat(4, minmax(330px, 370px)) !important;
    }
}

@media (max-width: 900px) {
    .cm-market-card-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)) !important;
    }

    .cm-market-card-grid .cm-market-card {
        max-width: 100% !important;
    }
}

@media (max-width: 560px) {
    .cm-market-card-grid {
        grid-template-columns: 1fr !important;
    }

    .cm-market-card-grid .cm-market-image-wrap {
        height: 230px !important;
    }

    .cm-market-card-grid .cm-market-actions {
        grid-template-columns: 1fr !important;
    }
}
/* =========================================================
   Featured Badge Icon Fix
   Replaces broken text/star character with CSS SVG icon
========================================================= */

.cm-featured-badge:before {
    content: "" !important;
    display: inline-block !important;
    width: 13px !important;
    height: 13px !important;
    margin-right: 7px !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: contain !important;
    background-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%20fill='%23081426'%3E%3Cpath%20d='M12%202l2.9%206.15%206.72.9-4.9%204.72%201.2%206.68L12%2017.25%206.08%2020.45l1.2-6.68-4.9-4.72%206.72-.9L12%202z'/%3E%3C/svg%3E") !important;
}

.cm-featured-badge {
    gap: 0 !important;
}
}

/* =========================================================
   ContestBot Homepage Layout - Final Clean Version
   Single source of truth for index.php homepage layout.
   Replaces all previous spacing hacks / overrides.
========================================================= */

.cm-nav,
.cm-nav-v3 {
    margin-bottom: 14px !important;
}

.cm-home-hero {
    position: relative !important;
    display: block !important;
    margin: 12px 0 18px !important;
    padding: 22px 34px 24px !important;
    min-height: 0 !important;
    height: auto !important;
    overflow: visible !important;
    background: linear-gradient(135deg, #0f1d35, #173565) !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 28px !important;
    box-shadow: 0 25px 70px rgba(2, 6, 23, .28) !important;
}

.cm-home-hero-main {
    max-width: calc(100% - 500px) !important;
    padding: 0 !important;
    margin: 0 !important;
}

.cm-home-hero-main h1 {
    color: #ffffff !important;
    font-size: clamp(42px, 5vw, 76px) !important;
    line-height: .98 !important;
    margin: 0 0 20px !important;
    padding: 0 !important;
    max-width: 980px !important;
    text-transform: uppercase !important;
    letter-spacing: .01em !important;
}

.cm-home-hero-main p {
    color: #ffffff !important;
    font-size: 22px !important;
    line-height: 1.38 !important;
    max-width: 1050px !important;
    margin: 0 0 18px !important;
    padding: 0 !important;
}

.cm-home-actions {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin: 18px 0 0 !important;
    padding: 0 !important;
}

/* Right hero module is intentionally absolute so it stays top-right without
   forcing a large blank space under the left-side buttons. */
.cm-home-hero-side {
    position: absolute !important;
    top: 22px !important;
    right: 34px !important;
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    z-index: 5 !important;
}

.cm-home-stat-strip {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin: 0 !important;
}

.cm-home-stat-strip div {
    background: #ffffff !important;
    min-height: 74px !important;
    padding: 12px 10px !important;
    border-radius: 10px !important;
    box-shadow: 0 10px 25px rgba(2, 6, 23, .14) !important;
}

.cm-home-stat-strip span {
    display: block !important;
    color: #51617a !important;
    font-size: 8.5px !important;
    line-height: 1.15 !important;
    font-weight: 1000 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    margin-bottom: 7px !important;
}

.cm-home-stat-strip strong {
    display: block !important;
    color: #081426 !important;
    font-size: 15px !important;
    line-height: 1.12 !important;
    font-weight: 1000 !important;
}

.cm-home-foundation-card {
    background: #ffffff !important;
    color: #081426 !important;
    margin: 0 !important;
    padding: 24px !important;
    border-radius: 24px !important;
    min-height: 0 !important;
    height: auto !important;
    box-shadow: 0 20px 50px rgba(2, 6, 23, .20) !important;
}

.cm-home-foundation-card h1,
.cm-home-foundation-card h2,
.cm-home-foundation-card h3,
.cm-home-foundation-card h4,
.cm-home-foundation-card strong {
    color: #081426 !important;
}

.cm-home-foundation-card h2 {
    font-size: 30px !important;
    line-height: 1.08 !important;
    margin: 0 0 16px !important;
}

.cm-home-foundation-card p,
.cm-home-foundation-card span,
.cm-home-foundation-card div,
.cm-home-foundation-card li {
    color: #334155 !important;
}

.cm-home-foundation-card p {
    font-size: 16px !important;
    line-height: 1.45 !important;
    margin: 0 0 14px !important;
}

.cm-home-dashboard-grid {
    position: static !important;
    top: auto !important;
    transform: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 420px !important;
    gap: 28px !important;
    align-items: start !important;
    margin: 0 0 34px !important;
    padding: 0 !important;
}

.cm-home-live-card {
    background: #0f172a !important;
    border: 1px solid rgba(255,255,255,.13) !important;
    color: #ffffff !important;
    border-radius: 22px !important;
    box-shadow: 0 20px 65px rgba(2, 6, 23, .35) !important;
}

.cm-home-card-head {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 18px !important;
    margin-bottom: 18px !important;
}

.cm-home-card-head h2 {
    margin: 0 !important;
    color: #ffffff !important;
    font-size: 28px !important;
}

.cm-home-feed-count {
    background: #081426 !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    padding: 12px 15px !important;
    font-weight: 900 !important;
}

.cm-home-feed-count span {
    color: #ffd000 !important;
}

.cm-home-activity-feed {
    display: grid !important;
    gap: 10px !important;
}

.cm-home-activity-item {
    display: grid !important;
    grid-template-columns: 12px minmax(0, 1fr) !important;
    gap: 13px !important;
    align-items: start !important;
    background: rgba(255,255,255,.06) !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 14px !important;
    padding: 14px !important;
}

.cm-home-activity-dot {
    width: 8px !important;
    height: 8px !important;
    border-radius: 999px !important;
    background: #ffd000 !important;
    margin-top: 7px !important;
}

.cm-home-activity-item strong {
    display: block !important;
    color: #ffffff !important;
    line-height: 1.35 !important;
    font-weight: 1000 !important;
}

.cm-home-activity-item small {
    display: block !important;
    color: #93c5fd !important;
    margin-top: 4px !important;
}

.cm-home-activity-item a,
.cm-home-activity-item button.cm-home-view-link {
    color: #ffd000 !important;
    font-weight: 1000 !important;
    text-decoration: none !important;
    display: inline-flex !important;
    margin-top: 8px !important;
}

.cm-home-activity-item a:hover,
.cm-home-activity-item button.cm-home-view-link:hover {
    text-decoration: underline !important;
}

.cm-home-activity-featured .cm-home-activity-dot {
    background: #22c55e !important;
}

.cm-home-activity-vote .cm-home-activity-dot {
    background: #38bdf8 !important;
}

.cm-home-activity-empty {
    color: #cbd5e1 !important;
    background: rgba(255,255,255,.055) !important;
    border-radius: 14px !important;
    padding: 18px !important;
}

.cm-home-activity-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 14px !important;
    border-top: 1px solid rgba(255,255,255,.12) !important;
    padding-top: 16px !important;
    margin-top: 18px !important;
}

.cm-home-activity-footer button:disabled {
    opacity: .45 !important;
    cursor: not-allowed !important;
}

.cm-home-activity-footer div {
    color: #cbd5e1 !important;
    font-weight: 900 !important;
}

.cm-home-right-stack {
    width: 420px !important;
    max-width: 420px !important;
    justify-self: end !important;
    display: grid !important;
    gap: 16px !important;
}

.cm-home-mini-stats {
    background: #ffffff !important;
    color: #081426 !important;
    border-radius: 22px !important;
    box-shadow: 0 12px 34px rgba(2, 6, 23, .12) !important;
}

.cm-home-mini-stats h2 {
    color: #081426 !important;
    font-size: 26px !important;
    margin: 0 0 16px !important;
}

.cm-home-mini-stat-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
}

.cm-home-mini-stat-grid div {
    background: #f8fafc !important;
    border: 1px solid #dbe3ef !important;
    border-radius: 16px !important;
    padding: 13px 10px !important;
    text-align: center !important;
}

.cm-home-mini-stat-grid span {
    display: block !important;
    color: #51617a !important;
    font-size: 10px !important;
    font-weight: 1000 !important;
    text-transform: uppercase !important;
    letter-spacing: .08em !important;
    margin-bottom: 7px !important;
}

.cm-home-mini-stat-grid strong {
    display: block !important;
    color: #081426 !important;
    font-size: 23px !important;
    font-weight: 1000 !important;
    line-height: 1.1 !important;
}

.cm-ai-challenge-card {
    background: linear-gradient(180deg, #eef6ff, #dbeafe) !important;
    border: 1px solid #bfdbfe !important;
    border-radius: 24px !important;
    padding: 20px !important;
    color: #081426 !important;
    box-shadow: 0 20px 65px rgba(2, 6, 23, .24) !important;
}

.cm-ai-challenge-card h2 {
    color: #081426 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    font-size: 26px !important;
    line-height: 1.04 !important;
    margin: 0 0 12px !important;
    text-align: center !important;
}

.cm-ai-challenge-card p {
    color: #334155 !important;
    font-weight: 700 !important;
    text-align: center !important;
}

.cm-ai-module-shell {
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 12px !important;
    margin-top: 14px !important;
    overflow: hidden !important;
}

.cm-ai-module-empty {
    background: #ffffff !important;
    border-radius: 18px !important;
    padding: 18px !important;
    color: #081426 !important;
    font-weight: 900 !important;
}

/* External URL popup for Live Activity */
#cmHomeExternalPopup {
    display: none;
    position: fixed !important;
    inset: 0 !important;
    z-index: 9999999 !important;
}

#cmHomeExternalPopup.active {
    display: flex !important;
}

html.cm-popup-open,
body.cm-popup-open {
    overflow: hidden !important;
}

.cm-home-view-link {
    appearance: none !important;
    border: 0 !important;
    background: transparent !important;
    color: #ffd000 !important;
    font-weight: 1000 !important;
    text-decoration: none !important;
    padding: 0 !important;
    margin-top: 8px !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-size: inherit !important;
}

.cm-home-view-link:hover {
    text-decoration: underline !important;
}

@media (max-width: 1180px) {
    .cm-home-hero {
        display: grid !important;
        grid-template-columns: 1fr !important;
        min-height: auto !important;
        padding: 22px !important;
        margin-top: 14px !important;
    }

    .cm-home-hero-main {
        max-width: 100% !important;
    }

    .cm-home-hero-side {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px !important;
        padding: 0 !important;
    }

    .cm-home-dashboard-grid {
        grid-template-columns: 1fr !important;
        margin-top: 18px !important;
    }

    .cm-home-right-stack {
        width: 100% !important;
        max-width: 100% !important;
        justify-self: stretch !important;
    }
}

@media (max-width: 700px) {
    .cm-home-hero-main h1 {
        font-size: 42px !important;
    }

    .cm-home-hero-main p {
        font-size: 18px !important;
    }

    .cm-home-stat-strip,
    .cm-home-mini-stat-grid {
        grid-template-columns: 1fr !important;
    }

    .cm-home-card-head,
    .cm-home-activity-footer {
        flex-direction: column !important;
        align-items: stretch !important;
    }
}
/* =========================================================
   EMERGENCY FINAL FIX - Remove Forced Homepage Hero Height
   This fixes the large empty blue area under the hero buttons
========================================================= */

.cm-home-hero {
    min-height: unset !important;
    height: auto !important;
    padding-bottom: 18px !important;
    margin-bottom: 14px !important;
    overflow: visible !important;
}

/* Keep the hero content from adding extra bottom space */
.cm-home-hero-main,
.cm-home-hero-main *,
.cm-home-actions {
    margin-bottom: 0 !important;
}

/* Restore only the spacing needed between paragraph and buttons */
.cm-home-hero-main p:not(.cm-home-actions) {
    margin-bottom: 18px !important;
}

/* Keep the right-side PMN box fixed at the top-right without affecting hero height */
.cm-home-hero-side {
    position: absolute !important;
    top: 18px !important;
    right: 34px !important;
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

/* Move Live Activity / Marketplace Snapshot directly under hero */
.cm-home-dashboard-grid {
    margin-top: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
}

/* Mobile/tablet reset */
@media (max-width: 1180px) {
    .cm-home-hero {
        min-height: unset !important;
        height: auto !important;
        padding-bottom: 22px !important;
    }

    .cm-home-hero-side {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px !important;
    }

    .cm-home-dashboard-grid {
        margin-top: 18px !important;
    }
}/* =========================================================
   EMERGENCY FINAL FIX - Remove Forced Homepage Hero Height
   This fixes the large empty blue area under the hero buttons
========================================================= */

.cm-home-hero {
    min-height: unset !important;
    height: auto !important;
    padding-bottom: 18px !important;
    margin-bottom: 14px !important;
    overflow: visible !important;
}

/* Keep the hero content from adding extra bottom space */
.cm-home-hero-main,
.cm-home-hero-main *,
.cm-home-actions {
    margin-bottom: 0 !important;
}

/* Restore only the spacing needed between paragraph and buttons */
.cm-home-hero-main p:not(.cm-home-actions) {
    margin-bottom: 18px !important;
}

/* Keep the right-side PMN box fixed at the top-right without affecting hero height */
.cm-home-hero-side {
    position: absolute !important;
    top: 18px !important;
    right: 34px !important;
    width: 420px !important;
    max-width: 420px !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
}

/* Move Live Activity / Marketplace Snapshot directly under hero */
.cm-home-dashboard-grid {
    margin-top: 0 !important;
    position: static !important;
    top: auto !important;
    transform: none !important;
}

/* Mobile/tablet reset */
@media (max-width: 1180px) {
    .cm-home-hero {
        min-height: unset !important;
        height: auto !important;
        padding-bottom: 22px !important;
    }

    .cm-home-hero-side {
        position: static !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 20px !important;
    }

    .cm-home-dashboard-grid {
        margin-top: 18px !important;
    }
}
/* =========================================================
   Registration Reward Report - Compact Stat Grid Spacing
   Reduces vertical spacing between summary rows by 50%+
========================================================= */

.cm-grid {
    gap: 14px !important;
    margin-bottom: 18px !important;
}

.cm-stat {
    padding: 18px 22px !important;
    min-height: auto !important;
    border-radius: 22px !important;
}

.cm-stat span {
    margin-bottom: 8px !important;
    line-height: 1.15 !important;
}

.cm-stat strong {
    margin: 0 !important;
    line-height: 1.05 !important;
}

.cm-stat p {
    margin: 12px 0 0 !important;
    line-height: 1.25 !important;
}

/* Specifically tighten back-to-back stat sections on registration reward report */
.cm-grid + .cm-grid {
    margin-top: -8px !important;
}

/* Keep mobile clean */
@media (max-width: 900px) {
    .cm-grid {
        gap: 12px !important;
    }

    .cm-stat {
        padding: 16px 18px !important;
    }
}
/* =========================================================
   Registration Reward Report - Compact Reward Rules Card
   Reduces vertical spacing inside the Reward Rules section
========================================================= */

.cm-hero .cm-card .cm-two-col {
    gap: 10px 28px !important;
}

.cm-hero .cm-card .cm-two-col p {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.cm-hero .cm-card h2 {
    margin-bottom: 18px !important;
}

/* Make the Reward Rules card tighter overall */
.cm-hero .cm-card {
    padding: 24px 28px !important;
}

/* Optional: reduce large vertical spacing caused by card layout */
.cm-hero .cm-card .cm-two-col > * {
    margin-bottom: 0 !important;
}
}
/* =========================================================
   Mobile Ordering Fix
   Places "Get in the Running for..." above Live Activity
   on mobile devices only.
========================================================= */

@media (max-width: 768px) {
    .cm-home-dashboard-grid {
        display: flex !important;
        flex-direction: column !important;
    }

    .cm-home-right-stack {
        display: contents !important;
    }

    .cm-ai-challenge-card {
        order: 1 !important;
    }

    .cm-home-live-card {
        order: 2 !important;
    }

    .cm-home-mini-stats {
        order: 3 !important;
    }
}