/*
 * DominoPost Admin Styles
 */

/* Make the "DominoPost" label in the toolbar black and bold with spacing */
div.mce-widget.mce-btn[aria-label="DominoPost Features"].mce-disabled {
    opacity: 1 !important;
    margin-right: 8px !important;
}

div.mce-widget.mce-btn[aria-label="DominoPost Features"].mce-disabled button span {
    color: #000 !important;
    font-weight: 700 !important;
    opacity: 1 !important;
    cursor: default !important;
}

/* Make the title wrapper a positioning context */
#titlewrap {
    position: relative;
}

/* Content Analysis Widget */
#dominopost-content-stats {
    font-size: 13px;
    line-height: 1.6;
}

.dominopost-stats-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
}

.dominopost-stats-grid .dominopost-stat-item {
    padding: 0;
    border-bottom: none;
}

.dominopost-stats-grid .dominopost-stat-item strong {
    display: block;
    margin-bottom: 4px;
    color: #646970;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
}

.dominopost-stats-grid .stat-value {
    display: block;
    padding: 6px 8px;
    background: #f0f0f1;
    border-radius: 4px;
    font-weight: 600;
    color: #2271b1;
    font-size: 16px;
    text-align: center;
}

.dominopost-stat-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.dominopost-stat-item:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.dominopost-stat-item strong {
    display: block;
    margin-bottom: 8px;
    color: #23282d;
    font-size: 13px;
    font-weight: 600;
}

.stat-value {
    display: inline-block;
    padding: 4px 12px;
    background: #f0f0f1;
    border-radius: 4px;
    font-weight: 600;
    color: #2271b1;
    font-size: 14px;
}

.readability-score {
    margin-top: 6px;
    line-height: 1.8;
}

.score-number {
    background: #00a32a;
    color: #fff;
    padding: 4px 12px;
    border-radius: 4px;
    margin-right: 8px;
    font-size: 14px;
}

.score-level {
    color: #2c3338;
    font-weight: 600;
    font-size: 13px;
}

.score-grade {
    color: #646970;
    font-style: italic;
    font-size: 12px;
    margin-left: 4px;
}

.dominopost-keywords-table {
    width: 100%;
    margin-top: 8px;
    border-collapse: collapse;
}

.dominopost-keywords-table tr {
    border-bottom: 1px solid #f0f0f0;
}

.dominopost-keywords-table tr:last-child {
    border-bottom: none;
}

.dominopost-keywords-table td {
    padding: 6px 8px;
    font-size: 12px;
}

.keyword-name {
    font-weight: 600;
    color: #2c3338;
}

.keyword-count {
    text-align: center;
    color: #646970;
}

.keyword-density {
    text-align: right;
    color: #2271b1;
    font-weight: 600;
}

.no-keywords {
    color: #646970;
    font-style: italic;
    margin: 8px 0;
    font-size: 12px;
}

#dominopost-refresh-stats {
    margin-top: 16px;
    width: 100%;
}

/* Download Button */
.dominopost-download-wrapper {
    margin: 15px 0;
    clear: both;
}

.dominopost-download-wrapper.dominopost-align-left { text-align: left; }
.dominopost-download-wrapper.dominopost-align-center { text-align: center; }
.dominopost-download-wrapper.dominopost-align-right { text-align: right; }

.dominopost-download-btn {
    display: inline-block;
    padding: 12px 30px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.dominopost-download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

/* AI Editor Loading Overlay */
#dp-ai-editor-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    overflow: hidden;
}

#dp-ai-editor-overlay::after {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, #2271b1, transparent);
    animation: dp-scan 2s infinite ease-in-out;
    box-shadow: 0 0 15px #2271b1;
}

@keyframes dp-scan {
    0% { top: 0; }
    100% { top: 100%; }
}

.dp-ai-loader-container { text-align: center; z-index: 10; }

