* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, Helvetica, sans-serif;
}

body.cp-body,
body:not(.public-site) {
    color: #000000;
    background: #f3f5f7;
}

body.cp-body a:not(.site-footer a):not(.cp-topbar a):not(.a11y-skip-link):not(.site-header a):not(.cp-media-menu-link):not(.cp-store-menu-link):not(.cp-jobs-menu-link):not(.cp-radio-menu-link):not(.cp-calendar-menu-link),
body:not(.public-site) a:not(.site-footer a):not(.cp-topbar a):not(.a11y-skip-link):not(.site-header a):not(.cp-media-menu-link):not(.cp-store-menu-link):not(.cp-jobs-menu-link):not(.cp-radio-menu-link):not(.cp-calendar-menu-link) {
    color: #000000;
    text-decoration: none;
}
body.cp-body a:not(.site-footer a):not(.cp-topbar a):not(.a11y-skip-link):not(.site-header a):not(.cp-media-menu-link):not(.cp-store-menu-link):not(.cp-jobs-menu-link):not(.cp-radio-menu-link):not(.cp-calendar-menu-link):hover,
body:not(.public-site) a:not(.site-footer a):not(.cp-topbar a):not(.a11y-skip-link):not(.site-header a):not(.cp-media-menu-link):not(.cp-store-menu-link):not(.cp-jobs-menu-link):not(.cp-radio-menu-link):not(.cp-calendar-menu-link):hover {
    color: #000000;
    text-decoration: underline;
}

body.public-site {
    color: #ffffff;
}

/* ==========================================================================
   Control Panel Top Header & Navigation Menu (Pure Black, No Truss)
   ========================================================================== */
body.cp-body .site-truss-wrapper,
body:not(.public-site) .site-truss-wrapper {
    display: none !important;
}

body.cp-body .site-header,
body:not(.public-site) .site-header {
    position: sticky;
    top: 0;
    z-index: 2000;
    width: 100%;
    padding: 0;
    color: #ffffff;
    background: #000000 !important;
    border-bottom: 1px solid #222222;
    box-shadow: none !important;
    text-align: left;
}

body.cp-body .site-header-inner,
body:not(.public-site) .site-header-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 22px;
    width: min(1200px, calc(100% - 24px));
    min-height: 56px;
    margin: 0 auto;
    padding: 0;
}

.site-tagline {
    margin: 0;
    padding: 0 12px 8px;
    color: #ffff00;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.3;
    text-align: center;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-logo img {
    display: block;
    width: 58px;
    height: 54px;
    object-fit: contain;
}

body.cp-body nav.menu,
body:not(.public-site) nav.menu {
    width: auto;
    background: #000000 !important;
    top: 0 !important;
}

body.cp-body nav.menu ul.menu-horizontal,
body:not(.public-site) nav.menu ul.menu-horizontal {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 0;
    margin: 0;
    color: #ffff00;
    list-style: none;
}

body.cp-body nav.menu ul.menu-horizontal li,
body:not(.public-site) nav.menu ul.menu-horizontal li {
    position: relative;
    margin: 0 4px;
}

body.cp-body nav.menu ul.menu-horizontal li a,
body.cp-body .dropbtn,
body:not(.public-site) nav.menu ul.menu-horizontal li a,
body:not(.public-site) .dropbtn {
    display: inline-block;
    padding: 9px 12px;
    border: 0;
    color: #ffffff !important;
    background: #000000 !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none !important;
    text-shadow: none !important;
    filter: none !important;
    cursor: pointer;
    transition: color 0.15s ease;
}

body.cp-body nav.menu ul.menu-horizontal li a:hover,
body.cp-body .dropbtn:hover,
body:not(.public-site) nav.menu ul.menu-horizontal li a:hover,
body:not(.public-site) .dropbtn:hover {
    color: #ffff00 !important;
    background: #000000 !important;
    text-decoration: none !important;
    text-shadow: none !important;
    filter: none !important;
}

.dropdown {
    position: relative;
}

body.cp-body .dropdown-content,
body:not(.public-site) .dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 210px;
    border: 1px solid #ffff00 !important;
    background: #000000 !important;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.6) !important;
    z-index: 2000;
}

body.cp-body .dropdown-content a,
body.cp-body .dropdown-content button,
body:not(.public-site) .dropdown-content a,
body:not(.public-site) .dropdown-content button {
    display: block;
    width: 100%;
    padding: 9px 12px;
    color: #ffffff !important;
    background: transparent !important;
    font-size: 13px;
    text-align: left;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    box-sizing: border-box;
    font-family: inherit;
    transition: color 0.15s ease, background 0.15s ease;
}

.dropdown-content a:hover,
.dropdown-content button:hover,
body.cp-body .dropdown-content a:hover,
body.cp-body .dropdown-content button:hover,
body:not(.public-site) .dropdown-content a:hover,
body:not(.public-site) .dropdown-content button:hover {
    color: #ffff00 !important;
    background: #222222 !important;
}

.dropdown.open .dropdown-content {
    display: block;
}

.menu-toggle-btn,
body.cp-body .menu-toggle-btn,
body:not(.public-site) .menu-toggle-btn {
    display: none;
    padding: 8px 14px;
    border: 1px solid #ffff00 !important;
    color: #ffff00 !important;
    background: #000000 !important;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

@media (min-width: 769px) {
    .dropdown:hover .dropdown-content {
        display: block;
    }
}

.cp-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 16px 28px;
    color: #fff;
    background: #202833;
}

.cp-brand {
    color: #fff;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}

.cp-topbar nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.cp-topbar nav a {
    color: #d8e2ee;
    text-decoration: none;
}

.cp-frame {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    width: min(1200px, calc(100% - 32px));
    margin: 32px auto;
    gap: 24px;
}

.cp-frame-auth {
    grid-template-columns: minmax(0, 1fr);
}

.cp-frame-auth .cp-shell {
    width: 100%;
}

.cp-sidebar {
    align-self: start;
    padding: 12px;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(31, 41, 51, 0.05);
}

.cp-sidebar-user-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid #e2e8f0;
}

