/* BISMILLAAH HIRRAHMAAN NIRRAHEEM */
/* BISIMILLAH HIRAHMAAN NIRAHEEM (SUB'HAANAHU RABBUL EZZAH) */

:root {
    --alp-emerald-deep: #064e3b;
    --alp-emerald-primary: #047857;
    --alp-emerald-light: #10b981;
    --alp-emerald-bg: #ecfdf5;
    --alp-gold-primary: #d97706;
    --alp-gold-light: #fbbf24;
    --alp-gold-bg: #fffbeb;
    --alp-slate-dark: #0f172a;
    --alp-slate-text: #334155;
    --alp-slate-muted: #64748b;
    --alp-card-border: #e2e8f0;
    --alp-font-ar: 'Amiri', 'Scheherazade New', 'Noto Naskh Arabic', 'Traditional Arabic', serif;
}

/* Base Container (1200px Enforced Platform Layout) */
.alp-platform-container {
    width: 100% !important;
    max-width: 1200px !important;
    margin: 24px auto !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--alp-slate-text);
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--alp-card-border);
    overflow: hidden;
    position: relative;
    box-sizing: border-box !important;
}

.alp-platform-container *,
.alp-platform-container *::before,
.alp-platform-container *::after {
    box-sizing: border-box;
}

/* Force parent WordPress theme containers to allow full 1200px width */
.entry-content:has(.alp-platform-container),
.site-main:has(.alp-platform-container),
.alp-theme-container,
.wp-site-blocks:has(.alp-platform-container),
article:has(.alp-platform-container),
main:has(.alp-platform-container),
#content:has(.alp-platform-container) {
    max-width: 1200px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
}

/* TOP PLATFORM BANNER */
.alp-sacred-header {
    background: linear-gradient(135deg, #064e3b 0%, #065f46 60%, #047857 100%);
    color: #ffffff;
    text-align: center;
    padding: 22px 24px;
    border-bottom: 4px solid var(--alp-gold-light);
    position: relative;
}

.alp-sacred-header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(#fbbf24 0.75px, transparent 0.75px);
    background-size: 20px 20px;
    opacity: 0.15;
    pointer-events: none;
}

.alp-platform-tagline {
    font-family: var(--alp-font-ar);
    font-size: 1.55rem;
    font-weight: 700;
    color: #fef08a;
    margin-bottom: 6px;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.25);
}

.alp-platform-subtagline {
    font-size: 0.98rem;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* STUDENT STATUS BAR */
.alp-student-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    background: #f8fafc;
    padding: 14px 24px;
    border-bottom: 1px solid var(--alp-card-border);
}

.alp-student-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alp-avatar-icon {
    font-size: 1.8rem;
    background: #e2e8f0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.alp-student-greeting {
    font-size: 0.95rem;
    color: var(--alp-slate-dark);
}

.alp-bold-name {
    font-weight: 700;
    color: var(--alp-emerald-deep);
}

.alp-btn-inline-edit {
    background: none;
    border: none;
    color: var(--alp-emerald-primary);
    font-size: 0.8rem;
    cursor: pointer;
    text-decoration: underline;
    margin-left: 6px;
    padding: 0;
}

.alp-tier-badge {
    background: var(--alp-emerald-bg);
    color: var(--alp-emerald-deep);
    border: 1px solid var(--alp-emerald-light);
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.alp-progress-summary {
    flex: 1;
    min-width: 200px;
    max-width: 380px;
}

.alp-progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 0.82rem;
    margin-bottom: 4px;
    color: var(--alp-slate-muted);
}

.alp-progress-track {
    background: #e2e8f0;
    height: 9px;
    border-radius: 5px;
    overflow: hidden;
}

.alp-progress-bar {
    background: linear-gradient(90deg, var(--alp-emerald-light) 0%, var(--alp-gold-primary) 100%);
    height: 100%;
    transition: width 0.4s ease;
}

.alp-btn-diploma-gold {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    font-weight: 700;
    border: none;
    padding: 10px 18px;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(217, 119, 6, 0.3);
    transition: transform 0.2s, opacity 0.2s;
}

.alp-btn-diploma-gold:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(217, 119, 6, 0.4);
}

