/* ==========================================================================
   ROYAL LUXURY THEME - مراقبة التربية والتعليم بنغازي
   Palette: Royal White, Majestic Sky Blue, Deep Imperial Sapphire, Gold Accents
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
    /* Royal Navy & Sapphire */
    --royal-navy-dark: #07172c;
    --royal-navy: #0b2545;
    --royal-navy-light: #133966;
    --royal-blue: #1d4ed8;
    --royal-sapphire: #1e40af;

    /* Majestic Sky Blues */
    --royal-sky-dark: #0284c7;
    --royal-sky: #0ea5e9;
    --royal-sky-light: #38bdf8;
    --royal-sky-ice: #e0f2fe;

    /* Royal Whites & Neutrals */
    --royal-white: #ffffff;
    --royal-pearl: #f8fafc;
    --royal-alabaster: #f0f7ff;
    --royal-gray-light: #e2e8f0;
    --royal-gray-text: #64748b;

    /* Imperial Gold */
    --royal-gold: #c69214;
    --royal-gold-light: #f59e0b;
    --royal-gold-bg: #fffbeb;

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #07172c 0%, #0b2545 45%, #0369a1 85%, #0284c7 100%);
    --gradient-card: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    --gradient-sky: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    --gradient-gold: linear-gradient(135deg, #d97706 0%, #f59e0b 50%, #fef08a 100%);

    /* Shadows */
    --shadow-card: 0 15px 35px rgba(7, 23, 44, 0.08), 0 5px 15px rgba(7, 23, 44, 0.04);
    --shadow-hover: 0 20px 45px rgba(2, 132, 199, 0.16);
    --shadow-glow: 0 0 25px rgba(56, 189, 248, 0.4);

    --font-main: 'Cairo', 'Tajawal', system-ui, -apple-system, sans-serif;
}

* {
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: linear-gradient(180deg, #f0f7ff 0%, #f8fafc 30%, #ffffff 100%);
    color: #1e293b;
    direction: rtl;
    text-align: right;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* ==========================================================================
   ROYAL TOP NAVBAR
   ========================================================================== */
.royal-navbar {
    background: rgba(7, 23, 44, 0.96) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid rgba(56, 189, 248, 0.3);
    box-shadow: 0 8px 25px rgba(7, 23, 44, 0.3);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.royal-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #ffffff !important;
}

.royal-brand-logo {
    width: 52px;
    height: 52px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.45));
    transition: transform 0.25s ease, filter 0.25s ease;
    flex-shrink: 0;
}

.royal-brand:hover .royal-brand-logo {
    transform: scale(1.06);
    filter: drop-shadow(0 0 14px rgba(245, 158, 11, 0.7));
}

.royal-emblem {
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, #0284c7 0%, #38bdf8 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.5);
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    color: #ffffff;
    font-size: 20px;
    flex-shrink: 0;
}

.royal-brand-text h1 {
    font-size: 1.0rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
    line-height: 1.3;
}

.royal-brand-text span {
    font-size: 0.8rem;
    color: var(--royal-sky-light);
    font-weight: 600;
    display: block;
}

.royal-nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 18px !important;
    border-radius: 10px;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.royal-nav-link:hover, .royal-nav-link.active {
    color: #ffffff !important;
    background: rgba(56, 189, 248, 0.18);
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
    border: 1px solid rgba(56, 189, 248, 0.4);
}

/* ==========================================================================
   ROYAL HERO SECTION
   ========================================================================== */
.royal-hero {
    background: var(--gradient-hero);
    position: relative;
    padding: 45px 20px 50px 20px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(7, 23, 44, 0.2);
}

