/* ============================================
   SAMS - Complete Animated Design
   ============================================ */

/* Font-face declaration for JF Flat */
@font-face {
    font-family: 'JF Flat';
    src: url('/path/to/JF Flat Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-burgundy: #8B1538;
    --primary-burgundy-rgb: 139, 21, 56;
    --gold-accent: #C9A962;
    --gold-accent-rgb: 201, 169, 98;
    --charcoal: #2C2C2C;
    --charcoal-rgb: 44, 44, 44;
    --white: #FFFFFF;
    --white-rgb: 255, 255, 255;
    --glass-bg: rgba(255, 255, 255, 0.12);
    --glass-bg-strong: rgba(255, 255, 255, 0.18);
    --glass-border: rgba(255, 255, 255, 0.25);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
    --glass-blur: blur(20px);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-bounce: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    --font-en: 'Century Gothic', 'Segoe UI', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-ar: 'JF Flat', 'Tajawal', 'Arial', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    font-family: var(--font-en);
    min-height: 100vh;
    color: var(--charcoal);
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

/* ============================================
   ARABIC / RTL SUPPORT
   ============================================ */

/* Arabic font - applied via lang attribute on html */
html[lang="ar"],
html[lang="ar"] body,
html[lang="ar"] * {
    font-family: var(--font-ar) !important;
}

/* Arabic font - applied via dir attribute */
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] *,
[dir="rtl"],
[dir="rtl"] * {
    font-family: var(--font-ar) !important;
}

/* RTL direction */
html[lang="ar"],
html[dir="rtl"],
[dir="rtl"] {
    direction: rtl;
    text-align: right;
}

    /* Ensure Material Symbols icons always use correct font */
    html[lang="ar"] .material-symbols-outlined,
    html[dir="rtl"] .material-symbols-outlined,
    [dir="rtl"] .material-symbols-outlined,
    .material-symbols-outlined {
        font-family: 'Material Symbols Outlined' !important;
        direction: ltr;
        display: inline-block;
    }

    /* RTL specific layout adjustments */
    html[dir="rtl"] .header-container,
    [dir="rtl"] .header-container {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .nav-actions,
    [dir="rtl"] .nav-actions {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .logo-section,
    [dir="rtl"] .logo-section {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .logo-text,
    [dir="rtl"] .logo-text {
        text-align: right;
    }

    /* Cards grid uses CSS Grid - direction:rtl reverses the visual order */
    html[dir="rtl"] .cards-grid,
    [dir="rtl"] .cards-grid {
        direction: rtl;
    }

        /* Ensure card content is RTL aligned */
        html[dir="rtl"] .cards-grid .card,
        [dir="rtl"] .cards-grid .card {
            direction: rtl;
            text-align: right;
        }

    html[dir="rtl"] .eligibility-list li,
    [dir="rtl"] .eligibility-list li {
        flex-direction: row-reverse;
        text-align: right;
    }

    html[dir="rtl"] .btn-primary,
    html[dir="rtl"] .btn-block,
    [dir="rtl"] .btn-primary,
    [dir="rtl"] .btn-block {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .form-group label,
    [dir="rtl"] .form-group label {
        text-align: right;
    }

    html[dir="rtl"] .footer-container,
    [dir="rtl"] .footer-container {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .footer-links,
    [dir="rtl"] .footer-links {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .card-icon,
    [dir="rtl"] .card-icon {
        margin-left: 0;
        margin-right: 0;
    }

    html[dir="rtl"] .modal-header,
    [dir="rtl"] .modal-header {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .modal-actions,
    [dir="rtl"] .modal-actions {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .input-group,
    [dir="rtl"] .input-group {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .input-prefix,
    [dir="rtl"] .input-prefix {
        border-radius: 0 10px 10px 0;
        border-right: 2px solid rgba(var(--charcoal-rgb), 0.1);
        border-left: none;
    }

    html[dir="rtl"] .input-group .form-input,
    [dir="rtl"] .input-group .form-input {
        border-radius: 10px 0 0 10px;
    }

    html[dir="rtl"] .error-alert,
    html[dir="rtl"] .success-alert,
    html[dir="rtl"] .info-note,
    [dir="rtl"] .error-alert,
    [dir="rtl"] .success-alert,
    [dir="rtl"] .info-note {
        flex-direction: row-reverse;
        text-align: right;
    }

    html[dir="rtl"] .user-table th,
    html[dir="rtl"] .user-table td,
    [dir="rtl"] .user-table th,
    [dir="rtl"] .user-table td {
        text-align: right;
    }

    html[dir="rtl"] .account-type-grid,
    [dir="rtl"] .account-type-grid {
        direction: rtl;
    }

    html[dir="rtl"] .org-item,
    [dir="rtl"] .org-item {
        flex-direction: row-reverse;
    }

    html[dir="rtl"] .btn-back,
    [dir="rtl"] .btn-back {
        flex-direction: row-reverse;
    }

.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    vertical-align: middle;
}

    .material-symbols-outlined.filled {
        font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    }

/* ============================================
   BACKGROUND
   ============================================ */
.sky-bg {
    position: fixed;
    inset: 0;
    z-index: -5;
    background: linear-gradient(180deg, #e8e1d8 0%, #f5f0e8 50%, #faf8f5 100%);
}

.clouds {
    position: fixed;
    inset: 0;
    z-index: -3;
    pointer-events: none;
}

.cloud {
    position: absolute;
    background: rgba(255,255,255,0.6);
    border-radius: 100px;
    filter: blur(3px);
    opacity: 0;
}

    .cloud::before, .cloud::after {
        content: '';
        position: absolute;
        background: rgba(255,255,255,0.6);
        border-radius: 50%;
    }

.cloud-1 {
    width: 150px;
    height: 45px;
    top: 8%;
    left: 10%;
    animation: cloudAnim 12s ease-in-out infinite;
}

    .cloud-1::before {
        width: 60px;
        height: 60px;
        top: -30px;
        left: 15px;
    }

    .cloud-1::after {
        width: 70px;
        height: 70px;
        top: -35px;
        right: 20px;
    }

.cloud-2 {
    width: 120px;
    height: 35px;
    top: 12%;
    right: 15%;
    animation: cloudAnim 14s ease-in-out infinite 3s;
}

    .cloud-2::before {
        width: 45px;
        height: 45px;
        top: -22px;
        left: 12px;
    }

    .cloud-2::after {
        width: 55px;
        height: 55px;
        top: -27px;
        right: 15px;
    }

.cloud-3 {
    width: 100px;
    height: 30px;
    top: 5%;
    left: 45%;
    animation: cloudAnim 16s ease-in-out infinite 6s;
}

    .cloud-3::before {
        width: 40px;
        height: 40px;
        top: -20px;
        left: 10px;
    }

    .cloud-3::after {
        width: 45px;
        height: 45px;
        top: -22px;
        right: 12px;
    }

.cloud-4 {
    width: 80px;
    height: 25px;
    top: 15%;
    left: 70%;
    animation: cloudAnim 11s ease-in-out infinite 2s;
}

    .cloud-4::before {
        width: 32px;
        height: 32px;
        top: -16px;
        left: 8px;
    }

    .cloud-4::after {
        width: 38px;
        height: 38px;
        top: -19px;
        right: 10px;
    }

@keyframes cloudAnim {
    0% {
        opacity: 0;
        transform: scale(0.4);
    }

    20% {
        opacity: 0.7;
        transform: scale(1);
    }

    80% {
        opacity: 0.5;
        transform: scale(1.1);
    }

    100% {
        opacity: 0;
        transform: scale(1.2);
    }
}

.contrails {
    position: fixed;
    inset: 0;
    z-index: -4;
    pointer-events: none;
}

.contrail {
    position: absolute;
    height: 2px;
    background: linear-gradient(to left, rgba(255,255,255,0.8), transparent);
    filter: blur(1px);
}

.contrail-1 {
    top: 10%;
    width: 300px;
    animation: contrail 15s linear infinite;
}

.contrail-2 {
    top: 20%;
    width: 200px;
    animation: contrail 20s linear infinite 5s;
    opacity: 0.6;
}

@keyframes contrail {
    from {
        transform: translateX(-350px);
    }

    to {
        transform: translateX(calc(100vw + 50px));
    }
}

/* ============================================
   HEADER - Sticky with Animations
   ============================================ */
header {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--glass-border);
    height: 120px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    flex-shrink: 0;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-100%);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.header-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInRight 1s ease-out 0.3s both;
}

@keyframes fadeInRight {
    from {
        transform: translateX(30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

html[lang="ar"] .logo-section {
    animation-name: fadeInLeft;
}

.logo-icon {
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-bounce);
    animation: logoFloat 3s ease-in-out infinite;
}

    .logo-icon img {
        height: 100%;
        width: auto;
        object-fit: contain;
    }

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-5px);
    }
}

.logo-icon:hover {
    transform: scale(1.05);
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--charcoal);
    line-height: 1.4;
}

    .logo-text span {
        display: block;
        font-size: 0.85rem;
        font-weight: 400;
        color: rgba(var(--charcoal-rgb), 0.7);
    }

html[lang="ar"] .logo-text {
    font-family: var(--font-ar);
    text-align: right;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-btn {
    padding: 0.65rem 1.25rem;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
    animation: fadeInLeft 0.8s ease-out both;
    text-decoration: none;
}

    .nav-btn:nth-child(1) {
        animation-delay: 0.4s;
    }

    .nav-btn:nth-child(2) {
        animation-delay: 0.5s;
    }

    .nav-btn:nth-child(3) {
        animation-delay: 0.6s;
    }

@keyframes fadeInLeft {
    from {
        transform: translateX(-30px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

html[lang="ar"] .nav-btn {
    font-family: var(--font-ar);
    animation-name: fadeInRight;
}

/* Language Switch Button Fonts */
/* Arabic button (عربي) on English page - use JF Flat font */
html[lang="en"] a.nav-btn[href*="-ar"] {
    font-family: var(--font-ar);
}

/* English button on Arabic page - use Century Gothic */
html[lang="ar"] a.nav-btn[href*="-en"] {
    font-family: var(--font-main);
}

.nav-btn .material-symbols-outlined {
    font-size: 1.2rem;
    transition: var(--transition-smooth);
}

.nav-btn.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--charcoal);
}

/* Ripple Effect on Nav Buttons */
.nav-btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(var(--primary-burgundy-rgb), 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.nav-btn:hover::after {
    width: 300px;
    height: 300px;
}

.nav-btn:hover {
    background: var(--glass-bg-strong);
    transform: translateY(-3px);
    box-shadow: var(--glass-shadow);
}

    .nav-btn:hover .material-symbols-outlined {
        transform: scale(1.2);
    }


/* ============================================
   HERO CARD - 100% Width Card
   ============================================ */
.hero-card {
    width: 100%;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 2rem 2.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    animation: cardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.8s both;
}

    .hero-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(225deg, rgba(255, 255, 255, 0.1), transparent);
        pointer-events: none;
    }

    .hero-card::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 4px;
        background: linear-gradient(90deg, var(--primary-burgundy), var(--gold-accent));
        border-radius: 24px 24px 0 0;
    }

    .hero-card h1 {
        font-size: 2.5rem;
        font-weight: 700;
        color: var(--charcoal);
        margin-bottom: 0.5rem;
        position: relative;
        z-index: 1;
    }

html[lang="ar"] .hero-card h1 {
    font-family: var(--font-ar);
}

.hero-card h1 .highlight {
    background: linear-gradient(135deg, var(--primary-burgundy), rgba(var(--primary-burgundy-rgb), 0.7));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-card p {
    font-size: 1.05rem;
    color: rgba(var(--charcoal-rgb), 0.7);
    line-height: 1.7;
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   3-BOX CARDS GRID
   ============================================ */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

/* ============================================
   CARD BASE - Glass with Animations
   ============================================ */
.card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    animation: cardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) both;
}

    .card:nth-child(1) {
        animation-delay: 1.2s;
    }

    .card:nth-child(2) {
        animation-delay: 1.3s;
    }

    .card:nth-child(3) {
        animation-delay: 1.4s;
    }

@keyframes cardPop {
    from {
        transform: scale(0.8) translateY(20px);
        opacity: 0;
    }

    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Gradient overlay */
.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(225deg, rgba(255, 255, 255, 0.1), transparent);
    pointer-events: none;
}

/* Top border animation */
.card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-burgundy), var(--gold-accent));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 24px 24px 0 0;
}

html[lang="ar"] .card::after {
    transform-origin: right;
}

.card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
    background: rgba(255, 255, 255, 0.28);
}

    .card:hover::after {
        transform: scaleX(1);
    }

/* Card Icon */
.card-icon {
    width: 56px;
    height: 56px;
    background: rgba(var(--primary-burgundy-rgb), 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--primary-burgundy-rgb), 0.2);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    transition: var(--transition-bounce);
    position: relative;
    z-index: 1;
}

.card:hover .card-icon {
    background: linear-gradient(135deg, var(--primary-burgundy), rgba(var(--primary-burgundy-rgb), 0.8));
    border-color: transparent;
    transform: scale(1.1) rotate(-5deg);
    animation: iconGlow 1.5s ease-in-out infinite;
}

@keyframes iconGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(var(--primary-burgundy-rgb), 0.3);
    }

    50% {
        box-shadow: 0 0 35px rgba(var(--primary-burgundy-rgb), 0.5);
    }
}