.alp-btn-diploma-gold:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #94a3b8;
    box-shadow: none;
}

/* QUICK EVALUATION TOOLBAR */
.alp-eval-toolbar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #f8fafc;
    padding: 10px 24px;
    border-bottom: 1px solid var(--alp-card-border);
    font-size: 0.82rem;
}

.alp-eval-label {
    font-weight: 700;
    color: var(--alp-emerald-deep);
}

.alp-eval-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.alp-btn-eval {
    background: #ffffff;
    border: 1px solid var(--alp-card-border);
    border-radius: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--alp-slate-text);
    cursor: pointer;
    transition: all 0.15s ease;
}

.alp-btn-eval:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
}

.alp-btn-eval.exam {
    background: #eff6ff;
    border-color: #93c5fd;
    color: #1d4ed8;
}

.alp-btn-eval.gold {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}

.alp-btn-eval.reset {
    background: #f1f5f9;
    color: #64748b;
}

/* LEVEL NAVIGATION TABS */
.alp-level-tabs {
    display: flex;
    background: #f1f5f9;
    border-bottom: 1px solid var(--alp-card-border);
    overflow-x: auto;
}

.alp-tab-btn {
    flex: 1;
    min-width: 220px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: transparent;
    border: none;
    border-right: 1px solid var(--alp-card-border);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s, color 0.2s;
}

.alp-tab-btn:hover {
    background: #e2e8f0;
}

.alp-tab-btn.active {
    background: #ffffff;
    border-bottom: 3px solid var(--alp-emerald-primary);
}

.alp-tab-num {
    background: #e2e8f0;
    color: var(--alp-slate-dark);
    font-weight: 700;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.95rem;
}

.alp-tab-btn.active .alp-tab-num {
    background: var(--alp-emerald-primary);
    color: #ffffff;
}

.alp-tab-text strong {
    display: block;
    font-size: 0.95rem;
    color: var(--alp-slate-dark);
}

.alp-tab-text small {
    display: block;
    font-size: 0.78rem;
    color: var(--alp-slate-muted);
}

/* MAIN LAYOUT */
.alp-main-layout {
    display: flex;
    min-height: 600px;
}

/* SIDEBAR LESSONS */
.alp-sidebar-lessons {
    width: 320px;
    border-right: 1px solid var(--alp-card-border);
    background: #f8fafc;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.alp-sidebar-header {
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid var(--alp-card-border);
}

.alp-sidebar-header h4 {
    margin: 0 0 4px 0;
    font-size: 1.05rem;
    color: var(--alp-slate-dark);
}

.alp-sidebar-subtitle {
    font-size: 0.8rem;
    color: var(--alp-slate-muted);
}

.alp-lesson-list {
    list-style: none;
    margin: 0;
    padding: 10px;
    overflow-y: auto;
    flex: 1;
}

.alp-lesson-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    background: #ffffff;
    border: 1px solid var(--alp-card-border);
    transition: all 0.2s ease;
}

.alp-lesson-item:hover {
    border-color: var(--alp-emerald-light);
    transform: translateX(3px);
}

.alp-lesson-item.active {
    background: var(--alp-emerald-bg);
    border-color: var(--alp-emerald-primary);
    box-shadow: 0 2px 8px rgba(4, 120, 87, 0.15);
}

.alp-lesson-item.completed .alp-lesson-status-icon {
    color: var(--alp-emerald-light);
}

.alp-lesson-item-info {
    flex: 1;
}

.alp-lesson-item-title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--alp-slate-dark);
    margin-bottom: 2px;
}

.alp-lesson-item-ar {
    font-family: var(--alp-font-ar);
    font-size: 0.85rem;
    color: var(--alp-emerald-primary);
}

/* CONTENT PANE */
.alp-content-pane {
    flex: 1;
    min-width: 0;
    padding: 32px;
    background: #ffffff;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
}