.royal-hero::before {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(56, 189, 248, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.royal-hero::after {
    content: '';
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.18) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.royal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(56, 189, 248, 0.45);
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--royal-sky-light);
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.royal-hero-title {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}


.royal-hero-title2 {
    font-size: 1.3rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}


.royal-hero-title3 {
    font-size: 0.9rem;
    font-weight: 900;
    line-height: 1.3;
    margin-bottom: 12px;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}




.royal-hero-title2 .highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.royal-hero-title3 .highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.royal-hero-title .highlight {
    background: linear-gradient(135deg, #38bdf8 0%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.royal-hero-desc {
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.88);
    max-width: 720px;
    margin: 0 auto 30px auto;
    line-height: 1.7;
    font-weight: 400;
}

/* ==========================================================================
   METRICS ROW (CLEAN HORIZONTAL FLEX GRID)
   ========================================================================== */
.hero-metrics-container {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: stretch;
    gap: 18px;
    flex-wrap: wrap;
    max-width: 980px;
    margin: 0 auto;
}

.hero-metric-card {
    flex: 1 1 260px;
    max-width: 320px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: right;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.hero-metric-card:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(56, 189, 248, 0.5);
    box-shadow: var(--shadow-glow);
}

.hero-metric-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(56, 189, 248, 0.2);
    border: 1px solid rgba(56, 189, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    color: #38bdf8;
    flex-shrink: 0;
}

.hero-metric-info {
    display: flex;
    flex-direction: column;
}

.hero-metric-value {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
}

.hero-metric-label {
    font-size: 0.8rem;
    color: var(--royal-sky-light);
    font-weight: 600;
    margin-top: 2px;
}

/* ==========================================================================
   SEARCH CARD (ROYAL LUXURY CONTAINER)
   ========================================================================== */
.search-outer-container {
    max-width: 980px;
    margin: 35px auto 40px auto;
    padding: 0 15px;
}

.royal-search-box {
    background: #ffffff;
    border-radius: 22px;
    padding: 32px 35px;
    box-shadow: var(--shadow-card);
    border: 1.5px solid rgba(56, 189, 248, 0.3);
    position: relative;
    overflow: hidden;
}

.royal-search-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #0b2545 0%, #0284c7 35%, #38bdf8 65%, #c69214 100%);
}

.search-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 22px;
}

.search-type-tabs {
    display: inline-flex;
    background: #f1f5f9;
    padding: 5px;
    border-radius: 12px;
    gap: 6px;
}

.tab-btn {
    border: none;
    background: transparent;
    padding: 9px 18px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.76rem;
    color: var(--royal-gray-text);
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tab-btn.active {
    background: #ffffff;
    color: var(--royal-navy);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.08);
}

.search-dual-grid {
    display: grid;
    grid-template-columns: 1.1fr 1.1fr auto;
    gap: 16px;
    align-items: flex-end;
}

.search-field-group {
    display: flex;
    flex-direction: column;
}

.search-field-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--royal-navy);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.badge-field-status {
    font-size: 0.72rem;
    padding: 2px 8px;
    border-radius: 6px;
    font-weight: 700;
}

.status-required {
    background: #e0f2fe;
    color: #0369a1;
    border: 1px solid rgba(2, 132, 199, 0.2);
}

.status-optional {
    background: #fffbeb;
    color: #b45309;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.search-input-box {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 3px 6px;
    transition: all 0.25s ease;
}

.search-input-box:focus-within {
    border-color: var(--royal-sky);
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(14, 165, 233, 0.16);
}

.search-input-box.secondary-box:focus-within {
    border-color: #f59e0b;
    background: #ffffff;
    box-shadow: 0 0 0 3.5px rgba(245, 158, 11, 0.18);
}

.search-btn-group {
    display: flex;
    align-items: flex-end;
}

.search-btn-group .search-submit-btn {
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.search-hint-note {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.84rem;
    color: #0369a1;
    display: flex;
    align-items: center;
    gap: 8px;
    line-height: 1.5;
}

.search-field-wrapper {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border: 2px solid #cbd5e1;
    border-radius: 16px;
    padding: 6px;
    transition: all 0.25s ease;
}

.search-field-wrapper:focus-within {
    border-color: var(--royal-sky);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15), 0 6px 20px rgba(2, 132, 199, 0.12);
}

.search-input-group {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.search-field-icon {
    padding: 0 14px;
    color: var(--royal-sky);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.search-main-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 12px 10px;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--royal-navy-dark);
    outline: none;
    font-family: var(--font-main);
    letter-spacing: 0.5px;
}

.search-main-input::placeholder {
    font-weight: 400;
    color: #94a3b8;
    font-size: 0.92rem;
}

