/**
 * Rasheed Group - Professional Rich Content Editor & Live SEO Suite
 * High-End Material Design 3 RTL Architecture
 */

/* ==========================================================================
   Editor Outer Wrapper & Layout
   ========================================================================== */
.rasheed-editor-container {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(12, 35, 64, 0.04);
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.rasheed-editor-container:focus-within {
    border-color: #00aeef;
    box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.15);
}

.rasheed-editor-container.is-fullscreen {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 10000;
    border-radius: 0;
    height: 100vh;
    width: 100vw;
    margin: 0;
}

/* ==========================================================================
   Toolbar Styling
   ========================================================================== */
.rasheed-editor-toolbar {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.5rem 0.75rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    position: sticky;
    top: 0;
    z-index: 10;
    user-select: none;
}

.editor-btn-group {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 2px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.editor-btn-group + .editor-btn-group {
    margin-right: 0.25rem;
}

.editor-btn {
    border: none;
    background: transparent;
    color: #334155;
    padding: 0.35rem 0.55rem;
    font-size: 0.88rem;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    transition: all 0.18s ease;
    line-height: 1;
}

.editor-btn:hover {
    background: #e2eaf4;
    color: #0c2340;
}

.editor-btn.is-active {
    background: #00aeef;
    color: #ffffff;
}

.editor-btn-embed {
    background: rgba(0, 174, 239, 0.08);
    color: #0077a8;
    font-weight: 600;
    padding: 0.35rem 0.65rem;
    gap: 0.35rem;
    font-size: 0.82rem;
}

.editor-btn-embed:hover {
    background: #00aeef;
    color: #ffffff;
}

.editor-select {
    border: 1px solid #e2e8f0;
    background: #ffffff;
    font-size: 0.82rem;
    padding: 0.35rem 0.6rem;
    border-radius: 8px;
    color: #334155;
    font-weight: 500;
    outline: none;
    cursor: pointer;
}

.editor-select:focus {
    border-color: #00aeef;
}

/* Color Palette Dropdowns */
.editor-color-wrapper {
    position: relative;
    display: inline-block;
}

.editor-color-palette {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 6px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
    padding: 10px;
    z-index: 100;
    display: none;
    width: 220px;
}

.editor-color-palette.is-open {
    display: block;
}

.color-swatch-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 6px;
    margin-bottom: 8px;
}

.color-swatch {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.15s ease;
}

.color-swatch:hover {
    transform: scale(1.18);
}

/* ==========================================================================
   Editable Content Area & HTML Mode
   ========================================================================== */
.rasheed-editor-content {
    min-height: 280px;
    max-height: 700px;
    overflow-y: auto;
    padding: 1.25rem 1.5rem;
    font-family: 'Readex Pro', 'IBM Plex Sans Arabic', system-ui, sans-serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #1e293b;
    outline: none;
    direction: rtl;
    text-align: right;
}

.rasheed-editor-content:empty::before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}

/* Styling Inside Editor */
.rasheed-editor-content h1,
.rasheed-editor-content h2,
.rasheed-editor-content h3,
.rasheed-editor-content h4 {
    color: #0c2340;
    font-weight: 700;
    margin-top: 1.2rem;
    margin-bottom: 0.6rem;
}

.rasheed-editor-content p {
    margin-bottom: 0.85rem;
}

.rasheed-editor-content blockquote {
    border-right: 4px solid #00aeef;
    background: #f0f9ff;
    padding: 0.85rem 1.25rem;
    margin: 1rem 0;
    border-radius: 0 8px 8px 0;
    color: #0369a1;
    font-style: italic;
}

.rasheed-editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 0.9rem;
}

.rasheed-editor-content table th,
.rasheed-editor-content table td {
    border: 1px solid #e2e8f0;
    padding: 8px 12px;
}

.rasheed-editor-content table th {
    background: #f1f5f9;
    color: #0c2340;
    font-weight: 700;
}

.rasheed-editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
    margin: 0.75rem 0;
}

.rasheed-editor-content hr {
    border: 0;
    height: 1px;
    background: #e2e8f0;
    margin: 1.5rem 0;
}

/* HTML Source Code Mode */
.rasheed-editor-html {
    display: none;
    width: 100%;
    min-height: 280px;
    max-height: 700px;
    padding: 1.25rem 1.5rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.88rem;
    line-height: 1.6;
    background: #0f172a;
    color: #38bdf8;
    border: none;
    outline: none;
    resize: vertical;
    direction: ltr;
    text-align: left;
    white-space: pre-wrap;
}