.alp-lesson-body {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.alp-lesson-header {
    margin-bottom: 24px;
    border-bottom: 1px solid var(--alp-card-border);
    padding-bottom: 18px;
}

.alp-lesson-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.alp-level-pill {
    background: #e2e8f0;
    color: var(--alp-slate-text);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.alp-status-pill {
    background: var(--alp-emerald-bg);
    color: var(--alp-emerald-deep);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.alp-lesson-title {
    margin: 0 0 6px 0;
    font-size: 1.6rem;
    color: var(--alp-slate-dark);
}

.alp-lesson-title-ar {
    font-family: var(--alp-font-ar);
    font-size: 1.4rem;
    color: var(--alp-emerald-primary);
    margin: 0 0 10px 0;
}

.alp-lesson-desc {
    color: var(--alp-slate-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* GOOGLE DICTIONARY PHONETIC CONTROLS BAR */
.alp-phonetic-controls-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 1px solid #a7f3d0;
    border-left: 5px solid var(--alp-emerald-primary);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 24px;
    box-shadow: 0 2px 6px rgba(4, 120, 87, 0.05);
}

.alp-phonetic-bar-left {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.alp-phonetic-bar-icon {
    font-size: 1.8rem;
    line-height: 1;
    margin-top: 2px;
}

.alp-phonetic-bar-content {
    flex: 1;
}

.alp-phonetic-bar-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--alp-emerald-deep);
    margin-bottom: 4px;
}

.alp-phonetic-tag-pill {
    background: #047857;
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 9999px;
    letter-spacing: 0.5px;
    font-family: monospace;
}

.alp-phonetic-bar-subtitle {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.45;
}

.alp-phonetic-bar-subtitle code {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 1px 6px;
    border-radius: 4px;
    font-weight: 700;
    color: #065f46;
}

/* INTERACTIVE LESSON BODY STYLES */
.alp-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #1e293b;
    margin-bottom: 20px;
}

.alp-ar-tag {
    font-family: var(--alp-font-ar);
    font-size: 1.3rem;
    color: var(--alp-emerald-deep);
    background: #ecfdf5;
    padding: 2px 8px;
    border-radius: 4px;
    border: 1px solid #a7f3d0;
    margin: 0 3px;
    display: inline-block;
}

/* ALPHABET GRID */
.alp-alphabet-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(105px, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.alp-letter-card {
    background: #ffffff;
    border: 1px solid var(--alp-card-border);
    border-radius: 12px;
    padding: 12px 8px 10px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.alp-letter-card:hover {
    border-color: var(--alp-emerald-primary);
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(4, 120, 87, 0.15);
    background: #fcfdfd;
}

.alp-letter-ar {
    font-family: var(--alp-font-ar);
    font-size: 2.2rem;
    color: var(--alp-emerald-deep);
    line-height: 1.1;
    margin-bottom: 2px;
}

.alp-letter-name {
    font-size: 0.8rem;
    color: var(--alp-slate-dark);
    font-weight: 700;
}

.alp-letter-ipa {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #047857;
    background: #ecfdf5;
    padding: 1px 6px;
    border-radius: 4px;
    margin-top: 4px;
    border: 1px solid #a7f3d0;
}

.alp-letter-syllable {
    font-size: 0.72rem;
    color: #2563eb;
    font-weight: 600;
    margin-top: 3px;
    letter-spacing: 0.2px;
}

.alp-letter-hint {
    font-size: 0.68rem;
    color: #64748b;
    margin-top: 2px;
    line-height: 1.2;
}

/* VOWEL CARDS */
.alp-vowel-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 24px 0;
}

@media (max-width: 680px) {
    .alp-vowel-cards {
        grid-template-columns: 1fr;
    }
}

.alp-vowel-card {
    background: #f8fafc;
    border: 1px solid var(--alp-card-border);
    border-radius: 14px;
    padding: 20px 18px;
    text-align: center;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    max-width: 100%;
    transition: all 0.2s ease;
}

.alp-vowel-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.alp-vowel-symbol {
    font-family: var(--alp-font-ar);
    font-size: 3rem;
    color: var(--alp-emerald-primary);
    line-height: 1;
    margin-bottom: 8px;
}

.alp-vowel-card h5 {
    margin: 0 0 6px 0;
    font-size: 1.05rem;
    color: var(--alp-slate-dark);
    font-weight: 700;
}

.alp-vowel-card p {
    font-size: 0.88rem;
    color: var(--alp-slate-muted);
    margin: 0 0 14px 0;
    line-height: 1.4;
}

.alp-word-example {
    background: #ffffff;
    border: 1px solid var(--alp-card-border);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--alp-slate-dark);
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px 10px;
    margin: 6px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    transition: all 0.2s ease;
    overflow: hidden;
    text-align: center;
}

.alp-word-example:hover {
    background: #ecfdf5;
    border-color: var(--alp-emerald-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(4, 120, 87, 0.1);
}

.alp-vowel-card .alp-word-example {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 16px;
    margin-top: auto;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
}

.alp-example-ar {
    font-family: var(--alp-font-ar);
    font-size: 1.85rem;
    font-weight: 700;
    color: #064e3b;
    line-height: 1.25;
    display: block;
    text-align: center;
}

.alp-example-phonetics {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 8px;
    max-width: 100%;
}

.alp-example-trans {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.88rem !important;
    color: var(--alp-slate-muted) !important;
    font-weight: 500 !important;
    display: block;
    text-align: center;
    line-height: 1.3;
}

.alp-word-example span {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.85rem;
    color: var(--alp-slate-muted);
}

.alp-ipa-badge {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace !important;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    color: #047857 !important;
    background: #ecfdf5 !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    border: 1px solid #a7f3d0 !important;
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.alp-syllables-inline {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.78rem !important;
    color: #1d4ed8 !important;
    font-weight: 700 !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    padding: 3px 8px !important;
    border-radius: 6px !important;
    white-space: nowrap !important;
    display: inline-block !important;
    line-height: 1.3 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
}

.alp-clickable-word {
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    padding: 4px 10px;
    transition: all 0.2s ease;
    margin: 2px 4px;
}

.alp-clickable-word:hover {
    background: #ecfdf5;
    border-color: #10b981;
    transform: translateY(-2px);
}

/* VOCAB TABLE */
.alp-vocab-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
}

.alp-vocab-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.alp-vocab-table th, .alp-vocab-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--alp-card-border);
    text-align: left;
}

.alp-vocab-table th {
    background: #f8fafc;
    color: var(--alp-slate-dark);
    font-weight: 600;
}

.alp-vocab-table td.ar {
    font-family: var(--alp-font-ar);
    font-size: 1.3rem;
    color: var(--alp-emerald-deep);
}

.alp-btn-audio {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: var(--alp-emerald-deep);
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 0.8rem;
    cursor: pointer;
}

/* SENTENCE ANALYSIS (I'RAB) */
.alp-sentence-analysis {
    margin: 20px 0;
}

.alp-parsed-line {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid var(--alp-card-border);
    margin-bottom: 12px;
}

.alp-part {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #ffffff;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #cbd5e1;
}

.alp-part small {
    font-size: 0.75rem;
    color: var(--alp-slate-muted);
    margin-top: 4px;
    text-align: center;
}

.alp-trans {
    width: 100%;
    font-size: 0.85rem;
    font-style: italic;
    color: var(--alp-slate-muted);
    border-top: 1px dashed #e2e8f0;
    padding-top: 8px;
    margin-top: 6px;
}

/* CALLOUTS */
.alp-callout-info {
    background: #f0fdf4;
    border-left: 4px solid var(--alp-emerald-primary);
    padding: 14px 18px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.alp-two-cols {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 20px 0;
}

@media (max-width: 680px) {
    .alp-two-cols {
        grid-template-columns: 1fr;
    }
}

.alp-col-box {
    background: #f8fafc;
    border: 1px solid var(--alp-card-border);
    border-radius: 10px;
    padding: 16px;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 100%;
}

/* QUIZ CARD */
.alp-quiz-card {
    margin-top: 36px;
    background: #ffffff;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.alp-quiz-header h3 {
    margin: 0 0 6px 0;
    color: var(--alp-slate-dark);
}

.alp-quiz-header p {
    margin: 0 0 20px 0;
    color: var(--alp-slate-muted);
    font-size: 0.9rem;
}

.alp-question-block {
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px dashed #e2e8f0;
}

.alp-question-text {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 12px;
    color: var(--alp-slate-dark);
}

.alp-options-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.alp-option-label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid var(--alp-card-border);
    cursor: pointer;
    font-size: 0.92rem;
    transition: all 0.15s ease;
}

.alp-option-label:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.alp-option-label.selected {
    background: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
    font-weight: 600;
}

.alp-option-label.correct {
    background: #ecfdf5 !important;
    border-color: #10b981 !important;
    color: #065f46 !important;
}

.alp-option-label.wrong {
    background: #fef2f2 !important;
    border-color: #ef4444 !important;
    color: #991b1b !important;
}

.alp-quiz-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.alp-btn-primary {
    background: var(--alp-emerald-primary);
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
    transition: background 0.2s;
}

.alp-btn-primary:hover {
    background: var(--alp-emerald-deep);
}

.alp-btn-secondary {
    background: #64748b;
    color: #ffffff;
    font-weight: 600;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.95rem;
}

.alp-quiz-result-banner {
    margin-top: 20px;
    padding: 18px;
    border-radius: 8px;
    font-size: 0.95rem;
}

.alp-quiz-result-banner.passed {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #065f46;
}

.alp-quiz-result-banner.failed {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

/* MODAL */
.alp-modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.alp-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

.alp-modal-dialog {
    position: relative;
    background: #ffffff;
    width: 90%;
    max-width: 500px;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

.alp-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    background: #f8fafc;
    border-bottom: 1px solid var(--alp-card-border);
}

.alp-modal-header h3 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--alp-slate-dark);
}