.dp-ai-loader {
    width: 70px; height: 70px;
    background: radial-gradient(circle, #2271b1 0%, transparent 70%);
    border-radius: 50%;
    animation: dp-pulse-glow 1.5s infinite alternate;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dp-ai-loader::before {
    content: "DP";
    color: white;
    font-weight: 900;
    font-size: 20px;
}

@keyframes dp-pulse-glow {
    from { transform: scale(0.9); opacity: 0.5; box-shadow: 0 0 10px rgba(34,113,177,0.3); }
    to   { transform: scale(1.1); opacity: 1;   box-shadow: 0 0 30px rgba(34,113,177,0.7); }
}

.dp-ai-text {
    font-size: 16px;
    font-weight: 700;
    color: #135e96;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* AI Result Bar */
#dp-ai-result-bar {
    background: #1d2327;
    color: white;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 0 0 8px 8px;
    margin-bottom: 25px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    border-left: 6px solid #2271b1;
    position: sticky;
    top: 32px;
    z-index: 999999;
}

.dp-ai-anchor-preview {
    background: rgba(255,255,255,0.1);
    padding: 4px 10px;
    border-radius: 4px;
    margin: 0 15px;
    font-family: monospace;
    font-size: 12px;
    color: #ffca28;
    border: 1px dashed rgba(255,255,255,0.3);
}

.dp-ai-bar-title { font-weight: 600; font-size: 14px; display: flex; align-items: center; }
.dp-ai-bar-actions { display: flex; gap: 10px; }

.dp-ai-bar-btn {
    background: #2271b1;
    border: 1px solid rgba(255,255,255,0.4);
    color: white;
    cursor: pointer;
    padding: 6px 14px;
    font-size: 13px;
    border-radius: 4px;
    font-weight: 700;
    transition: all 0.2s;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 999999 !important;
}

.dp-ai-bar-btn:hover { background: #1d2327; border-color: #2271b1; transform: translateY(-1px); }
.dp-ai-bar-btn.close { background: transparent; border: none; font-size: 20px; padding: 0 8px; opacity: 0.8; box-shadow: none; }
.dp-ai-bar-btn.close:hover { opacity: 1; color: #ff8a80; transform: scale(1.1); }

/* TOC Visual Selector */
.dominopost-toc-selector {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 20px;
    padding-bottom: 20px;
}

.dominopost-toc-option,
.dominopost-faq-option {
    cursor: pointer;
    position: relative;
    display: block;
    width: 300px;
    margin-bottom: 10px;
}

.dominopost-toc-option input[type="radio"],
.dominopost-faq-option input[type="radio"] {
    position: absolute !important;
    opacity: 0 !important;
    visibility: hidden !important;
}

.toc-preview-card {
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    background: #fff;
    transition: all 0.3s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.dominopost-toc-option.selected .toc-preview-card,
.dominopost-faq-option.selected .toc-preview-card {
    border-color: #2271b1;
    box-shadow: 0 10px 25px rgba(34,113,177,0.15);
    background: #f0f7ff;
}

.toc-preview-visual { flex-grow: 1; margin-bottom: 20px; pointer-events: none; overflow: hidden; }

.toc-name {
    display: block;
    text-align: center;
    font-weight: 700;
    color: #1e293b;
    font-size: 14px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
}

/* FAQ Admin Preview */
.dp-faq-block { margin: 10px 0; border: 1px solid #eee; border-radius: 8px; overflow: hidden; font-family: sans-serif; }
.dp-faq-item { border-bottom: 1px solid #eee; }
.dp-faq-question { padding: 10px 15px; font-weight: 700; font-size: 14px; display: flex; justify-content: space-between; background: #f9f9f9; }
.dp-faq-answer { padding: 10px 15px; font-size: 13px; color: #666; background: #fff; }
.dp-faq-style-modern { border: none; border-radius: 12px; box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.dp-faq-style-modern .dp-faq-question { background: linear-gradient(to right, #f8fafc, #ffffff); }
.dp-faq-style-minimal { border: 1px solid #e2e8f0; border-radius: 6px; box-shadow: none; }
.dp-faq-style-shadow { border: none; box-shadow: 0 4px 12px rgba(0,0,0,0.08); border-radius: 10px; }
.dp-faq-style-compact .dp-faq-question { padding: 5px 10px; font-size: 12px; }

/* ==========================================================================
   DOMINOPOST PREMIUM NATIVE EDITOR FEATURES STYLE
   ========================================================================== */

/* Title Case Fixer */
.dominopost-title-case-fixer {
    position: absolute !important;
    right: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    z-index: 99 !important;
    margin-left: 0 !important;
}

#titlewrap input#title {
    padding-right: 48px !important;
}

.dominopost-title-case-toggle {
    background: #f6f7f7;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    color: #2c3338;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    height: 30px;
    padding: 0 10px;
    line-height: 28px;
    transition: all 0.15s ease-in-out;
}

.dominopost-title-case-toggle:hover {
    background: #f0f0f1;
    border-color: #2271b1;
    color: #2271b1;
}

.dominopost-title-case-fixer-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 9999;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    min-width: 150px;
    margin-top: 4px;
    padding: 4px 0;
    max-height: 100px;
    overflow-y: auto;
}

.dominopost-title-case-fixer-menu a {
    display: block;
    padding: 8px 12px;
    color: #2c3338;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: background 0.15s;
}

.dominopost-title-case-fixer-menu a:hover {
    background: #f0f6fc;
    color: #2271b1;
}

/* AI Generate Modal */
.dp-ai-trigger-btn {
    background: linear-gradient(135deg, #8a4af3 0%, #e03a9f 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 9999px !important;
    padding: 5px 18px !important;
    height: auto !important;
    line-height: 20px !important;
    box-shadow: 0 2px 8px rgba(138, 74, 243, 0.3) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

.dp-ai-trigger-btn:hover {
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(138, 74, 243, 0.5) !important;
    color: #fff !important;
}

.dp-cta-trigger-btn {
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 9999px !important;
    padding: 5px 18px !important;
    height: auto !important;
    line-height: 20px !important;
    box-shadow: 0 2px 8px rgba(30, 64, 175, 0.3) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: 5px !important;
}

.dp-cta-trigger-btn:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.5) !important;
    color: #fff !important;
}

.dp-cta-icon-hover {
    transition: transform 0.2s ease;
}

.dp-cta-trigger-btn:hover .dp-cta-icon-hover {
    transform: scale(1.1);
}

.dp-wizard-trigger-btn {
    background: linear-gradient(135deg, #0d9488 0%, #06b6d4 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    border-radius: 9999px !important;
    padding: 5px 18px !important;
    height: auto !important;
    line-height: 20px !important;
    box-shadow: 0 2px 8px rgba(13, 148, 136, 0.3) !important;
    transition: all 0.2s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin-left: 5px !important;
}

.dp-wizard-trigger-btn:hover {
    background: linear-gradient(135deg, #0f766e 0%, #0891b2 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.5) !important;
    color: #fff !important;
}

.dp-wizard-icon-hover {
    transition: transform 0.2s ease;
}

.dp-wizard-trigger-btn:hover .dp-wizard-icon-hover {
    transform: scale(1.1) rotate(15deg);
}

#dp-wizard-menu-container {
    height: auto !important;
    max-height: 400px !important;
    overflow-y: auto !important;
}

#dp-wizard-menu-container.open {
    display: block !important;
    opacity: 1 !important;
    transform: translateY(0) scale(1) !important;
}

.dp-ai-icon-spin-hover {
    margin-right: 4px;
    font-size: 15px !important;
    line-height: 1 !important;
    transition: transform 0.6s ease;
}

.dp-ai-trigger-btn:hover .dp-ai-icon-spin-hover {
    transform: rotate(180deg);
}

.dp-ai-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.dp-ai-modal-box {
    background: #fff;
    width: 90%;
    max-width: 600px;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.15), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    animation: dpScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes dpScaleIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.dp-ai-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafb;
}

.dp-ai-modal-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dp-ai-modal-title span {
    font-size: 20px;
    color: #2271b1;
}

.dp-ai-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    color: #64748b;
    cursor: pointer;
    line-height: 1;
    padding: 4px;
    transition: color 0.15s;
}

.dp-ai-modal-close:hover {
    color: #0f172a;
}

.dp-ai-modal-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}

.dp-ai-modal-subtitle {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 20px 0;
}

/* Forms */
.dp-ai-form-group {
    margin-bottom: 16px;
}

.dp-ai-form-row {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.dp-ai-form-col {
    flex: 1;
}

.dp-ai-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    text-transform: uppercase;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.dp-ai-label-hint {
    font-weight: 400;
    text-transform: none;
    color: #94a3b8;
    margin-left: 4px;
}

.dp-ai-required {
    color: #ef4444;
}

.dp-ai-input,
.dp-ai-textarea,
.dp-ai-select {
    width: 100% !important;
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
    color: #1e293b !important;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.02) !important;
    transition: all 0.15s ease-in-out !important;
    box-sizing: border-box !important;
}

.dp-ai-input:focus,
.dp-ai-textarea:focus,
.dp-ai-select:focus {
    border-color: #2271b1 !important;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.15) !important;
    outline: none !important;
}

.dp-ai-textarea {
    resize: vertical;
}

.dp-ai-label-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    cursor: pointer;
    margin-bottom: 8px;
}

.dp-ai-label-checkbox input[type="checkbox"] {
    margin: 0 !important;
}

.dp-ai-custom-textarea {
    margin-top: 6px;
}

/* Alert Boxes */
.dp-ai-alert {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 16px;
}

.dp-ai-alert-danger {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* Generated Preview Box */
.dp-ai-preview-box {
    margin-top: 20px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
}

.dp-ai-preview-title {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 12px;
}

.dp-ai-preview-content {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 16px;
    max-height: 250px;
    overflow-y: auto;
    font-size: 13px;
    line-height: 1.6;
    color: #334155;
}

.dp-ai-preview-content h2, 
.dp-ai-preview-content h3 {
    margin-top: 1.5em;
    color: #0f172a;
}

/* Modal Footer */
.dp-ai-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid #f1f5f9;
    background: #fafafb;
}

.dp-ai-btn-cancel {
    background: #fff !important;
    border: 1px solid #cbd5e1 !important;
    color: #64748b !important;
    font-weight: 600 !important;
    height: 36px !important;
    padding: 0 16px !important;
    border-radius: 6px !important;
}

.dp-ai-btn-cancel:hover {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.dp-ai-btn-submit,
.dp-ai-btn-insert {
    height: 36px !important;
    padding: 0 20px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}

.dp-ai-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: dpSpinnerRotation 0.8s linear infinite;
}

@keyframes dpSpinnerRotation {
    to { transform: rotate(360deg); }
}


/* ==========================================
   CONTENT ANALYZER METABOX
   ========================================== */
.dp-analyzer-container {
    padding: 6px 0;
}

.dp-analyzer-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.dp-analyzer-stat-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 6px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.dp-analyzer-stat-card span.dashicons {
    font-size: 18px;
    height: 18px;
    width: 18px;
    margin-bottom: 4px;
}

.dp-stat-icon-purple { color: #8b5cf6; }
.dp-stat-icon-blue { color: #3b82f6; }
.dp-stat-icon-green { color: #10b981; }

.dp-analyzer-stat-label {
    font-size: 10px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.dp-analyzer-stat-value {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

.dp-analyzer-readability-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}

.dp-analyzer-readability-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.dp-analyzer-readability-title {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-badge {
    font-size: 9px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    text-transform: uppercase;
}

.dp-badge-purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.dp-analyzer-readability-body {
    display: flex;
    align-items: center;
    gap: 16px;
}

.dp-progress-circle-wrap {
    flex-shrink: 0;
}

.dp-progress-circle {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(#8b5cf6 var(--progress, 0%), #e2e8f0 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.dp-progress-circle::before {
    content: "";
    position: absolute;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
}

.dp-progress-circle-value {
    position: relative;
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    z-index: 2;
}

.dp-analyzer-readability-info {
    display: flex;
    flex-direction: column;
}

.dp-readability-label {
    font-size: 11px;
    color: #64748b;
    margin-bottom: 2px;
}

.dp-readability-grade {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.dp-analyzer-keywords-wrap {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 16px;
}

.dp-analyzer-keywords-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 6px;
}

.dp-analyzer-keywords-title {
    font-size: 10px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-keywords-icon {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    color: #94a3b8;
}

.dp-analyzer-table {
    width: 100%;
    border-collapse: collapse;
}

.dp-analyzer-table td {
    padding: 6px 4px;
    font-size: 11px;
    border-bottom: 1px solid #f8fafc;
}

.dp-analyzer-table tr:last-child td {
    border-bottom: none;
}

.dp-keyword-text {
    font-weight: 600;
    color: #334155;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-keyword-count {
    color: #64748b;
    text-align: center;
}

.dp-keyword-density {
    text-align: right;
    font-weight: 600;
    color: #2271b1;
}

.dp-no-keywords-row td {
    color: #94a3b8;
    text-align: center;
    font-style: italic;
    padding: 10px 0;
}

.dp-analyzer-refresh-btn {
    width: 100% !important;
    height: 32px !important;
    border-radius: 6px !important;
    font-weight: 600 !important;
    color: #475569 !important;
    border-color: #cbd5e1 !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.15s !important;
}

.dp-analyzer-refresh-btn:hover {
    background: #f8fafc !important;
    color: #0f172a !important;
    border-color: #94a3b8 !important;
}

.dp-analyzer-refresh-btn .dashicons {
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
    line-height: 1.1 !important;
}

.dp-spin-on-loading.dp-spinning {
    animation: dpSpinnerRotation 0.8s linear infinite;
}


/* ==========================================
   UPDATE REMINDER METABOX
   ========================================== */
.dp-reminder-container {
    padding: 6px 0;
}

.dp-reminder-card {
    border: 1px solid;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 14px;
    box-sizing: border-box;
}

.dp-card-standard {
    background: #f8fafc;
    border-color: #e2e8f0;
}

.dp-card-evergreen {
    background: #f0fdf4;
    border-color: #bbf7d0;
}

.dp-reminder-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.dp-reminder-checkbox-label input[type="checkbox"] {
    margin: 0 !important;
}

.dp-reminder-checkbox-text {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
}

.dp-reminder-card-desc {
    font-size: 11px;
    color: #64748b;
    margin: 6px 0 0 0;
    line-height: 1.4;
}

.dp-reminder-field {
    margin-bottom: 14px;
}

.dp-reminder-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 6px;
}

.dp-reminder-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.dp-reminder-input {
    width: 100% !important;
    height: 32px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 4px 10px !important;
    font-size: 12px !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
}

.dp-reminder-calendar-icon {
    position: absolute;
    right: 10px;
    color: #94a3b8;
    pointer-events: none;
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.dp-reminder-last-updated {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 12px;
    margin-bottom: 14px;
    font-size: 11px;
}

.dp-last-updated-left {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #64748b;
}

.dp-last-updated-left .dashicons {
    font-size: 13px !important;
    width: 13px !important;
    height: 13px !important;
}

.dp-last-updated-date {
    font-weight: 700;
    color: #1e293b;
}

.dp-reminder-btn-primary {
    width: 100% !important;
    height: 36px !important;
    background: #2271b1 !important;
    border-color: #2271b1 !important;
    color: #fff !important;
    font-weight: 600 !important;
    border-radius: 6px !important;
    box-shadow: 0 1px 2px rgba(34, 113, 177, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}

.dp-reminder-btn-primary:hover {
    background: #135e96 !important;
    border-color: #135e96 !important;
}

.dp-reminder-btn-primary .dashicons {
    font-size: 15px !important;
    width: 15px !important;
    height: 15px !important;
    line-height: 1.2 !important;
}


/* ==========================================
   RELATED POSTS METABOX
   ========================================== */
.dp-related-container {
    padding: 6px 0;
}

.dp-related-section-title {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.dp-related-badges-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
    min-height: 36px;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px;
    box-sizing: border-box;
}

.dp-related-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e3a8a;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 6px;
    max-width: 100%;
    box-sizing: border-box;
}

.dp-related-badge-text {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dp-related-badge-remove {
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    color: #3b82f6;
    line-height: 1;
    transition: color 0.1s;
}

.dp-related-badge-remove:hover {
    color: #1d4ed8;
}

.dp-related-empty-msg {
    font-size: 11px;
    color: #94a3b8;
    font-style: italic;
    margin: auto 0;
}

.dp-related-search-wrap {
    position: relative;
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.dp-related-search-input {
    width: 100% !important;
    height: 32px !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 6px !important;
    padding: 4px 10px 4px 28px !important;
    font-size: 12px !important;
    color: #1e293b !important;
    box-sizing: border-box !important;
}

.dp-search-icon {
    position: absolute;
    left: 8px;
    color: #94a3b8;
    font-size: 14px !important;
    width: 14px !important;
    height: 14px !important;
}

.dp-related-list-wrap {
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    max-height: 180px;
    overflow-y: auto;
    background: #fff;
}

.dp-related-list {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.dp-related-item {
    border-bottom: 1px solid #f1f5f9;
    padding: 6px 8px;
    transition: background 0.1s;
}

.dp-related-item:last-child {
    border-bottom: none;
}

.dp-related-item:hover {
    background: #f8fafc;
}

.dp-item-selected {
    background: #eff6ff;
}

.dp-related-item-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    width: 100% !important;
}

.dp-related-item-label input[type="checkbox"] {
    margin: 0 !important;
}

.dp-related-item-title {
    font-size: 11px;
    color: #334155;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dp-item-selected .dp-related-item-title {
    font-weight: 600;
    color: #1e3a8a;
}

/* Scoped CTA Button Preview Inside Modal */
.dp-cta-preview-wrapper .dominopost-download-wrapper {
    margin: 15px 0;
    clear: both;
    width: 100%;
}
.dp-cta-preview-wrapper .dominopost-download-btn {
    display: inline-block;
    padding: 12px 30px;
    margin: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff !important;
    text-decoration: none !important;
    border-radius: 50px;
    font-weight: bold;
    font-size: 16px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    pointer-events: none;
    line-height: 1.2;
    border: none !important;
}
.dp-cta-preview-wrapper .dominopost-download-pulse {
    animation: dominopost-pulse-preview 2s infinite;
}
@keyframes dominopost-pulse-preview {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}
.dp-cta-preview-wrapper .dominopost-download-bounce {
    animation: dominopost-bounce-preview 1s infinite;
}
@keyframes dominopost-bounce-preview {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}
.dp-cta-preview-wrapper .dominopost-download-glow {
    animation: dominopost-glow-preview 1.5s infinite alternate;
}
@keyframes dominopost-glow-preview {
    from { box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4); }
    to { box-shadow: 0 4px 25px rgba(102, 126, 234, 0.8), 0 0 30px rgba(102, 126, 234, 0.6); }
}

.dp-cta-modal-close {
    opacity: 0.8;
    transition: opacity 0.15s ease;
}
.dp-cta-modal-close:hover {
    opacity: 1;
    color: #fff !important;
}

/* Fix Chakra UI Modals rendering behind WordPress admin sidebar and top admin bar */
.chakra-portal {
    z-index: 1000000 !important;
}
.chakra-modal__overlay {
    z-index: 1000000 !important;
}
.chakra-modal__content-container {
    z-index: 1000001 !important;
}

/* Offset the modal container to the right of the WordPress admin sidebar */
@media screen and (min-width: 783px) {
    .chakra-modal__content-container {
        left: 160px !important;
        width: calc(100vw - 160px) !important;
    }
    
    .folded .chakra-modal__content-container {
        left: 36px !important;
        width: calc(100vw - 36px) !important;
    }
}

/* ==========================================
   BOTTOM-RIGHT EDITOR FLOATING MAGIC WIZARD
   ========================================== */
.dp-editor-floating-wrap {
    position: absolute !important;
    bottom: 45px !important;
    right: 20px !important;
    left: auto !important;
    z-index: 9999 !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

/* Ensure parent container is relative */
.wp-editor-container, .mce-tinymce {
    position: relative !important;
}

.dp-floating-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.4);
    border: none;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white !important;
    padding: 0;
    margin: 0;
}

.dp-floating-btn:hover {
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.6);
    background: linear-gradient(135deg, #7c3aed, #2563eb);
}

.dp-floating-btn:active {
    transform: scale(0.95);
}

.dp-floating-btn svg {
    width: 22px;
    height: 22px;
    stroke: currentColor;
    stroke-width: 2.2;
    fill: none;
}

/* Floating Dropdown Menu opening upwards */
.dp-floating-menu {
    position: absolute;
    bottom: 56px;
    right: 0;
    width: 270px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
    overflow: hidden;
    display: none;
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
    transform-origin: top left;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 999999;
}

.dp-floating-menu.open {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
}

.dp-menu-header {
    padding: 12px 16px;
    background: #f8fafc;
    border-bottom: 1px solid #f1f5f9;
    font-size: 11px;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dp-menu-list {
    margin: 0 !important;
    padding: 6px 0 !important;
    list-style: none !important;
}

.dp-menu-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 16px !important;
    color: #334155 !important;
    text-decoration: none !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s ease, color 0.15s ease !important;
}

.dp-menu-item:hover {
    background: #f5f3ff !important;
    color: #7c3aed !important;
}

.dp-menu-item .dp-menu-item-icon {
    font-size: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    background: #f1f5f9 !important;
    border-radius: 6px !important;
    transition: background 0.15s ease !important;
}

.dp-menu-item:hover .dp-menu-item-icon {
    background: #ddd6fe !important;
}

/* ==========================================
   CUSTOM PRO UPGRADE MODAL INTERACTIONS
   ========================================== */
.dp-modal-close:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
    transform: rotate(90deg) !important;
}

.dp-modal-primary-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(139, 92, 246, 0.45) !important;
    filter: brightness(1.05) !important;
}

.dp-modal-primary-btn:active {
    transform: translateY(0px) !important;
}

.dp-modal-secondary-btn:hover {
    color: #1e293b !important;
}