.rasheed-editor-container.is-html-mode .rasheed-editor-content {
    display: none;
}

.rasheed-editor-container.is-html-mode .rasheed-editor-html {
    display: block;
}

/* ==========================================================================
   Embedded Custom Cards (Editor & Frontend Styling)
   ========================================================================== */
.rasheed-embed-product {
    margin: 1.25rem 0;
    user-select: none;
}

.embed-p-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1.5px solid #00aeef;
    border-radius: 14px;
    padding: 1rem 1.25rem;
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.1);
    position: relative;
    overflow: hidden;
}

.embed-p-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #00aeef;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 2px 10px;
    border-radius: 999px;
    margin-bottom: 0.75rem;
}

.embed-p-grid {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.embed-p-img-box {
    width: 90px;
    height: 90px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.embed-p-img-box img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: 0 !important;
    box-shadow: none !important;
}

.embed-p-content {
    flex: 1;
    min-width: 0;
}

.embed-p-brand {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    margin-bottom: 2px;
}

.embed-p-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0c2340 !important;
    margin: 0 0 6px 0 !important;
    line-height: 1.4;
}

.embed-p-price-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 8px;
}

.embed-p-current-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0284c7;
}

.embed-p-old-price {
    font-size: 0.85rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.embed-p-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #0c2340;
    color: #ffffff !important;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.2s ease;
}

.embed-p-btn:hover {
    background: #00aeef;
    transform: translateY(-1px);
    color: #ffffff !important;
}

/* Embedded Category Badge */
.rasheed-embed-category {
    margin: 1rem 0;
    display: inline-block;
}

.embed-cat-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f0fdf4;
    border: 1.5px solid #22c55e;
    padding: 8px 14px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.embed-cat-link:hover {
    background: #22c55e;
    color: #ffffff !important;
}

.embed-cat-icon {
    font-size: 1.2rem;
    color: #16a34a;
}

.embed-cat-link:hover .embed-cat-icon {
    color: #ffffff;
}

.embed-cat-title {
    font-size: 0.9rem;
    font-weight: 800;
    color: #14532d;
    display: block;
}

.embed-cat-link:hover .embed-cat-title {
    color: #ffffff;
}

.embed-cat-desc {
    font-size: 0.75rem;
    color: #16a34a;
}

.embed-cat-link:hover .embed-cat-desc {
    color: rgba(255, 255, 255, 0.9);
}

/* Embedded Brand Card */
.rasheed-embed-brand {
    margin: 1rem 0;
    display: inline-block;
}

.embed-brand-link {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #f8fafc;
    border: 1.5px solid #00aeef;
    padding: 8px 16px;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.embed-brand-link:hover {
    background: rgba(0, 174, 239, 0.08);
    transform: translateY(-1px);
}

.embed-brand-logo {
    height: 34px;
    width: auto;
    object-fit: contain;
    margin: 0 !important;
    box-shadow: none !important;
}

.embed-brand-name {
    font-size: 0.9rem;
    font-weight: 800;
    color: #0c2340;
    display: block;
}

.embed-brand-sub {
    font-size: 0.74rem;
    color: #0284c7;
}

/* Embedded Page Callout */
.rasheed-embed-page {
    margin: 1rem 0;
}

.embed-page-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #f8fafc 0%, #eef2f6 100%);
    border: 1px solid #cbd5e1;
    border-right: 4px solid #00aeef;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.embed-page-box:hover {
    border-color: #00aeef;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.embed-page-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(0, 174, 239, 0.12);
    color: #00aeef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.embed-page-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0c2340;
    display: block;
}

.embed-page-action {
    font-size: 0.76rem;
    color: #64748b;
}

/* ==========================================================================
   SEO Suite & Score Meter Component
   ========================================================================== */
.seo-suite-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    margin-top: 1.5rem;
}