.card-icon .material-symbols-outlined {
    font-size: 1.6rem;
    color: var(--primary-burgundy);
    transition: var(--transition-smooth);
}

.card:hover .card-icon .material-symbols-outlined {
    color: var(--white);
    transform: scale(1.1);
}

.card h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    transition: var(--transition-smooth);
}

html[lang="ar"] .card h3 {
    font-family: var(--font-ar);
    text-align: right;
}

.card:hover h3 {
    color: var(--primary-burgundy);
}

.card p {
    font-size: 0.9rem;
    color: rgba(var(--charcoal-rgb), 0.7);
    line-height: 1.7;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

html[lang="ar"] .card p {
    text-align: right;
}

/* Card Bottom - Push buttons to bottom */
.card-bottom {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

/* ============================================
   CARD ACTIONS - Horizontal Alignment
   ============================================ */
.card-actions {
    display: flex;
    flex-direction: row;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
    margin-top: auto;
}

html[lang="ar"] .card-actions {
    flex-direction: row-reverse;
}

/* ============================================
   INFO CARD (Box 1)
   ============================================ */
.eligibility-list {
    list-style: none;
    margin-bottom: 1.25rem;
    position: relative;
    z-index: 1;
}

    .eligibility-list li {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-size: 0.9rem;
        color: rgba(var(--charcoal-rgb), 0.8);
        padding: 0.5rem 0;
        transition: var(--transition-smooth);
    }

        .eligibility-list li:hover {
            transform: translateX(5px);
            color: var(--charcoal);
        }

html[lang="ar"] .eligibility-list li:hover {
    transform: translateX(-5px);
}

.eligibility-list .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--gold-accent);
    flex-shrink: 0;
}

.btn-uae-pass {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    z-index: 1;
}

    .btn-uae-pass img {
        width: 98%;
        height: auto;
        max-height: 70px;
        object-fit: contain;
        border-radius: 8px;
        transform: scale(1.05);
        margin: -4px 0;
    }

    .btn-uae-pass:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    }

        .btn-uae-pass:hover img {
            transform: scale(1.08);
        }

/* ============================================
   REGISTER CARD (Box 2)
   ============================================ */
.btn-primary.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1rem;
    background: linear-gradient(135deg, var(--primary-burgundy), rgba(var(--primary-burgundy-rgb), 0.85));
    color: var(--white);
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(var(--primary-burgundy-rgb), 0.25);
    position: relative;
    overflow: hidden;
    margin-bottom: 0.75rem;
    z-index: 1;
}

    /* Shine effect */
    .btn-primary.btn-block::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s;
    }

    .btn-primary.btn-block:hover::before {
        left: 100%;
    }

    .btn-primary.btn-block:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(var(--primary-burgundy-rgb), 0.4);
    }

    .btn-primary.btn-block .material-symbols-outlined {
        font-size: 1.1rem;
        transition: var(--transition-smooth);
    }

    .btn-primary.btn-block:hover .material-symbols-outlined {
        transform: translateX(-3px);
    }

html[lang="ar"] .btn-primary.btn-block {
    font-family: var(--font-ar);
    flex-direction: row-reverse;
}

    html[lang="ar"] .btn-primary.btn-block:hover .material-symbols-outlined {
        transform: translateX(3px);
    }

/* ============================================
   LOGIN FORM STYLES (Same card style as others)
   ============================================ */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
    margin-bottom: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

    .form-group label {
        font-size: 0.85rem;
        color: rgba(var(--charcoal-rgb), 0.7);
        font-weight: 500;
        transition: var(--transition-smooth);
    }

html[lang="ar"] .form-group label {
    text-align: right;
}

.form-group:focus-within label {
    color: var(--primary-burgundy);
}

.form-input {
    padding: 0.85rem 1rem;
    background: rgba(var(--white-rgb), 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(var(--charcoal-rgb), 0.2);
    border-radius: 12px;
    color: var(--charcoal);
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

    .form-input::placeholder {
        color: rgba(var(--charcoal-rgb), 0.4);
    }

    .form-input:focus {
        outline: none;
        border-color: var(--primary-burgundy);
        background: rgba(var(--white-rgb), 0.7);
        box-shadow: 0 0 0 3px rgba(var(--primary-burgundy-rgb), 0.15);
        transform: scale(1.02);
    }

html[lang="ar"] .form-input {
    text-align: right;
    font-family: var(--font-ar);
}

/* ============================================
   INNER PAGE - DASHBOARD STYLES
   ============================================ */
.dashboard-main {
    flex: 1;
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 1.5rem 3rem;
    box-sizing: border-box;
}

/* Inner container for content that needs max-width */
.dashboard-content {
    max-width: 100%;
    width: 100%;
    margin: 0;
}

/* Logout Button */
.nav-btn.logout {
    background: rgba(var(--primary-burgundy-rgb), 0.1);
    border-color: rgba(var(--primary-burgundy-rgb), 0.2);
    color: var(--primary-burgundy);
}

    .nav-btn.logout:hover {
        background: var(--primary-burgundy);
        color: var(--white);
    }

/* ============================================
   MAIN CONTENT
   ============================================ */
main {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: auto;
    animation: cardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    margin-top: 20px;
    margin-bottom: 20px;
}

/* User Info Card */
.user-info-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: auto;
    animation: cardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.5s both;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
    margin-top: 20px;
}

    .user-info-card:hover {
        transform: translateY(-2px);
        transition: all 0.3s ease;
    }

main:hover {
    transform: translateY(-2px);
    transition: all 0.3s ease;
}

.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .user-table th,
    .user-table td {
        padding: 0.75rem 1rem;
        text-align: left;
        white-space: nowrap;
    }

html[lang="ar"] .user-table th,
html[lang="ar"] .user-table td {
    text-align: right;
}

.user-table th {
    background: rgba(var(--primary-burgundy-rgb), 0.05);
    color: var(--charcoal);
    font-weight: 600;
    border-bottom: 2px solid rgba(var(--primary-burgundy-rgb), 0.1);
}

    .user-table th .material-symbols-outlined {
        font-size: 1rem;
        vertical-align: middle;
        margin-right: 0.3rem;
        color: var(--primary-burgundy);
    }

html[lang="ar"] .user-table th .material-symbols-outlined {
    margin-right: 0;
    margin-left: 0.3rem;
}

.user-table td {
    color: rgba(var(--charcoal-rgb), 0.8);
}

.badge {
    display: inline-block;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-info {
    background: rgba(139, 21, 56, 0.15);
    color: #8B1538;
}

.btn-action {
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, var(--primary-burgundy), rgba(var(--primary-burgundy-rgb), 0.85));
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

    .btn-action:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(var(--primary-burgundy-rgb), 0.3);
    }

html[lang="ar"] .btn-action {
    font-family: var(--font-ar);
}

/* Navigation Tabs */
.nav-tabs-section {
    margin-bottom: 1.5rem;
    animation: cardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.7s both;
}

.nav-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 0.75rem;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
}

