:root {
    --uae-black: #1f1f1f;
    --uae-gold: #c8a45d;
    --uae-gold-dark: #a8843f;
    --uae-bg: #fcfaf5;
    --uae-surface: #ffffff;
    --uae-text: #1f2937;
    --uae-muted: #6b7280;
    --uae-border: #ece6d8;
}

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body.masari-body {
    background: var(--uae-bg);
    color: var(--uae-text);
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
}

.container {
    max-width: 1180px;
}

.rtl {
    direction: rtl;
    text-align: right;
}

.masari-navbar {
    background: var(--uae-black);
    border-bottom: 3px solid var(--uae-gold);
}

.navbar-brand,
.nav-link {
    color: #fff !important;
}

.top-strip {
    background: #2c2c2c;
    border-bottom: 1px solid rgba(200, 164, 93, 0.25);
}

.hero-section {
    background: linear-gradient(135deg, #f8f6f1 0%, #f1ede3 100%);
    color: var(--uae-text);
    border-radius: 24px;
    padding: 48px 40px;
    border: 1px solid #e7dcc3;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.06);
}

.hero-title {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--uae-text);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #374151;
    max-width: 760px;
}

.cta-btn,
.btn-success {
    background-color: var(--uae-gold) !important;
    border-color: var(--uae-gold) !important;
    color: #111 !important;
    font-weight: 700;
    border-radius: 12px;
    padding: 12px 22px;
}

    .btn-success:hover,
    .cta-btn:hover {
        background-color: var(--uae-gold-dark) !important;
        border-color: var(--uae-gold-dark) !important;
        color: #111 !important;
    }

.btn-outline-light {
    border-color: var(--uae-gold) !important;
    color: #7a5a1d !important;
    background-color: transparent !important;
    border-radius: 12px;
    padding: 12px 22px;
    font-weight: 600;
}

    .btn-outline-light:hover {
        background-color: #f5e7c5 !important;
        color: #7a5a1d !important;
    }

.masari-card,
.form-section-card,
.dashboard-stat-card,
.summary-panel,
.ai-panel {
    background: var(--uae-surface);
    border: 1px solid var(--uae-border);
    border-radius: 18px;
    box-shadow: 0 8px 20px rgba(17, 17, 17, 0.05);
    color: var(--uae-text);
}

.masari-section-title,
.result-card-title,
.ai-panel-title,
.highlight-title {
    color: var(--uae-black);
}

.result-card-subtitle,
.ai-panel-subtitle,
.dashboard-stat-label {
    color: var(--uae-muted);
}

.masari-highlight {
    color: var(--uae-gold-dark);
    font-weight: 700;
}

.score-badge,
.confidence-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 0.9rem;
    font-weight: 700;
}

.score-high,
.confidence-high {
    background: #ecfdf3;
    color: #166534;
}

.score-medium,
.confidence-medium {
    background: #fff7e6;
    color: #8a6116;
}

.score-low,
.confidence-low {
    background: #fef2f2;
    color: #991b1b;
}

.skill-tag {
    display: inline-block;
    background: #f5f5f5;
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    padding: 6px 12px;
    margin: 4px 6px 0 0;
    font-size: 0.9rem;
}

.missing-skill-tag {
    display: inline-block;
    background: #fff7e6;
    color: #8a6116;
    border: 1px solid #ead7af;
    border-radius: 999px;
    padding: 6px 12px;
    margin: 4px 6px 0 0;
    font-size: 0.9rem;
}

.next-step-item,
.ai-bullet {
    background: #faf8f2;
    border-left: 4px solid var(--uae-gold);
    color: #374151;
    border-radius: 10px;
    padding: 10px 12px;
    margin-bottom: 10px;
}

.option-box {
    background-color: #fcfbf7;
    border: 1px solid #e7dcc3;
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 10px;
    transition: all 0.2s ease-in-out;
}

    .option-box:hover {
        background-color: #f8f1df;
        border-color: var(--uae-gold);
    }

.profile-summary {
    background: linear-gradient(135deg, #fffdf8 0%, #f8f3e8 100%);
    border-left: 6px solid var(--uae-gold);
    border-radius: 18px;
}

.dashboard-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--uae-gold-dark);
}

.dashboard-hero {
    background: linear-gradient(135deg, #faf7ef 0%, #f3ecdd 100%);
    color: var(--uae-text);
    border-radius: 24px;
    padding: 32px;
    border: 1px solid #e7dcc3;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.summary-panel {
    background: linear-gradient(135deg, #fffdf8 0%, #f8f3e8 100%);
}

.ai-chat-box {
    background: #ffffff;
    border-radius: 18px;
    padding: 18px;
    box-shadow: inset 0 0 0 1px #e5e7eb;
}

.readiness-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 1.6rem;
    font-weight: 700;
    background: conic-gradient(var(--uae-gold) 0deg, var(--uae-gold) calc(var(--percent) * 3.6deg), #e5e7eb 0deg);
    position: relative;
}

    .readiness-ring::after {
        content: "";
        position: absolute;
        width: 82px;
        height: 82px;
        border-radius: 50%;
        background: white;
    }

    .readiness-ring span {
        position: relative;
        z-index: 1;
        color: var(--uae-text);
    }

.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--uae-gold), transparent);
    margin: 30px 0;
}

.card {
    transition: all 0.25s ease;
}

    .card:hover {
        transform: translateY(-4px);
    }

.footer {
    background: transparent;
}
.lang-btn {
    background: #ffffff;
    color: #1f1f1f !important;
    border: 1px solid #d9c08a;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
}

    .lang-btn:hover {
        background: #f5e7c5;
        color: #1f1f1f !important;
        border-color: #c8a45d;
    }

.lang-btn {
    background: #ffffff;
    color: #1f1f1f !important;
    border: 1px solid #d9c08a;
    border-radius: 8px;
    padding: 6px 12px;
    font-weight: 600;
}

    .lang-btn:hover {
        background: #f5e7c5;
        color: #1f1f1f !important;
        border-color: #c8a45d;
    }

.rtl .navbar-nav {
    flex-direction: row-reverse;
}

.rtl .navbar-brand {
    flex-direction: row-reverse;
}

.rtl .nav-link {
    text-align: right;
}
.opportunity-card {
    background: #fffdf8;
    border: 1px solid #eadfca;
    border-radius: 14px;
    padding: 14px;
    margin-top: 12px;
}

.opportunity-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
}

.opportunity-meta {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 8px;
}

.opportunity-badge {
    display: inline-block;
    background: #f5e7c5;
    color: #7a5a1d;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.opportunity-btn {
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 600;
}
.modal-content {
    border-radius: 18px;
    border: 1px solid #ece6d8;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.modal-header,
.modal-footer {
    border-color: #f0e7d6;
}

.modal-title {
    font-weight: 700;
    color: #1f2937;
}

.opportunity-card {
    background: #fffdf8;
    border: 1px solid #eadfca;
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 14px;
}

.opportunity-title {
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 4px;
    font-size: 1.05rem;
}

.opportunity-meta {
    color: #6b7280;
    font-size: 0.95rem;
    margin-bottom: 10px;
}

.opportunity-badge {
    display: inline-block;
    background: #f5e7c5;
    color: #7a5a1d;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.opportunity-btn {
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 600;
}