.cp-sidebar-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #145ea8;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 15px;
    flex-shrink: 0;
}

.cp-sidebar-user-details {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cp-sidebar-username {
    font-size: 14px;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cp-role-pill {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
}

.cp-role-master {
    background: #fef08a;
    color: #854d0e;
    border: 1px solid #fde047;
}

.cp-role-admin {
    background: #dbeafe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
}

.cp-role-artist {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.cp-role-member {
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.cp-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.cp-nav-section {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cp-nav-section-title {
    margin: 0 0 4px 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    color: #94a3b8;
}

.cp-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cp-nav-item {
    margin: 0;
    padding: 0;
}

.cp-nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 10px;
    border-radius: 6px;
    color: #334155;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    transition: background 0.15s ease, color 0.15s ease;
}

.cp-nav-link:hover {
    background: #f1f5f9;
    color: #0284c7;
}

.cp-nav-link.is-active {
    background: #e0f2fe;
    color: #0369a1;
    font-weight: 700;
}

.cp-nav-badge {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
}

.cp-nav-badge.is-alert {
    background: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fca5a5;
    animation: badgePulse 2s infinite;
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.cp-nav-footer-section {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
}

.cp-logout-link {
    color: #dc2626 !important;
}

.cp-logout-link:hover {
    background: #fee2e2 !important;
}

/* Hygiene & Validation Styles */
.cp-stat-success strong {
    color: #059669 !important;
}

.cp-stat-warning strong {
    color: #d97706 !important;
}

.cp-stat-error strong {
    color: #dc2626 !important;
}

.cp-badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.cp-badge-success {
    background: #dcfce7;
    color: #15803d;
}

.cp-badge-warning {
    background: #fef3c7;
    color: #b45309;
}

.cp-badge-error {
    background: #fee2e2;
    color: #b91c1c;
}

.cp-badge-info {
    background: #e0f2fe;
    color: #0369a1;
}

.cp-badge-muted {
    background: #f1f5f9;
    color: #64748b;
}

.cp-tab {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    color: #475569;
    background: #f1f5f9;
}

.cp-tab:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.cp-tab.active {
    background: #0284c7;
    color: #fff;
}

.cp-button-danger {
    background: #dc2626 !important;
    color: #fff !important;
}

.cp-button-danger:hover {
    background: #b91c1c !important;
}

.cp-shell {
    width: min(1040px, calc(100% - 32px));
    margin: 0;
}

.cp-panel {
    padding: 28px;
    background: #fff;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
    color: #000000;
}

.cp-panel-narrow {
    max-width: 520px;
    margin: 0 auto;
}

.cp-profile-panel {
    max-width: none;
    margin: 0;
}

body.cp-body h1,
body:not(.public-site) h1,
.cp-shell h1,
.cp-panel h1 {
    margin: 0 0 10px;
    color: #000000;
    font-size: 28px;
}

body.cp-body h2,
body:not(.public-site) h2,
.cp-shell h2,
.cp-panel h2 {
    margin: 0 0 10px;
    color: #000000;
    font-size: 22px;
}

.cp-panel p,
body.cp-body p,
body:not(.public-site) p {
    color: #000000;
    line-height: 1.55;
}

.cp-panel .cp-muted,
body.cp-body .cp-muted {
    color: #475569;
}

.cp-panel a:not(.cp-button):not(.button),
body.cp-body .cp-panel a:not(.cp-button):not(.button) {
    color: #000000;
    text-decoration: none;
}

.cp-panel a:not(.cp-button):not(.button):hover,
body.cp-body .cp-panel a:not(.cp-button):not(.button):hover {
    color: #000000;
    text-decoration: underline;
}

.cp-form {
    display: grid;
    gap: 18px;
    margin-top: 24px;
}

.cp-field {
    display: grid;
    gap: 7px;
}

.cp-field label,
.cp-field-label {
    color: #000000;
    font-weight: 700;
}

.cp-field input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b9c4cf;
    border-radius: 6px;
    font-size: 16px;
}

.cp-field textarea {
    width: 100%;
    min-height: 96px;
    padding: 10px 12px;
    border: 1px solid #b9c4cf;
    border-radius: 6px;
    font: inherit;
    font-size: 16px;
    resize: vertical;
}

.cp-field select {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #b9c4cf;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
}

.cp-file-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.cp-profile-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 5px;
    align-items: start;
    margin-bottom: 5px;
}

.cp-profile-type-area {
    min-width: 0;
}

.cp-profile-heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(180px, 260px);
    gap: 5px;
    align-items: start;
    margin-bottom: 5px;
}

.cp-profile-heading {
    margin-bottom: 0;
}

.cp-profile-type-area .cp-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    margin-top: 0;
}

.cp-profile-type-area .cp-stat {
    overflow: hidden;
}

.cp-profile-type-area .cp-stat strong {
    max-width: 100%;
    font-size: clamp(8px, 1.1vw, 12px);
    line-height: 1.25;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cp-profile-image-form {
    display: grid;
    justify-items: start;
    width: 100%;
    margin: 0;
}

.cp-profile-image-row {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    align-items: start;
}

.cp-profile-image-upload {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 160px;
    overflow: hidden;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    background: #f3f6f9;
    cursor: pointer;
}

.cp-profile-image-upload:hover,
.cp-profile-image-upload.is-dragover {
    border-color: #145ea8;
    box-shadow: 0 0 0 3px rgba(20, 94, 168, 0.14);
}

.cp-profile-image-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cp-profile-image-watermark {
    position: absolute;
    right: 10px;
    bottom: 10px;
    max-width: calc(100% - 20px);
    padding: 5px 8px;
    border-radius: 6px;
    color: #fff;
    background: rgba(0, 0, 0, 0.58);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    pointer-events: none;
}

.cp-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.cp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 0;
    border-radius: 6px;
    color: #fff;
    background: #145ea8;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
}

.cp-button:hover {
    background: #ffffff;
}

.cp-button-secondary {
    color: #17202a;
    background: #dfe7ef;
}

.cp-button-secondary:hover {
    background: #c8d6e5;
}

.cp-button-danger {
    background: #a83232;
}

.cp-button-danger:hover {
    background: #872727;
}

.cp-button-small {
    min-height: 34px;
    padding: 7px 11px;
    font-size: 14px;
}

.cp-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.cp-actions-inline {
    gap: 8px;
}

.cp-actions-inline form {
    margin: 0;
}

.cp-check {
    display: flex;
    gap: 10px;
    align-items: center;
    color: #000000;
    font-weight: 700;
}

.cp-checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.cp-tool-check {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #dfe5eb;
    border-radius: 6px;
    background: #fbfcfd;
    color: #344252;
    font-weight: 700;
}

.cp-tool-check input {
    flex: 0 0 auto;
    width: 18px;
    min-height: 18px;
}

.cp-alert {
    margin-bottom: 18px;
    padding: 13px 16px;
    border-radius: 6px;
    border: 1px solid #c8d6e5;
    background: #eaf3ff;
}

.cp-alert-error {
    border-color: #e2a8a8;
    background: #fff0f0;
}

.cp-alert-success {
    border-color: #93c9a5;
    background: #eefaf1;
}

.cp-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    margin-top: 5px;
}