.nav-tab {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(var(--white-rgb), 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(var(--charcoal-rgb), 0.1);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

html[lang="ar"] .nav-tab {
    font-family: var(--font-ar);
}

.nav-tab .material-symbols-outlined {
    font-size: 1.1rem;
    color: var(--charcoal);
}

.nav-tab:hover {
    background: rgba(var(--white-rgb), 0.95);
    border-color: rgba(var(--primary-burgundy-rgb), 0.2);
    color: var(--primary-burgundy);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

    .nav-tab:hover .material-symbols-outlined {
        color: var(--primary-burgundy);
    }

.nav-tab.active {
    background: var(--white);
    border-color: var(--primary-burgundy);
    color: var(--primary-burgundy);
    box-shadow: 0 4px 15px rgba(var(--primary-burgundy-rgb), 0.15);
}

    .nav-tab.active .material-symbols-outlined {
        color: var(--primary-burgundy);
    }

/* Services Section */
.services-section {
    margin-bottom: 1.5rem;
    animation: cardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.9s both;
}

.section-header {
    padding: 0.75rem 1.25rem;
    border-radius: 12px 12px 0 0;
    border-left: 4px solid;
}

html[lang="ar"] .section-header {
    border-left: none;
    border-right: 4px solid;
}

.section-header.enabled {
    background: rgba(var(--primary-burgundy-rgb), 0.08);
    border-color: var(--primary-burgundy);
}

.section-header.non-enabled {
    background: rgba(var(--primary-burgundy-rgb), 0.08);
    border-color: var(--primary-burgundy);
}

.section-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    margin: 0;
}

html[lang="ar"] .section-header h2 {
    font-family: var(--font-ar);
}

.section-content {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-top: none;
    border-radius: 0 0 12px 12px;
    padding: 1.5rem;
}

.no-data {
    color: rgba(var(--charcoal-rgb), 0.5);
    font-size: 0.9rem;
    text-align: center;
    padding: 1rem 0;
}

/* Service Category */
.service-category {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 1rem;
}

.category-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

html[lang="ar"] .category-title {
    font-family: var(--font-ar);
}

/* Service Cards Grid */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.service-card-item {
    background: var(--white);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: var(--transition-smooth);
    cursor: pointer;
    /* 27/Aug/2026: uniform cards - column flex so the description absorbs
       the extra space and every Apply button sits on the same bottom line,
       whatever the text length. */
    display: flex;
    flex-direction: column;
}

    .service-card-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        border-color: rgba(var(--primary-burgundy-rgb), 0.3);
    }

.service-icon-box {
    width: 50px;
    height: 50px;
    background: rgba(var(--primary-burgundy-rgb), 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

    .service-icon-box .material-symbols-outlined {
        font-size: 1.5rem;
        color: var(--primary-burgundy);
    }

.service-card-item:hover .service-icon-box {
    background: var(--primary-burgundy);
}

    .service-card-item:hover .service-icon-box .material-symbols-outlined {
        color: var(--white);
    }

.service-code {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    margin-bottom: 0.5rem;
}

.service-name {
    font-size: 0.8rem;
    color: rgba(var(--charcoal-rgb), 0.8);
    line-height: 1.5;
    margin-bottom: 0.75rem;
    min-height: 3em;
    /* 27/Aug/2026: grows to fill the card so the Apply button below is
       pushed to the SAME bottom position on every card */
    flex-grow: 1;
}

.service-desc {
    font-size: 0.7rem;
    color: rgba(var(--charcoal-rgb), 0.5);
    margin-bottom: 0.75rem;
}

.service-stats {
    display: flex;
    justify-content: center;
    gap: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--glass-border);
}

.stat {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    font-weight: 500;
}

    .stat .material-symbols-outlined {
        font-size: 0.9rem;
    }

    .stat.req {
        color: var(--primary-burgundy);
    }

    .stat.valid {
        color: #10b981;
    }

/* ============================================
   DOCUMENT MANAGEMENT PAGE STYLES
   ============================================ */

/* Content Section */
.content-section {
    width: 100%;
    max-width: 100%;
    animation: cardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 0.9s both;
}

.section-title {
    margin-bottom: 1.25rem;
}

    .section-title h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--charcoal);
    }

html[lang="ar"] .section-title h2 {
    font-family: var(--font-ar);
}

/* Document Tabs */
.document-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
}

.doc-tab {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-burgundy);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    cursor: pointer;
    transition: var(--transition-smooth);
}

html[lang="ar"] .doc-tab {
    font-family: var(--font-ar);
}

.doc-tab:first-child {
    border-radius: 8px 0 0 8px;
}

html[lang="ar"] .doc-tab:first-child {
    border-radius: 0 8px 8px 0;
}

.doc-tab:last-child {
    border-radius: 0 8px 8px 0;
    border-left: none;
}

html[lang="ar"] .doc-tab:last-child {
    border-radius: 8px 0 0 8px;
    border-left: 2px solid var(--primary-burgundy);
    border-right: none;
}

.doc-tab.active {
    background: var(--primary-burgundy);
    color: var(--white);
}

.doc-tab:hover:not(.active) {
    background: rgba(var(--primary-burgundy-rgb), 0.1);
}

/* Table Container */
.table-container {
    width: 100%;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

    .data-table th,
    .data-table td {
        padding: 1rem 1.25rem;
        text-align: left;
        border-bottom: 1px solid var(--glass-border);
    }

html[lang="ar"] .data-table th,
html[lang="ar"] .data-table td {
    text-align: right;
}

.data-table th {
    background: rgba(var(--charcoal-rgb), 0.03);
    color: rgba(var(--charcoal-rgb), 0.6);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.data-table tbody tr {
    transition: var(--transition-smooth);
}

    .data-table tbody tr:hover {
        background: rgba(var(--white-rgb), 0.5);
    }

    .data-table tbody tr:last-child td {
        border-bottom: none;
    }

.data-table td {
    color: var(--charcoal);
}

    /* Table Column Widths */
    .data-table th:first-child,
    .data-table td:first-child {
        width: 60px;
        min-width: 60px;
    }

    .data-table th:nth-child(2),
    .data-table td:nth-child(2) {
        width: 25%;
        max-width: 250px;
    }

    .data-table td:nth-child(2) {
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    .data-table th:nth-child(3),
    .data-table td:nth-child(3) {
        width: 100px;
        min-width: 100px;
    }

    .data-table th:nth-child(4),
    .data-table td:nth-child(4),
    .data-table th:nth-child(5),
    .data-table td:nth-child(5) {
        width: 120px;
        min-width: 100px;
    }

/* Status Badge */
.status-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .status-badge.approved {
        background: rgba(16, 185, 129, 0.12);
        color: #10b981;
    }

    .status-badge.pending {
        background: rgba(245, 158, 11, 0.12);
        color: #f59e0b;
    }

    .status-badge.rejected {
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
    }

    .status-badge.not-uploaded {
        background: rgba(var(--charcoal-rgb), 0.08);
        color: rgba(var(--charcoal-rgb), 0.5);
    }

/* Required Badge */
.required-badge {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    background: rgba(239, 68, 68, 0.12);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #ef4444;
}

/* Upload Button */
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8B1538, #a91d45);
    border: none;
    border-radius: 6px;
    color: #FFFFFF;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

html[lang="ar"] .btn-upload {
    font-family: var(--font-ar);
    flex-direction: row-reverse;
}

.btn-upload .material-symbols-outlined {
    font-size: 0.9rem;
}

.btn-upload:hover {
    background: linear-gradient(135deg, #a91d45, #8B1538);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
}

/* ============================================
   FORM STYLES - Profile & Company Pages
   ============================================ */

/* Section Title */
.section-title {
    margin-bottom: 1.25rem;
}

    .section-title h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--charcoal);
    }

html[lang="ar"] .section-title h2 {
    font-family: var(--font-ar);
}

/* Section Header Alt (with left border) */
.section-header-alt {
    padding: 0.75rem 0;
    margin-bottom: 1rem;
    border-left: 4px solid var(--primary-burgundy);
    padding-left: 1rem;
}

html[lang="ar"] .section-header-alt {
    border-left: none;
    border-right: 4px solid var(--primary-burgundy);
    padding-left: 0;
    padding-right: 1rem;
}

.section-header-alt h2 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-burgundy);
    margin: 0;
}

html[lang="ar"] .section-header-alt h2 {
    font-family: var(--font-ar);
}

/* Form Card */
.form-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

    .form-card.no-header {
        border-radius: 16px;
    }

.form-card-header {
    background: rgba(var(--primary-burgundy-rgb), 0.05);
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--glass-border);
}

    .form-card-header h3 {
        font-size: 1rem;
        font-weight: 600;
        color: var(--charcoal);
        margin: 0;
    }

html[lang="ar"] .form-card-header h3 {
    font-family: var(--font-ar);
}

.form-card-body {
    padding: 1.5rem;
}

/* Form Row */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
}

    .form-row.single {
        grid-template-columns: 1fr;
    }

    .form-row:last-child {
        margin-bottom: 0;
    }

/* Form Field */
.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

    .form-field.full-width {
        grid-column: 1 / -1;
    }

    .form-field label {
        font-size: 0.8rem;
        font-weight: 500;
        color: rgba(var(--charcoal-rgb), 0.6);
    }

html[lang="ar"] .form-field label {
    font-family: var(--font-ar);
}

.form-field input,
.form-field select,
.form-field textarea {
    padding: 0.85rem 1rem;
    background: var(--white);
    border: 1px solid rgba(var(--charcoal-rgb), 0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--charcoal);
    transition: var(--transition-smooth);
}

html[lang="ar"] .form-field input,
html[lang="ar"] .form-field select,
html[lang="ar"] .form-field textarea {
    font-family: var(--font-ar);
    text-align: right;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: none;
    border-color: var(--primary-burgundy);
    box-shadow: 0 0 0 3px rgba(var(--primary-burgundy-rgb), 0.1);
}

.form-field input[readonly] {
    background: rgba(var(--charcoal-rgb), 0.03);
    color: rgba(var(--charcoal-rgb), 0.7);
}

.form-field select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%232C2C2C' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    padding-right: 2.5rem;
}

html[lang="ar"] .form-field select {
    background-position: left 0.75rem center;
    padding-right: 1rem;
    padding-left: 2.5rem;
}

.form-field textarea {
    resize: vertical;
    min-height: 80px;
}

/* Input with Icon */
.input-with-icon {
    position: relative;
}

    .input-with-icon input {
        width: 100%;
        padding-right: 2.5rem;
    }

html[lang="ar"] .input-with-icon input {
    padding-right: 1rem;
    padding-left: 2.5rem;
}

.input-with-icon .material-symbols-outlined {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: rgba(var(--charcoal-rgb), 0.4);
    pointer-events: none;
}

html[lang="ar"] .input-with-icon .material-symbols-outlined {
    right: auto;
    left: 0.75rem;
}

.input-with-icon .edit-icon {
    color: var(--primary-burgundy);
    cursor: pointer;
    pointer-events: auto;
}

    .input-with-icon .edit-icon:hover {
        color: var(--gold-accent);
    }

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--charcoal);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

html[lang="ar"] .checkbox-item {
    font-family: var(--font-ar);
}

.checkbox-item:hover {
    background: rgba(var(--primary-burgundy-rgb), 0.05);
}

.checkbox-item input[type="checkbox"] {
    display: none;
}

.checkbox-item .checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(var(--charcoal-rgb), 0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    flex-shrink: 0;
}

.checkbox-item.checked .checkmark,
.checkbox-item input:checked + .checkmark {
    background: var(--primary-burgundy);
    border-color: var(--primary-burgundy);
}

    .checkbox-item.checked .checkmark::after,
    .checkbox-item input:checked + .checkmark::after {
        content: '✓';
        color: var(--white);
        font-size: 0.75rem;
        font-weight: bold;
    }

/* Form Actions */
.form-actions {
    display: flex;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

html[lang="ar"] .form-actions {
    justify-content: flex-start;
}

.btn-save,
.btn-submit {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, var(--primary-burgundy), rgba(var(--primary-burgundy-rgb), 0.85));
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(var(--primary-burgundy-rgb), 0.3);
}

html[lang="ar"] .btn-save,
html[lang="ar"] .btn-submit {
    font-family: var(--font-ar);
}

.btn-save:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(var(--primary-burgundy-rgb), 0.4);
}

/* Firms Table */
.firms-table .org-name {
    font-weight: 600;
    color: var(--charcoal);
}