.search-submit-btn {
    background: linear-gradient(135deg, #0b2545 0%, #0284c7 100%);
    color: #ffffff;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.search-submit-btn:hover {
    background: linear-gradient(135deg, #07172c 0%, #0ea5e9 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(14, 165, 233, 0.4);
}

.quick-samples-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 18px;
    flex-wrap: wrap;
    font-size: 0.88rem;
    color: var(--royal-gray-text);
}

.sample-badge {
    background: #f0f7ff;
    border: 1px dashed rgba(2, 132, 199, 0.4);
    color: var(--royal-sky-dark);
    padding: 5px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.sample-badge:hover {
    background: var(--royal-sky-ice);
    border-color: var(--royal-sky);
    transform: translateY(-1px);
}

/* ==========================================================================
   RESULT CARD (ROYAL PRESENTATION)
   ========================================================================== */
.result-outer-container {
    max-width: 980px;
    margin: 0 auto 50px auto;
    padding: 0 15px;
    animation: fadeInSlideUp 0.4s ease-out;
}

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

.royal-result-card {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: var(--shadow-card);
    border: 1.5px solid rgba(56, 189, 248, 0.35);
    overflow: hidden;
}

.result-card-header {
    background: linear-gradient(135deg, #07172c 0%, #0b2545 45%, #0284c7 100%);
    padding: 28px 32px;
    color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 18px;
    position: relative;
}

.result-card-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #c69214, #38bdf8, #c69214);
}

.emp-name-title {
    font-size: 1rem;
    font-weight: 600;
    margin: 6px 0 12px 0;
    color: #ffffff;
}
.emp-name-title2 {
    font-size: 1rem;
    font-weight: 600;
    margin: 6px 0 12px 0;
    color: #ffffff;
}
.pills-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.info-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 600;
    color: #e0f2fe;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.info-pill.gold {
    background: rgba(245, 158, 11, 0.25);
    border-color: rgba(245, 158, 11, 0.45);
    color: #fef08a;
}

.btn-print-slip {
    background: linear-gradient(135deg, #c69214 0%, #f59e0b 100%);
    color: #ffffff;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
}

.btn-print-slip:hover {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.5);
}

/* ==========================================================================
   INFO TILES GRID
   ========================================================================== */
.info-tiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    padding: 24px 30px;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.info-tile {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.info-tile-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: var(--royal-sky-ice);
    color: var(--royal-sky-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-tile-label {
    font-size: 0.78rem;
    color: var(--royal-gray-text);
    font-weight: 600;
    margin-bottom: 2px;
}

.info-tile-value {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--royal-navy);
}

/* ==========================================================================
   FINANCIAL LOCK & VERIFICATION STYLES
   ========================================================================== */
.financial-lock-card {
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    padding: 38px 28px;
    text-align: center;
    border-top: 1px solid #e2e8f0;
    position: relative;
}

.financial-lock-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.4), transparent);
}

.lock-shield-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #fde68a;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px auto;
    font-size: 1.9rem;
    color: #d97706;
    box-shadow: 0 8px 20px rgba(217, 119, 6, 0.15);
}

.lock-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--royal-navy);
    margin-bottom: 8px;
}

.lock-desc {
    font-size: 1.0rem;
    color: var(--royal-navy);
    max-width: 680px;
    margin: 0 auto 24px auto;
    line-height: 1.8;
}

.lock-desc strong {
    color: var(--royal-navy-dark);
}

.text-gold-highlight {
    color: #d97706;
    font-weight: 800;
}

.text-sky-highlight {
    color: #0284c7;
    font-weight: 800;
}

.highlight-tag-term {
    display: inline-flex;
    align-items: center;
    background: #ffffff;
    border: 1.5px solid #0284c7;
    color: #0369a1;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(2, 132, 199, 0.12);
    margin: 0 4px;
    font-size: 0.95rem;
    vertical-align: middle;
}

.highlight-tag-term.gold-term {
    border-color: #f59e0b;
    color: #b45309;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.15);
}

.lock-error-banner {
    max-width: 580px;
    margin: 0 auto 18px auto;
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
    border-radius: 12px;
    padding: 10px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: right;
}

.quick-unlock-form {
    max-width: 580px;
    margin: 0 auto;
}

.quick-unlock-wrapper {
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 14px;
    padding: 4px 6px;
    box-shadow: 0 4px 18px rgba(7, 23, 44, 0.05);
    transition: all 0.25s ease;
    gap: 8px;
}