.cp-grid.cp-grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cp-grid.cp-grid-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.cp-stat {
    color: #ffffff;
    padding: 8px 10px;
    border: 1px solid #dfe5eb;
    border-radius: 6px;
    background: #000;
}

.cp-stat strong {
    display: block;
    margin-bottom: 6px;
    font-size: 18px;
}

.cp-stat-label-link {
    color: #ffffff;
    font-weight: 700;
    text-decoration: none;
}

.cp-stat-label-link:hover {
    text-decoration: underline;
}

.cp-awstats-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: 18px 0 0;
}

.cp-awstats-panel {
    padding: 16px;
}

.cp-awstats-frame {
    display: block;
    width: 100%;
    min-height: 760px;
    margin-top: 12px;
    border: 1px solid #dfe5eb;
    border-radius: 6px;
    background: #fff;
}

.cp-command-output {
    max-height: 220px;
    overflow: auto;
    white-space: pre-wrap;
}

.cp-secondary-link {
    color: #145ea8;
    font-weight: 700;
    text-decoration: none;
}

.cp-secondary-link:hover {
    text-decoration: underline;
}

.cp-stat-edit-line {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.cp-stat-edit-line strong {
    min-width: 0;
    word-break: break-word;
}

.cp-inline-edit-form {
    margin: 0;
}

.cp-member-edit-form {
    margin-top: 10px;
}

.cp-profile-genre-form {
    display: grid;
    gap: 4px;
    margin-top: 5px;
}

.cp-profile-genre-form-top {
    justify-self: end;
    width: 100%;
    margin-top: 0;
}

.cp-profile-genre-form select {
    width: min(260px, 100%);
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid #888888;
    border-radius: 6px;
    background: #fff;
    font-size: 1rem;
}

.cp-stat-label {
    display: block;
    color: #000000;
}

.cp-inline-edit-fields {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.cp-inline-edit-fields[hidden] {
    display: none;
}

.cp-inline-edit-fields input {
    width: min(260px, 100%);
    min-height: 36px;
    padding: 7px 9px;
    border: 1px solid #b9c4cf;
    border-radius: 6px;
    font-size: 16px;
}

.cp-pencil-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    color: #145ea8;
    background: #eef5fc;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
}

.cp-pencil-link:hover {
    color: #fff;
    background: #145ea8;
}

.cp-inline-link-button {
    padding: 0;
    border: 0;
    color: #145ea8;
    background: transparent;
    font-size: clamp(8px, 1.1vw, 12px);
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    text-align: left;
    white-space: nowrap;
}

.cp-inline-link-button:hover {
    text-decoration: underline;
}

.cp-plus-link,
.cp-minus-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #145ea8;
    background: #eef5fc;
    font-size: 1em;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.cp-minus-link {
    color: #a83232;
    background: #fff0f0;
}

.cp-plus-link:hover,
.cp-minus-link:hover {
    color: #fff;
    background: #145ea8;
}

.cp-minus-link:hover {
    background: #a83232;
}

.cp-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

@media (max-width: 980px) {
    .cp-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cp-module {
    display: flex;
    flex-direction: column;
    padding: 18px;
    border: 1px solid #dfe5eb;
    border-radius: 8px;
    background: #fbfcfd;
}

.cp-module h3 {
    margin: 0 0 8px;
    font-size: 18px;
}

.cp-module p {
    margin: 0 0 14px;
    flex: 1 1 auto;
}

.cp-module a {
    align-self: flex-start;
    font-weight: 700;
    text-decoration: none;
    margin-top: auto;
}

/* =========================================================================
   Media Module Stat List (Dashboard)
   ========================================================================= */
.cp-media-stat-list {
    list-style: disc;
    padding-left: 20px;
    margin: 4px 0 14px;
    flex: 1 1 auto;
}

.cp-media-stat-list li {
    margin-bottom: 5px;
    font-size: 14px;
}

.cp-media-stat-list a {
    color: #145ea8;
    text-decoration: none;
    font-weight: 500;
}

.cp-media-stat-list a:hover {
    text-decoration: underline;
    color: #0d447a;
}

.cp-media-stat-list strong {
    font-weight: 700;
    color: #000;
}

.cp-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.cp-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
    color: #000000;
}

.cp-table th,
.cp-table td {
    padding: 12px;
    border-bottom: 1px solid #dfe5eb;
    text-align: left;
    vertical-align: top;
    color: #000000;
}

.cp-table th {
    color: #000000;
    background: #f3f6f9;
    font-weight: 700;
}

.cp-table th a {
    color: #000000;
    text-decoration: none;
}

.cp-table th a:hover {
    color: #000000;
    text-decoration: underline;
}

.cp-table-sort-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #000000 !important;
    text-decoration: none !important;
    font-weight: 700;
}