.seo-meter-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.seo-score-gauge-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.seo-radial-meter {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    font-weight: 800;
    color: #ffffff;
    position: relative;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.seo-radial-meter.score-excellent {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.seo-radial-meter.score-good {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.seo-radial-meter.score-poor {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.seo-rating-text {
    font-size: 0.95rem;
    font-weight: 700;
}

.seo-check-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin-top: 1rem;
}

.seo-check-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 0.84rem;
    padding: 8px 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    color: #475569;
    transition: all 0.2s ease;
}

.seo-check-item.passed {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.seo-check-item.passed i {
    color: #16a34a;
}

.seo-check-item.failed {
    background: #fef2f2;
    border-color: #fecaca;
    color: #991b1b;
}

.seo-check-item.failed i {
    color: #dc2626;
}

.seo-check-item.warning {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.seo-check-item.warning i {
    color: #d97706;
}

/* ==========================================================================
   Modals for Embed Pickers
   ========================================================================== */
.editor-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 35, 64, 0.6);
    backdrop-filter: blur(4px);
    z-index: 10500;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.editor-modal-backdrop.is-open {
    display: flex !important;
    z-index: 99999 !important;
}

.editor-modal {
    background: #ffffff;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    animation: modalPop 0.25s cubic-bezier(0.2, 0, 0, 1);
}

@keyframes modalPop {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.editor-modal-header {
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.editor-modal-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: #0c2340;
    margin: 0;
}

.editor-modal-body {
    padding: 1.25rem 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.editor-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    background: #f8fafc;
    border-radius: 0 0 16px 16px;
}

/* Modal Search Item List */
.picker-item-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 380px;
    overflow-y: auto;
}

.picker-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.18s ease;
}

.picker-item:hover {
    background: rgba(0, 174, 239, 0.08);
    border-color: #00aeef;
}

.picker-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    object-fit: contain;
    padding: 4px;
}

.picker-item-info {
    flex: 1;
}

.picker-item-name {
    font-size: 0.92rem;
    font-weight: 700;
    color: #0c2340;
    margin-bottom: 2px;
}

.picker-item-sub {
    font-size: 0.78rem;
    color: #64748b;
}

.picker-item-btn {
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    background: #00aeef;
    color: #ffffff;
    border: none;
}

/* Free Gift Admin List */
.gift-badge-pill {
    background: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.gift-card-row {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.gift-card-thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    object-fit: contain;
    padding: 4px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .embed-p-grid {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
    .embed-p-img-box {
        width: 100%;
        height: 120px;
    }
    .rasheed-editor-toolbar {
        gap: 0.2rem;
        flex-wrap: wrap;
    }
    .editor-btn-group {
        border: none;
        background: transparent;
        box-shadow: none;
    }
}

/* ==========================================================================
   Slash Command Floating Palette ( / Menu )
   ========================================================================== */
.editor-slash-menu {
    position: absolute;
    z-index: 10600;
    width: 320px;
    max-height: 380px;
    background: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 35px rgba(12, 35, 64, 0.22);
    border: 1px solid #e2e8f0;
    overflow-y: auto;
    display: none;
    animation: slashFade 0.15s ease-out;
}

@keyframes slashFade {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.slash-search-wrap {
    padding: 8px 10px;
    border-bottom: 1px solid #e2e8f0;
    background: #f8fafc;
    position: sticky;
    top: 0;
    z-index: 2;
}

.slash-search-input {
    width: 100%;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.84rem;
    outline: none;
}

.slash-list {
    padding: 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.slash-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #0c2340;
    transition: background 0.15s;
}

.slash-item:hover,
.slash-item.is-active {
    background: rgba(0, 174, 239, 0.12);
    color: #0077aa;
}

.slash-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    background: #f1f5f9;
    color: #0e76bc;
}

.slash-item-text {
    flex: 1;
}

.slash-item-title {
    font-weight: 700;
    font-size: 0.85rem;
}

.slash-item-desc {
    font-size: 0.72rem;
    color: #64748b;
}

/* ==========================================================================
   Live Server-Rendered Dynamic Embed Cards
   ========================================================================== */
.rasheed-dynamic-embed-card {
    margin: 1.5rem 0;
}

.embed-live-product-box {
    background: #ffffff;
    border: 1.5px solid #00aeef;
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(0, 174, 239, 0.08);
    overflow: hidden;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.embed-live-product-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 174, 239, 0.14);
}

.embed-live-badge {
    background: linear-gradient(135deg, #0c2340 0%, #0e76bc 100%);
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 6px 14px;
    display: inline-block;
    border-radius: 0 0 10px 10px;
    margin-right: 1.25rem;
}

.embed-live-inner {
    padding: 1.25rem;
    display: flex;
    gap: 20px;
    align-items: center;
}

@media (max-width: 768px) {
    .embed-live-inner {
        flex-direction: column;
        align-items: flex-start;
        text-align: right;
    }
}

.embed-live-img {
    width: 130px;
    height: 130px;
    flex-shrink: 0;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}

.embed-live-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.embed-live-info {
    flex: 1;
    min-width: 0;
}

.embed-live-meta {
    font-size: 0.8rem;
    font-weight: 700;
    color: #0e76bc;
    margin-bottom: 4px;
    display: block;
}

.embed-live-title {
    font-size: 1.18rem;
    font-weight: 800;
    color: #0c2340;
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.embed-live-desc {
    font-size: 0.85rem;
    color: #64748b;
    margin-bottom: 10px;
    line-height: 1.5;
}

.embed-live-pricing {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}

.embed-live-price {
    font-size: 1.35rem;
    font-weight: 900;
    color: #00aeef;
}

.embed-live-old-price {
    font-size: 0.95rem;
    color: #94a3b8;
    text-decoration: line-through;
}

.embed-live-btn-wrap {
    display: flex;
    gap: 8px;
}

.embed-live-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #00aeef;
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.88rem;
    padding: 8px 18px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.embed-live-btn:hover {
    background: #0095cc;
    box-shadow: 0 4px 12px rgba(0, 174, 239, 0.3);
}

/* Category Embed Live */
.embed-live-cat-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f0fdf4;
    border: 1.5px solid #86efac;
    border-radius: 14px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.embed-live-cat-box:hover {
    background: #dcfce7;
    border-color: #22c55e;
}

.embed-live-cat-icon {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    background: #22c55e;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.embed-live-cat-dept {
    font-size: 0.76rem;
    font-weight: 700;
    color: #15803d;
    display: block;
}

.embed-live-cat-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #14532d;
    margin: 2px 0 0 0;
}

.embed-live-cat-cta {
    font-size: 0.78rem;
    color: #16a34a;
    font-weight: 600;
}

/* Brand Embed Live */
.embed-live-brand-box {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-radius: 14px;
}

.embed-live-brand-logo {
    width: 70px;
    height: 50px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.embed-live-brand-logo img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.embed-live-brand-info {
    flex: 1;
}

.embed-live-brand-tag {
    font-size: 0.75rem;
    color: #0e76bc;
    font-weight: 700;
}

.embed-live-brand-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0c2340;
    margin: 2px 0;
}

.embed-live-brand-sub {
    font-size: 0.8rem;
    color: #64748b;
    margin: 0;
}

.embed-live-brand-btn {
    padding: 6px 14px;
    background: #0c2340;
    color: #ffffff !important;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none !important;
    white-space: nowrap;
}

/* Page & Article Embed Live */
.embed-live-page-box,
.embed-live-article-box {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 18px;
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all 0.2s;
}

.embed-live-page-box:hover,
.embed-live-article-box:hover {
    background: #f1f5f9;
    border-color: #00aeef;
}

.embed-live-article-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}

/* ==========================================================================
   Table of Contents Box (TOC)
   ========================================================================== */
.rasheed-toc-box {
    background: #f8fafc;
    border: 1.5px solid #cbd5e1;
    border-right: 4px solid #00aeef;
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
    margin: 1.5rem 0;
}

.rasheed-toc-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0c2340;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.rasheed-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rasheed-toc-item {
    font-size: 0.88rem;
}

.rasheed-toc-item.h3-item {
    padding-right: 1.25rem;
    font-size: 0.84rem;
}

.rasheed-toc-link {
    color: #0e76bc;
    text-decoration: none;
    font-weight: 600;
}

.rasheed-toc-link:hover {
    color: #00aeef;
    text-decoration: underline;
}

/* ==========================================================================
   Buttons High-Contrast Fix (Ensures White Text on Green & Dark)
   ========================================================================== */
.btn-success,
.btn.btn-success,
button.btn-success,
a.btn-success,
.bg-success.text-white {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}

.btn-success *,
.btn-success i {
    color: #ffffff !important;
}

.btn-outline-success,
.btn.btn-outline-success {
    color: #059669 !important;
    border-color: #10b981 !important;
    background-color: transparent !important;
}

.btn-outline-success:hover,
.btn-outline-success:focus,
.btn-outline-success:active {
    background-color: #10b981 !important;
    border-color: #10b981 !important;
    color: #ffffff !important;
}

.btn-outline-success:hover * {
    color: #ffffff !important;
}

/* Reusable Blocks Styling */
.rasheed-reusable-block {
    margin: 1.5rem 0;
}

.block-guarantee {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #f59e0b;
    border-radius: 14px;
    padding: 1.25rem;
    display: flex;
    gap: 16px;
    align-items: center;
}

.block-cta-box {
    background: linear-gradient(135deg, #0c2340 0%, #0e76bc 100%);
    color: #ffffff;
    border-radius: 14px;
    padding: 1.5rem;
    text-align: center;
}

/* Autosave Indicator */
.editor-autosave-indicator {
    font-size: 0.76rem;
    color: #64748b;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-right: auto;
}