.alp-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--alp-slate-muted);
}

.alp-modal-body {
    padding: 20px;
}

.alp-modal-footer {
    padding: 14px 20px;
    background: #f8fafc;
    border-top: 1px solid var(--alp-card-border);
    text-align: right;
}

.alp-form-group {
    margin-bottom: 16px;
}

.alp-form-group label {
    display: block;
    margin-bottom: 6px;
    font-size: 0.88rem;
    font-weight: 600;
}

.alp-input-text {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--alp-card-border);
    border-radius: 6px;
    font-size: 0.95rem;
    box-sizing: border-box;
}

/* GOOGLE DICTIONARY INSPECTOR MODAL (760px Ultra-Modern UI) */
.alp-dict-dialog {
    width: 100% !important;
    max-width: 760px !important;
    border-radius: 20px !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35) !important;
    background: #ffffff !important;
    overflow: hidden !important;
}

.alp-dict-top-bar {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 16px 24px !important;
    background: #f8fafc !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

.alp-dict-badge {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.alp-dict-modal .alp-modal-close {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    border-radius: 50% !important;
    border: 1.5px solid #cbd5e1 !important;
    background: #ffffff !important;
    color: #64748b !important;
    font-size: 1.4rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
    padding: 0 !important;
    margin: 0 !important;
}

.alp-dict-modal .alp-modal-close:hover {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
    transform: rotate(90deg);
}

.alp-dict-body {
    padding: 22px 24px !important;
    max-height: 78vh !important;
    overflow-y: auto !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* HERO PRONUNCIATION CARD */
.alp-dict-hero-card {
    background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%) !important;
    border: 1.5px solid #86efac !important;
    border-radius: 16px !important;
    padding: 18px 22px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 16px !important;
    flex-wrap: wrap !important;
}

.alp-dict-arabic-word {
    font-family: var(--alp-font-ar) !important;
    font-size: 3.6rem !important;
    font-weight: 700 !important;
    color: #064e3b !important;
    line-height: 1 !important;
    min-width: 60px !important;
    text-align: center !important;
}

.alp-dict-name-en {
    font-size: 1.35rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    line-height: 1.2 !important;
}

.alp-dict-pronounce-box {
    background: #ffffff !important;
    border: 1.5px solid #bbf7d0 !important;
    border-radius: 12px !important;
    padding: 12px 18px !important;
    text-align: right !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.04) !important;
    min-width: 210px !important;
}

.alp-dict-ipa {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, monospace !important;
    font-size: 1.45rem !important;
    font-weight: 800 !important;
    color: #047857 !important;
    letter-spacing: 0.5px !important;
}

.alp-dict-syllables {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    font-size: 0.92rem !important;
    color: #1d4ed8 !important;
    font-weight: 800 !important;
    background: #eff6ff !important;
    border: 1px solid #bfdbfe !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    display: inline-block !important;
}

/* 3 CARD SECTIONS */
.alp-dict-card-amber {
    background: #fffbeb !important;
    border: 1.5px solid #fde68a !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
}

.alp-dict-soundalike {
    font-size: 0.98rem !important;
    color: #78350f !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

.alp-dict-stress-hint {
    font-size: 0.8rem !important;
    color: #92400e !important;
    margin-top: 5px !important;
    font-style: italic !important;
}

.alp-dict-card-blue {
    background: #f0f9ff !important;
    border: 1.5px solid #bae6fd !important;
    border-left: 5px solid #0284c7 !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
}

.alp-dict-makhraj-box {
    font-size: 0.95rem !important;
    color: #0c4a6e !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
}

.alp-dict-card-emerald {
    background: #f8fafc !important;
    border: 1.5px solid #e2e8f0 !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
}

.alp-dict-meaning-text {
    font-size: 0.98rem !important;
    color: #0f172a !important;
    line-height: 1.5 !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}

.alp-dict-sample-row {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 10px !important;
    padding: 10px 14px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
}

.alp-dict-sample-ar {
    font-family: var(--alp-font-ar) !important;
    font-size: 1.55rem !important;
    color: #064e3b !important;
    font-weight: 700 !important;
    margin-bottom: 2px !important;
}

.alp-dict-sample-translit {
    font-size: 0.9rem !important;
    color: #334155 !important;
    line-height: 1.4 !important;
}

.alp-dict-footer {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 14px 24px !important;
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
}

.alp-dict-footer-note {
    font-size: 0.82rem !important;
    color: #047857 !important;
    font-weight: 600 !important;
}

/* REAL-TIME SEARCH BOX */
.alp-dict-search-box {
    position: relative !important;
    margin: 0 !important;
}

.alp-dict-search-input {
    width: 100% !important;
    padding: 12px 18px 12px 48px !important;
    border: 2px solid #cbd5e1 !important;
    border-radius: 12px !important;
    font-size: 0.98rem !important;
    box-sizing: border-box !important;
    transition: all 0.2s !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    outline: none !important;
}

.alp-dict-search-input:focus {
    border-color: #0d9488 !important;
    background: #ffffff !important;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2) !important;
}

.alp-dict-search-results {
    position: absolute !important;
    top: calc(100% + 6px) !important;
    left: 0 !important;
    right: 0 !important;
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-radius: 12px !important;
    max-height: 240px !important;
    overflow-y: auto !important;
    z-index: 1000 !important;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15) !important;
}
.alp-dict-search-item {
    padding: 10px 14px;
    border-bottom: 1px solid #f1f5f9;
    cursor: pointer;
    font-size: 0.9rem;
    text-align: left;
    transition: background 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.alp-dict-search-item:last-child {
    border-bottom: none;
}
.alp-dict-search-item:hover {
    background-color: #f0fdf4;
}

/* FOOTER */
.alp-platform-footer {
    padding: 18px 24px;
    background: #f8fafc;
    border-top: 1px solid var(--alp-card-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--alp-slate-muted);
}

.alp-footer-verify-hint {
    font-size: 0.78rem;
    margin-top: 4px;
}

/* RESPONSIVE */
@media (max-width: 860px) {
    .alp-main-layout {
        flex-direction: column;
    }
    .alp-sidebar-lessons {
        width: 100%;
        max-height: 250px;
        border-right: none;
        border-bottom: 1px solid var(--alp-card-border);
    }
    .alp-content-pane {
        padding: 20px 16px;
    }
    .alp-student-bar {
        flex-direction: column;
        align-items: flex-start;
    }
    .alp-progress-summary {
        width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 600px) {
    .alp-dict-top-bar {
        padding: 12px 16px !important;
    }
    .alp-dict-body {
        padding: 16px !important;
    }
    .alp-dict-hero-card {
        flex-direction: column !important;
        text-align: center !important;
    }
    .alp-dict-pronounce-box {
        min-width: 0 !important;
        width: 100% !important;
        text-align: center !important;
    }
}