.cp-table-sort-link:hover {
    color: #000000 !important;
    text-decoration: underline !important;
}

.cp-table-sort-link.is-active {
    color: #000000 !important;
    font-weight: 800;
}

.cp-table-sort-link .cp-sort-arrow {
    display: inline-block;
    font-size: 0.9em;
    line-height: 1;
}

.cp-table-sort-link.is-active .cp-sort-arrow {
    color: #000000;
    font-weight: 900;
}

.cp-user-toolbar-form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: flex-end;
    background: #f8fafc;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 20px;
}

.cp-table td a:not(.cp-button):not(.button) {
    color: #000000;
    text-decoration: none;
}

.cp-table td a:not(.cp-button):not(.button):hover {
    color: #000000;
    text-decoration: underline;
}

.cp-thumb-cell {
    width: 56px;
}

.cp-item-thumb,
.cp-thumb-placeholder {
    display: inline-flex;
    width: 32px;
    height: 32px;
    border: 1px solid #d7e0e8;
    border-radius: 6px;
    background: #eef2f5;
}

.cp-item-thumb {
    object-fit: cover;
}

.cp-thumb-placeholder {
    align-items: center;
    justify-content: center;
    color: #6a7785;
    font-size: 9px;
    line-height: 1.1;
    text-align: center;
}

.cp-radio-toggle-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0;
}

.cp-radio-toggle-option {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    color: #344252;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.cp-radio-toggle-option input {
    width: auto;
    min-height: 0;
    margin: 0;
}

/* 440Music Store, Jobs, Radio & Media Admin Top Menu */
.cp-store-top-menu,
.cp-jobs-top-menu,
.cp-radio-top-menu,
.cp-media-top-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    background: #000;
    border-radius: 6px;
    padding: 2px 6px;
    margin-bottom: 24px;
    gap: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.cp-store-menu-link,
.cp-jobs-menu-link,
.cp-radio-menu-link,
.cp-media-menu-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 22px;
    color: #ffffff !important;
    background: #000000 !important;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    text-decoration: none !important;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.cp-store-menu-link:hover,
.cp-jobs-menu-link:hover,
.cp-radio-menu-link:hover,
.cp-media-menu-link:hover {
    color: #ffff00 !important;
    background: #1c1c1c !important;
    text-decoration: underline !important;
}

.cp-store-menu-link.is-active,
.cp-jobs-menu-link.is-active,
.cp-radio-menu-link.is-active,
.cp-media-menu-link.is-active {
    color: #ffff00 !important;
    background: #111111 !important;
    border-bottom: 3px solid #ffff00 !important;
    border-radius: 4px 4px 0 0;
    text-decoration: none !important;
}