.firms-table .org-email {
    font-size: 0.75rem;
    color: rgba(var(--charcoal-rgb), 0.5);
    margin-top: 0.25rem;
}

.org-type {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .org-type.corporate {
        background: rgba(var(--primary-burgundy-rgb), 0.12);
        color: var(--primary-burgundy);
    }

    .org-type.individuals {
        background: rgba(139, 21, 56, 0.12);
        color: #8B1538;
    }

    .org-type.government {
        background: rgba(16, 185, 129, 0.12);
        color: #10b981;
    }

/* ============================================
   APPLIED APPLICATIONS PAGE STYLES
   ============================================ */

/* Section Title with Action */
.section-title-with-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

    .section-title-with-action h2 {
        font-size: 1.5rem;
        font-weight: 600;
        color: var(--charcoal);
    }

html[lang="ar"] .section-title-with-action h2 {
    font-family: var(--font-ar);
}

.btn-refresh {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.25rem;
    background: linear-gradient(135deg, #8B1538, #8B1538);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

html[lang="ar"] .btn-refresh {
    font-family: var(--font-ar);
    flex-direction: row-reverse;
}

.btn-refresh:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
}

.btn-refresh .material-symbols-outlined {
    font-size: 1.1rem;
}

/* Application Card */
.application-card {
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

    .application-card:hover {
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    }

    .application-card.completed-card {
        border-color: rgba(16, 185, 129, 0.3);
    }

/* Application Header */
.application-header {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 2rem;
    align-items: flex-start;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 1.25rem;
}

.application-info {
    flex: 1;
}

.application-id {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.id-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--charcoal);
    font-family: monospace;
}

.status-tag {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}

    .status-tag.new {
        background: rgba(139, 21, 56, 0.12);
        color: #8B1538;
    }

    .status-tag.approved {
        background: rgba(201, 169, 98, 0.15);
        color: #a08339;
    }

    .status-tag.completed {
        background: rgba(201, 169, 98, 0.15);
        color: #a08339;
    }

    .status-tag.inprogress {
        background: rgba(139, 21, 56, 0.12);
        color: #8B1538;
    }

    .status-tag.pending {
        background: rgba(44, 44, 44, 0.08);
        color: rgba(44, 44, 44, 0.6);
    }

    .status-tag.rejected {
        background: rgba(239, 68, 68, 0.12);
        color: #ef4444;
    }

.application-desc {
    font-size: 0.9rem;
    color: rgba(var(--charcoal-rgb), 0.7);
    margin: 0;
}

/* Application Meta */
.application-meta {
    display: flex;
    gap: 1.5rem;
}

.meta-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

    .meta-item .material-symbols-outlined {
        font-size: 1.2rem;
        color: var(--primary-burgundy);
        margin-top: 0.1rem;
    }

.meta-label {
    display: block;
    font-size: 0.7rem;
    color: rgba(var(--charcoal-rgb), 0.5);
    margin-bottom: 0.15rem;
}

.meta-value {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--charcoal);
}

/* Application Status */
.application-status {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.5rem;
}

html[lang="ar"] .application-status {
    text-align: left;
    align-items: flex-start;
}

.current-stage {
    font-size: 0.75rem;
    color: rgba(var(--charcoal-rgb), 0.5);
}

.stage-status {
    padding: 0.35rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

    .stage-status.in-progress {
        background: rgba(139, 21, 56, 0.12);
        color: #8B1538;
    }

    .stage-status.completed {
        background: rgba(16, 185, 129, 0.12);
        color: #10b981;
    }

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 2px solid var(--primary-burgundy);
    border-radius: 8px;
    color: var(--primary-burgundy);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    margin-top: 0.5rem;
}

html[lang="ar"] .btn-download {
    font-family: var(--font-ar);
    flex-direction: row-reverse;
}

.btn-download:hover {
    background: var(--primary-burgundy);
    color: var(--white);
}

.btn-download .material-symbols-outlined {
    font-size: 1rem;
}

/* Workflow Section */
.workflow-section {
    margin-bottom: 1.25rem;
}

.workflow-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--charcoal);
    margin-bottom: 1.25rem;
}

html[lang="ar"] .workflow-title {
    font-family: var(--font-ar);
}

.workflow-title .material-symbols-outlined {
    font-size: 1.2rem;
    color: var(--primary-burgundy);
}

/* Workflow Stepper */
.workflow-stepper {
    display: flex;
    gap: 0;
    position: relative;
}

.workflow-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    flex: 1 1 0%;
    min-width: 0;
}

    .workflow-stage:last-child {
        flex: 0 0 auto;
    }

/* Stage Indicator */
.stage-indicator {
    display: flex;
    align-items: center;
    width: 100%;
    margin-bottom: 1rem;
}

.stage-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: var(--transition-smooth);
}

.stage-connector {
    flex: 1;
    height: 4px;
    background: rgba(var(--charcoal-rgb), 0.1);
    margin-left: -2px;
}

html[lang="ar"] .stage-connector {
    margin-left: 0;
    margin-right: -2px;
}

