/**
 * Imzad Cultural Core - Frontend Stylesheet
 * Optimized for Arabic typography, Algerian/Saharan cultural identity, and responsive RTL layout
 */

:root {
    --imzad-primary: #0D2840;
    /* Deep Tuareg Indigo */
    --imzad-secondary: #C85A17;
    /* Saharan Terracotta */
    --imzad-gold: #D4AF37;
    /* Heritage Gold */
    --imzad-bg-warm: #FAF7F2;
    /* Parchment light */
    --imzad-text: #1E293B;
    --imzad-text-muted: #64748B;
    --imzad-border: #E2E8F0;
    --imzad-card-shadow: 0 4px 20px -2px rgba(13, 40, 64, 0.08);
    --imzad-radius: 12px;
}

/* -------------------------------------------------------------
   Writers Directory (دليل الشعراء والكتاب)
------------------------------------------------------------- */
.imzad-writers-directory-container {
    margin: 30px auto;
    font-family: 'Amiri', 'Readex Pro', 'Almarai', system-ui, sans-serif;
}

.imzad-directory-header {
    background: linear-gradient(135deg, #0D2840 0%, #153E63 100%);
    color: #fff;
    padding: 40px 30px;
    border-radius: var(--imzad-radius);
    margin-bottom: 35px;
    box-shadow: 0 10px 30px rgba(13, 40, 64, 0.15);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.imzad-directory-header::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03' fill-rule='evenodd'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.8;
}

.imzad-badge-sub {
    display: inline-block;
    background: rgba(212, 175, 55, 0.2);
    color: var(--imzad-gold);
    border: 1px solid var(--imzad-gold);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.imzad-directory-title-area h2 {
    color: #fff;
    font-size: 2rem;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.imzad-directory-title-area p {
    color: #CBD5E1;
    font-size: 1.05rem;
    max-width: 680px;
    margin: 0 auto 25px auto;
}

.imzad-directory-search-bar {
    max-width: 600px;
    margin: 0 auto 20px auto;
}

.imzad-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.imzad-search-input-wrap span.dashicons {
    position: absolute;
    right: 15px;
    color: #94A3B8;
    font-size: 20px;
}

.imzad-search-input-wrap input {
    width: 100%;
    padding: 14px 45px 14px 20px;
    border-radius: 30px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    background: #fff;
    font-size: 1rem;
    color: #1E293B;
    outline: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s;
}

.imzad-search-input-wrap input:focus {
    border-color: var(--imzad-gold);
}

/* Topics Filter Chips */
.imzad-topics-filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 15px 0;
}

.imzad-topic-chip {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.25s;
}

.imzad-topic-chip:hover,
.imzad-topic-chip.active {
    background: var(--imzad-secondary);
    border-color: var(--imzad-secondary);
    color: #fff;
    transform: translateY(-2px);
}

/* Alphabet Filter */
.imzad-alphabet-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.alpha-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    padding: 0 6px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    font-size: 0.85rem;
    cursor: pointer;
    color: #E2E8F0;
    transition: all 0.2s;
}

.alpha-letter:hover,
.alpha-letter.active {
    background: var(--imzad-gold);
    color: #0D2840;
    font-weight: bold;
}

/* Writers Grid */
.imzad-writers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(295px, 1fr));
    gap: 28px;
}

/* Writer Card - PRO Elegant Design */
.imzad-writer-card {
    background: #fff;
    border: 1px solid #E8EDF3;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13, 40, 64, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.imzad-writer-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(13, 40, 64, 0.14);
    border-color: var(--imzad-gold);
}