.cp-store-menu-link.is-active:hover,
.cp-jobs-menu-link.is-active:hover,
.cp-radio-menu-link.is-active:hover,
.cp-media-menu-link.is-active:hover {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

/* Playlist Placement Badges & Popovers */
.cp-playlist-badge-wrap {
    position: relative;
    display: inline-block;
}

.cp-playlist-badge-wrap summary {
    list-style: none;
}

.cp-playlist-badge-wrap summary::-webkit-details-marker {
    display: none;
}

.cp-playlist-badge {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #000;
    color: #ff0;
    border: 1px solid #ff0;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}

.cp-playlist-badge:hover {
    background: #222;
    color: #fff;
}

.cp-playlist-popover {
    position: absolute;
    left: 0;
    top: 100%;
    margin-top: 6px;
    z-index: 1000;
    min-width: 250px;
    max-width: 320px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 10px 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #1e293b;
    text-align: left;
}

.cp-playlist-popover-title {
    font-weight: 700;
    margin-bottom: 6px;
    color: #0f172a;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 4px;
}

.cp-playlist-popover-list {
    margin: 0;
    padding-left: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.cp-playlist-type-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    background: #f1f5f9;
    color: #475569;
    padding: 1px 5px;
    border-radius: 4px;
    margin-left: 4px;
}

/* Seller Bridge in Jobs & Commerce */
.cp-seller-bridge {
    border-left: 5px solid #000;
    background: #ffffff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.cp-seller-bridge-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cp-seller-bridge-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    color: #fff;
    background: #000;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    border-radius: 4px;
    transition: color 0.15s ease, background 0.15s ease;
}

.cp-seller-bridge-btn:hover {
    color: #ff0 !important;
    background: #222;
    text-decoration: none;
}

/* -------------------------------------------------------------------------
   3-Month Calendar (Past, Current, Next Month in 1 Row) & Shows
   ------------------------------------------------------------------------- */
.cp-calendar-top-menu {
    display: flex;
    gap: 4px;
    background: #000;
    padding: 8px 12px 0 12px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 20px;
    border-bottom: 2px solid #222;
    overflow-x: auto;
}

.cp-calendar-menu-link {
    color: #ffffff !important;
    text-decoration: none !important;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.cp-calendar-menu-link:hover {
    color: #ffff00 !important;
    background: #111111 !important;
    border-bottom-color: #ffff00 !important;
    text-decoration: underline !important;
}

.cp-calendar-menu-link.is-active {
    color: #ffff00 !important;
    background: #111111 !important;
    border-bottom: 3px solid #ffff00 !important;
    border-radius: 4px 4px 0 0;
    text-decoration: none !important;
}

.cp-calendar-menu-link.is-active:hover {
    color: #ffff00 !important;
    text-decoration: underline !important;
}

/* 3-Month Horizontal Grid */
.cp-calendar-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 24px;
    align-items: start;
}

.cp-cal-month-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.cp-cal-month-card.is-current-month {
    border: 2px solid #000;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.cp-cal-month-card.is-past-month {
    opacity: 0.95;
    background: #fbfbfb;
}

.cp-cal-month-header {
    background: #000000;
    color: #ffffff;
    padding: 10px 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cp-cal-month-card.is-current-month .cp-cal-month-header {
    background: #000000;
    border-bottom: 2px solid #ff0;
}

.cp-cal-month-title {
    font-weight: 700;
    font-size: 14px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
}

.cp-cal-month-card.is-current-month .cp-cal-month-title {
    color: #ff0;
}

.cp-cal-month-tag {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #222;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 600;
}

.cp-cal-month-card.is-current-month .cp-cal-month-tag {
    background: #ff0;
    color: #000;
    font-weight: 700;
}

/* 7 Days Weekday Header */
.cp-cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    background: #111111;
    color: #e2e8f0;
    border-bottom: 2px solid #333333;
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 0;
}

.cp-cal-month-card.is-current-month .cp-cal-weekdays {
    background: #1a1a1a;
    color: #ff0;
    border-bottom: 2px solid #ff0;
}

/* Square 7-Day Week Grid: ALWAYS 6 Rows with 1:1 Aspect Ratio (height = width) */
.cp-cal-days-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(6, 1fr);
    background: #cbd5e1;
    gap: 1px;
    border: 1px solid #cbd5e1;
}

.cp-cal-day {
    background: #ffffff;
    padding: 4px 5px;
    aspect-ratio: 1 / 1;
    width: 100%;
    min-height: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
    font-weight: 400;
}

.cp-cal-day:hover {
    background: #f8fafc;
    box-shadow: inset 0 0 0 1px #94a3b8;
    z-index: 1;
    text-decoration: none;
}

.cp-cal-day.is-empty {
    background: #f1f5f9;
    opacity: 0.45;
    cursor: default;
    pointer-events: none;
}

.cp-cal-day.is-empty-day:hover {
    background: #f8fafc;
}

.cp-cal-day.is-today {
    background: #fffef0;
    box-shadow: inset 0 0 0 2px #eab308;
    z-index: 2;
}

/* Day with scheduled gig */
.cp-cal-day.has-events {
    background: #fafaf9;
    border-top: 3px solid #000000;
}

.cp-cal-day.has-events:hover {
    background: #f5f5f4;
    box-shadow: inset 0 0 0 1px #000000, 0 3px 8px rgba(0, 0, 0, 0.12);
    border-top-color: #ff0;
    text-decoration: none;
}

.cp-cal-day.has-events.is-sold-out {
    border-top-color: #ef4444;
}

.cp-cal-day.has-events.is-cancelled {
    background: #fef2f2;
    border-top-color: #991b1b;
}

.cp-cal-day.has-events.is-draft {
    border-top-color: #94a3b8;
}

/* Top Day Body Area containing Gig info */
.cp-cal-day-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    margin-bottom: 4px;
}

.cp-cal-events-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 100%;
}

.cp-cal-event-pill {
    display: block;
    background: #000000;
    color: #ffffff;
    border-left: 3px solid #ff0;
    padding: 3px 4px;
    border-radius: 3px;
    font-size: 9px;
    line-height: 1.25;
    text-decoration: none;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 400;
}

.cp-cal-event-pill.is-sold-out {
    border-left-color: #ef4444;
}

.cp-cal-event-pill.is-cancelled {
    border-left-color: #991b1b;
    background: #450a0a;
    color: #fca5a5;
    text-decoration: line-through;
}

.cp-cal-event-pill.is-draft {
    border-left-color: #94a3b8;
    background: #334155;
}

.cp-cal-event-time {
    font-weight: 400;
    color: #ff0;
    margin-right: 3px;
}

.cp-cal-event-name {
    font-weight: 400;
}

.cp-cal-price-tag {
    color: #a3e635;
    margin-left: 2px;
}

.cp-cal-empty-hint {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    min-height: 20px;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.cp-cal-day:hover .cp-cal-empty-hint {
    opacity: 0.6;
}

.cp-cal-add-plus {
    font-size: 14px;
    font-weight: 400;
    color: #64748b;
}

/* Bottom Day Footer: Day Number strictly at Bottom Left */
.cp-cal-day-footer {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
    width: 100%;
    line-height: 1;
}

.cp-cal-day-num {
    font-size: 11px;
    font-weight: 400;
    color: #000000;
    line-height: 1;
    text-align: left;
    background: transparent;
    border: none;
    padding: 0;
    margin: 0;
}

.cp-cal-day.is-today .cp-cal-day-num {
    color: #000000;
    background: transparent;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 11px;
    font-weight: 400;
}

.cp-cal-gig-dot {
    font-size: 8px;
    color: #ff0;
    background: #000000;
    padding: 1px 3px;
    border-radius: 2px;
    line-height: 1;
}

.cp-cal-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}

.cp-cal-nav-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cp-store-tabs-panel {
    padding: 16px;
}

.cp-store-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.cp-store-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid #d4dde6;
    border-radius: 6px;
    color: #344252;
    background: #f3f6f9;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.cp-store-tab:hover,
.cp-store-tab.is-active {
    border-color: #145ea8;
    color: #fff;
    background: #145ea8;
}

.cp-store-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 12px;
}

.cp-table-wrap + .cp-store-pagination {
    margin-top: 14px;
}