.quick-unlock-wrapper:focus-within {
    border-color: #f59e0b;
    box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.18), 0 6px 20px rgba(217, 119, 6, 0.12);
}

.quick-unlock-icon {
    padding: 0 12px;
    color: #d97706;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.quick-unlock-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    padding: 12px 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--royal-navy-dark);
    outline: none;
    font-family: var(--font-main);
}

.quick-unlock-input::placeholder {
    color: #94a3b8;
    font-size: 0.92rem;
    font-weight: 400;
}

.btn-unlock-gold {
    background: linear-gradient(135deg, #c69214 0%, #f59e0b 100%);
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
    transition: all 0.25s ease;
}

.btn-unlock-gold:hover {
    background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.5);
    color: #ffffff;
}

/* ==========================================================================
   BUTTON SPINNER & LOADING STATES
   ========================================================================== */
.btn-spinner {
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: btnSpin 0.7s linear infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes btnSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.search-submit-btn:disabled,
.btn-unlock-gold:disabled {
    opacity: 0.85;
    cursor: not-allowed;
    filter: brightness(0.95);
    transform: none !important;
    box-shadow: none !important;
}

/* ==========================================================================
   SWEETALERT2 ROYAL CUSTOM THEME
   ========================================================================== */
.swal2-popup.royal-swal-popup {
    font-family: var(--font-main) !important;
    border-radius: 20px !important;
    padding: 28px 24px !important;
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 15px 40px rgba(7, 23, 44, 0.18) !important;
    direction: rtl !important;
    text-align: center !important;
}

.swal2-title.royal-swal-title {
    color: var(--royal-navy) !important;
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    margin-bottom: 8px !important;
    font-family: var(--font-main) !important;
}

.swal2-html-container.royal-swal-content {
    color: var(--royal-gray-text) !important;
    font-size: 0.98rem !important;
    line-height: 1.6 !important;
    font-family: var(--font-main) !important;
}

.swal2-confirm.royal-swal-confirm-btn {
    background: linear-gradient(135deg, #0b2545 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border-radius: 12px !important;
    padding: 10px 32px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3) !important;
    outline: none !important;
    font-family: var(--font-main) !important;
}

.swal2-confirm.royal-swal-confirm-btn:hover {
    background: linear-gradient(135deg, #07172c 0%, #0ea5e9 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 18px rgba(14, 165, 233, 0.4) !important;
}

.verified-bank-strip {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.bank-pill {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 16px;
    font-size: 0.92rem;
    color: var(--royal-navy);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 1 1 240px;
}

.bank-pill strong {
    color: var(--royal-navy-dark);
    font-weight: 800;
    margin-right: 4px;
}

/* ==========================================================================
   4-YEAR DISPARITIES GRID
   ========================================================================== */
.years-content-body {
    padding: 28px 30px;
}

.verified-info-badges {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.financial-badge {
    background: #f8fafc;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    padding: 7px 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    box-shadow: 0 2px 6px rgba(7, 23, 44, 0.03);
    transition: all 0.2s ease;
}

.financial-badge:hover {
    border-color: #cbd5e1;
    background: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(7, 23, 44, 0.06);
}

.financial-badge .badge-lbl {
    color: var(--royal-gray-text);
    font-weight: 600;
    font-size: 0.82rem;
}

.financial-badge .badge-val {
    color: var(--royal-navy);
    font-weight: 800;
    font-size: 0.88rem;
}

.years-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.year-box {
    background: linear-gradient(145deg, #ffffff 0%, #f0f7ff 100%);
    border: 1.5px solid #e0f2fe;
    border-radius: 14px;
    padding: 20px 18px;
    position: relative;
    transition: all 0.25s ease;
}

.year-box:hover {
    transform: translateY(-3px);
    border-color: var(--royal-sky);
    box-shadow: 0 8px 18px rgba(14, 165, 233, 0.15);
}

.year-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.year-box-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--royal-navy);
}

.year-box-badge {
    background: var(--royal-sky-ice);
    color: var(--royal-sky-dark);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 12px;
}

.year-box-amount {
    font-size: 1.55rem;
    font-weight: 900;
    color: var(--royal-sky-dark);
    line-height: 1.2;
}

.year-box-currency {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--royal-gray-text);
    margin-right: 4px;
}

/* ==========================================================================
   GRAND TOTAL BANNER
   ========================================================================== */
.grand-total-lux-banner {
    background: linear-gradient(135deg, #07172c 0%, #0b2545 45%, #0284c7 100%);
    border-radius: 16px;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #ffffff;
    flex-wrap: wrap;
    gap: 18px;
    box-shadow: 0 10px 25px rgba(7, 23, 44, 0.15);
}

.total-title-h3 {
    font-size: 1.0rem;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: #e0f2fe;
}

.grand-total-tax-badge {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
    background: rgba(245, 158, 11, 0.16);
    border: 1px solid rgba(245, 158, 11, 0.45);
    color: #fef08a;
    padding: 6px 14px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    margin-top: 6px;
    backdrop-filter: blur(6px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    line-height: 1.5;
    max-width: 650px;
    text-align: right;
}

.grand-total-tax-badge i {
    color: #fbbf24;
    font-size: 0.9rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.total-amount-display {
    font-size: 2.3rem;
    font-weight: 900;
    background: linear-gradient(135deg, #fef08a 0%, #f59e0b 60%, #ffffff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1.1;
}

/* ==========================================================================
   BOTTOM GUIDE CARDS
   ========================================================================== */
.guide-section {
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
    padding: 45px 20px;
    margin-top: 40px;
}

.guide-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 980px;
    margin: 0 auto;
}

.guide-item-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 22px;
    transition: all 0.25s ease;
}

.guide-item-card:hover {
    border-color: var(--royal-sky);
    transform: translateY(-2px);
    box-shadow: var(--shadow-card);
}

.guide-icon-wrap {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 14px;
}

/* ==========================================================================
   ROYAL FOOTER
   ========================================================================== */
.royal-footer {
    background: #07172c;
    color: rgba(255, 255, 255, 0.7);
    padding: 35px 20px 20px 20px;
    margin-top: auto;
    border-top: 1px solid rgba(56, 189, 248, 0.2);
}

.footer-inner-wrap {
    max-width: 980px;
    margin: 0 auto;
}

.footer-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.footer-bottom-copy {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 5px;
    text-align: center;
    font-size: 1.2rem;

}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert-error-royal {
    background: #fef2f2;
    border: 1.5px solid #fecaca;
    color: #991b1b;
    border-radius: 16px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 25px;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE STYLES
   ========================================================================== */
@media (max-width: 768px) {
    .royal-navbar {
        padding: 10px 0;
    }

    .royal-brand {
        gap: 10px;
        justify-content: center;
        width: 100%;
    }

    .royal-brand-logo {
        width: 44px;
        height: 44px;
    }

    .royal-brand-text h1 {
        font-size: 1rem;
        text-align: center;
    }

    .royal-hero {
        padding: 28px 12px 34px 12px;
    }

    .royal-hero-title2 {
        font-size: 1.25rem;
        margin-bottom: 6px;
    }

    .royal-hero-title {
        font-size: 1.05rem;
    }

    .search-outer-container {
        margin: 16px auto 25px auto;
        padding: 0 12px;
    }

    .royal-search-box {
        padding: 18px 14px;
        border-radius: 18px;
    }

    .search-header-row {
        margin-bottom: 14px;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }

    .search-type-tabs {
        width: 100%;
        display: flex;
    }

    .search-type-tabs .tab-btn {
        width: 100%;
        justify-content: center;
        font-size: 0.88rem;
        padding: 8px 10px;
        text-align: center;
    }

    /* Transform dual search inputs into clean vertical stack */
    .search-dual-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .search-btn-group .search-submit-btn {
        width: 100%;
        height: 50px;
    }

    .financial-lock-card {
        padding: 24px 14px;
    }

    .quick-unlock-wrapper {
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        gap: 10px;
    }

    .quick-unlock-input {
        text-align: center;
        padding: 8px;
    }

    .btn-unlock-gold {
        width: 100%;
        justify-content: center;
        padding: 12px 14px;
    }

    /* Transform search input & button into clean vertical stack */
    .search-field-wrapper {
        flex-direction: column;
        background: transparent;
        border: none;
        padding: 0;
        gap: 12px;
        box-shadow: none !important;
    }

    .search-field-wrapper:focus-within {
        border: none;
        background: transparent;
        box-shadow: none !important;
    }

    .search-input-group {
        width: 100%;
        background: #ffffff;
        border: 2px solid #cbd5e1;
        border-radius: 14px;
        padding: 3px 6px;
        box-shadow: 0 2px 8px rgba(7, 23, 44, 0.04);
        transition: all 0.25s ease;
    }

    .search-input-group:focus-within {
        border-color: var(--royal-sky);
        box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18) !important;
    }

    .search-field-icon {
        padding: 0 10px;
        font-size: 1.15rem;
    }

    .search-main-input {
        padding: 12px 6px;
        font-size: 1rem;
        width: 100%;
    }

    .search-main-input::placeholder {
        font-size: 0.88rem;
    }

    .search-submit-btn {
        width: 100%;
        justify-content: center;
        padding: 13px 20px;
        font-size: 1.05rem;
        border-radius: 14px;
    }

    /* Results card responsive */
    .result-outer-container {
        padding: 0 10px;
        margin-bottom: 30px;
    }

    .royal-result-card {
        border-radius: 18px;
    }

    .result-card-header {
        padding: 20px 16px;
    }

    .emp-name-title {
        font-size: 1.35rem;
        margin: 4px 0 10px 0;
        word-break: break-word;
    }

    .pills-group {
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    .info-pill {
        width: 100%;
        justify-content: flex-start;
        font-size: 0.82rem;
        padding: 7px 12px;
    }

    .years-content-body {
        padding: 18px 14px;
    }

    .verified-info-badges {
        display: flex;
        flex-direction: column;
        width: 100%;
        gap: 8px;
        margin-bottom: 16px;
    }

    .financial-badge {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 8px;
        font-size: 0.82rem;
        padding: 8px 12px;
        border-radius: 10px;
    }

    .financial-badge .badge-lbl {
        font-size: 0.78rem;
    }

    .financial-badge .badge-val {
        font-size: 0.84rem;
    }

    .years-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .year-box {
        padding: 14px 10px;
        border-radius: 12px;
    }

    .year-box-title {
        font-size: 0.92rem;
    }

    .year-box-badge {
        font-size: 0.68rem;
        padding: 1px 6px;
    }

    .year-box-amount {
        font-size: 1.25rem;
    }

    .grand-total-lux-banner {
        flex-direction: column;
        text-align: center;
        padding: 18px 14px;
        gap: 10px;
        border-radius: 14px;
    }

    .total-title-h3 {
        font-size: 1rem;
        text-align: center;
    }

    .grand-total-tax-badge {
        justify-content: center;
        margin: 6px auto 0 auto;
        font-size: 0.78rem;
    }

    .total-amount-display {
        font-size: 1.85rem;
        text-align: center;
    }

    .royal-footer {
        padding: 22px 14px 18px 14px;
    }

    .footer-bottom-copy {
        font-size: 0.95rem;
        line-height: 1.6;
    }
}

@media (max-width: 400px) {
    .years-cards-grid {
        grid-template-columns: 1fr;
    }

    .royal-hero-title2 {
        font-size: 1.15rem;
    }

    .royal-hero-title {
        font-size: 0.95rem;
    }

    .search-main-input::placeholder {
        font-size: 0.82rem;
    }
}

/* ==========================================================================
   SWEETALERT2 ROYAL CUSTOM STYLING
   ========================================================================== */
.royal-swal-popup {
    border-radius: 22px !important;
    padding: 26px 20px !important;
    font-family: inherit !important;
    box-shadow: 0 20px 45px rgba(10, 37, 64, 0.25) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    direction: rtl !important;
}

.royal-swal-title {
    font-size: 1.3rem !important;
    font-weight: 800 !important;
    color: var(--royal-navy, #0f172a) !important;
    margin-bottom: 8px !important;
}

.royal-swal-content {
    font-size: 1rem !important;
    color: #475569 !important;
    line-height: 1.6 !important;
}

.royal-swal-confirm-btn {
    background: linear-gradient(135deg, #1e3a8a 0%, #0f172a 100%) !important;
    color: #ffffff !important;
    border: none !important;
    border-radius: 12px !important;
    padding: 10px 36px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.25s ease !important;
}

.royal-swal-confirm-btn:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.45) !important;
}