/* Colored top banner per discipline */
.writer-card-banner {
    height: 80px;
    background: linear-gradient(135deg, #0D2840 0%, #1a4a7c 100%);
    position: relative;
    overflow: hidden;
}

.writer-card-banner::after {
    content: attr(data-icon);
    position: absolute;
    right: 15px;
    bottom: -10px;
    font-size: 4rem;
    opacity: 0.12;
    line-height: 1;
    user-select: none;
}

.writer-card-banner.banner-poetry {
    background: linear-gradient(135deg, #4A1942 0%, #7B2D8B 100%);
}

.writer-card-banner.banner-theater {
    background: linear-gradient(135deg, #0D2840 0%, #1A5276 100%);
}

.writer-card-banner.banner-fine-art {
    background: linear-gradient(135deg, #7B3F00 0%, #C85A17 100%);
}

.writer-card-banner.banner-cinema {
    background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
}

.writer-card-banner.banner-criticism {
    background: linear-gradient(135deg, #014421 0%, #1A6B3A 100%);
}

.writer-card-banner.banner-fiction {
    background: linear-gradient(135deg, #1B2A4A 0%, #2E4A7A 100%);
}

.writer-card-banner.banner-heritage {
    background: linear-gradient(135deg, #5C3317 0%, #A0522D 100%);
}

.writer-card-top {
    padding: 0 20px 16px 20px;
    text-align: center;
    position: relative;
    margin-top: -45px;
}

.writer-avatar-wrap {
    width: 95px;
    height: 95px;
    margin: 0 auto 12px auto;
    border-radius: 50%;
    overflow: visible;
    position: relative;
    border: 4px solid #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
    background: #fff;
}

.writer-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.avatar-verified-tick {
    position: absolute;
    bottom: -2px;
    left: -2px;
    background: #10B981;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.btn-imzad-gold-glow {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 25px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.4);
    transition: all 0.25s ease;
}

.btn-imzad-gold-glow:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 22px rgba(212, 175, 55, 0.6);
    color: #fff;
}

.imzad-directory-actions-top {
    text-align: center;
    margin: 15px 0 25px 0;
}

.writer-badge {
    display: inline-block;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: bold;
    margin-bottom: 8px;
}

.writer-badge.verified {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.writer-badge.theater-icon {
    background: #F3E8FF;
    color: #6B21A8;
    border: 1px solid #D8B4FE;
}

.writer-badge.visual-artist {
    background: #FFFBEB;
    color: #B45309;
    border: 1px solid #FDE68A;
}

.writer-badge.guest-of-honor {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.writer-badge.editorial-board {
    background: #E0E7FF;
    color: #3730A3;
    border: 1px solid #C7D2FE;
}

.writer-badge.distinguished {
    background: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
}

.writer-name {
    font-size: 1.2rem;
    margin: 5px 0 2px 0;
    font-weight: 700;
}

.writer-name a {
    color: var(--imzad-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.writer-name a:hover {
    color: var(--imzad-secondary);
}

.writer-role-title {
    font-size: 0.84rem;
    color: var(--imzad-secondary);
    margin: 0 0 5px 0;
    font-weight: 600;
    line-height: 1.4;
}

.writer-country {
    font-size: 0.78rem;
    color: var(--imzad-text-muted);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.writer-stats-row {
    display: flex;
    justify-content: space-around;
    padding: 12px 16px;
    margin: 0 0 0 0;
    background: #F8FAFC;
    border-top: 1px solid #F1F5F9;
    border-bottom: 1px solid #F1F5F9;
}

.stat-col {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-num {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--imzad-primary);
    line-height: 1;
}

.stat-lbl {
    font-size: 0.72rem;
    color: var(--imzad-text-muted);
    margin-top: 2px;
}

/* Stats divider */
.stat-col+.stat-col {
    border-right: 1px solid #E2E8F0;
}

.writer-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 14px 16px;
}

.writer-actions-row .btn-profile-link {
    grid-column: 1 / -1;
}

.btn-endorse-writer,
.btn-follow-writer {
    border: none;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
}

.btn-endorse-writer {
    background: #FFF1F2;
    color: #E11D48;
    border: 1px solid #FFE4E6;
}

.btn-endorse-writer:hover {
    background: #E11D48;
    color: #fff;
}

.btn-follow-writer {
    background: #F0FDF4;
    color: #16A34A;
    border: 1px solid #DCFCE7;
}

.btn-follow-writer:hover {
    background: #16A34A;
    color: #fff;
}

.btn-profile-link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 9px 14px;
    background: var(--imzad-primary);
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none !important;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-profile-link:hover {
    background: var(--imzad-secondary);
    transform: scale(1.02);
}

.btn-contact-writer {
    background: #F8FAFC;
    color: var(--imzad-primary);
    border: 1px solid var(--imzad-border);
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 0.8rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-weight: 600;
    transition: all 0.2s;
    width: 100%;
}

.btn-contact-writer:hover {
    background: var(--imzad-primary);
    color: #fff;
}

/* -------------------------------------------------------------
   Writers Directory: Toolbar, Live Summary & Per-Page Controls
------------------------------------------------------------- */
.imzad-directory-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin: 24px 0 20px 0;
    padding: 14px 22px;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    border: 1px solid #E8E2D5;
    border-radius: 14px;
    box-shadow: 0 4px 18px rgba(13, 40, 64, 0.04);
}

.imzad-results-count {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0D2840;
}

.imzad-results-count .count-icon {
    font-size: 1.25rem;
}

.imzad-results-count .count-badge {
    display: inline-block;
    padding: 2px 10px;
    background: #0D2840;
    color: #D4AF37;
    border-radius: 20px;
    font-size: 0.92rem;
    font-weight: 800;
    margin: 0 3px;
    box-shadow: 0 2px 6px rgba(13, 40, 64, 0.2);
}

.imzad-toolbar-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}

.imzad-per-page-selector {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
}

.imzad-per-page-selector select {
    padding: 6px 14px 6px 28px;
    background: #FFFFFF;
    border: 1.5px solid #D4AF37;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0D2840;
    cursor: pointer;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(212, 175, 55, 0.15);
}

.imzad-per-page-selector select:hover,
.imzad-per-page-selector select:focus {
    border-color: #C85A17;
    box-shadow: 0 3px 12px rgba(200, 90, 23, 0.25);
}

/* -------------------------------------------------------------
   Writers Directory: Staggered Entrance Animations for Cards
------------------------------------------------------------- */
.imzad-writer-card.imzad-card-visible {
    animation: imzadCardSlideFadeIn 0.38s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--card-index, 0) * 35ms);
    will-change: transform, opacity;
}

@keyframes imzadCardSlideFadeIn {
    0% {
        opacity: 0;
        transform: translateY(22px) scale(0.96);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* -------------------------------------------------------------
   Writers Directory: Empty Results State
------------------------------------------------------------- */
.imzad-empty-state {
    text-align: center;
    padding: 55px 25px;
    margin: 30px 0;
    background: linear-gradient(135deg, #FFFFFF 0%, #FAF7F2 100%);
    border: 2px dashed #E2E8F0;
    border-radius: 18px;
    box-shadow: 0 6px 25px rgba(13, 40, 64, 0.04);
}

.imzad-empty-state .empty-state-icon {
    font-size: 3.5rem;
    margin-bottom: 12px;
    animation: imzadIconBounce 2s infinite;
}

@keyframes imzadIconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

.imzad-empty-state h3 {
    font-size: 1.35rem;
    color: #0D2840;
    font-weight: 800;
    margin: 0 0 8px 0;
}

.imzad-empty-state p {
    font-size: 0.95rem;
    color: #64748B;
    max-width: 520px;
    margin: 0 auto 20px auto;
    line-height: 1.6;
}

/* -------------------------------------------------------------
   Writers Directory: Animated Luxury Pagination Controls
------------------------------------------------------------- */
.imzad-pagination-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 45px 0 25px 0;
    padding: 10px 0;
    position: relative;
}

.imzad-pagination {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    background: #FFFFFF;
    border: 1.5px solid #E8E2D5;
    padding: 8px 14px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(13, 40, 64, 0.08);
    position: relative;
    transition: all 0.3s ease;
}

.imzad-pagination:hover {
    box-shadow: 0 12px 36px rgba(13, 40, 64, 0.12);
    border-color: #D4AF37;
}

.imzad-page-numbers-group {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.imzad-page-num {
    min-width: 42px;
    height: 42px;
    padding: 0 10px;
    border-radius: 50%;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #0D2840;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    outline: none;
    user-select: none;
}

.imzad-page-num:hover:not(.active) {
    background: #FAF7F2;
    border-color: #D4AF37;
    color: #C85A17;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 6px 16px rgba(212, 175, 55, 0.25);
}

.imzad-page-num.active {
    background: linear-gradient(135deg, #0D2840 0%, #1A4269 100%);
    color: #D4AF37;
    border-color: #D4AF37;
    box-shadow: 0 6px 20px rgba(13, 40, 64, 0.35);
    transform: scale(1.12);
    cursor: default;
    animation: imzadPageActivePulse 2.5s infinite;
}

@keyframes imzadPageActivePulse {
    0% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.45), 0 6px 20px rgba(13, 40, 64, 0.35);
    }

    70% {
        box-shadow: 0 0 0 8px rgba(212, 175, 55, 0), 0 6px 20px rgba(13, 40, 64, 0.35);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(212, 175, 55, 0), 0 6px 20px rgba(13, 40, 64, 0.35);
    }
}

.imzad-page-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 25px;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #0D2840;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    outline: none;
    user-select: none;
}

.imzad-page-nav-btn .dashicons {
    font-size: 1.1rem;
    width: 1.1rem;
    height: 1.1rem;
    line-height: 1.1rem;
    transition: transform 0.2s ease;
}

.imzad-page-nav-btn.btn-prev:hover:not(.disabled) .dashicons {
    transform: translateX(3px);
}

.imzad-page-nav-btn.btn-next:hover:not(.disabled) .dashicons {
    transform: translateX(-3px);
}

.imzad-page-nav-btn:hover:not(.disabled) {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #FFFFFF;
    border-color: #D4AF37;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.35);
}

.imzad-page-nav-btn.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    background: #F8FAFC;
    border-color: #E2E8F0;
    color: #94A3B8;
}

.imzad-page-ellipsis {
    color: #94A3B8;
    font-weight: 800;
    font-size: 1.2rem;
    padding: 0 4px;
    user-select: none;
}

.imzad-pagination-info {
    text-align: center;
}

.pagination-summary-pill {
    display: inline-block;
    padding: 6px 18px;
    background: #FAF7F2;
    border: 1px solid #E8E2D5;
    border-radius: 20px;
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(13, 40, 64, 0.03);
}

.pagination-summary-pill strong {
    color: #0D2840;
    font-weight: 800;
}

@media (max-width: 680px) {
    .imzad-directory-toolbar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 12px;
    }

    .imzad-toolbar-controls {
        justify-content: center;
    }

    .imzad-pagination {
        border-radius: 20px;
        padding: 8px 10px;
        gap: 6px;
    }

    .imzad-page-num {
        min-width: 36px;
        height: 36px;
        font-size: 0.88rem;
    }

    .imzad-page-nav-btn {
        padding: 7px 12px;
        font-size: 0.82rem;
    }
}

/* -------------------------------------------------------------
   Reading Meta Bar (عداد القراءة وزمن القراءة والشهادة)
------------------------------------------------------------- */
.imzad-reading-meta-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    background: #FAF7F2;
    border: 1px solid #EAE4D8;
    border-right: 4px solid var(--imzad-secondary);
    padding: 10px 16px;
    border-radius: 8px;
    margin: 20px 0 30px 0;
    font-size: 0.88rem;
    color: #475569;
}

.imzad-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.imzad-pill-cert {
    margin-right: auto;
}

.btn-open-cert-modal {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(184, 134, 11, 0.3);
    transition: all 0.2s;
}

.btn-open-cert-modal:hover {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(184, 134, 11, 0.4);
}

/* -------------------------------------------------------------
   Publication Certificate Styles (شهادة النشر والتوثيق الأدبي)
------------------------------------------------------------- */
.imzad-certificate-wrapper {
    background: #fff;
    padding: 20px;
    margin: 20px auto;
    max-width: 900px;
}

.imzad-certificate-frame {
    border: 14px solid #0D2840;
    outline: 3px solid #D4AF37;
    outline-offset: -7px;
    padding: 10px;
    background: #FAF7F0;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.15);
    position: relative;
}

.imzad-certificate-inner {
    border: 2px solid #D4AF37;
    padding: 35px 30px;
    background: #fff;
    text-align: center;
    position: relative;
    background-image: radial-gradient(#F3ECE1 1px, transparent 1px);
    background-size: 20px 20px;
}

.cert-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #EAE4D8;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cert-logo-seal {
    text-align: right;
}

.cert-institution {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
}

.cert-issn {
    font-size: 0.75rem;
    color: var(--imzad-secondary);
    font-weight: 600;
}

.cert-brand h1 {
    font-size: 1.6rem;
    color: var(--imzad-primary);
    margin: 0;
    font-weight: 900;
}

.cert-subtitle {
    font-size: 0.75rem;
    color: #64748B;
    letter-spacing: 1px;
}

.imzad-instrument-icon {
    font-size: 2.2rem;
}

.cert-banner {
    background: linear-gradient(135deg, #0D2840 0%, #153E63 100%);
    color: #fff;
    padding: 10px 20px;
    border-radius: 6px;
    margin: 15px auto 25px auto;
    max-width: 500px;
    border: 1px solid var(--imzad-gold);
}

.cert-banner h2 {
    color: var(--imzad-gold);
    font-size: 1.5rem;
    margin: 0;
    font-weight: 800;
}

.cert-en-type {
    font-size: 0.75rem;
    color: #CBD5E1;
    display: block;
}

.cert-intro {
    font-size: 1.05rem;
    color: #334155;
    margin-bottom: 10px;
}

.cert-author-name {
    font-size: 1.9rem;
    font-weight: 900;
    color: var(--imzad-secondary);
    font-family: 'Amiri', serif;
    margin: 10px 0;
    text-decoration: underline;
    text-underline-offset: 6px;
}

.cert-statement {
    font-size: 1rem;
    color: #475569;
    margin: 10px 0;
}

.cert-article-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--imzad-primary);
    background: #FAF7F0;
    padding: 10px 18px;
    border-radius: 8px;
    border: 1px solid #E6DEC8;
    display: inline-block;
    margin: 12px 0;
}

.cert-details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    max-width: 650px;
    margin: 20px auto;
    text-align: right;
    background: #F8FAFC;
    padding: 15px;
    border-radius: 8px;
    border: 1px solid #E2E8F0;
}

.cert-detail-item {
    font-size: 0.88rem;
}

.cert-detail-item .lbl {
    font-weight: bold;
    color: #64748B;
    margin-left: 6px;
}

.cert-id-highlight {
    font-family: monospace;
    font-weight: bold;
    color: #E11D48;
    background: #FFE4E6;
    padding: 2px 6px;
    border-radius: 4px;
}

.cert-appreciation {
    font-size: 0.88rem;
    color: #64748B;
    max-width: 650px;
    margin: 15px auto;
    line-height: 1.6;
}

.cert-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 2px solid #EAE4D8;
    padding-top: 20px;
    margin-top: 25px;
}

.cert-sign-col,
.cert-seal-col {
    text-align: center;
    width: 180px;
}

.sign-title {
    font-size: 0.85rem;
    font-weight: bold;
    color: #1E293B;
    display: block;
}

.sign-handwritten {
    font-family: 'Aref Ruqaa', cursive;
    font-size: 1.4rem;
    color: var(--imzad-secondary);
    margin: 6px 0;
}

.sign-note {
    font-size: 0.72rem;
    color: #94A3B8;
    display: block;
}

.cert-gold-seal {
    width: 65px;
    height: 65px;
    background: radial-gradient(circle, #FDE68A 0%, #D97706 100%);
    border: 3px solid #D4AF37;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 5px auto;
    box-shadow: 0 4px 10px rgba(217, 119, 6, 0.3);
}

.seal-inner {
    display: flex;
    flex-direction: column;
    font-size: 0.6rem;
    font-weight: 800;
    color: #78350F;
    line-height: 1.2;
}

.cert-qr-col {
    text-align: center;
}

.cert-qr-svg {
    border-radius: 6px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.qr-verify-hint {
    display: block;
    font-size: 0.72rem;
    color: #64748B;
    margin-top: 4px;
    font-weight: bold;
}

.cert-url-snippet {
    font-family: monospace;
    font-size: 0.65rem;
    color: #94A3B8;
}

.cert-action-bar {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 20px;
}

/* -------------------------------------------------------------
   Current Issue Hero Banner (العدد الحالي)
------------------------------------------------------------- */
.imzad-current-issue-hero {
    background: linear-gradient(135deg, #071926 0%, #0D2840 50%, #153E63 100%);
    color: #fff;
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.35);
    padding: 35px 40px;
    margin: 30px 0;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.hero-issue-inner {
    display: flex;
    gap: 40px;
    align-items: center;
}

.hero-cover-col {
    flex: 0 0 240px;
    position: relative;
}

.issue-3d-book {
    position: relative;
    box-shadow: -10px 15px 30px rgba(0, 0, 0, 0.5);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(212, 175, 55, 0.3);
}

.issue-3d-book:hover {
    transform: rotateY(-8deg) scale(1.02);
    box-shadow: -15px 20px 40px rgba(0, 0, 0, 0.6);
}

.issue-cover-img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

.issue-ribbon-gold {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #D4AF37, #E5A93C);
    color: #071926 !important;
    font-size: 0.78rem;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 6px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.hero-info-col {
    flex: 1;
}

.issue-meta-tags {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    align-items: center;
}

.pill-issue-num {
    background: linear-gradient(135deg, #C85A17, #E67E22);
    color: #fff;
    padding: 5px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 800;
    box-shadow: 0 3px 8px rgba(200, 90, 23, 0.35);
}

.pill-period {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #E2E8F0;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 600;
}

.issue-hero-title {
    color: #FFFFFF !important;
    font-size: 1.85rem;
    margin: 8px 0 16px 0;
    font-weight: 800;
    line-height: 1.4;
}

.issue-dossier-box {
    background: rgba(255, 255, 255, 0.08) !important;
    border-right: 4px solid #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-right-width: 4px;
    padding: 14px 18px;
    border-radius: 0 10px 10px 0;
    margin-bottom: 16px;
    backdrop-filter: blur(8px);
}

.dossier-lbl {
    font-size: 0.82rem;
    color: #D4AF37 !important;
    font-weight: 800;
    display: block;
    margin-bottom: 4px;
}

.dossier-title,
.issue-dossier-box h3.dossier-title,
.issue-dossier-box .dossier-title {
    font-size: 1.18rem !important;
    color: #F4E09E !important;
    margin: 0 !important;
    font-weight: 700 !important;
    line-height: 1.5 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.issue-excerpt {
    color: #CBD5E1 !important;
    font-size: 0.94rem;
    line-height: 1.68;
    margin-bottom: 22px;
}

.hero-actions {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}

.hero-actions .btn-imzad-primary {
    background: linear-gradient(135deg, #071926, #0D2840) !important;
    color: #F4E09E !important;
    border: 1px solid #D4AF37 !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.94rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
}

.hero-actions .btn-imzad-primary:hover {
    background: #0D2840 !important;
    color: #fff !important;
    border-color: #fff !important;
    transform: translateY(-2px);
}

.hero-actions .btn-imzad-gold {
    background: linear-gradient(135deg, #D4AF37, #E5A93C) !important;
    color: #071926 !important;
    border: none !important;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.94rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
    transition: all 0.2s ease;
}

.hero-actions .btn-imzad-gold:hover {
    background: linear-gradient(135deg, #E5A93C, #F4E09E) !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* -------------------------------------------------------------
   Mobile Responsiveness for Current Issue Hero
------------------------------------------------------------- */
@media (max-width: 900px) {
    .imzad-current-issue-hero {
        padding: 24px 20px !important;
        margin: 20px 0 !important;
        border-radius: 14px !important;
    }

    .hero-issue-inner {
        flex-direction: column-reverse !important;
        gap: 22px !important;
        text-align: center !important;
    }

    .hero-cover-col {
        flex: 0 0 auto !important;
        width: 100% !important;
        max-width: 220px !important;
        margin: 0 auto !important;
    }

    .issue-3d-book {
        max-width: 190px !important;
        margin: 0 auto !important;
    }

    .hero-info-col {
        width: 100% !important;
        text-align: center !important;
    }

    .issue-meta-tags {
        justify-content: center !important;
    }

    .issue-hero-title {
        font-size: 1.35rem !important;
        line-height: 1.4 !important;
        text-align: center !important;
    }

    .issue-dossier-box {
        text-align: right !important;
        padding: 12px 16px !important;
        border-radius: 8px !important;
    }

    .issue-dossier-box h3.dossier-title,
    .dossier-title {
        font-size: 1.05rem !important;
    }

    .issue-excerpt {
        font-size: 0.88rem !important;
        text-align: center !important;
        margin-bottom: 18px !important;
    }

    .hero-actions {
        justify-content: center !important;
        flex-direction: column !important;
        gap: 10px !important;
    }

    .hero-actions .btn-imzad-primary,
    .hero-actions .btn-imzad-gold {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        padding: 12px 18px !important;
        font-size: 0.92rem !important;
    }
}

@media (max-width: 480px) {
    .issue-hero-title {
        font-size: 1.2rem !important;
    }

    .issue-dossier-box h3.dossier-title,
    .dossier-title {
        font-size: 0.95rem !important;
    }

    .hero-cover-col {
        max-width: 170px !important;
    }
}

/* -------------------------------------------------------------
   Cultural Newsletter Box (النشرة البريدية الثقافية)
------------------------------------------------------------- */
.imzad-newsletter-card {
    background: linear-gradient(135deg, #FAF7F2 0%, #F3ECE1 100%);
    border: 2px solid #E5DCCB;
    border-radius: var(--imzad-radius);
    padding: 30px;
    margin: 40px 0;
}

.newsletter-card-inner {
    max-width: 750px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 8px;
}

.newsletter-sub {
    color: var(--imzad-secondary);
    font-size: 0.85rem;
    font-weight: bold;
    text-transform: uppercase;
}

.newsletter-title {
    font-size: 1.6rem;
    color: var(--imzad-primary);
    margin: 5px 0 10px 0;
    font-weight: 800;
}

.newsletter-desc {
    color: #475569;
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.newsletter-inputs-row {
    display: flex;
    gap: 10px;
    max-width: 600px;
    margin: 0 auto 12px auto;
}

.newsletter-inputs-row input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #CBD5E1;
    font-size: 0.95rem;
    outline: none;
}

.btn-newsletter-submit {
    background: var(--imzad-secondary);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-newsletter-submit:hover {
    background: #A0440E;
}

.newsletter-topics-choices {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    font-size: 0.82rem;
    color: #64748B;
    margin-top: 10px;
}

.newsletter-status-msg {
    margin-top: 12px;
    font-weight: bold;
    font-size: 0.9rem;
}

/* -------------------------------------------------------------
   Modals & Popups
------------------------------------------------------------- */
.imzad-modal-backdrop {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(13, 40, 64, 0.7);
    backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.imzad-modal-dialog {
    background: #fff;
    border-radius: var(--imzad-radius);
    max-width: 550px;
    width: 100%;
    padding: 25px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    max-height: 90vh;
    overflow-y: auto;
}

.imzad-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #E2E8F0;
    padding-bottom: 12px;
    margin-bottom: 18px;
}

.imzad-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--imzad-primary);
}

.imzad-modal-close {
    background: none;
    border: none;
    font-size: 1.6rem;
    cursor: pointer;
    color: #94A3B8;
}

.imzad-form-group {
    margin-bottom: 14px;
    text-align: right;
}

.imzad-form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: #334155;
}

.imzad-form-group input,
.imzad-form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border-radius: 6px;
    border: 1px solid #CBD5E1;
    font-size: 0.95rem;
    outline: none;
}

.btn-imzad-primary {
    background: var(--imzad-primary);
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-imzad-gold {
    background: var(--imzad-gold);
    color: #0D2840;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-imzad-outline {
    background: transparent;
    border: 2px solid var(--imzad-primary);
    color: var(--imzad-primary);
    padding: 8px 18px;
    border-radius: 6px;
    font-weight: bold;
    cursor: pointer;
}

/* Comment Badges */
.imzad-comment-badge {
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-right: 5px;
    font-weight: bold;
}

.imzad-comment-badge.badge-author {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.imzad-comment-badge.badge-editorial {
    background: #E0E7FF;
    color: #3730A3;
    border: 1px solid #C7D2FE;
}

.critique-tag {
    display: inline-block;
    font-size: 0.75rem;
    padding: 2px 8px;
    border-radius: 4px;
    margin-left: 6px;
    margin-bottom: 6px;
    font-weight: bold;
}

.tag-analysis {
    background: #E0F2FE;
    color: #0369A1;
}

.tag-question {
    background: #FEF9C3;
    color: #854D0E;
}

.tag-appreciation {
    background: #FCE7F3;
    color: #9D174D;
}

/* Print Media for Certificates */
@media print {
    body * {
        visibility: hidden;
    }

    #imzadCertificatePrintArea,
    #imzadCertificatePrintArea * {
        visibility: visible;
    }

    #imzadCertificatePrintArea {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .no-print {
        display: none !important;
    }
}

/* -------------------------------------------------------------
   Social Share Bar (المشاركة عبر مواقع التواصل الاجتماعي)
------------------------------------------------------------- */
.imzad-social-share-container {
    background: #FAF7F0;
    border: 1px solid #E6DEC8;
    border-radius: var(--imzad-radius);
    padding: 16px 20px;
    margin: 30px 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.share-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--imzad-primary);
    font-size: 0.95rem;
}

.share-label span.dashicons {
    color: var(--imzad-secondary);
    font-size: 1.2rem;
}

.share-buttons-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.btn-share-social {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 0.84rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.btn-share-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.share-facebook {
    background: #1877F2;
}

.share-facebook:hover {
    background: #0C63D4;
}

.share-twitter {
    background: #000000;
}

.share-twitter:hover {
    background: #242424;
}

.share-whatsapp {
    background: #25D366;
}

.share-whatsapp:hover {
    background: #1DA851;
}

.share-telegram {
    background: #229ED9;
}

.share-telegram:hover {
    background: #1783B8;
}

.share-linkedin {
    background: #0A66C2;
}

.share-linkedin:hover {
    background: #084D93;
}

.share-copylink {
    background: #475569;
}

.share-copylink:hover {
    background: #334155;
}

.share-native-mobile {
    background: var(--imzad-secondary);
    display: none;
}

.share-native-mobile:hover {
    background: #9A3E09;
}

@media (max-width: 768px) {
    .share-native-mobile {
        display: inline-flex;
    }

    .imzad-social-share-container {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }

    .share-label {
        justify-content: center;
    }

    .share-buttons-list {
        justify-content: center;
    }

    .share-text {
        font-size: 0.78rem;
    }
}

/* -------------------------------------------------------------
   PRO Features: Reading Progress Bar
------------------------------------------------------------- */
.imzad-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--imzad-secondary), var(--imzad-gold));
    width: 0%;
    z-index: 99999;
    transition: width 0.1s ease-out;
}

/* -------------------------------------------------------------
   PRO Features: Article Toolbar (Audio Player & Font Scaler)
------------------------------------------------------------- */
.imzad-pro-article-toolbar {
    background: #F4EAD4;
    border: 1px solid #DFCEAA;
    border-radius: var(--imzad-radius);
    padding: 12px 18px;
    margin: 20px 0 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.audio-player-box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-play-audio {
    background: var(--imzad-primary);
    color: #fff;
    border: none;
    border-radius: 30px;
    padding: 8px 16px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(13, 40, 64, 0.2);
}

.btn-play-audio:hover {
    background: var(--imzad-secondary);
    transform: translateY(-2px);
}

.audio-wave-anim {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 18px;
}

.audio-wave-anim span {
    width: 3px;
    background: var(--imzad-secondary);
    border-radius: 2px;
    animation: waveJump 1s infinite ease-in-out;
}

.audio-wave-anim span:nth-child(1) {
    height: 6px;
    animation-delay: 0.1s;
}

.audio-wave-anim span:nth-child(2) {
    height: 14px;
    animation-delay: 0.3s;
}

.audio-wave-anim span:nth-child(3) {
    height: 18px;
    animation-delay: 0.2s;
}

.audio-wave-anim span:nth-child(4) {
    height: 10px;
    animation-delay: 0.4s;
}

.audio-wave-anim span:nth-child(5) {
    height: 7px;
    animation-delay: 0.15s;
}

@keyframes waveJump {

    0%,
    100% {
        transform: scaleY(0.4);
    }

    50% {
        transform: scaleY(1);
    }
}

.font-scaler-box {
    display: flex;
    align-items: center;
    gap: 6px;
}

.font-lbl {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--imzad-primary);
}

.btn-font-scale {
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 4px;
    padding: 4px 10px;
    font-weight: 800;
    cursor: pointer;
    font-size: 0.85rem;
    color: var(--imzad-primary);
    transition: all 0.2s;
}

.btn-font-scale:hover {
    background: var(--imzad-primary);
    color: #fff;
}

/* -------------------------------------------------------------
   PRO Features: Trending Widget & Quote of the Day
------------------------------------------------------------- */
.imzad-trending-widget-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.trending-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding-bottom: 12px;
    border-bottom: 1px dashed #E2E8F0;
}

.trending-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.trending-rank-badge {
    background: var(--imzad-primary);
    color: var(--imzad-gold);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 0.95rem;
    flex-shrink: 0;
    border: 1px solid var(--imzad-gold);
}

.trending-item-content {
    flex-grow: 1;
}

.trending-cat a {
    color: var(--imzad-secondary);
    font-size: 0.76rem;
    font-weight: 700;
    text-decoration: none;
}

.trending-title {
    margin: 4px 0 6px 0;
    font-size: 0.95rem;
    line-height: 1.4;
    font-family: var(--imzad-font-body);
}

.trending-title a {
    color: var(--imzad-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.trending-title a:hover {
    color: var(--imzad-secondary);
}

.trending-meta {
    font-size: 0.78rem;
    color: var(--imzad-text-muted);
    display: flex;
    gap: 12px;
}

/* Quote of the Day */
.imzad-quote-of-day-card {
    background: #0D2840;
    color: #fff;
    border-radius: var(--imzad-radius);
    padding: 24px;
    position: relative;
    border: 1px solid var(--imzad-gold);
    text-align: center;
}

.quote-ornament-top {
    font-size: 1.8rem;
    color: var(--imzad-gold);
    display: block;
    margin-bottom: 8px;
}

.daily-quote-text {
    font-family: var(--imzad-font-traditional);
    font-size: 1.25rem;
    line-height: 1.8;
    color: #FAF7F2;
    margin: 0 0 16px 0;
    border: none;
    padding: 0;
}

.daily-quote-author strong {
    display: block;
    color: var(--imzad-gold);
    font-size: 1rem;
}

.daily-quote-author small {
    color: #CBD5E1;
    font-size: 0.8rem;
}

.btn-gen-quote-card {
    margin-top: 15px;
    background: var(--imzad-secondary);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-gen-quote-card:hover {
    background: #E2722B;
}

/* -------------------------------------------------------------
   PRO Features: Manuscript Submission Portal
------------------------------------------------------------- */
.imzad-manuscript-submission-box {
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: var(--imzad-radius);
    padding: 35px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.submission-box-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.sub-badge-gold {
    background: #FEF3C7;
    color: #92400E;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

/* Draft Auto-Recovery Alert Banner */
.imzad-draft-alert-banner {
    background: linear-gradient(135deg, #FEF3C7, #FFFBEB);
    border: 1px solid #FCD34D;
    border-right: 5px solid #D97706;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.08);
}

.draft-banner-content {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #92400E;
    font-size: 0.92rem;
}

.draft-banner-content .dashicons {
    font-size: 1.5rem;
    color: #D97706;
}

.draft-banner-actions {
    display: flex;
    gap: 8px;
}

.btn-draft-restore {
    background: #D97706;
    color: #FFFFFF;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-draft-restore:hover {
    background: #B45309;
    transform: translateY(-1px);
}

.btn-draft-dismiss {
    background: transparent;
    color: #92400E;
    border: 1px solid #FCD34D;
    border-radius: 6px;
    padding: 6px 10px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    cursor: pointer;
}

.btn-draft-dismiss:hover {
    background: #FDE68A;
}

/* WYSIWYG Header & Ribbon */
.imzad-wysiwyg-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.btn-wysiwyg-preview {
    background: linear-gradient(135deg, #0D2840, #1E3A8A);
    color: #FAF7F2;
    border: 1px solid #D4AF37;
    border-radius: 8px;
    padding: 6px 14px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(13, 40, 64, 0.15);
}

.btn-wysiwyg-preview:hover {
    background: #D4AF37;
    color: #0D2840;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.imzad-wysiwyg-ribbon {
    background: #FAF7F2;
    border: 1px solid #E8E2D5;
    border-radius: 10px 10px 0 0;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    border-bottom: none;
}

.ribbon-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #0D2840;
    margin-left: 6px;
}

.ribbon-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    padding: 5px 11px;
    font-family: 'Cairo', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.18s ease;
}

.ribbon-btn:hover {
    background: #0D2840;
    color: #FFFFFF;
    border-color: #0D2840;
    transform: translateY(-1px);
}

.ribbon-icon {
    font-size: 0.95rem;
}

/* Editor Container & Skin overrides */
.imzad-editor-container .wp-editor-wrap {
    margin-bottom: 0 !important;
    border-radius: 0 !important;
    border-top: none !important;
}

/* Live Stats & Auto-Save Bar */
.imzad-editor-stats-bar {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-top: none;
    border-radius: 0 0 10px 10px;
    padding: 8px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #64748B;
}

.stats-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stat-item strong {
    color: #0D2840;
    font-weight: 800;
}

.stat-sep {
    color: #CBD5E1;
}

.draft-auto-save-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    color: #64748B;
}

.save-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94A3B8;
    transition: background 0.3s;
}

.draft-auto-save-status.saved .save-dot {
    background: #10B981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
}

/* Modals & Dialogs */
.imzad-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(13, 40, 64, 0.65);
    backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.imzad-modal-dialog {
    background: #FFFFFF;
    border-radius: 14px;
    width: 100%;
    max-width: 580px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    border: 2px solid #D4AF37;
    animation: imzadModalPop 0.25s ease-out;
}

.imzad-preview-dialog {
    max-width: 820px;
}

@keyframes imzadModalPop {
    from {
        opacity: 0;
        transform: scale(0.94) translateY(10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.imzad-modal-header {
    background: #0D2840;
    color: #FFFFFF;
    padding: 16px 22px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #D4AF37;
}

.imzad-modal-header h3 {
    margin: 0;
    font-family: 'Amiri', serif;
    font-size: 1.3rem;
    color: #FAF7F2;
}

.imzad-modal-close {
    background: none;
    border: none;
    color: #FAF7F2;
    font-size: 1.7rem;
    cursor: pointer;
    line-height: 1;
}

.imzad-modal-close:hover {
    color: #D4AF37;
}

.imzad-modal-body {
    padding: 22px;
}

.poem-input-row {
    margin-bottom: 14px;
}

.poem-input-row label {
    display: block;
    font-size: 0.88rem;
    font-weight: 700;
    color: #0D2840;
    margin-bottom: 6px;
}

.poem-modal-preview {
    margin-top: 18px;
    background: #FAF7F2;
    border: 1px dashed #D4AF37;
    border-radius: 8px;
    padding: 14px;
}

.preview-label {
    display: block;
    font-size: 0.8rem;
    color: #64748B;
    margin-bottom: 6px;
    font-weight: 700;
}

.imzad-modal-footer {
    background: #F8FAFC;
    border-top: 1px solid #E2E8F0;
    padding: 14px 22px;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.btn-imzad-secondary {
    background: #E2E8F0;
    color: #334155;
    border: none;
    border-radius: 8px;
    padding: 8px 18px;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-imzad-secondary:hover {
    background: #CBD5E1;
}

/* Live Preview Article Layout inside Modal */
.preview-meta-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.preview-badge {
    background: #FEF3C7;
    color: #92400E;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.82rem;
    font-weight: 700;
}

.preview-read-time {
    color: #64748B;
    font-size: 0.85rem;
    font-weight: 600;
}

.preview-article-title {
    font-family: 'Amiri', serif;
    font-size: 1.85rem;
    color: #0D2840;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.preview-author-bar {
    color: #64748B;
    font-size: 0.88rem;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.preview-excerpt {
    background: #F1F5F9;
    border-right: 4px solid #D4AF37;
    padding: 10px 16px;
    border-radius: 6px;
    font-size: 0.95rem;
    color: #334155;
    margin-bottom: 18px;
    line-height: 1.7;
}

.preview-divider {
    border: 0;
    height: 1px;
    background: #E2E8F0;
    margin: 18px 0;
}

.preview-full-content {
    font-family: 'Amiri', serif;
    font-size: 1.15rem;
    line-height: 2.2;
    color: #1E293B;
}

.form-row-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submission-commit-box {
    margin: 15px 0 25px 0;
    font-size: 0.88rem;
    color: #475569;
}

.submission-success-card {
    background: #ECFDF5;
    border: 1px solid #A7F3D0;
    border-radius: var(--imzad-radius);
    padding: 30px;
    text-align: center;
}

/* Drop Caps for Articles */
.imzad-article-body>p:first-of-type::first-letter {
    font-family: var(--imzad-font-traditional);
    font-size: 3.4rem;
    float: right;
    line-height: 0.85;
    padding-left: 12px;
    padding-top: 4px;
    color: var(--imzad-secondary);
    font-weight: bold;
}

/* -------------------------------------------------------------
   PRO Audio Speed Controls & Toolbar Actions
------------------------------------------------------------- */
.audio-speed-controls {
    display: inline-flex;
    gap: 4px;
    background: #F1F5F9;
    padding: 2px 4px;
    border-radius: 6px;
    margin-right: 8px;
}

.btn-audio-speed {
    background: none;
    border: none;
    font-size: 0.75rem;
    font-weight: 700;
    color: #475569;
    padding: 2px 6px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.btn-audio-speed.active,
.btn-audio-speed:hover {
    background: var(--imzad-primary);
    color: #fff;
}

.toolbar-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-toolbar-tool {
    background: #F8FAFC;
    border: 1px solid var(--imzad-border);
    color: #334155;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.btn-toolbar-tool:hover {
    border-color: var(--imzad-gold);
    color: var(--imzad-secondary);
    background: #fff;
}

.btn-toolbar-tool.active {
    background: var(--imzad-gold);
    color: #fff;
    border-color: var(--imzad-gold);
}

/* -------------------------------------------------------------
   Floating Medium-Style Selection Tooltip
------------------------------------------------------------- */
.imzad-selection-tooltip {
    position: absolute;
    transform: translateX(-50%);
    background: #0D2840;
    color: #fff;
    padding: 4px 6px;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 4px;
    z-index: 99999;
    animation: tooltipFadeIn 0.2s ease-out;
}

.imzad-selection-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #0D2840 transparent transparent transparent;
}

.imzad-selection-tooltip button {
    background: none;
    border: none;
    color: #CBD5E1;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.15s;
}

.imzad-selection-tooltip button:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.15);
}

@keyframes tooltipFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, 6px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* -------------------------------------------------------------
   PRO Editorial Board Showcase
------------------------------------------------------------- */
.editorial-board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 25px;
}

.board-member-card {
    background: #fff;
    border: 1px solid var(--imzad-border);
    border-radius: var(--imzad-radius);
    padding: 24px 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
    transition: all 0.3s ease;
    position: relative;
}

.board-member-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(13, 40, 64, 0.12);
    border-color: var(--imzad-gold);
}

.board-member-card.director-card {
    border: 2px solid var(--imzad-gold);
    background: linear-gradient(180deg, #FFFDF8 0%, #FFFFFF 100%);
}

.board-member-card.chief-card {
    border: 2px solid #C7D2FE;
    background: linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 100%);
}

.board-avatar-wrap {
    width: 95px;
    height: 95px;
    margin: 0 auto 12px auto;
    position: relative;
}

.board-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid var(--imzad-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.board-rank-crown {
    position: absolute;
    top: -6px;
    right: -2px;
    font-size: 1.25rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.board-role-tag {
    display: inline-block;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 15px;
    margin-bottom: 8px;
}

.board-role-tag.director {
    background: #FEF3C7;
    color: #92400E;
    border: 1px solid #FCD34D;
}

.board-role-tag.chief {
    background: #E0E7FF;
    color: #3730A3;
    border: 1px solid #C7D2FE;
}

.board-role-tag.advisor {
    background: #ECFDF5;
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.board-role-tag.field {
    background: #F1F5F9;
    color: #334155;
    border: 1px solid #E2E8F0;
}

.board-name {
    font-family: var(--imzad-font-traditional);
    font-size: 1.3rem;
    color: var(--imzad-primary);
    margin: 4px 0;
}

.board-affiliation {
    font-size: 0.8rem;
    color: var(--imzad-secondary);
    font-weight: 600;
    margin: 0 0 8px 0;
}

.board-bio-snippet {
    font-size: 0.84rem;
    color: var(--imzad-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* =============================================================
   Editorial Team Manager — Front-End Shortcode Styles
   [imzad_editorial_team]
============================================================= */
.imzad-editorial-team-section {
    font-family: 'Amiri', 'Readex Pro', system-ui, sans-serif;
    direction: rtl;
    padding: 40px 0;
}

.imzad-et-header {
    text-align: center;
    margin-bottom: 36px;
}

.imzad-et-badge {
    background: rgba(212, 175, 55, 0.15);
    color: #B8860B;
    border: 1px solid #D4AF37;
    padding: 5px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
}

.imzad-et-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: #0D2840;
    margin: 14px 0 8px;
}

.imzad-et-subtitle {
    color: #64748B;
    font-size: 1rem;
    margin: 0;
}

/* Grid */
.imzad-et-grid {
    display: grid;
    gap: 22px;
}

.imzad-et-cols-2 {
    grid-template-columns: repeat(2, 1fr);
}

.imzad-et-cols-3 {
    grid-template-columns: repeat(3, 1fr);
}

.imzad-et-cols-4 {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}

@media (max-width: 720px) {
    .imzad-et-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 440px) {
    .imzad-et-grid {
        grid-template-columns: 1fr !important;
    }
}

/* Card */
.imzad-et-card {
    background: #fff;
    border: 1px solid #E8EDF3;
    border-radius: 18px;
    padding: 0 0 20px;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(13, 40, 64, 0.06);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imzad-et-card:hover {
    transform: translateY(-7px);
    box-shadow: 0 16px 40px rgba(13, 40, 64, 0.13);
    border-color: #D4AF37;
}

/* Top-role highlight */
.imzad-et-card--top {
    border-color: #D4AF37;
    box-shadow: 0 4px 20px rgba(212, 175, 55, 0.18);
}

.imzad-et-card--top::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 5px;
    background: linear-gradient(90deg, #D4AF37, #B8860B, #D4AF37);
}

.imzad-et-crown {
    font-size: 2rem;
    margin: 18px 0 -4px;
    line-height: 1;
}

/* Avatar */
.imzad-et-avatar-wrap {
    position: relative;
    width: 88px;
    height: 88px;
    margin: 18px auto 0;
}

.imzad-et-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 14px rgba(13, 40, 64, 0.15);
    position: relative;
    z-index: 1;
    display: block;
}

.imzad-et-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid rgba(212, 175, 55, 0.5);
    z-index: 0;
}

.imzad-et-card--top .imzad-et-ring {
    border-color: #D4AF37;
    animation: imzadEtRingPulse 2.8s infinite;
}

@keyframes imzadEtRingPulse {

    0%,
    100% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.07);
    }
}

/* Info */
.imzad-et-info {
    padding: 12px 16px 0;
    flex: 1;
    width: 100%;
    box-sizing: border-box;
}

.imzad-et-role-tag {
    display: inline-block;
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.77rem;
    font-weight: 700;
    margin-bottom: 8px;
    white-space: nowrap;
}

.imzad-et-card--top .imzad-et-role-tag {
    background: #FEF3C7;
    color: #92400E;
    border-color: #FCD34D;
}

.imzad-et-name {
    font-size: 1rem;
    font-weight: 800;
    color: #0D2840;
    margin: 0 0 3px;
    line-height: 1.3;
}

.imzad-et-name a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.imzad-et-name a:hover {
    color: #C85A17;
}

.imzad-et-role-en {
    font-size: 0.77rem;
    color: #64748B;
    margin: 0 0 8px;
    font-style: italic;
}

.imzad-et-bio {
    font-size: 0.81rem;
    color: #475569;
    line-height: 1.55;
    margin: 0;
}

.imzad-et-profile-btn {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 22px;
    background: var(--imzad-primary);
    color: #fff !important;
    border-radius: 8px;
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: background 0.2s;
}

.imzad-et-profile-btn:hover {
    background: var(--imzad-secondary);
}

/* Admin-only banner */
.imzad-et-admin-banner {
    background: linear-gradient(135deg, #EFF6FF, #F0F9FF);
    border: 1px solid #93C5FD;
    border-right: 4px solid #2563EB;
    border-radius: 10px;
    padding: 14px 18px;
    margin-bottom: 28px;
    font-size: 0.88rem;
    color: #1E3A5F;
    line-height: 1.6;
}

.imzad-et-admin-banner-inner {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.imzad-et-admin-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.imzad-et-close-banner {
    margin-right: auto;
    flex-shrink: 0;
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #94A3B8;
    padding: 4px 6px;
    border-radius: 4px;
    transition: all 0.2s;
}

.imzad-et-close-banner:hover {
    background: #DBEAFE;
    color: #1D4ED8;
}

.imzad-et-empty {
    text-align: center;
    padding: 30px;
    color: #94A3B8;
}

/* =================================================================
   Writer Registration PRO Form — Multi-Step Professional Design
   [imzad_writer_register]
================================================================= */
.imzad-reg-wrap {
    max-width: 820px;
    margin: 0 auto;
    font-family: 'Amiri', 'Cairo', system-ui, sans-serif;
    direction: rtl;
}

/* Progress Steps */
.imzad-reg-progress {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 8px;
    padding: 0 10px;
}

.imzad-reg-progress::before {
    content: "";
    position: absolute;
    top: 20px;
    right: 30px;
    left: 30px;
    height: 2px;
    background: #E2E8F0;
    z-index: 0;
}

.imzad-reg-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    cursor: default;
    z-index: 1;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #E2E8F0;
    color: #64748B;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s;
}

.step-lbl {
    font-size: 0.72rem;
    color: #94A3B8;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.3s;
}

.imzad-reg-step.active .step-num {
    background: linear-gradient(135deg, #0D2840, #1a4a7c);
    color: #fff;
    box-shadow: 0 4px 14px rgba(13, 40, 64, .3);
}

.imzad-reg-step.done .step-num {
    background: #16A34A;
    color: #fff;
}

.imzad-reg-step.done .step-num::after {
    content: "✓";
}

.imzad-reg-step.active .step-lbl {
    color: #0D2840;
    font-weight: 700;
}

/* Progress bar */
.imzad-reg-progress-bar {
    height: 4px;
    background: #E2E8F0;
    border-radius: 4px;
    margin-bottom: 28px;
    overflow: hidden;
}

.imzad-reg-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #D4AF37, #0D2840);
    border-radius: 4px;
    transition: width 0.4s ease;
}

/* Panel */
.imzad-reg-panel {
    display: none;
}

.imzad-reg-panel.active {
    display: block;
    animation: panelFadeIn .35s ease;
}

@keyframes panelFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.imzad-reg-panel-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 24px;
    padding: 18px 20px;
    background: linear-gradient(135deg, #F8FAFC, #EFF6FF);
    border-right: 4px solid #0D2840;
    border-radius: 12px;
}

.panel-icon {
    font-size: 2rem;
}

.imzad-reg-panel-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0D2840;
    margin: 0 0 4px;
}

.panel-subtitle {
    font-size: 0.88rem;
    color: #64748B;
    margin: 0;
}

/* Grid */
.imzad-reg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 600px) {
    .imzad-reg-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* Fields */
.imzad-reg-field {
    margin-bottom: 16px;
}

.imzad-reg-label {
    display: block;
    font-weight: 700;
    color: #1E293B;
    margin-bottom: 6px;
    font-size: 0.9rem;
}

.req {
    color: #E11D48;
    margin-right: 2px;
}

.opt {
    background: #F1F5F9;
    color: #64748B;
    font-size: 0.75rem;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    margin-right: 4px;
}

.imzad-reg-input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid #CBD5E1;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: inherit;
    color: #1E293B;
    background: #fff;
    transition: all 0.2s;
    box-sizing: border-box;
    direction: rtl;
}

.imzad-reg-input:focus {
    border-color: #0D2840;
    box-shadow: 0 0 0 3px rgba(13, 40, 64, .08);
    outline: none;
}

textarea.imzad-reg-input {
    resize: vertical;
    line-height: 1.6;
}

/* Input with icon */
.imzad-input-icon-wrap {
    position: relative;
}

.input-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    pointer-events: none;
}

.imzad-reg-input.with-icon {
    padding-right: 40px;
}

.field-hint {
    font-size: 0.77rem;
    color: #94A3B8;
    margin: 4px 0 0;
}

.char-counter {
    font-size: 0.77rem;
    color: #94A3B8;
    text-align: left;
    margin-top: 4px;
}

/* Gender chips */
.imzad-gender-chips {
    display: flex;
    gap: 10px;
}

.gender-chip {
    cursor: pointer;
}

.gender-chip input {
    display: none;
}

.gender-chip span {
    display: inline-block;
    padding: 9px 18px;
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s;
}

.gender-chip input:checked+span {
    background: #0D2840;
    color: #fff;
    border-color: #0D2840;
}

/* Photo upload */
.imzad-photo-field {
    margin-top: 10px;
}

.imzad-photo-upload {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed #CBD5E1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: border-color 0.2s;
    background: #F8FAFC;
    position: relative;
}

.imzad-photo-upload:hover {
    border-color: #D4AF37;
}

.imzad-photo-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.photo-placeholder {
    text-align: center;
    color: #94A3B8;
    font-size: 0.8rem;
    line-height: 1.4;
}

.photo-placeholder span {
    font-size: 2rem;
    display: block;
    margin-bottom: 4px;
}

/* Discipline chips */
.imzad-discipline-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.discipline-chip {
    cursor: pointer;
}

.discipline-chip input {
    display: none;
}

.discipline-chip span {
    display: inline-block;
    padding: 7px 14px;
    border: 1.5px solid #E2E8F0;
    border-radius: 20px;
    font-size: 0.83rem;
    font-weight: 600;
    color: #475569;
    background: #F8FAFC;
    transition: all 0.2s;
}

.discipline-chip input:checked+span {
    background: linear-gradient(135deg, #0D2840, #1a4a7c);
    color: #fff;
    border-color: #0D2840;
    box-shadow: 0 3px 10px rgba(13, 40, 64, .2);
}

/* Contact chips */
.imzad-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

.contact-chip {
    cursor: pointer;
}

.contact-chip input {
    display: none;
}

.contact-chip span {
    display: inline-block;
    padding: 9px 16px;
    border: 1.5px solid #E2E8F0;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #475569;
    transition: all 0.2s;
}

.contact-chip input:checked+span {
    background: #ECFDF5;
    color: #065F46;
    border-color: #6EE7B7;
}

/* Social icons */
.social-icon-lbl {
    font-style: normal;
    margin-left: 4px;
}

/* Navigation */
.imzad-reg-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid #F1F5F9;
}

.btn-reg-next {
    background: linear-gradient(135deg, #0D2840, #1a4a7c);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 14px rgba(13, 40, 64, .25);
}

.btn-reg-next:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(13, 40, 64, .35);
}

.btn-reg-prev {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid #E2E8F0;
    padding: 11px 22px;
    border-radius: 10px;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-reg-prev:hover {
    background: #E2E8F0;
}

.btn-reg-submit {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #fff;
    border: none;
    padding: 13px 32px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
    box-shadow: 0 4px 18px rgba(212, 175, 55, .4);
}

.btn-reg-submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 175, 55, .55);
}

.btn-reg-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Summary */
.imzad-reg-summary {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 18px 20px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    gap: 12px;
    padding: 6px 0;
    border-bottom: 1px solid #F1F5F9;
}

.summary-row:last-child {
    border-bottom: none;
}

.s-label {
    font-weight: 700;
    color: #475569;
    min-width: 80px;
}

.s-val {
    color: #0D2840;
    font-weight: 600;
}

/* Declaration */
.imzad-declaration-box {
    background: linear-gradient(135deg, #FFFBEB, #FEF3C7);
    border: 1px solid #FCD34D;
    border-right: 4px solid #D4AF37;
    border-radius: 12px;
    padding: 20px 22px;
    margin-bottom: 18px;
}

.imzad-declaration-box h4 {
    margin: 0 0 12px;
    color: #92400E;
    font-size: 1rem;
}

.imzad-declaration-box ol {
    margin: 0;
    padding-right: 20px;
}

.imzad-declaration-box li {
    margin-bottom: 7px;
    color: #78350F;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Terms checkbox */
.imzad-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #334155;
    line-height: 1.5;
}

.imzad-terms-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Success state */
.imzad-reg-success {
    text-align: center;
    padding: 50px 30px;
    animation: panelFadeIn .5s ease;
}

.success-anim {
    font-size: 4rem;
    margin-bottom: 16px;
}

.imzad-reg-success h3 {
    font-size: 1.6rem;
    color: #065F46;
    margin-bottom: 12px;
}

.imzad-reg-success p {
    color: #475569;
    line-height: 1.7;
    max-width: 500px;
    margin: 0 auto 20px;
}

.imzad-reg-ref-box {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    border-radius: 10px;
    padding: 12px 22px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: #065F46;
}

.imzad-reg-ref-box strong {
    font-family: monospace;
    font-size: 1.1rem;
}

.imzad-contact-methods {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-method-badge {
    background: #EFF6FF;
    color: #1D4ED8;
    border: 1px solid #BFDBFE;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.83rem;
    font-weight: 700;
}

/* Empty state for editorial team */
.imzad-et-empty-state {
    text-align: center;
    padding: 40px 20px;
}

.imzad-et-empty-inner {
    max-width: 560px;
    margin: 0 auto;
    background: #F8FAFC;
    border: 1px dashed #CBD5E1;
    border-radius: 16px;
    padding: 36px;
}

.imzad-et-empty-icon {
    font-size: 3.5rem;
    display: block;
    margin-bottom: 14px;
}

.imzad-et-empty-inner h4 {
    font-size: 1.15rem;
    color: #0D2840;
    margin: 0 0 10px;
    font-weight: 800;
}

.imzad-et-empty-inner p {
    color: #64748B;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 20px;
}

.imzad-et-how-steps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    text-align: right;
}

.how-step {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.83rem;
    color: #475569;
}

.how-num {
    background: linear-gradient(135deg, #D4AF37, #B8860B);
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

@media (max-width: 500px) {
    .imzad-et-how-steps {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Writer Registration Pro Multi-step Form
   ========================================================================== */
.imzad-reg-wrap {
    background: #fff;
    border: 1px solid #e8e2d5;
    border-radius: 16px;
    padding: 35px;
    box-shadow: 0 10px 30px rgba(13, 40, 64, 0.06);
    margin: 30px auto;
    max-width: 850px;
    font-family: 'Cairo', 'Readex Pro', sans-serif;
    direction: rtl;
    text-align: right;
}

.imzad-reg-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #f1f5f9;
    padding-bottom: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.imzad-reg-step {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.4;
    transition: opacity 0.3s;
}

.imzad-reg-step.active {
    opacity: 1;
}

.imzad-reg-step .step-num {
    background: #0d2840;
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.imzad-reg-step.active .step-num {
    background: #c85a17;
}

.imzad-reg-step .step-lbl {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
}

/* Panels */
.imzad-reg-panel {
    display: none;
}

.imzad-reg-panel.active {
    display: block;
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.imzad-reg-panel-title {
    font-size: 20px;
    font-weight: 800;
    color: #0d2840;
    margin: 0 0 25px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #FAF7F2;
}

.imzad-reg-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 600px) {
    .imzad-reg-grid-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
}

.imzad-reg-field {
    margin-bottom: 18px;
}

.imzad-reg-field label {
    display: block;
    font-weight: 700;
    font-size: 14px;
    color: #334155;
    margin-bottom: 6px;
}

.imzad-reg-field label .req {
    color: #dc2626;
}

.imzad-reg-field input[type="text"],
.imzad-reg-field input[type="email"],
.imzad-reg-field input[type="tel"],
.imzad-reg-field input[type="url"],
.imzad-reg-field input[type="date"],
.imzad-reg-field select,
.imzad-reg-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    box-sizing: border-box;
}

.imzad-reg-field input:focus,
.imzad-reg-field select:focus,
.imzad-reg-field textarea:focus {
    border-color: #c85a17;
    outline: none;
    box-shadow: 0 0 0 3px rgba(200, 90, 23, 0.1);
}

/* Photo Upload Area */
.imzad-photo-upload-area {
    border: 2px dashed #cbd5e1;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    background: #fafafa;
    cursor: pointer;
    transition: all 0.2s;
}

.imzad-photo-upload-area:hover {
    border-color: #c85a17;
    background: #fffdfa;
}

.imzad-photo-placeholder p {
    margin: 5px 0 0 0;
    font-size: 13px;
    color: #64748b;
    font-weight: 700;
}

/* Navigation buttons */
.imzad-reg-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.imzad-reg-btn-next,
.imzad-reg-btn-prev,
.imzad-reg-btn-submit {
    padding: 12px 25px;
    font-weight: 800;
    font-size: 14px;
    border-radius: 8px;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: all 0.2s;
}

.imzad-reg-btn-next,
.imzad-reg-btn-submit {
    background: #0d2840;
    color: #fff;
    margin-right: auto;
}

.imzad-reg-btn-next:hover,
.imzad-reg-btn-submit:hover {
    background: #153959;
}

.imzad-reg-btn-prev {
    background: #f1f5f9;
    color: #475569;
}

.imzad-reg-btn-prev:hover {
    background: #e2e8f0;
}

.imzad-reg-btn-submit {
    background: #c85a17;
}

.imzad-reg-btn-submit:hover {
    background: #a0400c;
}

/* Chips selection for disciplines */
.imzad-discipline-chips,
.imzad-contact-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.discipline-chip,
.contact-chip {
    cursor: pointer;
}

.discipline-chip input,
.contact-chip input {
    display: none;
}

.discipline-chip span,
.contact-chip span {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    transition: all 0.2s;
}

.discipline-chip input:checked+span,
.contact-chip input:checked+span {
    background: #c85a1715;
    border-color: #c85a17;
    color: #c85a17;
}

/* Phone Row */
.imzad-phone-row {
    position: relative;
    display: flex;
    align-items: center;
}

.imzad-phone-row .phone-icon {
    position: absolute;
    right: 12px;
    font-size: 16px;
    color: #94a3b8;
}

.imzad-phone-row input {
    padding-right: 38px !important;
}

/* Success Card */
.imzad-reg-success {
    text-align: center;
    padding: 40px 20px;
}

.imzad-reg-success .success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
}

.imzad-reg-success h3 {
    color: #0d2840;
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 12px;
}

.imzad-reg-success p {
    color: #64748b;
    font-size: 14.5px;
    line-height: 1.6;
}

/* Declaration and terms */
.imzad-declaration-box {
    background: #fdfaf4;
    border: 1px solid #f2e6d0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.imzad-declaration-box h4 {
    color: #a0400c;
    margin: 0 0 10px 0;
    font-weight: 800;
}

.imzad-declaration-box ul {
    margin: 0;
    padding-right: 20px;
    font-size: 13px;
    color: #475569;
    line-height: 1.7;
}

.imzad-terms-check {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: #334155;
    font-weight: 700;
}

.imzad-terms-check input {
    margin-top: 3px;
}

.char-counter {
    text-align: left;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 4px;
}

/* ==========================================================================
   Imzad Native Ads & Cultural Sponsorships (الإعلانات والرعايات الثقافية)
   ========================================================================== */

.imzad-ads-rotator-container {
    position: relative;
    margin: 35px 0;
    width: 100%;
}

.imzad-ads-slides-track {
    position: relative;
    width: 100%;
}

.imzad-ad-slide {
    display: none;
    opacity: 0;
    transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
    transform: scale(0.99);
}

.imzad-ad-slide.is-active {
    display: block;
    opacity: 1;
    transform: scale(1);
}

/* Rotator Controls */
.imzad-rotator-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 14px;
    position: relative;
}

.imzad-rotator-btn {
    background: #FFFFFF;
    border: 1px solid #CBD5E1;
    color: #0D2840;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    line-height: 1;
    padding: 0;
}

.imzad-rotator-btn:hover {
    background: #0D2840;
    color: #D4AF37;
    border-color: #0D2840;
}

.imzad-rotator-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.imzad-rotator-dot {
    width: 10px;
    height: 10px;
    border-radius: 20px;
    background: #CBD5E1;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.imzad-rotator-dot.is-active {
    background: #D4AF37;
    width: 26px;
    box-shadow: 0 0 8px rgba(212, 175, 55, 0.5);
}

.imzad-rotator-progress-line {
    position: absolute;
    bottom: -6px;
    left: 20%;
    right: 20%;
    height: 2px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.imzad-rotator-progress-line .progress-bar-fill {
    width: 0%;
    height: 100%;
    background: #D4AF37;
    transition: width 0.1s linear;
}

/* Native Card Shared Base */
.imzad-native-ad-card {
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.imzad-native-ad-card:hover {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.12);
}

/* 1. Template: Cultural Partner (🏛️ الشريك الثقافي والاستراتيجي) */
.imzad-ad-template-partner {
    background: linear-gradient(135deg, #071926 0%, #0D2840 50%, #173756 100%) !important;
    border: 1.5px solid rgba(212, 175, 55, 0.45) !important;
    padding: 28px 34px !important;
    color: #FFFFFF !important;
}

.imzad-ad-template-partner .ad-partner-inner {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 28px !important;
}

.imzad-ad-template-partner .ad-partner-left {
    flex: 1 !important;
    text-align: right !important;
}

.imzad-ad-template-partner .ad-partner-tag {
    display: inline-block !important;
    background: rgba(212, 175, 55, 0.2) !important;
    color: #D4AF37 !important;
    border: 1px solid rgba(212, 175, 55, 0.45) !important;
    font-size: 0.82rem !important;
    font-weight: 800 !important;
    padding: 4px 14px !important;
    border-radius: 20px !important;
    margin-bottom: 12px !important;
}

.imzad-ad-template-partner .ad-partner-title {
    font-size: 1.45rem !important;
    font-weight: 900 !important;
    color: #FFFFFF !important;
    margin: 0 0 10px 0 !important;
    line-height: 1.4 !important;
}

.imzad-ad-template-partner .ad-partner-caption {
    color: #CBD5E1 !important;
    font-size: 0.95rem !important;
    line-height: 1.6 !important;
    margin: 0 0 18px 0 !important;
}

.imzad-ad-template-partner .btn-partner-cta {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: #D4AF37 !important;
    color: #071926 !important;
    text-decoration: none !important;
    font-size: 0.92rem !important;
    font-weight: 800 !important;
    padding: 8px 24px !important;
    border-radius: 25px !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35) !important;
    transition: all 0.25s ease !important;
}

.imzad-ad-template-partner .btn-partner-cta:hover {
    background: #FFFFFF !important;
    color: #071926 !important;
    transform: translateY(-2px) !important;
}

.imzad-ad-template-partner .ad-partner-emblem {
    width: 125px !important;
    height: 125px !important;
    min-width: 125px !important;
    max-width: 125px !important;
    flex-shrink: 0 !important;
    border-radius: 50% !important;
    background: #FFFFFF !important;
    border: 3.5px solid #D4AF37 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3) !important;
    padding: 14px !important;
    overflow: hidden !important;
}

.imzad-ad-template-partner .ad-partner-logo-img {
    max-width: 100% !important;
    max-height: 100% !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block !important;
    margin: 0 auto !important;
}

/* 2. Template: Book Showcase (📖 إشهار كتاب) */
.imzad-ad-template-book {
    background: linear-gradient(135deg, #FAF7F2 0%, #FFFDF9 100%) !important;
    border: 1.5px solid #E8E2D5 !important;
    padding: 24px 28px !important;
}

.ad-book-badge-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.ad-badge-pill {
    background: rgba(212, 175, 55, 0.18);
    color: #8C6A0A;
    border: 1px solid rgba(212, 175, 55, 0.4);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 20px;
}

.ad-disclosure-tag {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94A3B8;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 2px 8px;
    border-radius: 10px;
}

.ad-book-grid {
    display: flex;
    gap: 24px;
    align-items: center;
}

.ad-book-cover-wrap {
    flex-shrink: 0;
    perspective: 800px;
}

.ad-book-3d {
    width: 120px;
    height: 170px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    box-shadow: 6px 10px 22px rgba(0, 0, 0, 0.2);
    border: 2px solid #D4AF37;
    background: #0D2840;
    transform: rotateY(-8deg);
    transition: transform 0.3s ease;
}

.imzad-native-ad-card:hover .ad-book-3d {
    transform: rotateY(0deg) scale(1.03);
}

.ad-book-cover-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-book-spine-glow {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 12px;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.ad-book-info {
    flex: 1;
}

.ad-book-title {
    color: #0D2840;
    font-size: 1.25rem;
    font-weight: 900;
    margin: 0 0 6px 0;
    line-height: 1.4;
}

.ad-book-meta-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.meta-author {
    color: #C85A17;
}

.meta-publisher {
    color: #64748B;
}

.ad-book-caption {
    color: #475569;
    font-size: 0.92rem;
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.ad-attached-gallery-strip {
    margin: 10px 0 14px 0;
}

.gallery-strip-title {
    display: block;
    font-size: 0.76rem;
    font-weight: 800;
    color: #64748B;
    margin-bottom: 6px;
}

.gallery-strip-items {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.gallery-thumb-link {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    overflow: hidden;
    border: 1.5px solid #CBD5E1;
    transition: all 0.2s ease;
    display: inline-block;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.gallery-thumb-link:hover {
    border-color: #D4AF37;
    transform: scale(1.12);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

.gallery-thumb-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.btn-ad-action-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #0D2840 0%, #1A3E62 100%);
    color: #D4AF37;
    border: 1px solid #D4AF37;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 800;
    padding: 8px 22px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(13, 40, 64, 0.2);
    transition: all 0.25s ease;
}

.btn-ad-action-primary:hover {
    background: #D4AF37;
    color: #0D2840;
    box-shadow: 0 6px 18px rgba(212, 175, 55, 0.4);
    transform: translateY(-2px);
}

/* 3. Template: Cultural Event (🎭 الفعاليات) */
.imzad-ad-template-event {
    background: #FFFBEB !important;
    border: 1.5px solid #FDE68A !important;
    padding: 22px 26px !important;
}

.ad-event-grid {
    display: flex;
    gap: 22px;
    align-items: center;
}

.ad-event-poster {
    width: 130px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1.5px solid #FCD34D;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.12);
}

.ad-event-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-event-tag {
    display: inline-block;
    background: #F59E0B;
    color: #FFFFFF;
    font-size: 0.76rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 12px;
    margin-bottom: 6px;
}

.ad-event-title {
    color: #78350F;
    font-size: 1.2rem;
    font-weight: 900;
    margin: 0 0 6px 0;
}

.ad-event-schedule {
    font-size: 0.85rem;
    color: #B45309;
    font-weight: 700;
    margin-bottom: 8px;
}

.ad-event-desc {
    color: #92400E;
    font-size: 0.88rem;
    line-height: 1.5;
    margin: 0 0 14px 0;
}

.btn-event-cta {
    display: inline-flex;
    align-items: center;
    background: #92400E;
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    padding: 6px 18px;
    border-radius: 20px;
    transition: all 0.2s ease;
}

.btn-event-cta:hover {
    background: #78350F;
    transform: translateY(-2px);
}

/* 4. Template: Custom Banner (🖼️ البنر المصور) */
.imzad-ad-template-custom {
    background: #FAF7F2;
    border: 1px dashed #D4AF37;
    border-radius: 14px;
    padding: 16px 20px;
    text-align: center;
}

.custom-banner-label-row {
    margin-bottom: 8px;
}

.ad-sponsor-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    color: #64748B;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    padding: 2px 10px;
    border-radius: 20px;
}

.sponsor-banner-img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.25s ease;
}

.sponsor-banner-img:hover {
    transform: scale(1.01);
}

.sponsor-text-banner {
    font-size: 1.1rem;
    color: #0D2840;
}

/* Responsive Styles for Ads */
@media (max-width: 768px) {

    .imzad-ad-template-partner .ad-partner-inner,
    .ad-book-grid,
    .ad-event-grid {
        flex-direction: column !important;
        text-align: center !important;
        gap: 16px !important;
    }

    .imzad-ad-template-partner .ad-partner-left {
        text-align: center !important;
    }

    .ad-book-badge-wrap {
        justify-content: center;
        gap: 8px;
    }

    .ad-book-3d {
        transform: none;
        margin: 0 auto;
    }

    .ad-book-meta-line {
        justify-content: center;
    }

    .imzad-ad-template-partner .ad-partner-emblem {
        margin: 0 auto !important;
    }
}

/* ==========================================================================
   Imzad WebTV Studio Layout & Player Scoped Styles
   ========================================================================== */
.imzad-webtv-cinema-container {
    background: #051421 !important;
    border: 2px solid #D4AF37 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(212, 175, 55, 0.15) !important;
    margin: 30px auto !important;
    color: #ffffff !important;
    font-family: 'Cairo', 'Segoe UI', Tahoma, sans-serif !important;
    direction: rtl !important;
}

.webtv-cinema-stage {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 370px !important;
    background: #040e17 !important;
    align-items: stretch !important;
}

@media (max-width: 991px) {
    .webtv-cinema-stage {
        grid-template-columns: 1fr !important;
    }
}

.webtv-screen-column {
    background: #000000 !important;
    display: flex !important;
    flex-direction: column !important;
    border-left: 1px solid rgba(212, 175, 55, 0.25) !important;
}

.webtv-playlist-column {
    background: #071926 !important;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 560px !important;
    overflow: hidden !important;
}

.webtv-pl-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.06) !important;
    box-sizing: border-box !important;
    text-align: right !important;
}

.webtv-pl-item:hover {
    background: rgba(212, 175, 55, 0.08) !important;
    border-color: rgba(212, 175, 55, 0.4) !important;
    transform: translateX(-3px) !important;
}

.webtv-pl-item.active {
    background: linear-gradient(90deg, rgba(212, 175, 55, 0.2) 0%, rgba(13, 40, 64, 0.8) 100%) !important;
    border-color: #D4AF37 !important;
    box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2) !important;
}

.pl-thumb-wrap {
    position: relative !important;
    flex: 0 0 110px !important;
    width: 110px !important;
    min-width: 110px !important;
    max-width: 110px !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    background: #000000 !important;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.5) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
}

.pl-thumb-wrap img {
    width: 100% !important;
    height: 100% !important;
    min-width: 100% !important;
    min-height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
}