.cp-store-pagination-status {
    color: #344252;
    font-size: 13px;
    font-weight: 700;
}

.cp-table.public-band-table {
    margin-top: 12px;
    font-size: 13px;
    line-height: 1.25;
}

.cp-table.public-band-table th,
.cp-table.public-band-table td {
    padding: 10px;
    font-size: inherit;
}

.cp-table.public-band-table tbody tr:nth-child(odd) {
    background: rgba(15, 23, 42, 0.75);
}

.cp-table.public-band-table tbody tr:nth-child(even) {
    background: rgba(30, 41, 59, 0.45);
}

.cp-user-edit-panel {
    margin-top: 18px;
}

.cp-user-meta {
    display: block;
    margin-top: 4px;
    color: #607080;
    font-size: 13px;
    line-height: 1.35;
    word-break: break-word;
}

.cp-user-name-link {
    color: #145ea8;
    text-decoration: none;
}

.cp-user-name-link:hover {
    text-decoration: underline;
}

.cp-user-action-form {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 220px;
    margin: 0;
}

.cp-table-action-select {
    width: 136px;
    min-height: 34px;
    padding: 6px 8px;
    border: 1px solid #b9c4cf;
    border-radius: 6px;
    background: #fff;
    font-size: 14px;
}

.cp-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin-top: 18px;
}

.cp-pagination a,
.cp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid #dfe5eb;
    border-radius: 6px;
    background: #fff;
    color: #344252;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.cp-pagination a:hover,
.cp-pagination-current {
    border-color: #145ea8;
    color: #fff;
    background: #145ea8;
}

.cp-pagination-disabled,
.cp-pagination-gap {
    color: #8a99a8;
    background: #f3f6f9;
}

.cp-status-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 9px;
    border-radius: 999px;
    color: #344252;
    background: #eef3f8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}

.cp-status-active {
    color: #1d6b36;
    background: #eefaf1;
}

.cp-status-suspended,
.cp-status-deleted {
    color: #8a2626;
    background: #fff0f0;
}

.cp-status-pending {
    color: #755300;
    background: #fff7dc;
}

.cp-muted {
    color: #607080;
}

/* ==========================================================================
   440Music Site Footer Styles
   ========================================================================== */
.site-footer,
body.cp-body .site-footer {
    width: 100%;
    margin-top: 40px;
    padding: 30px 5% 24px;
    border-top: 2px solid #ffff00;
    color: #ffffff;
    background: #000000;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
}

.footer-grid {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 32px;
    width: min(1200px, 100%);
    margin: 0 auto;
}

.footer-col,
.footer-safety,
.footer-col-2,
.footer-col-3,
.footer-col-4,
.footer-col-5 {
    flex: 1 1 200px;
    min-width: 0;
}

.footer-col h4,
.footer-col h6,
.footer-col-title,
.footer-safety h4,
.footer-safety h5,
body.cp-body .site-footer h4,
body.cp-body .site-footer h6,
body.cp-body .site-footer .footer-col-title {
    margin: 0 0 10px;
    color: #ffff00 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.3;
}

.footer-collapsible .footer-col-header,
body.cp-body .site-footer .footer-collapsible .footer-col-header {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0;
    margin: 0;
    border: 0;
    background: transparent;
    color: #ffff00 !important;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
    cursor: default;
    width: auto;
}

.footer-col ul,
.footer-safety ul,
.footer-safety ol,
.menu-footer {
    padding: 0;
    margin: 0;
    list-style: none;
}

.footer-col li,
.footer-safety li,
.menu-footer li,
body.cp-body .site-footer li {
    margin-bottom: 7px;
    color: #ffffff !important;
    font-size: 13.5px;
    line-height: 1.4;
}

.site-footer a,
.footer-col a,
.footer-safety a,
.menu-footer a,
body.cp-body .site-footer a,
body.cp-body .site-footer .footer-col a,
body.cp-body .site-footer .footer-safety a,
body.cp-body .site-footer .menu-footer a {
    color: #ffffff !important;
    text-decoration: none;
    transition: color 0.2s ease;
}

.site-footer a:hover,
.footer-col a:hover,
.footer-safety a:hover,
.menu-footer a:hover,
body.cp-body .site-footer a:hover,
body.cp-body .site-footer .footer-col a:hover,
body.cp-body .site-footer .footer-safety a:hover,
body.cp-body .site-footer .menu-footer a:hover {
    color: #ffff00 !important;
    text-decoration: underline;
}