/* Stage States */
.workflow-stage.completed .stage-icon {
    background: linear-gradient(135deg, #C9A962, #d4b86a);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(201, 169, 98, 0.4);
}

    .workflow-stage.completed .stage-icon .material-symbols-outlined {
        font-size: 1.4rem;
    }

.workflow-stage.completed .stage-connector {
    background: linear-gradient(90deg, #C9A962, #C9A962);
}

.workflow-stage.active .stage-icon {
    background: linear-gradient(135deg, #8B1538, #8B1538);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(139, 21, 56, 0.4);
    animation: pulse-active 2s ease-in-out infinite;
}

@keyframes pulse-active {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 15px rgba(139, 21, 56, 0.4);
    }

    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 20px rgba(139, 21, 56, 0.6);
    }
}

.workflow-stage.active .stage-connector {
    background: linear-gradient(90deg, #8B1538, rgba(var(--charcoal-rgb), 0.1));
}

.workflow-stage.pending .stage-icon {
    background: rgba(var(--charcoal-rgb), 0.08);
    color: rgba(var(--charcoal-rgb), 0.4);
    border: 2px dashed rgba(var(--charcoal-rgb), 0.2);
}

.stage-num {
    font-weight: 700;
}

/* Stage Content */
.stage-content {
    padding: 0 0.5rem;
}

.stage-number {
    display: block;
    font-size: 0.65rem;
    color: rgba(var(--charcoal-rgb), 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.stage-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--charcoal);
    margin: 0 0 0.5rem;
    min-height: 2.5em;
}

html[lang="ar"] .stage-name {
    font-family: var(--font-ar);
}

.stage-status-text {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-bottom: 0.35rem;
}

    .stage-status-text .material-symbols-outlined {
        font-size: 0.9rem;
    }

    .stage-status-text.completed {
        background: rgba(201, 169, 98, 0.15);
        color: #a08339;
    }

    .stage-status-text.active {
        background: rgba(139, 21, 56, 0.1);
        color: #8B1538;
    }

    .stage-status-text.pending {
        background: rgba(var(--charcoal-rgb), 0.05);
        color: rgba(var(--charcoal-rgb), 0.4);
    }

.stage-date {
    display: block;
    font-size: 0.7rem;
    color: rgba(var(--charcoal-rgb), 0.5);
}

/* Progress Section */
.progress-section {
    padding-top: 1rem;
    border-top: 1px solid var(--glass-border);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.progress-label {
    font-size: 0.8rem;
    color: rgba(var(--charcoal-rgb), 0.6);
}

.progress-percent {
    font-size: 0.85rem;
    font-weight: 700;
    color: #8B1538;
}

    .progress-percent.complete {
        color: #C9A962;
    }

.progress-bar {
    height: 8px;
    background: rgba(var(--charcoal-rgb), 0.08);
    border-radius: 10px;
    overflow: hidden;
}

    .progress-bar.complete {
        background: rgba(201, 169, 98, 0.15);
    }

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B1538, #a91d45);
    border-radius: 10px;
    transition: width 0.5s ease;
}

.progress-bar.complete .progress-fill {
    background: linear-gradient(90deg, #C9A962, #d4b86a);
}

/* View Button */
.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    background: rgba(var(--primary-burgundy-rgb), 0.1);
    border: 1px solid rgba(var(--primary-burgundy-rgb), 0.2);
    border-radius: 6px;
    color: var(--primary-burgundy);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

html[lang="ar"] .btn-view {
    font-family: var(--font-ar);
    flex-direction: row-reverse;
}

.btn-view .material-symbols-outlined {
    font-size: 0.9rem;
}

.btn-view:hover {
    background: var(--primary-burgundy);
    color: var(--white);
    border-color: var(--primary-burgundy);
}

/* Notes Button */
.btn-notes {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.4rem 0.75rem;
    background: transparent;
    border: none;
    color: rgba(var(--charcoal-rgb), 0.5);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

html[lang="ar"] .btn-notes {
    font-family: var(--font-ar);
    flex-direction: row-reverse;
}

.btn-notes .material-symbols-outlined {
    font-size: 0.9rem;
}

.btn-notes:hover {
    color: var(--primary-burgundy);
}

/* ============================================
   ACTION BAR - 3 Buttons Horizontal
   ============================================ */
.action-bar {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: var(--glass-bg-strong);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    animation: cardPop 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55) 1.6s both;
}

html[lang="ar"] .action-bar {
    flex-direction: row-reverse;
}

.action-bar .btn-uae-pass {
    flex: 1;
    max-width: 280px;
    padding: 0.5rem;
}

    .action-bar .btn-uae-pass img {
        max-height: 50px;
    }

.action-bar .action-btn {
    flex: 1;
    max-width: 220px;
    padding: 0.85rem 1.25rem;
    margin: 0;
}

html[lang="ar"] .action-bar .action-btn {
    flex-direction: row-reverse;
}

/* ============================================
   FOOTER - Sticky Bottom with Animations
   ============================================ */
footer {
    background: rgba(var(--charcoal-rgb), 0.9);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    color: var(--white);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
    margin-top: auto;
    animation: fadeInUp 0.8s ease-out 2s both;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

html[lang="ar"] .footer-container {
    flex-direction: row-reverse;
}

.footer-text {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

html[lang="ar"] .footer-links {
    flex-direction: row-reverse;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.85rem;
    transition: var(--transition-smooth);
    position: relative;
}

    /* Underline animation */
    .footer-links a::after {
        content: '';
        position: absolute;
        bottom: -2px;
        left: 0;
        width: 0;
        height: 2px;
        background: var(--gold-accent);
        transition: width 0.3s ease;
    }

html[lang="ar"] .footer-links a::after {
    left: auto;
    right: 0;
}

.footer-links a:hover {
    color: var(--gold-accent);
}

    .footer-links a:hover::after {
        width: 100%;
    }

/* ============================================
   LOADER
   ============================================ */
.loader {
    position: fixed;
    inset: 0;
    background: linear-gradient(135deg, #f5f0e8, #e8e1d8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: loaderFade 0.5s ease-out 2s forwards;
}

@keyframes loaderFade {
    to {
        opacity: 0;
        visibility: hidden;
    }
}

.loader-content {
    text-align: center;
}

.loader-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-burgundy), rgba(var(--primary-burgundy-rgb), 0.8));
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.loader-icon .material-symbols-outlined {
    font-size: 2rem;
    color: var(--white);
}

.loader-text {
    font-size: 1.1rem;
    color: var(--charcoal);
    animation: textPulse 1s ease-in-out infinite;
}

html[lang="ar"] .loader-text {
    font-family: var(--font-ar);
}

@keyframes textPulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.loader-bar {
    width: 180px;
    height: 4px;
    background: rgba(var(--charcoal-rgb), 0.1);
    border-radius: 2px;
    margin: 1rem auto 0;
    overflow: hidden;
}

.loader-progress {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-burgundy), var(--gold-accent));
    border-radius: 2px;
    animation: loadProgress 1.8s ease-out forwards;
}

@keyframes loadProgress {
    from {
        width: 0;
    }

    to {
        width: 100%;
    }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
    .cards-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: 0 auto;
    }

    .hero-card h1 {
        font-size: 2rem;
    }

    main {
        justify-content: flex-start;
    }

    .logo-icon {
        height: 70px;
    }

    .logo-text {
        font-size: 0.95rem;
    }

        .logo-text span {
            font-size: 0.75rem;
        }

    .action-bar {
        flex-direction: column;
        align-items: center;
    }

    html[lang="ar"] .action-bar {
        flex-direction: column;
    }

    .action-bar .btn-uae-pass,
    .action-bar .action-btn {
        max-width: 100%;
        width: 100%;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }

    html[lang="ar"] .header-container {
        flex-direction: column;
    }

    .nav-actions {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }



    .hero-card h1 {
        font-size: 1.8rem;
    }

    .hero-card p {
        font-size: 0.95rem;
    }

    .footer-container {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    html[lang="ar"] .footer-container {
        flex-direction: column;
    }

    .footer-links {
        justify-content: center;
    }

    /* Dashboard responsive */
    .dashboard-main {
        padding: 1rem;
    }



    .user-table th,
    .user-table td {
        padding: 0.5rem;
        font-size: 0.75rem;
    }

    .nav-tabs {
        flex-direction: column;
    }

    .nav-tab {
        justify-content: center;
    }

    .service-cards-grid {
        grid-template-columns: 1fr;
    }

    /* Document Management responsive */
    .document-tabs {
        flex-direction: column;
    }

    .doc-tab:first-child {
        border-radius: 8px 8px 0 0;
    }

    html[lang="ar"] .doc-tab:first-child {
        border-radius: 8px 8px 0 0;
    }

    .doc-tab:last-child {
        border-radius: 0 0 8px 8px;
        border-left: 2px solid var(--primary-burgundy);
        border-top: none;
    }

    html[lang="ar"] .doc-tab:last-child {
        border-radius: 0 0 8px 8px;
        border-right: 2px solid var(--primary-burgundy);
        border-top: none;
    }

    .table-container {
        overflow-x: auto;
    }

    .data-table th,
    .data-table td {
        padding: 0.75rem;
        font-size: 0.75rem;
        white-space: nowrap;
    }

    /* Form responsive */
    .form-row {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .form-actions {
        justify-content: center;
    }

    html[lang="ar"] .form-actions {
        justify-content: center;
    }

    /* Applications responsive */
    .application-header {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .application-status {
        align-items: flex-start;
    }

    html[lang="ar"] .application-status {
        align-items: flex-start;
    }

    .application-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .workflow-stepper {
        flex-direction: column;
        gap: 1rem;
    }

    .workflow-stage {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
        flex: 0 0 auto;
    }

        .workflow-stage:last-child {
            flex: 0 0 auto;
        }

    html[lang="ar"] .workflow-stage {
        text-align: right;
    }

    .stage-indicator {
        flex-direction: column;
        width: auto;
        margin-bottom: 0;
        margin-right: 1rem;
    }

    html[lang="ar"] .stage-indicator {
        margin-right: 0;
        margin-left: 1rem;
    }

    .stage-connector {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 4px;
        height: 30px;
        margin-top: -2px;
    }

    html[lang="ar"] .stage-connector {
        right: auto;
    }

    .stage-content {
        padding: 0;
    }

    .stage-name {
        min-height: auto;
    }
}

/* ============================================
   MODAL CONTAINER FIX
   ============================================ */

/* Ensure hidden elements don't affect layout */
.hidden {
    display: none !important;
}

/* Modal Overlay Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
}

.modal-content {
    background: #FFFFFF;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: modalSlideIn 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .modal-content.modal-lg {
        max-width: 780px;
    }

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    background: #FFFFFF;
}

    .modal-header h3 {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        font-size: 1.1rem;
        font-weight: 600;
        color: #2C2C2C;
        margin: 0;
    }

        .modal-header h3 .material-symbols-outlined {
            color: #8B1538;
        }

.modal-close {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(44, 44, 44, 0.05);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2C2C2C;
}

    .modal-close:hover {
        background: rgba(139, 21, 56, 0.1);
        color: #8B1538;
    }

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
    flex: 1;
    background: #FFFFFF;
}

.modal-description {
    font-size: 0.9rem;
    color: rgba(44, 44, 44, 0.7);
    margin-bottom: 1.25rem;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    background: #FFFFFF;
}

/* Input Group */
.input-group {
    display: flex;
}

.input-prefix {
    display: flex;
    align-items: center;
    padding: 0 1rem;
    background: rgba(var(--charcoal-rgb), 0.05);
    border: 2px solid rgba(var(--charcoal-rgb), 0.1);
    border-right: none;
    border-radius: 10px 0 0 10px;
    font-size: 0.9rem;
    color: rgba(var(--charcoal-rgb), 0.6);
}

.input-group .form-input {
    border-radius: 0 10px 10px 0;
}

/* Alert Styles */
.error-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    border-radius: 10px;
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

    .error-alert .material-symbols-outlined {
        font-size: 1.2rem;
    }

.success-alert {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 10px;
    color: #059669;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}

    .success-alert .material-symbols-outlined {
        font-size: 1.2rem;
    }

.info-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: rgba(139, 21, 56, 0.08);
    border-radius: 10px;
    color: #8B1538;
    font-size: 0.8rem;
    margin-top: 1rem;
}

    .info-note .material-symbols-outlined {
        font-size: 1rem;
        flex-shrink: 0;
        margin-top: 0.1rem;
    }

/* Success State in Modal */
.success-state {
    text-align: center;
    padding: 1rem 0;
}

    .success-state .success-icon {
        width: 80px;
        height: 80px;
        margin: 0 auto 1.25rem;
        background: rgba(16, 185, 129, 0.1);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

        .success-state .success-icon .material-symbols-outlined {
            font-size: 2.5rem;
            color: #10b981;
        }

    .success-state h4 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #10b981;
        margin-bottom: 0.5rem;
    }

    .success-state p {
        color: rgba(var(--charcoal-rgb), 0.7);
        margin-bottom: 0.5rem;
    }

    .success-state .hint {
        font-size: 0.85rem;
        color: rgba(var(--charcoal-rgb), 0.5);
        margin-bottom: 1.5rem;
    }

/* Button Secondary */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(var(--charcoal-rgb), 0.08);
    color: var(--charcoal);
    border: 1px solid rgba(var(--charcoal-rgb), 0.15);
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

    .btn-secondary:hover {
        background: rgba(var(--charcoal-rgb), 0.12);
    }

/* Spinner */
.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Validation Error */
.validation-error {
    font-size: 0.8rem;
    color: #dc2626;
    margin-top: 0.25rem;
}

/* ============================================
   INTERPAGE - ACCOUNT TYPE SELECTION
   ============================================ */

/* InterPage Loading State */
.interpage-loading {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hero Icon */
.hero-icon {
    font-size: 2.5rem;
    color: var(--primary-burgundy);
}

/* Account Type Grid */
.account-type-grid {
    max-width: 800px;
    margin: 0 auto;
    grid-template-columns: repeat(2, 1fr);
}

/* Account Type Card */
.account-type-card {
    position: relative;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

    .account-type-card:hover {
        transform: translateY(-5px);
        border-color: var(--gold-accent);
    }

    .account-type-card.selected {
        border-color: var(--primary-burgundy);
        background: rgba(var(--primary-burgundy-rgb), 0.05);
    }

/* Card Icon Colors */
.card-icon-green {
    background: linear-gradient(135deg, #4CAF50, #45a049) !important;
}

.card-icon-blue {
    background: linear-gradient(135deg, #2196F3, #1976D2) !important;
}

/* Selected Indicator */
.selected-indicator {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

    .selected-indicator .material-symbols-outlined {
        color: var(--primary-burgundy);
    }

[dir="rtl"] .selected-indicator {
    right: auto;
    left: 1rem;
}

/* ============================================
   ORGANIZATION LIST
   ============================================ */

.org-list-container {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 0.5rem;
}

.modal-body .org-item,
.org-item {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(44, 44, 44, 0.03);
    border: 2px solid rgba(44, 44, 44, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .modal-body .org-item:hover,
    .org-item:hover {
        border-color: #C9A962;
        background: rgba(201, 169, 98, 0.05);
    }

    .modal-body .org-item.selected,
    .org-item.selected {
        border-color: #8B1538;
        background: rgba(139, 21, 56, 0.05);
    }

.modal-body .org-icon,
.org-icon {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #8B1538, #a91d45) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

    .modal-body .org-icon .material-symbols-outlined,
    .org-icon .material-symbols-outlined {
        color: white !important;
        font-size: 24px;
    }

.modal-body .org-details,
.org-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.modal-body .org-name,
.org-name {
    display: block;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-body .org-license,
.org-license {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.85rem;
    color: #2C2C2C;
    opacity: 0.6;
}

    .org-license .material-symbols-outlined {
        font-size: 14px;
    }

.modal-body .org-type-badge,
.org-type-badge {
    flex-shrink: 0;
}

.org-item .check-icon {
    color: #8B1538;
    margin-left: auto;
}

[dir="rtl"] .org-item .check-icon {
    margin-left: 0;
    margin-right: auto;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loading-text {
    margin-top: 1rem;
    color: var(--charcoal);
    opacity: 0.7;
}

.modal-loading {
    padding: 3rem;
}

.empty-state {
    padding: 3rem;
    text-align: center;
}

.empty-icon {
    font-size: 4rem;
    color: var(--charcoal);
    opacity: 0.3;
}

.empty-text {
    margin-top: 1rem;
    color: var(--charcoal);
    opacity: 0.6;
}

/* ============================================
   ERROR STATE
   ============================================ */

.error-state {
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    color: var(--primary-burgundy);
}

.error-title {
    margin-top: 1rem;
    color: var(--charcoal);
}

.error-state .btn-primary {
    margin-top: 1.5rem;
}

/* ============================================
   MODAL SIZES & ACTIONS
   ============================================ */

.modal-lg {
    max-width: 780px;
    width: 95%;
}

.modal-actions.modal-actions-center,
.modal-actions-center {
    display: flex !important;
    justify-content: center !important;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    margin-top: 0;
}

/* ============================================
   BUTTON - OUTLINE STYLE
   ============================================ */

.modal-actions .btn-outline,
.btn-outline {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: transparent !important;
    color: #8B1538 !important;
    border: 2px solid #8B1538 !important;
}

    .modal-actions .btn-outline:hover,
    .btn-outline:hover {
        background: rgba(139, 21, 56, 0.1) !important;
    }

    .btn-outline .material-symbols-outlined {
        font-size: 1.25rem;
    }

.modal-actions .btn-primary,
.btn-primary {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(135deg, #8B1538, #a91d45) !important;
    color: white !important;
    border: none !important;
    transition: all 0.3s ease;
}

    .modal-actions .btn-primary:hover,
    .btn-primary:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(139, 21, 56, 0.3);
    }

    .modal-actions .btn-primary:disabled,
    .btn-primary:disabled {
        opacity: 0.5;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* ============================================
   INTERPAGE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
    .account-type-grid {
        grid-template-columns: 1fr;
    }

    .org-item {
        flex-wrap: wrap;
    }

    .org-type-badge {
        width: 100%;
        margin-top: 0.5rem;
    }

    .modal-actions-center {
        flex-direction: column;
    }

        .modal-actions-center button {
            width: 100%;
        }
}

/* ============================================
   REGISTRATION & AUTH PAGES
   ============================================ */

.register-container {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 1rem;
}

.register-card {
    padding: 2rem;
}

/* Success State */
.success-state {
    text-align: center;
    padding: 2rem 0;
}

.success-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #16a34a, #22c55e);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

    .success-icon-large .material-symbols-outlined {
        font-size: 40px;
        color: white;
    }

.success-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #16a34a;
    margin-bottom: 0.75rem;
}

.info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #8B1538;
    margin-bottom: 0.75rem;
}

.success-text {
    color: #2C2C2C;
    opacity: 0.7;
    margin-bottom: 0.5rem;
}

.success-email {
    font-weight: 700;
    color: #2C2C2C;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

/* Error State */
.error-state {
    text-align: center;
    padding: 2rem 0;
}

.error-icon-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #dc2626, #ef4444);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

    .error-icon-large .material-symbols-outlined {
        font-size: 40px;
        color: white;
    }

.error-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #dc2626;
    margin-bottom: 0.75rem;
}

.error-text {
    color: #2C2C2C;
    opacity: 0.7;
    margin-bottom: 1.5rem;
}

/* Steps List */
.steps-list {
    list-style: decimal;
    padding-left: 1.25rem;
    text-align: left;
    margin: 0.5rem 0 0 0;
}

[dir="rtl"] .steps-list {
    padding-left: 0;
    padding-right: 1.25rem;
    text-align: right;
}

.steps-list li {
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

/* User Type Selection */
.user-type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.user-type-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border: 2px solid rgba(44, 44, 44, 0.1);
    border-radius: 12px;
    background: rgba(44, 44, 44, 0.02);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    text-align: center;
}

    .user-type-btn:hover {
        border-color: #C9A962;
        background: rgba(201, 169, 98, 0.05);
    }

    .user-type-btn.active {
        border-color: #8B1538;
        background: rgba(139, 21, 56, 0.05);
        color: #8B1538;
    }

    .user-type-btn .material-symbols-outlined {
        font-size: 1.5rem;
    }

/* Input Icon Wrapper */
.input-icon-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(44, 44, 44, 0.4);
    font-size: 1.25rem;
    pointer-events: none;
}

[dir="rtl"] .input-icon {
    left: auto;
    right: 1rem;
}

.input-icon-wrapper .form-input {
    padding-left: 3rem;
}

[dir="rtl"] .input-icon-wrapper .form-input {
    padding-left: 1rem;
    padding-right: 3rem;
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(44, 44, 44, 0.4);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

[dir="rtl"] .password-toggle {
    right: auto;
    left: 1rem;
}

.password-toggle:hover {
    color: #8B1538;
}

/* Form Footer */
.form-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

    .form-footer p {
        color: rgba(44, 44, 44, 0.6);
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

/* Link Primary */
.link-primary {
    color: #8B1538;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

    .link-primary:hover {
        color: #a91d45;
        text-decoration: underline;
    }

/* Link Text */
.link-text {
    display: block;
    color: rgba(44, 44, 44, 0.6);
    font-size: 0.9rem;
    text-decoration: none;
    margin-top: 1rem;
    transition: color 0.3s ease;
}

    .link-text:hover {
        color: #8B1538;
    }

/* Large Spinner */
.spinner-large {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(139, 21, 56, 0.2);
    border-top-color: #8B1538;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* Form Actions */
.form-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

/* Responsive */
@media (max-width: 640px) {
    .user-type-grid {
        grid-template-columns: 1fr;
    }

    .register-card {
        padding: 1.5rem;
    }
}

/* ============================================
   DASHBOARD - SERVICES & DOCUMENTS
   ============================================ */

/* Services Section */
.services-section {
    margin-bottom: 2rem;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
}

    .section-header.enabled {
        background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(34, 197, 94, 0.05));
        border-left: 4px solid #16a34a;
    }

    .section-header.non-enabled {
        background: linear-gradient(135deg, rgba(139, 21, 56, 0.1), rgba(169, 29, 69, 0.05));
        border-left: 4px solid #8B1538;
    }

[dir="rtl"] .section-header.enabled,
[dir="rtl"] .section-header.non-enabled {
    border-left: none;
    border-right: 4px solid;
}

[dir="rtl"] .section-header.enabled {
    border-right-color: #16a34a;
}

[dir="rtl"] .section-header.non-enabled {
    border-right-color: #8B1538;
}

.section-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: #2C2C2C;
}

.section-content {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 1.5rem;
}

    .section-content.disabled-services {
        opacity: 0.7;
    }

/* Service Category */
.service-category {
    margin-bottom: 1.5rem;
}

    .service-category:last-child {
        margin-bottom: 0;
    }

.category-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2C2C2C;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
}

/* Service Cards Grid */
.service-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
}

/* Service Card Item */
.service-card-item {
    background: #FFFFFF;
    border: 1px solid rgba(44, 44, 44, 0.1);
    border-radius: 12px;
    padding: 1.25rem;
    text-align: center;
    transition: all 0.3s ease;
}

    .service-card-item:hover {
        border-color: #C9A962;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
        transform: translateY(-2px);
    }

.service-icon-box {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(139, 21, 56, 0.1), rgba(201, 169, 98, 0.1));
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 1rem;
    overflow: hidden;
}

    .service-icon-box img {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

        /* Fallback for broken images */
        .service-icon-box img[src=""],
        .service-icon-box img:not([src]) {
            display: none;
        }

    .service-icon-box .material-symbols-outlined {
        font-size: 32px;
        color: #8B1538;
    }

.service-code {
    font-size: 0.9rem;
    font-weight: 700;
    color: #8B1538;
    margin-bottom: 0.5rem;
}

.service-name {
    font-size: 0.9rem;
    color: #2C2C2C;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.service-desc {
    font-size: 0.8rem;
    color: rgba(44, 44, 44, 0.6);
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Service Stats */
.service-stats {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-top: 1rem;
}

    .service-stats .stat {
        display: flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.5rem 0.75rem;
        border-radius: 8px;
        font-size: 0.8rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
    }

        .service-stats .stat.req {
            background: rgba(234, 179, 8, 0.1);
            color: #b45309;
        }

            .service-stats .stat.req:hover {
                background: rgba(234, 179, 8, 0.2);
            }

        .service-stats .stat.valid {
            background: rgba(22, 163, 74, 0.1);
            color: #16a34a;
        }

            .service-stats .stat.valid:hover {
                background: rgba(22, 163, 74, 0.2);
            }

        .service-stats .stat .material-symbols-outlined {
            font-size: 16px;
        }

/* Apply Button */
.btn-apply {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    width: 100%;
    margin-top: auto;   /* 27/Aug/2026: pinned to the card bottom - uniform */
    padding: 0.75rem 1rem;
    background: linear-gradient(135deg, #8B1538, #a91d45) !important;
    color: white !important;
    border: none !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .btn-apply:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
    }

    .btn-apply .material-symbols-outlined {
        font-size: 18px;
        color: white !important;
    }

/* Fix for arrow direction in RTL */
[dir="rtl"] .btn-apply .material-symbols-outlined {
    transform: scaleX(-1);
}

/* No Data */
.no-data {
    text-align: center;
    padding: 2rem;
    color: rgba(44, 44, 44, 0.5);
    font-style: italic;
}

/* ============================================
   DOCUMENTS SECTION
   ============================================ */

.documents-section {
    margin-bottom: 1.5rem;
}

    .documents-section:last-child {
        margin-bottom: 0;
    }

.documents-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

    .documents-header.required {
        background: rgba(234, 179, 8, 0.1);
    }

        .documents-header.required .material-symbols-outlined {
            color: #b45309;
        }

    .documents-header.approved {
        background: rgba(22, 163, 74, 0.1);
    }

        .documents-header.approved .material-symbols-outlined {
            color: #16a34a;
        }

    .documents-header h4 {
        margin: 0;
        font-size: 1rem;
        font-weight: 600;
        color: #2C2C2C;
    }

/* Table Container */
.table-container {
    overflow-x: auto;
}

/* Data Table */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

    .data-table th,
    .data-table td {
        padding: 0.875rem 1rem;
        text-align: left;
        border-bottom: 1px solid rgba(44, 44, 44, 0.1);
    }

[dir="rtl"] .data-table th,
[dir="rtl"] .data-table td {
    text-align: right;
}

.data-table th {
    background: rgba(44, 44, 44, 0.03);
    font-weight: 600;
    color: #2C2C2C;
}

.data-table tbody tr:hover {
    background: rgba(201, 169, 98, 0.05);
}

.data-table .font-semibold {
    font-weight: 600;
}

/* Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-success {
    background: rgba(22, 163, 74, 0.1);
    color: #16a34a;
}

.badge-warning {
    background: rgba(234, 179, 8, 0.1);
    color: #b45309;
}

.badge-danger {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.badge-info {
    background: rgba(37, 99, 235, 0.1);
    color: #8B1538;
}

.badge-secondary {
    background: rgba(44, 44, 44, 0.1);
    color: #6b7280;
}

.badge-dark {
    background: rgba(44, 44, 44, 0.2);
    color: #374151;
}

.badge-corporate {
    background: rgba(37, 99, 235, 0.1);
    color: #8B1538;
}

.badge-government {
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
}

/* Action Buttons */
.btn-upload {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #8B1538, #a91d45);
    color: white;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-upload:hover {
        box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
    }

    .btn-upload .material-symbols-outlined {
        font-size: 16px;
    }

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 21, 56, 0.1);
    color: #8B1538;
    border: none;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-view:hover {
        background: rgba(139, 21, 56, 0.2);
    }

    .btn-view .material-symbols-outlined {
        font-size: 16px;
    }

.file-input-hidden {
    display: none;
}

.text-muted {
    color: rgba(44, 44, 44, 0.5);
    font-size: 0.8rem;
}

/* Modal Sizes */
.modal-sm {
    max-width: 400px;
}

.modal-xl {
    max-width: 900px;
    width: 95%;
}

/* Button Variants */
.btn-success {
    background: linear-gradient(135deg, #16a34a, #22c55e) !important;
}

.btn-danger {
    background: linear-gradient(135deg, #dc2626, #ef4444) !important;
}

.btn-warning {
    background: linear-gradient(135deg, #d97706, #f59e0b) !important;
}

/* Responsive */
@media (max-width: 768px) {
    .service-cards-grid {
        grid-template-columns: 1fr;
    }

    .data-table {
        font-size: 0.8rem;
    }

        .data-table th,
        .data-table td {
            padding: 0.625rem 0.5rem;
        }
}

/* ============================================
   NAVIGATION TABS (BaseNavigation)
   ============================================ */

.nav-tabs-container {
    padding-bottom: 1.5rem;
    margin-bottom: 1rem;
}

.nav-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    width: 100%;
}

.nav-tab {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: #FFFFFF !important;
    border: 2px solid rgba(44, 44, 44, 0.1) !important;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8B1538 !important;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
    min-width: 150px;
    max-width: 220px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

    .nav-tab:hover {
        border-color: #C9A962 !important;
        background: rgba(201, 169, 98, 0.05) !important;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .nav-tab.active {
        background: linear-gradient(135deg, #8B1538, #a91d45) !important;
        color: #FFFFFF !important;
        border-color: #8B1538 !important;
        box-shadow: 0 4px 16px rgba(139, 21, 56, 0.3);
    }

        .nav-tab.active:hover {
            background: linear-gradient(135deg, #a91d45, #8B1538) !important;
        }

.nav-tab-icon {
    font-size: 1.25rem;
    color: inherit;
}

.nav-tab.active .nav-tab-icon {
    color: #FFFFFF !important;
}

.nav-tab-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* RTL Support */
[dir="rtl"] .nav-tabs {
    flex-direction: row-reverse;
}

[dir="rtl"] .nav-tab {
    flex-direction: row-reverse;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-tab {
        min-width: 120px;
        padding: 0.625rem 1rem;
        font-size: 0.85rem;
    }

    .nav-tab-icon {
        font-size: 1.1rem;
    }
}

@media (max-width: 768px) {
    .nav-tabs {
        flex-direction: column;
    }

    .nav-tab {
        max-width: 100%;
        width: 100%;
    }
}

/* ============================================
   DOCUMENT MANAGEMENT PAGE
   ============================================ */

/* Page Header */
.page-header {
    margin-bottom: 1.5rem;
}

    .page-header h1 {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        font-size: 1.5rem;
        font-weight: 700;
        color: #2C2C2C;
        margin: 0;
    }

        .page-header h1 .material-symbols-outlined {
            font-size: 1.75rem;
            color: #8B1538;
        }

/* Document Toggle */
.doc-toggle-container {
    margin-bottom: 1.5rem;
}

.doc-toggle {
    display: inline-flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(44, 44, 44, 0.03);
    border-radius: 12px;
}

.doc-toggle-btn {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: transparent !important;
    border: none !important;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #8B1538 !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .doc-toggle-btn:hover {
        background: rgba(139, 21, 56, 0.05) !important;
    }

    .doc-toggle-btn.active {
        background: linear-gradient(135deg, #8B1538, #a91d45) !important;
        color: #FFFFFF !important;
        box-shadow: 0 4px 12px rgba(139, 21, 56, 0.3);
    }

    .doc-toggle-btn .material-symbols-outlined {
        font-size: 1.25rem;
    }

/* Document Card */
.doc-card {
    padding: 0;
    overflow: hidden;
}

    .doc-card .table-container {
        padding: 0;
    }

    .doc-card .data-table th,
    .doc-card .data-table td {
        padding: 1rem 1.25rem;
    }

/* Row States - No background colors, keep rows clean */
.row-approved {
    background: transparent !important;
}

.row-rejected {
    background: transparent !important;
}

/* Action Buttons Container */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

/* Cancel Button */
.btn-cancel {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem;
    padding: 0.5rem 1rem;
    background: rgba(220, 38, 38, 0.1) !important;
    color: #dc2626 !important;
    border: none !important;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-cancel:hover {
        background: rgba(220, 38, 38, 0.2) !important;
    }

    .btn-cancel .material-symbols-outlined {
        font-size: 16px;
    }

/* Notes Tooltip */
.notes-tooltip {
    position: relative;
    display: inline-block;
}

.btn-notes {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    background: transparent !important;
    border: none !important;
    color: rgba(44, 44, 44, 0.6) !important;
    font-size: 0.8rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

    .btn-notes:hover {
        color: #8B1538 !important;
    }

    .btn-notes .material-symbols-outlined {
        font-size: 16px;
    }

.tooltip-content {
    display: none;
    position: absolute;
    z-index: 100;
    width: 250px;
    padding: 0.75rem 1rem;
    background: #FFFFFF;
    border: 1px solid rgba(44, 44, 44, 0.1);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    top: 100%;
    left: 0;
    margin-top: 0.5rem;
}

[dir="rtl"] .tooltip-content {
    left: auto;
    right: 0;
}

.notes-tooltip:hover .tooltip-content {
    display: block;
}

.tooltip-content p {
    margin: 0;
    font-size: 0.85rem;
    color: #2C2C2C;
    line-height: 1.5;
}

/* Empty State Enhancement */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
}

    .empty-state .empty-icon {
        font-size: 64px;
        color: rgba(44, 44, 44, 0.2);
        margin-bottom: 1rem;
    }

    .empty-state h3 {
        font-size: 1.25rem;
        font-weight: 600;
        color: #2C2C2C;
        margin-bottom: 0.5rem;
    }

    .empty-state p {
        color: rgba(44, 44, 44, 0.5);
        font-size: 0.95rem;
    }

/* Responsive */
@media (max-width: 768px) {
    .doc-toggle {
        flex-direction: column;
        width: 100%;
    }

    .doc-toggle-btn {
        width: 100%;
        justify-content: center;
    }

    .action-buttons {
        flex-direction: column;
    }

        .action-buttons > * {
            width: 100%;
            justify-content: center;
        }
}

/* ============================================
   PROFILE MANAGEMENT PAGE
   ============================================ */

/* Profile Card */
.profile-card {
    padding: 0;
    overflow: hidden;
}

/* Profile Section */
.profile-section {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.1);
}

    .profile-section:last-of-type {
        border-bottom: none;
    }

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid rgba(139, 21, 56, 0.1);
}

    .section-title .material-symbols-outlined {
        font-size: 1.5rem;
        color: #8B1538;
    }

    .section-title h3 {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
        color: #2C2C2C;
    }

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

    .form-grid .full-width {
        grid-column: 1 / -1;
    }

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: rgba(44, 44, 44, 0.02);
    border: 1px solid rgba(44, 44, 44, 0.08);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .checkbox-item:hover {
        background: rgba(139, 21, 56, 0.03);
        border-color: rgba(139, 21, 56, 0.15);
    }

.checkbox-input {
    width: 20px;
    height: 20px;
    accent-color: #8B1538;
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #2C2C2C;
    cursor: pointer;
}

/* Form Actions End (right-aligned) */
.form-actions-end {
    display: flex;
    justify-content: flex-end;
    padding: 1.5rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
    background: rgba(44, 44, 44, 0.02);
}

[dir="rtl"] .form-actions-end {
    justify-content: flex-start;
}

/* Disabled Input */
.form-input:disabled {
    background: rgba(44, 44, 44, 0.05);
    color: rgba(44, 44, 44, 0.6);
    cursor: not-allowed;
}

/* Select Styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%232C2C2C' viewBox='0 0 16 16'%3E%3Cpath d='M8 11L3 6h10l-5 5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

[dir="rtl"] select.form-input {
    background-position: left 1rem center;
    padding-right: 1rem;
    padding-left: 2.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
    }

    .profile-section {
        padding: 1.25rem;
    }
}

/* ============================================
   NEW FIRM / ADD COMPANY PAGE
   ============================================ */

/* Firms Section */
.firms-section {
    margin-bottom: 2rem;
}

/* Firms Table */
.firms-table thead {
    background: linear-gradient(135deg, #8B1538, #a91d45) !important;
}

    .firms-table thead th {
        color: #FFFFFF !important;
        font-weight: 600;
        text-transform: uppercase;
        font-size: 0.8rem;
        letter-spacing: 0.5px;
    }

.firms-table tbody tr:nth-child(even) {
    background: rgba(44, 44, 44, 0.02);
}

.firms-table tbody tr:hover {
    background: rgba(139, 21, 56, 0.05) !important;
}

.firm-name {
    font-weight: 600;
    color: #2C2C2C;
}

.firm-email {
    font-size: 0.8rem;
    color: rgba(44, 44, 44, 0.5);
    margin-top: 0.25rem;
}

.firm-address {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Empty State Card */
.empty-state-card {
    background: rgba(44, 44, 44, 0.03);
    border: 2px dashed rgba(44, 44, 44, 0.1);
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
}

    .empty-state-card .empty-icon {
        font-size: 48px;
        color: rgba(44, 44, 44, 0.2);
        margin-bottom: 1rem;
    }

    .empty-state-card p {
        color: rgba(44, 44, 44, 0.5);
        font-size: 0.95rem;
        margin: 0;
    }

/* New Firm Form */
.new-firm-form {
    padding: 1.5rem;
}

    .new-firm-form .form-grid {
        gap: 1.25rem;
    }

/* Form Textarea */
.form-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Text Alignment */
.text-right {
    text-align: right;
}

/* Form Actions Center */
.form-actions-center {
    display: flex;
    justify-content: center;
    padding-top: 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

/* Large Button */
.btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1rem;
}

/* Error Alert */
.error-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 8px;
    color: #dc2626;
    margin-top: 1rem;
}

    .error-alert .material-symbols-outlined {
        font-size: 1.25rem;
    }

/* Badge variants for organization types */
.badge-corporate {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #8B1538 !important;
}

.badge-government {
    background: rgba(139, 21, 56, 0.1) !important;
    color: #8B1538 !important;
}

/* Responsive */
@media (max-width: 768px) {
    .new-firm-form {
        padding: 1rem;
    }

    .btn-lg {
        width: 100%;
        padding: 0.875rem 1.5rem;
    }

    .firm-address {
        max-width: 120px;
    }
}

/* ============================================
   APPLIED APPLICATION PAGE
   ============================================ */

/* Page Header Row */
.page-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.page-header-left h1 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: #2C2C2C;
    margin: 0;
}

    .page-header-left h1 .material-symbols-outlined {
        font-size: 1.75rem;
        color: #8B1538;
    }

/* Applications Card */
.applications-card {
    padding: 0;
    overflow: hidden;
}

/* Applications List */
.applications-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 1.5rem;
}

/* Application Item */
.application-item {
    border: 1px solid rgba(44, 44, 44, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

    .application-item:hover {
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

/* Application Header */
.application-header {
    padding: 1.25rem;
    background: #FFFFFF;
    border-radius: 12px;
}

    .application-header.bg-green-50 {
        background: rgba(22, 163, 74, 0.05) !important;
    }

    .application-header.bg-yellow-50 {
        background: rgba(234, 179, 8, 0.05) !important;
    }

    .application-header.bg-red-50 {
        background: rgba(220, 38, 38, 0.05) !important;
    }

/* App Info Grid */
.app-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 1.5rem;
    align-items: start;
}

.app-info-col {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.app-actions-col {
    align-items: flex-end;
}

[dir="rtl"] .app-actions-col {
    align-items: flex-start;
}

.request-number {
    font-size: 1.1rem;
    font-weight: 700;
    color: #8B1538;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.service-name {
    font-size: 0.9rem;
    color: rgba(44, 44, 44, 0.7);
    margin: 0;
}

.info-line {
    font-size: 0.85rem;
    margin: 0;
    color: #2C2C2C;
}

.info-label {
    font-weight: 600;
}

/* Status Badges */
.status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.badge-new {
    background: rgba(37, 99, 235, 0.1) !important;
    color: #8B1538 !important;
}

/* Action Buttons */
.btn-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.25rem;
    padding: 0.5rem 0.875rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    border: none !important;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .btn-action .material-symbols-outlined {
        font-size: 16px;
    }

.btn-edit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(139, 21, 56, 0.2);
    background: rgba(139, 21, 56, 0.1) !important;
    color: #8B1538 !important;
}

    .btn-edit:hover {
        background: rgba(139, 21, 56, 0.2) !important;
    }

.btn-upload-bill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(201, 169, 98, 0.3);
    background: rgba(201, 169, 98, 0.12) !important;
    color: #8B6914 !important;
}

    .btn-upload-bill:hover {
        background: rgba(201, 169, 98, 0.25) !important;
        border-color: #C9A962;
        box-shadow: 0 2px 8px rgba(201, 169, 98, 0.2);
    }

    .btn-upload-bill .material-symbols-outlined {
        font-size: 1rem;
    }

.btn-download {
    background: rgba(139, 21, 56, 0.1) !important;
    color: #8B1538 !important;
}

    .btn-download:hover {
        background: rgba(139, 21, 56, 0.2) !important;
    }

.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.375rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .status-indicator.uploaded {
        background: rgba(37, 99, 235, 0.1);
        color: #8B1538;
    }

    .status-indicator .material-symbols-outlined {
        font-size: 14px;
    }

/* Approval Stages */
.approval-stages {
    padding: 1.25rem;
    background: rgba(44, 44, 44, 0.02);
    border-top: 1px solid rgba(44, 44, 44, 0.1);
}

.stages-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    color: #2C2C2C;
    margin: 0 0 1rem 0;
}

    .stages-title .material-symbols-outlined {
        font-size: 1.25rem;
        color: #8B1538;
    }

/* Stages Grid */
.stages-grid {
    display: grid;
    gap: 1rem;
}

.stages-count-1 {
    grid-template-columns: 1fr;
}

.stages-count-2 {
    grid-template-columns: repeat(2, 1fr);
}

.stages-count-3 {
    grid-template-columns: repeat(3, 1fr);
}

.stages-count-4 {
    grid-template-columns: repeat(4, 1fr);
}

.stages-count-5 {
    grid-template-columns: repeat(5, 1fr);
}

.stages-count-6 {
    grid-template-columns: repeat(6, 1fr);
}

/* Stage Card */
.stage-card {
    border: 2px solid rgba(44, 44, 44, 0.1);
    border-radius: 10px;
    overflow: hidden;
    background: #FFFFFF;
    transition: all 0.3s ease;
}

    .stage-card.completed {
        border-color: #16a34a;
    }

    .stage-card.active {
        border-color: #8B1538;
        box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    }

    .stage-card.pending {
        border-color: rgba(44, 44, 44, 0.1);
    }

.stage-header {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid rgba(44, 44, 44, 0.05);
    text-align: center;
}

.stage-card.completed .stage-header {
    background: rgba(22, 163, 74, 0.05);
}

.stage-card.active .stage-header {
    background: rgba(37, 99, 235, 0.05);
}

.stage-card.pending .stage-header {
    background: rgba(44, 44, 44, 0.02);
}

.stage-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #2C2C2C;
}

.stage-body {
    padding: 1rem;
    text-align: center;
}

.stage-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
}

.icon-completed {
    background: #16a34a;
    color: white;
}

.icon-active {
    background: #8B1538;
    color: white;
}

.icon-pending {
    background: rgba(44, 44, 44, 0.1);
    color: rgba(44, 44, 44, 0.5);
}

.stage-icon .material-symbols-outlined {
    font-size: 20px;
}

.stage-status {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.status-text {
    font-size: 0.8rem;
    font-weight: 600;
}

    .status-text.completed {
        color: #16a34a;
    }

    .status-text.active {
        color: #8B1538;
    }

    .status-text.pending {
        color: rgba(44, 44, 44, 0.5);
    }

.status-date {
    font-size: 0.75rem;
    color: rgba(44, 44, 44, 0.5);
}

/* Progress Container */
.progress-container {
    margin-top: 1.25rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: rgba(44, 44, 44, 0.7);
    margin-bottom: 0.5rem;
}

.progress-bar {
    height: 8px;
    background: rgba(44, 44, 44, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #8B1538, #C9A962);
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Stages Loading/Error */
.stages-loading,
.stages-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 2rem;
    text-align: center;
}

.stages-error {
    background: rgba(234, 179, 8, 0.05);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 8px;
}

    .stages-error .material-symbols-outlined {
        font-size: 1.5rem;
        color: #d97706;
    }

    .stages-error p {
        margin: 0;
        color: #92400e;
        font-size: 0.9rem;
    }

/* No Stages */
.no-stages {
    text-align: center;
    padding: 2rem;
    background: rgba(44, 44, 44, 0.02);
    border-radius: 8px;
}

    .no-stages .material-symbols-outlined {
        font-size: 2rem;
        color: rgba(44, 44, 44, 0.3);
        margin-bottom: 0.5rem;
    }

    .no-stages h5 {
        margin: 0 0 0.5rem 0;
        color: #2C2C2C;
    }

    .no-stages p {
        margin: 0 0 1rem 0;
        font-size: 0.9rem;
        color: rgba(44, 44, 44, 0.6);
    }

/* Warning Note */
.warning-note {
    display: flex;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(234, 179, 8, 0.1);
    border: 1px solid rgba(234, 179, 8, 0.2);
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

    .warning-note .material-symbols-outlined {
        font-size: 1.25rem;
        color: #d97706;
        flex-shrink: 0;
    }

    .warning-note strong {
        display: block;
        color: #92400e;
        font-size: 0.9rem;
        margin-bottom: 0.25rem;
    }

    .warning-note p {
        margin: 0;
        font-size: 0.85rem;
        color: #a16207;
    }

/* Modal Large */
.modal-lg {
    max-width: 780px;
    width: 95%;
}

/* Form Hint */
.form-hint {
    display: block;
    font-size: 0.75rem;
    color: rgba(44, 44, 44, 0.5);
    margin-top: 0.25rem;
}

/* File Input */
.file-input {
    padding: 0.5rem;
}

/* Button Small */
.btn-sm {
    padding: 0.375rem 0.75rem;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .app-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .app-actions-col {
        align-items: flex-start;
    }

    .stages-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .page-header-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .stages-grid {
        grid-template-columns: 1fr !important;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .btn-action {
        width: 100%;
        justify-content: center;
    }
}

/* ============================================
   ACCOUNT TYPE SELECTOR MODAL
   ============================================ */

/* ============================================
   DOWNLOAD CERTIFICATE - STATUS CARD
   ============================================ */

.certificate-status {
    text-align: center;
    padding: 3rem 2rem;
}

    .certificate-status .status-icon {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
    }

        .certificate-status .status-icon.success {
            background: linear-gradient(135deg, #8B1538, #a91d45);
            box-shadow: 0 8px 24px rgba(139, 21, 56, 0.3);
        }

        .certificate-status .status-icon.error {
            background: linear-gradient(135deg, #dc2626, #ef4444);
            box-shadow: 0 8px 24px rgba(220, 38, 38, 0.3);
        }

        .certificate-status .status-icon .material-symbols-outlined {
            font-size: 2.5rem;
            color: #FFFFFF;
        }

    .certificate-status .status-title {
        font-size: 1.5rem;
        font-weight: 700;
        color: #2C2C2C;
        margin: 0 0 0.75rem 0;
    }

    .certificate-status .status-message {
        font-size: 1rem;
        color: rgba(44, 44, 44, 0.7);
        margin: 0 0 2rem 0;
    }

    .certificate-status .status-actions {
        display: flex;
        gap: 1rem;
        justify-content: center;
        flex-wrap: wrap;
    }

    .certificate-status.error .status-title {
        color: #dc2626;
    }

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: rgba(139, 21, 56, 0.1);
    border: 1px solid rgba(139, 21, 56, 0.2);
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #8B1538;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .btn-back:hover {
        background: rgba(139, 21, 56, 0.15);
        border-color: rgba(139, 21, 56, 0.3);
    }

    .btn-back .material-symbols-outlined {
        font-size: 1.125rem;
    }
/* ============================================
   ELIGIBILITY LIST - ARABIC RTL STYLES
   ============================================ */
html[dir="rtl"] .eligibility-list,
[dir="rtl"] .eligibility-list,
html[lang="ar"] .eligibility-list {
    text-align: right;
    direction: rtl;
}

    html[dir="rtl"] .eligibility-list li,
    [dir="rtl"] .eligibility-list li,
    html[lang="ar"] .eligibility-list li {
        flex-direction: row-reverse;
        text-align: right;
    }

        html[dir="rtl"] .eligibility-list li:hover,
        [dir="rtl"] .eligibility-list li:hover,
        html[lang="ar"] .eligibility-list li:hover {
            transform: translateX(-5px);
        }

    html[dir="rtl"] .eligibility-list .material-symbols-outlined,
    [dir="rtl"] .eligibility-list .material-symbols-outlined,
    html[lang="ar"] .eligibility-list .material-symbols-outlined {
        margin-left: 0;
        margin-right: 0;
    }

    /* Nested lists RTL support */
    html[dir="rtl"] .eligibility-list ul,
    [dir="rtl"] .eligibility-list ul,
    html[lang="ar"] .eligibility-list ul {
        padding-right: 1.5rem;
        padding-left: 0;
    }
