:root {
    --anil-color: #4A5A8D;
    --anil-dark: #21417C;
    --anil-soft: #eef1f8;
    --anil-green: #0d9488;
    --gray-soft: #f8f9fa;
    --text-dark: #1e293b;
    --text-muted: #64748b;
}

html, body {
    direction: rtl !important;
    text-align: right;
}

body {
    font-family: 'Vazirmatn', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: #fcfcfd;
    color: var(--text-dark);
    overflow-x: hidden;
    line-height: 1.8;
    -webkit-tap-highlight-color: transparent;
}

/* Responsive Mobile Header */
.mobile-header {
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0.75rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1020;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.header-logo-img {
    height: 38px;
    max-width: 160px;
    object-fit: contain;
}

.anil-logo-icon {
    width: 40px;
    height: 40px;
    background-color: var(--anil-color);
    color: #ffffff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 4px 10px rgba(74, 90, 141, 0.25);
}

/* Hero Banner Styling */
.hero-banner-wrapper {
    width: 100%;
    overflow: hidden;
    border-radius: 1.5rem;
}

.hero-banner-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 1.5rem;
    display: block;
    transition: transform 0.3s ease;
}

.hero-banner-wrapper:hover .hero-banner-img {
    transform: scale(1.01);
}

/* Action Nav Buttons */
.btn-nav-action {
    font-size: 0.85rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 50rem;
    transition: all 0.25s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    text-decoration: none;
}

.btn-anil-fill {
    background-color: var(--anil-color);
    color: #ffffff;
    border: 1.5px solid var(--anil-color);
}

.btn-anil-fill:hover, .btn-anil-fill:active {
    background-color: var(--anil-dark);
    color: #ffffff;
    border-color: var(--anil-dark);
}

.btn-anil-outline {
    background-color: #ffffff;
    color: var(--anil-color);
    border: 1.5px solid var(--anil-color);
}

.btn-anil-outline:hover, .btn-anil-outline:active {
    background-color: var(--anil-soft);
    color: var(--anil-dark);
}

/* Welcome Banner Card */
.welcome-card {
    background: linear-gradient(135deg, #ffffff 0%, #f4f6fb 100%);
    border: 1px solid #e0e6ed;
    border-radius: 1.75rem;
    box-shadow: 0 10px 30px rgba(74, 90, 141, 0.05);
}

.step-pill {
    background: var(--anil-soft);
    color: var(--anil-dark);
    border-radius: 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(74, 90, 141, 0.12);
    transition: transform 0.2s ease;
}

.step-pill:hover {
    transform: translateY(-2px);
}

.step-number {
    width: 28px;
    height: 28px;
    background-color: var(--anil-color);
    color: #ffffff;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Search Container */
.search-box-wrapper {
    background: #ffffff;
    border: 2px solid #cbd5e1;
    border-radius: 1.25rem;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
}

.search-box-wrapper:focus-within {
    border-color: var(--anil-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 90, 141, 0.15);
}

.filter-chip {
    border-radius: 50rem;
    padding: 0.35rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: var(--text-dark);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip.active, .filter-chip:hover {
    background-color: var(--anil-color);
    color: #ffffff;
    border-color: var(--anil-color);
}

/* Organization Card UI */
.org-card {
    background: #ffffff;
    border-radius: 1.5rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
}

.org-card:hover {
    transform: translateY(-5px);
    border-color: var(--anil-color);
    box-shadow: 0 15px 30px rgba(74, 90, 141, 0.12);
}

.org-avatar-circle {
    width: 60px;
    height: 60px;
    border-radius: 1.25rem;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    flex-shrink: 0;
}

.org-avatar-circle img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.plan-badge-active {
    background-color: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
    font-weight: 700;
    border-radius: 50rem;
    padding: 0.35rem 0.85rem;
    font-size: 0.78rem;
}

/* Modal Custom Styling */
.activation-modal .modal-content,
.success-modal .modal-content {
    border-radius: 1.75rem;
    border: none;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.activation-modal .modal-body,
.success-modal .modal-body {
    padding: 2.25rem 2rem;
}

.modal-org-icon {
    width: 80px;
    height: 80px;
    border-radius: 1.25rem;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.modal-org-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.national-id-input {
    border: 2px solid #cbd5e1;
    border-radius: 0.85rem;
    padding: 0.85rem 1rem;
    font-size: 1.2rem;
    text-align: center;
    letter-spacing: 2px;
    font-weight: 700;
    color: #1e293b;
    transition: all 0.25s ease;
}

.national-id-input:focus {
    border-color: var(--anil-green);
    box-shadow: 0 0 0 0.25rem rgba(13, 148, 136, 0.15);
    outline: none;
}

.btn-modal-submit {
    background-color: var(--anil-green);
    color: #ffffff;
    border: none;
    border-radius: 0.85rem;
    padding: 0.85rem;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.btn-modal-submit:hover {
    background-color: #0f766e;
    color: #ffffff;
}

.btn-modal-cancel {
    border: 1px solid #cbd5e1;
    background: #ffffff;
    color: #64748b;
    border-radius: 0.85rem;
    padding: 0.85rem;
    font-weight: 700;
    transition: all 0.2s ease;
}

.btn-modal-cancel:hover {
    background: #f1f5f9;
    color: #334155;
}

.btn-shop-redirect {
    background-color: var(--anil-color);
    color: #ffffff;
    border: none;
    border-radius: 0.85rem;
    padding: 0.9rem;
    font-weight: 700;
    font-size: 0.95rem;
    transition: all 0.25s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-shop-redirect:hover {
    background-color: var(--anil-dark);
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(74, 90, 141, 0.3);
}

/* Dashed Partnership Box */
.collab-dashed-box {
    background: #f8fafc;
    border: 2px dashed var(--anil-color);
    border-radius: 1.75rem;
}

/* Floating Elements */
.floating-icon {
    position: fixed;
    z-index: 1000;
    left: 30px;
    bottom: calc(110px + (var(--i) * 75px));
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    background-color: transparent;
    overflow: hidden;
    animation: generic-pulse 2s infinite;
    animation-delay: calc(var(--i) * 0.5s);
}

.floating-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.floating-icon:hover {
    transform: scale(1.1);
    animation-play-state: paused;
}

@keyframes generic-pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0.3);
    }
    70% {
        transform: scale(1);
        box-shadow: 0 0 0 12px rgba(0, 0, 0, 0);
    }
    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
    }
}

@media (max-width: 767px) {
    .floating-icon {
        left: 12px;
        bottom: calc(140px + (var(--i) * 75px));
    }
}