.footer-bottom,
body.cp-body .site-footer .footer-bottom {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #222222;
    text-align: center;
    width: min(1200px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.footer-copyright,
body.cp-body .site-footer .footer-copyright {
    text-align: center;
    color: #ffffff !important;
    font-size: 13px;
    line-height: 1.5;
}

.footer-copyright .font-xs,
body.cp-body .site-footer .footer-copyright .font-xs,
.color-text-paragraph,
body.cp-body .site-footer .color-text-paragraph {
    font-size: 12.5px;
    color: #d1d5db !important;
}

/* =========================================================================
   Location Radius & Marketing Broadcast Targeter
   ========================================================================= */
.cp-marketing-panel {
    background: #0f172a;
    border: 1px solid #1e293b;
    border-left: 4px solid #ff0;
    border-radius: 8px;
    padding: 16px;
    margin: 18px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
}

.cp-marketing-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 14px;
}

.cp-marketing-switch {
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.cp-marketing-switch input {
    width: 18px;
    height: 18px;
    accent-color: #ff0;
    cursor: pointer;
    margin: 0;
}

.cp-radius-quick-picks {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.cp-radius-btn {
    background: #1e293b;
    color: #e2e8f0;
    border: 1px solid #475569;
    border-radius: 4px;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

.cp-radius-btn:hover {
    background: #334155;
    border-color: #ff0;
    color: #ff0;
}

.cp-radius-btn.is-selected {
    background: #ff0;
    color: #000;
    border-color: #ff0;
    font-weight: 700;
}

.cp-audience-estimator {
    background: #020617;
    border: 1px solid #334155;
    border-radius: 6px;
    padding: 12px 14px;
    margin-top: 14px;
}

.cp-audience-counter-pill {
    background: #ff0;
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.cp-audience-subcounts {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
}

.cp-subcount-badge {
    background: #1e293b;
    color: #94a3b8;
    border: 1px solid #334155;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

.cp-subcount-badge span {
    color: #fff;
    font-weight: 700;
}

.cp-audience-table th,
.cp-audience-table td {
    border-bottom: 1px solid #1e293b;
}

.cp-audience-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}

@media (max-width: 720px) {
    .site-header-inner {
        align-items: stretch;
        justify-content: space-between;
        gap: 12px;
        min-height: 72px;
        padding: 6px 0;
    }

    .site-logo img {
        width: 58px;
        height: 56px;
    }

    nav.menu {
        display: flex;
        align-items: flex-end;
        flex-direction: column;
        justify-content: center;
    }

    .menu-toggle-btn {
        display: block;
    }

    nav.menu ul.menu-horizontal {
        display: none;
        position: absolute;
        top: 72px;
        right: 12px;
        flex-direction: column;
        align-items: stretch;
        width: 190px;
        background: #000;
        border: 1px solid #ff0;
        z-index: 3000;
    }

    nav.menu ul.menu-horizontal.open {
        display: flex;
    }

    nav.menu ul.menu-horizontal li {
        width: 100%;
        margin: 0;
    }

    nav.menu ul.menu-horizontal li a,
    nav.menu ul.menu-horizontal li .dropbtn {
        width: 100%;
        text-align: left;
    }

    .dropdown-content {
        position: static;
        width: 100%;
        border-right: 0;
        border-left: 0;
        box-shadow: none;
    }

    .cp-topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .cp-grid {
        grid-template-columns: 1fr;
    }

    .cp-grid.cp-grid-four {
        grid-template-columns: 1fr;
    }

    .cp-grid.cp-grid-five {
        grid-template-columns: 1fr;
    }

    .cp-calendar-row {
        grid-template-columns: 1fr;
    }

    .cp-module-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .cp-checkbox-grid {
        grid-template-columns: 1fr;
    }

    .cp-profile-top {
        grid-template-columns: 1fr;
    }

    .cp-profile-heading-row {
        grid-template-columns: 1fr;
    }

    .cp-profile-genre-form-top {
        justify-self: stretch;
    }

    .cp-profile-type-area .cp-grid {
        grid-template-columns: 1fr;
    }

    .cp-profile-image-row {
        grid-template-columns: 1fr;
    }

    .cp-profile-image-upload {
        width: min(220px, 100%);
        margin: 0;
    }

    .cp-frame {
        grid-template-columns: 1fr;
    }

    .cp-sidebar {
        display: none;
    }

    .footer-grid {
        flex-direction: column;
        gap: 12px;
    }

    .footer-col,
    .footer-safety {
        width: 100%;
        flex: 1 1 100%;
    }

    .footer-col-title {
        margin: 0;
    }

    .footer-collapsible .footer-col-header,
    body.cp-body .site-footer .footer-collapsible .footer-col-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        padding: 10px 14px;
        background-color: #111111;
        border: 1px solid #333333;
        border-radius: 4px;
        color: #ffff00 !important;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        user-select: none;
        box-sizing: border-box;
        text-align: left;
    }

    .footer-safety.footer-collapsible .footer-col-header {
        color: #ffff00 !important;
    }

    .footer-collapsible .footer-col-header:hover,
    .footer-collapsible .footer-col-header:focus {
        border-color: #ffff00;
    }

    .footer-collapsible ul,
    .footer-collapsible ol,
    .footer-collapsible .menu-footer {
        display: none;
        padding-left: 14px;
        margin-top: 8px;
        margin-bottom: 12px;
    }

    .footer-collapsible.open ul,
    .footer-collapsible.open ol,
    .footer-collapsible.open .menu-footer {
        display: block;
    }

    .footer-col-4,
    .footer-safety {
        padding: 4px 0 0 0;
        border-left: none;
        background: transparent;
    }

    .footer-col-4 h4,
    .footer-safety h4,
    body.cp-body .site-footer .footer-col-4 h4,
    body.cp-body .site-footer .footer-safety h4 {
        margin: 8px 0;
        color: #ffff00 !important;
        font-size: 15px;
        font-weight: 700;
        text-align: left;
    }

    .footer-col-4 .menu-footer,
    .footer-safety .menu-footer {
        display: block !important;
        padding-left: 0;
        margin: 0;
    }

    .footer-col-4 .menu-footer li,
    .footer-safety .menu-footer li,
    body.cp-body .site-footer .footer-col-4 .menu-footer li,
    body.cp-body .site-footer .footer-safety .menu-footer li {
        color: #ffffff !important;
        margin-bottom: 6px;
    }
}

@media (max-width: 500px) {
    .cp-module-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   Messages & Marketing Module
   ========================================================================= */
.cp-messages-panel {
    margin-bottom: 30px;
}

.cp-messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
}

.cp-messages-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cp-messages-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 22px;
}

@media (max-width: 900px) {
    .cp-messages-stats-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 540px) {
    .cp-messages-stats-grid {
        grid-template-columns: 1fr;
    }
}

.cp-stat-card.is-alert {
    border-color: #f59e0b;
    background: #fffdf5;
}

.cp-stat-card.is-alert .cp-stat-value {
    color: #b45309;
}

.cp-stat-credits {
    background: #0f172a;
    border-color: #1e293b;
    color: #fff;
}

.cp-stat-credits .cp-stat-label {
    color: #94a3b8;
}

.cp-stat-credits .cp-stat-value {
    color: #ff0;
}

.cp-stat-credits .cp-stat-hint {
    color: #cbd5e1;
}

/* 4-Tab Navigation Bar */
.cp-tab-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    background: #000;
    padding: 6px 10px 0 10px;
    border-radius: 8px 8px 0 0;
    margin-bottom: 0;
    border-bottom: 2px solid #222;
    overflow-x: auto;
}

.cp-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    text-decoration: none;
    padding: 10px 18px;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 3px solid transparent;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.cp-tab-link:hover {
    color: #ff0;
    background: #111;
    border-bottom-color: #ff0;
}

.cp-tab-link.is-active {
    color: #ff0;
    background: #111;
    border-bottom: 3px solid #ff0;
    border-radius: 4px 4px 0 0;
}

.cp-tab-link .cp-badge.is-alert {
    background: #dc2626;
    color: #fff;
    padding: 2px 7px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

/* Messages Search Bar */
.cp-messages-search-bar {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-top: none;
    padding: 14px 16px;
    margin-bottom: 18px;
    border-radius: 0 0 8px 8px;
}

.cp-messages-search-bar .filter-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.cp-messages-search-bar input[type="text"] {
    flex: 1;
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 14px;
}

/* Messages Table */
.cp-messages-table tr.is-unread-row {
    background-color: #fffdf2;
    font-weight: 600;
}

.cp-messages-table tr.is-unread-row td {
    color: #0f172a;
}

.cp-status-dot {
    display: inline-block;
    font-size: 14px;
    line-height: 1;
}

.cp-status-dot.is-unread {
    color: #f59e0b;
}

.cp-status-dot.is-read {
    color: #94a3b8;
}

.cp-message-subject-link {
    color: #145ea8;
    text-decoration: none;
}

.cp-message-subject-link.is-bold {
    font-weight: 700;
    color: #000;
}

.cp-message-subject-link:hover {
    text-decoration: underline;
    color: #0b3e73;
}

/* Delivery Channel Badges */
.cp-badge-internal {
    background: #e2e8f0;
    color: #334155;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.cp-badge-email {
    background: #dbeafe;
    color: #1e40af;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.cp-badge-both {
    background: #e0e7ff;
    color: #4338ca;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.cp-badge-blast {
    background: #fef3c7;
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.cp-badge-sent-me {
    background: #f1f5f9;
    color: #64748b;
    padding: 1px 5px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 700;
    margin-left: 4px;
}

.cp-btn-group-inline {
    display: inline-flex;
    gap: 4px;
    align-items: center;
}

/* Marketing Tab & Cost Banner */
.cp-marketing-cost-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    background: #0f172a;
    padding: 14px 18px;
    border-radius: 8px;
    margin-top: 14px;
    color: #e2e8f0;
    border-left: 4px solid #ff0;
}

.cp-cost-tier-pill {
    background: #1e293b;
    border: 1px solid #334155;
    color: #cbd5e1;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
}

.cp-cost-tier-pill strong {
    color: #ff0;
}

.cp-user-credit-box {
    margin-left: auto;
    font-size: 13px;
    color: #fff;
    background: #111827;
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #ff0;
}

.cp-user-credit-box strong {
    color: #ff0;
}

/* Radio Group Boxes for Compose Audience */
.cp-radio-group-boxes {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 6px;
}

@media (max-width: 600px) {
    .cp-radio-group-boxes {
        grid-template-columns: 1fr;
    }
}

.cp-radio-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.15s ease-in-out;
}

.cp-radio-box:hover {
    border-color: #94a3b8;
    background: #f1f5f9;
}

.cp-radio-box input[type="radio"] {
    margin: 0;
    width: 16px;
    height: 16px;
    accent-color: #000;
}

.cp-radio-box:has(input:checked) {
    border-color: #000;
    background: #fff;
    box-shadow: 0 0 0 1px #000;
}

.cp-group-cost-notice {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 6px;
    padding: 12px 14px;
    margin-bottom: 16px;
}

.cp-cost-badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 13px;
    margin-bottom: 4px;
    color: #78350f;
}

.cp-cost-badge-row strong {
    color: #92400e;
}

/* Generic Modal Overlay & Window */
.cp-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}

.cp-modal-backdrop.is-active {
    display: flex;
}

.cp-modal-window {
    background: #ffffff;
    border-radius: 8px;
    width: 100%;
    max-width: 620px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 35px -5px rgba(0, 0, 0, 0.3), 0 10px 15px -5px rgba(0, 0, 0, 0.15);
    border: 1px solid #cbd5e1;
    display: flex;
    flex-direction: column;
}

.cp-modal-window.cp-compose-window {
    max-width: 720px;
}

.cp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #000000;
    color: #ffffff;
    border-radius: 7px 7px 0 0;
    border-bottom: 2px solid #ff0;
}

.cp-modal-header h3 {
    margin: 0;
    font-size: 16px;
    color: #ff0;
}

.cp-modal-close {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    text-decoration: none;
    padding: 0;
}

.cp-modal-close:hover {
    color: #ff0;
}

.cp-modal-body {
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
}

.cp-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 14px 18px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-radius: 0 0 7px 7px;
}

/* View Message Modal Meta & Content */
.cp-message-meta-box {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    background: #f1f5f9;
    padding: 12px 14px;
    border-radius: 6px;
    font-size: 13px;
    color: #334155;
}

@media (max-width: 500px) {
    .cp-message-meta-box {
        grid-template-columns: 1fr;
    }
}

.cp-message-content-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    font-size: 14px;
    line-height: 1.6;
    color: #1e293b;
    min-height: 120px;
    white-space: pre-wrap;
    word-break: break-word;
}

