
/* ----- reset & base ----- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --navy: #0b1a2f;
    --navy-light: #1e2f4a;
    --white: #ffffff;
    --off-white: #f8faff;
    --gray-100: #f0f4fe;
    --gray-200: #e2e8f5;
    --gray-500: #6b7a8f;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
    --purple: #7c3aed;
    --cyan: #06b6d4;
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
    --gradient-soft: linear-gradient(135deg, #dbeafe 0%, #ede9fe 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(37, 99, 235, 0.10);
    --shadow-lg: 0 16px 40px rgba(37, 99, 235, 0.15);
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --transition: 0.25s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Vazirmatn', system-ui, -apple-system, sans-serif;
    background: var(--off-white);
    color: var(--navy);
    line-height: 1.8;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ----- utility ----- */
.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

    .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(37, 99, 235, 0.45);
    }

.btn-outline {
    background: var(--white);
    color: var(--navy);
    border: 2px solid var(--gray-200);
}

    .btn-outline:hover {
        border-color: var(--blue);
        color: var(--blue);
        transform: translateY(-3px);
        box-shadow: var(--shadow-md);
    }

.section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 48px;
    position: relative;
}

    .section-title::after {
        content: '';
        display: block;
        width: 64px;
        height: 4px;
        border-radius: 4px;
        background: var(--gradient-primary);
        margin: 16px auto 0;
    }

/* ----- scroll-reveal ----- */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

    .reveal.visible {
        opacity: 1;
        transform: translateY(0);
    }

/* ----- header ----- */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: var(--transition);
}

    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: var(--gray-200);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

/* logo */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--navy);
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* desktop nav */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    margin-left: 20px;
}

    .nav-desktop > li {
        position: relative;
    }

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--navy-light);
    transition: var(--transition);
}

    .nav-link i {
        font-size: 0.85rem;
        color: var(--gray-500);
        transition: var(--transition);
    }

    .nav-link:hover {
        background: var(--gray-100);
        color: var(--blue);
    }

        .nav-link:hover i {
            color: var(--blue);
        }

/* dropdown */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--navy-light);
    transition: var(--transition);
}

    .dropdown-toggle i {
        font-size: 0.85rem;
        color: var(--gray-500);
        transition: var(--transition);
    }

    .dropdown-toggle:hover {
        background: var(--gray-100);
        color: var(--blue);
    }

    .dropdown-toggle .chevron {
        font-size: 0.65rem;
        margin-right: 4px;
        transition: transform var(--transition);
    }

.dropdown.open .dropdown-toggle .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--navy-light);
    transition: var(--transition);
}

    .dropdown-item i {
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }

    .dropdown-item:hover {
        background: var(--gray-100);
        color: var(--blue);
    }

    .dropdown-item.telegram i {
        color: #229ED9;
    }

    .dropdown-item.instagram i {
        color: #E1306C;
    }

/* header actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

    .header-actions .btn {
        padding: 9px 20px;
        font-size: 0.88rem;
    }

/* hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gray-100);
    transition: var(--transition);
}

    .hamburger span {
        display: block;
        width: 20px;
        height: 2.5px;
        border-radius: 2px;
        background: var(--navy);
        transition: var(--transition);
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

/* mobile nav */
.mobile-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    z-index: 999;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

    .mobile-nav.open {
        transform: translateY(0);
    }

    .mobile-nav .nav-link,
    .mobile-nav .dropdown-toggle {
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: 0.95rem;
    }

    .mobile-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-100);
        max-height: 0;
        overflow: hidden;
        padding: 0 8px;
        transition: max-height 0.3s ease, visibility 0.3s, padding 0.3s;
    }

    .mobile-nav .dropdown.open .dropdown-menu {
        visibility: visible;
        max-height: 200px;
        padding: 8px;
    }

    .mobile-nav .header-actions {
        margin-top: 12px;
        flex-direction: column;
        gap: 10px;
    }

        .mobile-nav .header-actions .btn {
            width: 100%;
            padding: 13px;
        }


/* ============================================================
   HERO SECTION - HOME PAGE
   ============================================================ */

.hero-section {
    position: relative;
    padding: 140px 0 100px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 50%, #eefaff 100%);
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
}

    /* حباب‌های تزئینی */
    .hero-section::before,
    .hero-section::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        filter: blur(50px);
        z-index: 0;
    }

    .hero-section::before {
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, transparent 70%);
        top: -180px;
        right: -120px;
        animation: heroBlob 12s ease-in-out infinite;
    }

    .hero-section::after {
        width: 450px;
        height: 450px;
        background: radial-gradient(circle, rgba(124,58,237,0.15) 0%, transparent 70%);
        bottom: -180px;
        left: -120px;
        animation: heroBlob 14s 1s ease-in-out infinite reverse;
    }

@keyframes heroBlob {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(-30px, 30px) scale(1.08);
    }
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    align-items: center;
    gap: 60px;
}

/* ===== محتوای متنی ===== */
.hero-content {
    animation: heroSlideUp 0.9s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes heroSlideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--gray-200);
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--blue);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 14px rgba(37,99,235,0.08);
}

    .hero-badge i {
        color: var(--purple);
        font-size: 0.9rem;
        animation: bellRing 2.5s ease-in-out infinite;
    }

@keyframes bellRing {
    0%, 100% {
        transform: rotate(0);
    }

    10%, 30% {
        transform: rotate(-12deg);
    }

    20%, 40% {
        transform: rotate(12deg);
    }
}

.hero-title {
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--navy);
    margin-bottom: 20px;
    letter-spacing: -0.5px;
}

    .hero-title .gradient-word {
        background: var(--gradient-primary);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        display: inline-block;
        position: relative;
    }

        .hero-title .gradient-word::after {
            content: '';
            position: absolute;
            bottom: -4px;
            right: 0;
            left: 0;
            height: 8px;
            background: var(--gradient-primary);
            border-radius: 4px;
            opacity: 0.2;
        }

.hero-description {
    font-size: 1.1rem;
    color: var(--gray-500);
    line-height: 1.95;
    margin-bottom: 36px;
    max-width: 540px;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

    .hero-buttons .btn {
        padding: 14px 32px;
        font-size: 0.95rem;
    }

    .hero-buttons .btn-primary {
        box-shadow: 0 10px 28px rgba(37,99,235,0.35);
    }

/* ===== آمار کوچیک ===== */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.hero-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.hero-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.2;
}

    .hero-stat-value .unit {
        font-size: 1rem;
        color: var(--blue);
        margin-right: 2px;
    }

.hero-stat-label {
    font-size: 0.82rem;
    color: var(--gray-500);
    font-weight: 500;
}

/* ===== سمت تصویری ===== */
.hero-visual {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroSlideUp 1.1s 0.15s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* حلقه‌های چرخان */
.hero-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px dashed rgba(37,99,235,0.15);
    animation: ringRotate 40s linear infinite;
}

    .hero-ring.ring-1 {
        width: 380px;
        height: 380px;
    }

    .hero-ring.ring-2 {
        width: 300px;
        height: 300px;
        border-style: solid;
        border-color: rgba(124,58,237,0.1);
        animation-direction: reverse;
        animation-duration: 50s;
    }

    .hero-ring.ring-3 {
        width: 220px;
        height: 220px;
        border: none;
        background: var(--gradient-soft);
        opacity: 0.55;
        animation: none;
    }

@keyframes ringRotate {
    to {
        transform: rotate(360deg);
    }
}

/* آیکون مرکزی */
.hero-center-icon {
    width: 100px;
    height: 100px;
    border-radius: 28px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    color: var(--white);
    box-shadow: 0 20px 50px rgba(37,99,235,0.4), inset 0 -3px 10px rgba(0,0,0,0.15);
    position: relative;
    z-index: 2;
    animation: heroPulse 3s ease-in-out infinite;
}

@keyframes heroPulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.06);
    }
}

/* کارت‌های شناور */
.hero-float-card {
    position: absolute;
    background: var(--white);
    border-radius: 18px;
    padding: 14px 18px;
    box-shadow: 0 12px 40px rgba(37,99,235,0.15);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 3;
    min-width: 200px;
    backdrop-filter: blur(10px);
}

    .hero-float-card .float-icon {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.1rem;
        color: var(--white);
        flex-shrink: 0;
    }

        .hero-float-card .float-icon.car {
            background: linear-gradient(135deg, #3b82f6, #2563eb);
        }

        .hero-float-card .float-icon.loan {
            background: linear-gradient(135deg, #a78bfa, #7c3aed);
        }

        .hero-float-card .float-icon.job {
            background: linear-gradient(135deg, #22d3ee, #06b6d4);
        }

        .hero-float-card .float-icon.house {
            background: linear-gradient(135deg, #f472b6, #db2777);
        }

    .hero-float-card .float-text {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .hero-float-card .float-text strong {
            font-size: 0.85rem;
            font-weight: 700;
            color: var(--navy);
        }

        .hero-float-card .float-text span {
            font-size: 0.72rem;
            color: var(--gray-500);
        }

    /* موقعیت کارت‌ها */
    .hero-float-card.card-1 {
        top: 6%;
        right: 0;
        animation: floatCard 5s ease-in-out infinite;
    }

    .hero-float-card.card-2 {
        top: 32%;
        left: -10px;
        animation: floatCard 6s 0.8s ease-in-out infinite;
    }

    .hero-float-card.card-3 {
        bottom: 18%;
        right: 8%;
        animation: floatCard 5.5s 1.6s ease-in-out infinite;
    }

    .hero-float-card.card-4 {
        bottom: 4%;
        left: 8%;
        animation: floatCard 6.5s 0.4s ease-in-out infinite;
    }

@keyframes floatCard {
    0%, 100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-14px) rotate(-1deg);
    }
}

/* ===== ریسپانسیو ===== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }

    .hero-title {
        font-size: 2.6rem;
    }

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        height: 400px;
        max-width: 500px;
        margin: 0 auto;
        width: 100%;
    }
}

@media (max-width: 580px) {
    .hero-section {
        padding: 100px 0 60px;
    }

    .hero-title {
        font-size: 1.9rem;
    }

    .hero-description {
        font-size: 0.95rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 14px;
    }

    .hero-visual {
        height: 360px;
    }

    .hero-ring.ring-1 {
        width: 280px;
        height: 280px;
    }

    .hero-ring.ring-2 {
        width: 220px;
        height: 220px;
    }

    .hero-ring.ring-3 {
        width: 160px;
        height: 160px;
    }

    .hero-center-icon {
        width: 80px;
        height: 80px;
        font-size: 2rem;
        border-radius: 24px;
    }

    .hero-float-card {
        min-width: 160px;
        padding: 10px 14px;
        border-radius: 14px;
    }

        .hero-float-card .float-icon {
            width: 34px;
            height: 34px;
            font-size: 0.9rem;
        }

        .hero-float-card .float-text strong {
            font-size: 0.75rem;
        }

        .hero-float-card .float-text span {
            font-size: 0.65rem;
        }

        .hero-float-card.card-1 {
            top: 2%;
            right: 0;
        }

        .hero-float-card.card-2 {
            top: 30%;
            left: -8px;
        }

        .hero-float-card.card-3 {
            bottom: 20%;
            right: 4%;
        }

        .hero-float-card.card-4 {
            display: none;
        }

    .hero-stats {
        gap: 20px;
    }

    .hero-stat-value {
        font-size: 1.3rem;
    }

    .hero-stat-label {
        font-size: 0.72rem;
    }
}

/* ===== prefers-reduced-motion ===== */
@media (prefers-reduced-motion: reduce) {
    .hero-ring,
    .hero-float-card,
    .hero-center-icon,
    .hero-badge i {
        animation: none !important;
    }

    .hero-content,
    .hero-visual {
        animation: none !important;
        opacity: 1;
        transform: none;
    }
}




@keyframes heroEnter {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--blue);
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}

    .hero-badge i {
        color: var(--purple);
    }

.hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.35;
    margin-bottom: 20px;
    color: var(--navy);
}

.hero p {
    font-size: 1.1rem;
    color: var(--gray-500);
    max-width: 520px;
    margin-bottom: 36px;
    line-height: 1.9;
}

.hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* hero illustration */
.hero-visual {
    flex: 1 1 50%;
    position: relative;
    min-height: 380px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: heroEnter 1.1s 0.2s ease both;
}

.visual-ring {
    position: absolute;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    border: 2px dashed rgba(37, 99, 235, 0.15);
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.visual-ring-2 {
    position: absolute;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: var(--gradient-soft);
    opacity: 0.7;
}

/* floating notification cards */
.notif-card {
    position: absolute;
    background: var(--white);
    border-radius: 18px;
    padding: 16px 20px;
    box-shadow: 0 12px 36px rgba(37, 99, 235, 0.14);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 210px;
    z-index: 2;
}

    .notif-card .notif-icon {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.15rem;
        color: var(--white);
        flex-shrink: 0;
    }

.notif-icon.blue {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.notif-icon.purple {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.notif-icon.cyan {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

.notif-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .notif-text strong {
        font-size: 0.88rem;
        font-weight: 700;
        color: var(--navy);
    }

    .notif-text span {
        font-size: 0.75rem;
        color: var(--gray-500);
    }

.notif-1 {
    top: 8%;
    right: 0;
    animation: floatY 4s ease-in-out infinite;
}

.notif-2 {
    bottom: 22%;
    left: 0;
    animation: floatY 5s 0.6s ease-in-out infinite;
}

.notif-3 {
    bottom: 4%;
    right: 12%;
    animation: floatY 4.5s 1.2s ease-in-out infinite;
}

@keyframes floatY {
    0%, 100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-14px);
    }
}

/* ----- categories ----- */
.categories {
    padding: 90px 0;
    background: var(--white);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.category-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

    .category-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background: var(--gradient-soft);
        opacity: 0;
        transition: opacity 0.3s ease;
        z-index: 0;
    }

    .category-card:hover {
        transform: translateY(-8px);
        border-color: transparent;
        box-shadow: var(--shadow-lg);
    }

        .category-card:hover::before {
            opacity: 1;
        }

    .category-card > * {
        position: relative;
        z-index: 1;
    }

.category-icon {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.6rem;
    color: var(--white);
    transition: var(--transition);
}

.category-card:hover .category-icon {
    transform: scale(1.08) rotate(-4deg);
}

.icon-car {
    background: linear-gradient(135deg, #3b82f6, #2563eb);
}

.icon-loan {
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
}

.icon-house {
    background: linear-gradient(135deg, #22d3ee, #06b6d4);
}

.icon-job {
    background: linear-gradient(135deg, #f472b6, #db2777);
}

.category-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--navy);
}

.category-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.8;
}

/* ----- latest opportunities ----- */
.latest {
    padding: 90px 0;
    background: var(--off-white);
}

.opportunities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.opp-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: var(--transition);
    position: relative;
}

    .opp-card:hover {
        transform: translateY(-6px);
        box-shadow: var(--shadow-lg);
        border-color: var(--blue-soft);
    }

.opp-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.opp-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--blue);
    background: var(--blue-soft);
    padding: 5px 12px;
    border-radius: 50px;
}

.opp-status {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 50px;
}

.status-demo {
    background: #fef3c7;
    color: #b45309;
}

.status-open {
    background: #dcfce7;
    color: #15803d;
}

.opp-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
}

.opp-card p {
    font-size: 0.88rem;
    color: var(--gray-500);
    line-height: 1.9;
    flex-grow: 1;
}

.opp-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--gray-200);
}

.opp-deadline {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    color: var(--gray-500);
}

    .opp-deadline i {
        color: var(--purple);
    }

.opp-card .btn {
    padding: 8px 18px;
    font-size: 0.82rem;
    border-radius: 10px;
}

/* ----- footer ----- */
.footer {
    background: var(--navy);
    color: #cbd5e1;
    padding: 64px 0 0;
    position: relative;
    overflow: hidden;
}

    .footer::before {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.15) 0%, transparent 70%);
        top: -100px;
        left: -100px;
        pointer-events: none;
    }

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 48px;
    position: relative;
    z-index: 1;
    padding-bottom: 48px;
}

.footer-brand .logo {
    color: var(--white);
    margin-bottom: 16px;
}

.footer-brand p {
    font-size: 0.9rem;
    line-height: 1.9;
    color: #94a3b8;
    max-width: 340px;
}

.footer h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-links a {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 0.88rem;
        color: #94a3b8;
        transition: var(--transition);
    }

        .footer-links a:hover {
            color: var(--white);
            padding-right: 4px;
        }

    .footer-links i {
        font-size: 0.7rem;
        color: var(--cyan);
    }

.footer-social {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .footer-social a {
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 0.88rem;
        color: #94a3b8;
        padding: 10px 14px;
        border-radius: 12px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08);
        transition: var(--transition);
    }

        .footer-social a:hover {
            background: rgba(255, 255, 255, 0.1);
            color: var(--white);
        }

    .footer-social .telegram i {
        color: #38bdf8;
    }

    .footer-social .instagram i {
        color: #f472b6;
    }

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 22px 0;
    text-align: center;
    font-size: 0.82rem;
    color: #64748b;
    position: relative;
    z-index: 1;
}

/* ----- responsive ----- */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.3rem;
    }

    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .opportunities-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-actions {
        display: none;
    }

    .hero {
        padding: 120px 0 60px;
    }

    .hero-inner {
        flex-direction: column;
        gap: 40px;
    }

    .hero-content {
        text-align: center;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-visual {
        min-height: 320px;
        width: 100%;
    }

    .section-title {
        font-size: 1.6rem;
    }

    .categories {
        padding: 64px 0;
    }

    .latest {
        padding: 64px 0;
    }

    .opportunities-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 18px;
    }

    .categories-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 1.7rem;
    }

    .hero p {
        font-size: 0.98rem;
    }

    .notif-card {
        min-width: 180px;
        padding: 12px 16px;
    }

    .notif-text strong {
        font-size: 0.8rem;
    }

    .opp-footer {
        flex-direction: column;
        align-items: stretch;
    }

        .opp-footer .btn {
            width: 100%;
        }

    .visual-ring {
        width: 260px;
        height: 260px;
    }

    .visual-ring-2 {
        width: 190px;
        height: 190px;
    }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-content, .hero-visual {
        animation: none;
    }

    .notif-card {
        animation: none;
    }
}




/* ============================================================
   ADMIN CRUD STYLES - اضافه شده برای صفحات مدیریت
   ============================================================ */

/* page header */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 32px 0 24px;
    flex-wrap: wrap;
}

    .page-header h2 {
        font-size: 1.5rem;
        font-weight: 800;
        color: var(--navy);
        display: flex;
        align-items: center;
        gap: 10px;
    }

        .page-header h2 i {
            color: var(--blue);
        }

/* table */
.table-wrapper {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table-responsive {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    text-align: right;
}

    .data-table thead {
        background: var(--gradient-soft);
    }

    .data-table th {
        padding: 14px 18px;
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--navy);
        white-space: nowrap;
    }

    .data-table td {
        padding: 14px 18px;
        font-size: 0.9rem;
        color: var(--navy-light);
        border-top: 1px solid var(--gray-200);
    }

    .data-table tbody tr {
        transition: var(--transition);
    }

        .data-table tbody tr:hover {
            background: var(--gray-100);
        }

    .data-table .actions {
        display: flex;
        gap: 8px;
        flex-wrap: wrap;
    }

.btn-sm {
    padding: 6px 14px;
    font-size: 0.78rem;
    border-radius: 8px;
}

.btn-danger {
    background: linear-gradient(135deg, #f87171, #dc2626);
    color: #fff;
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.25);
}

    .btn-danger:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 18px rgba(220, 38, 38, 0.35);
    }

.btn-warning {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: #fff;
}

    .btn-warning:hover {
        transform: translateY(-2px);
    }

/* pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

    .pagination a,
    .pagination span {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 38px;
        height: 38px;
        padding: 0 12px;
        border-radius: 10px;
        font-size: 0.85rem;
        font-weight: 600;
        border: 1px solid var(--gray-200);
        background: var(--white);
        color: var(--navy);
        transition: var(--transition);
    }

        .pagination a:hover {
            border-color: var(--blue);
            color: var(--blue);
            background: var(--gray-100);
        }

    .pagination .active {
        background: var(--gradient-primary);
        color: #fff;
        border-color: transparent;
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
    }

    .pagination .disabled {
        opacity: 0.5;
        pointer-events: none;
    }

/* form card */
.form-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 20px;
}

    .form-group label {
        display: block;
        font-size: 0.9rem;
        font-weight: 600;
        color: var(--navy);
        margin-bottom: 8px;
    }

.form-control {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1.5px solid var(--gray-200);
    background: var(--off-white);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--navy);
    transition: var(--transition);
}

    .form-control:focus {
        outline: none;
        border-color: var(--blue);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7a8f' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 16px center;
    padding-left: 40px;
}

/* validation */
.text-danger {
    color: #dc2626;
    font-size: 0.8rem;
    margin-top: 4px;
    display: block;
}

.validation-summary {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 20px;
    color: #b91c1c;
    font-size: 0.85rem;
}

    .validation-summary ul {
        list-style: disc;
        padding-right: 20px;
    }

/* empty state */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-500);
}

    .empty-state i {
        font-size: 3rem;
        color: var(--gray-200);
        margin-bottom: 16px;
    }

/* alerts */
.alert {
    padding: 14px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.alert-success {
    background: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}



/* ============================================================
   SEARCH BOX STYLES
   ============================================================ */

.search-box {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.search-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 220px;
}

.search-input-wrapper i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gray-500);
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 12px 44px 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--gray-200);
  background: var(--off-white);
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  transition: var(--transition);
}

.search-input:focus {
  outline: none;
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.search-form .btn {
  padding: 12px 24px;
}

.btn-clear {
  background: var(--gray-100);
  color: var(--gray-500);
  padding: 12px 16px;
  border-radius: 12px;
  transition: var(--transition);
}

.btn-clear:hover {
  background: #fee2e2;
  color: #dc2626;
}

.search-info {
  text-align: center;
  font-size: 0.85rem;
  color: var(--gray-500);
  margin-bottom: 16px;
}

.search-info strong {
  color: var(--blue);
}

@media (max-width: 520px) {
  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  .search-form .btn {
    width: 100%;
  }
}


/* ============================================================
   BADGE COUNT (برای تعداد زیردسته‌ها)
   ============================================================ */
.badge-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 8px;
    border-radius: 50px;
    background: var(--blue-soft);
    color: var(--blue);
    font-size: 0.78rem;
    font-weight: 700;
}




/* ============================================================
   OPPORTUNITY DYNAMIC FORM STYLES
   ============================================================ */

/* scope radio group */
.scope-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.scope-option {
    flex: 1;
    min-width: 160px;
    position: relative;
}

    .scope-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .scope-option label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px;
        border: 1.5px solid var(--gray-200);
        border-radius: 12px;
        background: var(--off-white);
        cursor: pointer;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--gray-500);
        transition: var(--transition);
        text-align: center;
    }

    .scope-option input:checked + label {
        border-color: var(--blue);
        background: var(--gradient-soft);
        color: var(--blue);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
    }

    .scope-option label:hover {
        border-color: var(--blue);
    }

/* scope section */
.scope-section {
    display: none;
}

    .scope-section.active {
        display: block;
        animation: fadeSlideIn 0.3s ease;
    }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* searchable multi-select */
.searchable-select {
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    background: var(--off-white);
    overflow: hidden;
    transition: var(--transition);
}

    .searchable-select:focus-within {
        border-color: var(--blue);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

.searchable-select-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--navy);
    outline: none;
    border-bottom: 1px solid var(--gray-200);
}

.searchable-select-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
}

/* multi-select item */
.ms-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--navy-light);
    transition: var(--transition);
}

    .ms-item:hover {
        background: var(--gray-100);
    }

    .ms-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--blue);
        cursor: pointer;
        flex-shrink: 0;
    }

    .ms-item.hidden {
        display: none;
    }

/* tree (province with cities) */
.tree-province {
    border-radius: 8px;
    margin-bottom: 4px;
    overflow: hidden;
}

.tree-province-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--gray-100);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.88rem;
}

    .tree-province-header:hover {
        background: var(--blue-soft);
    }

    .tree-province-header .tree-toggle {
        font-size: 0.7rem;
        color: var(--gray-500);
        transition: transform 0.25s ease;
    }

.tree-province.expanded .tree-toggle {
    transform: rotate(-90deg);
}

.tree-province-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
}

.tree-cities {
    display: none;
    padding: 6px 0 6px 34px;
}

.tree-province.expanded .tree-cities {
    display: block;
    animation: fadeSlideIn 0.25s ease;
}

.tree-cities .ms-item {
    font-weight: 400;
    font-size: 0.85rem;
}

.tree-cities.hidden,
.tree-province.hidden {
    display: none;
}

/* selected chips summary */
.selected-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
    background: var(--off-white);
    border-radius: 10px;
    border: 1px dashed var(--gray-200);
    min-height: 42px;
}

    .selected-summary:empty::before {
        content: "هیچ موردی انتخاب نشده است";
        color: var(--gray-500);
        font-size: 0.8rem;
        align-self: center;
    }

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-soft);
    color: var(--blue);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .summary-chip button {
        color: var(--blue);
        font-size: 0.7rem;
        display: flex;
        align-items: center;
    }

        .summary-chip button:hover {
            color: #dc2626;
        }

/* form section title */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 24px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

    .form-section-title i {
        color: var(--blue);
    }

/* image preview */
.image-preview {
    width: 100%;
    max-width: 240px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    margin-top: 10px;
    display: none;
}

    .image-preview.visible {
        display: block;
    }

/* tags hint */
.form-hint {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 6px;
}

/* form actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}



/* ============================================================
   OPPORTUNITY DYNAMIC FORM STYLES
   ============================================================ */

/* scope radio group */
.scope-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.scope-option {
    flex: 1;
    min-width: 160px;
    position: relative;
}

    .scope-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .scope-option label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px;
        border: 1.5px solid var(--gray-200);
        border-radius: 12px;
        background: var(--off-white);
        cursor: pointer;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--gray-500);
        transition: var(--transition);
        text-align: center;
    }

    .scope-option input:checked + label {
        border-color: var(--blue);
        background: var(--gradient-soft);
        color: var(--blue);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
    }

    .scope-option label:hover {
        border-color: var(--blue);
    }

/* scope section */
.scope-section {
    display: none;
}

    .scope-section.active {
        display: block;
        animation: fadeSlideIn 0.3s ease;
    }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* searchable multi-select */
.searchable-select {
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    background: var(--off-white);
    overflow: hidden;
    transition: var(--transition);
}

    .searchable-select:focus-within {
        border-color: var(--blue);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

.searchable-select-input {
    width: 100%;
    padding: 12px 16px;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--navy);
    outline: none;
    border-bottom: 1px solid var(--gray-200);
}

.searchable-select-list {
    max-height: 240px;
    overflow-y: auto;
    padding: 6px;
}

/* multi-select item */
.ms-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--navy-light);
    transition: var(--transition);
}

    .ms-item:hover {
        background: var(--gray-100);
    }

    .ms-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--blue);
        cursor: pointer;
        flex-shrink: 0;
    }

    .ms-item.hidden {
        display: none;
    }

/* tree (province with cities) */
.tree-province {
    border-radius: 8px;
    margin-bottom: 4px;
    overflow: hidden;
}

.tree-province-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--gray-100);
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
    font-size: 0.88rem;
}

    .tree-province-header:hover {
        background: var(--blue-soft);
    }

    .tree-province-header .tree-toggle {
        font-size: 0.7rem;
        color: var(--gray-500);
        transition: transform 0.25s ease;
    }

.tree-province.expanded .tree-toggle {
    transform: rotate(-90deg);
}

.tree-province-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
}

.tree-cities {
    display: none;
    padding: 6px 0 6px 34px;
}

.tree-province.expanded .tree-cities {
    display: block;
    animation: fadeSlideIn 0.25s ease;
}

.tree-cities .ms-item {
    font-weight: 400;
    font-size: 0.85rem;
}

.tree-cities.hidden,
.tree-province.hidden {
    display: none;
}

/* selected chips summary */
.selected-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
    background: var(--off-white);
    border-radius: 10px;
    border: 1px dashed var(--gray-200);
    min-height: 42px;
}

    .selected-summary:empty::before {
        content: "هیچ موردی انتخاب نشده است";
        color: var(--gray-500);
        font-size: 0.8rem;
        align-self: center;
    }

.summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-soft);
    color: var(--blue);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .summary-chip button {
        color: var(--blue);
        font-size: 0.7rem;
        display: flex;
        align-items: center;
    }

        .summary-chip button:hover {
            color: #dc2626;
        }

/* form section title */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 24px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

    .form-section-title i {
        color: var(--blue);
    }

/* image preview */
.image-preview {
    width: 100%;
    max-width: 240px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    margin-top: 10px;
    display: none;
}

    .image-preview.visible {
        display: block;
    }

/* tags hint */
.form-hint {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 6px;
}

/* form actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}


/* ============================================================
   OPPORTUNITY FORM STYLES
   ============================================================ */

/* geographic level radio */
.geo-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.geo-option {
    flex: 1;
    min-width: 160px;
    position: relative;
}

    .geo-option input[type="radio"] {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

    .geo-option label {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 14px;
        border: 1.5px solid var(--gray-200);
        border-radius: 12px;
        background: var(--off-white);
        cursor: pointer;
        font-size: 0.85rem;
        font-weight: 600;
        color: var(--gray-500);
        transition: var(--transition);
        text-align: center;
    }

    .geo-option input:checked + label {
        border-color: var(--blue);
        background: var(--gradient-soft);
        color: var(--blue);
        box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15);
    }

    .geo-option label:hover {
        border-color: var(--blue);
    }

/* geo section (hidden by default) */
.geo-section {
    display: none;
}

    .geo-section.active {
        display: block;
        animation: fadeSlideIn 0.3s ease;
    }

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* searchable box */
.search-box-2 {
    border: 1.5px solid var(--gray-200);
    border-radius: 12px;
    background: var(--off-white);
    overflow: hidden;
    transition: var(--transition);
}

    .search-box-2:focus-within {
        border-color: var(--blue);
        background: var(--white);
        box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    }

    .search-box-2 input.search-input-2 {
        width: 100%;
        padding: 12px 16px;
        border: none;
        background: transparent;
        font-family: inherit;
        font-size: 0.88rem;
        color: var(--navy);
        outline: none;
        border-bottom: 1px solid var(--gray-200);
    }

.search-list {
    max-height: 260px;
    overflow-y: auto;
    padding: 6px;
}

/* simple checkbox item (for provinces) */
.cb-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--navy-light);
    transition: var(--transition);
}

    .cb-item:hover {
        background: var(--gray-100);
    }

    .cb-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--blue);
        cursor: pointer;
        flex-shrink: 0;
    }

    .cb-item.hidden {
        display: none;
    }

/* tree */
.tree-province {
    border-radius: 8px;
    margin-bottom: 4px;
}

    .tree-province.hidden {
        display: none;
    }

.tree-province-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--gray-100);
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
    user-select: none;
}

    .tree-province-header:hover {
        background: var(--blue-soft);
    }

    .tree-province-header .tree-toggle {
        font-size: 0.7rem;
        color: var(--gray-500);
        transition: transform 0.25s ease;
        width: 12px;
    }

.tree-province.expanded .tree-toggle {
    transform: rotate(-90deg);
}

.tree-province-header input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--blue);
    cursor: pointer;
}

.tree-province-header .city-count {
    margin-right: auto;
    color: var(--gray-500);
    font-size: 0.72rem;
    font-weight: 500;
}

.tree-cities {
    display: none;
    padding: 6px 0 6px 32px;
}

.tree-province.expanded .tree-cities {
    display: block;
    animation: fadeSlideIn 0.25s ease;
}

.tree-cities .cb-item {
    font-weight: 400;
    font-size: 0.85rem;
    padding: 7px 12px;
}

    .tree-cities .cb-item.hidden,
    .tree-province.hidden {
        display: none;
    }

/* selected summary */
.sel-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
    background: var(--off-white);
    border-radius: 10px;
    border: 1px dashed var(--gray-200);
    min-height: 44px;
}

    .sel-summary:empty::before {
        content: "هیچ موردی انتخاب نشده است";
        color: var(--gray-500);
        font-size: 0.8rem;
        align-self: center;
    }

.sel-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--blue-soft);
    color: var(--blue);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
}

    .sel-chip button {
        color: var(--blue);
        font-size: 0.7rem;
        display: flex;
        align-items: center;
    }

        .sel-chip button:hover {
            color: #dc2626;
        }

/* form section title */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    margin: 24px 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

    .form-section-title i {
        color: var(--blue);
    }

/* image preview */
.image-preview {
    width: 100%;
    max-width: 240px;
    height: 140px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid var(--gray-200);
    margin-top: 10px;
    display: none;
}

    .image-preview.visible {
        display: block;
    }

/* form hint */
.form-hint {
    font-size: 0.78rem;
    color: var(--gray-500);
    margin-top: 6px;
}

/* form actions */
.form-actions {
    display: flex;
    gap: 10px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
}

/* switch */
.switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
}

    .switch input {
        opacity: 0;
        width: 0;
        height: 0;
    }

.slider {
    position: absolute;
    inset: 0;
    background: var(--gray-200);
    border-radius: 26px;
    cursor: pointer;
    transition: var(--transition);
}

    .slider:before {
        content: "";
        position: absolute;
        height: 20px;
        width: 20px;
        right: 3px;
        bottom: 3px;
        background: white;
        border-radius: 50%;
        transition: var(--transition);
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
    }

.switch input:checked + .slider {
    background: var(--gradient-primary);
}

    .switch input:checked + .slider:before {
        transform: translateX(-22px);
    }

/* scope badges (for index) */
.scope-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.scope-country {
    background: linear-gradient(135deg, #dbeafe, #ede9fe);
    color: #2563eb;
}

.scope-provinces {
    background: #fef3c7;
    color: #b45309;
}

.scope-cities {
    background: #dcfce7;
    color: #15803d;
}

/* responsive grid for dates */
.date-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 520px) {
    .date-grid {
        grid-template-columns: 1fr;
    }

    .geo-option {
        min-width: 100%;
    }
}



/* ============================================================
   AUTH PAGES (Register / Login / Verify / Forgot / Reset)
   ============================================================ */

/* کانتینر اصلی صفحات auth */
.auth-wrapper {
    min-height: calc(100vh - 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 50%, #eefaff 100%);
}

    /* حباب‌های تزئینی پس‌زمینه */
    .auth-wrapper::before,
    .auth-wrapper::after {
        content: '';
        position: absolute;
        border-radius: 50%;
        pointer-events: none;
        filter: blur(40px);
        z-index: 0;
    }

    .auth-wrapper::before {
        width: 400px;
        height: 400px;
        background: radial-gradient(circle, rgba(37, 99, 235, 0.18) 0%, transparent 70%);
        top: -100px;
        right: -100px;
        animation: authFloat 8s ease-in-out infinite;
    }

    .auth-wrapper::after {
        width: 350px;
        height: 350px;
        background: radial-gradient(circle, rgba(124, 58, 237, 0.18) 0%, transparent 70%);
        bottom: -80px;
        left: -80px;
        animation: authFloat 10s 1s ease-in-out infinite reverse;
    }

@keyframes authFloat {
    0%, 100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 20px);
    }
}

/* کارت اصلی auth */
.auth-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: 28px;
    padding: 44px 40px;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.12), 0 4px 20px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--gray-200);
    animation: authEnter 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

    /* کارت پهن‌تر برای ثبت‌نام */
    .auth-card.auth-card-wide {
        max-width: 720px;
    }

    /* کارت کوچک‌تر برای تایید و بازیابی */
    .auth-card.auth-card-narrow {
        max-width: 440px;
    }

@keyframes authEnter {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* هدر کارت (آیکون + عنوان) */
.auth-header {
    text-align: center;
    margin-bottom: 32px;
}

.auth-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 20px;
    border-radius: 22px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.9rem;
    color: var(--white);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.35), inset 0 -2px 6px rgba(0, 0, 0, 0.1);
    animation: iconPop 0.5s 0.2s cubic-bezier(0.4, 0, 0.2, 1.5) both;
}

@keyframes iconPop {
    from {
        transform: scale(0) rotate(-20deg);
        opacity: 0;
    }

    to {
        transform: scale(1) rotate(0);
        opacity: 1;
    }
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 8px;
    line-height: 1.5;
}

.auth-subtitle {
    font-size: 0.9rem;
    color: var(--gray-500);
    line-height: 1.8;
    max-width: 380px;
    margin: 0 auto;
}

    .auth-subtitle strong {
        color: var(--blue);
        font-weight: 700;
        direction: ltr;
        display: inline-block;
    }

/* گرید دو ستونی داخل فرم */
.auth-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

@media (max-width: 580px) {
    .auth-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* دکمه اصلی تمام عرض */
.auth-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 0.95rem;
    margin-top: 8px;
    position: relative;
    overflow: hidden;
}

    .auth-submit::after {
        content: '';
        position: absolute;
        top: 0;
        right: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient( 90deg, transparent, rgba(255, 255, 255, 0.3), transparent );
        transition: right 0.6s ease;
    }

    .auth-submit:hover::after {
        right: 100%;
    }

/* لینک پایین فرم */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--gray-200);
    font-size: 0.88rem;
    color: var(--gray-500);
}

    .auth-footer a {
        color: var(--blue);
        font-weight: 700;
        transition: var(--transition);
    }

        .auth-footer a:hover {
            color: var(--purple);
            text-decoration: underline;
        }

/* ردیف «مرا به خاطر بسپار» + «فراموشی رمز» */
.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin: 4px 0 20px;
    flex-wrap: wrap;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--navy-light);
    user-select: none;
}

    .auth-remember input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--blue);
        cursor: pointer;
    }

.auth-forgot {
    font-size: 0.85rem;
    color: var(--blue);
    font-weight: 600;
    transition: var(--transition);
}

    .auth-forgot:hover {
        color: var(--purple);
    }

/* فیلد کد تایید (OTP) */
.otp-input {
    width: 100%;
    padding: 16px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 14px;
    font-family: 'Vazirmatn', monospace;
    color: var(--navy);
    background: var(--off-white);
    border: 2px solid var(--gray-200);
    border-radius: 14px;
    direction: ltr;
    transition: var(--transition);
}

    .otp-input:focus {
        outline: none;
        border-color: var(--blue);
        background: var(--white);
        box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
    }

    .otp-input::placeholder {
        letter-spacing: 8px;
        color: var(--gray-200);
        font-weight: 400;
    }

/* شمارنده زمان / اطلاع‌رسانی */
.auth-info-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    background: var(--gradient-soft);
    border: 1px solid var(--blue-soft);
    border-radius: 14px;
    margin-bottom: 24px;
    font-size: 0.85rem;
    color: var(--navy-light);
    line-height: 1.7;
}

    .auth-info-box i {
        color: var(--blue);
        font-size: 1.2rem;
        flex-shrink: 0;
    }

/* دکمه ارسال دوباره کد */
.resend-box {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--gray-500);
}

.resend-btn {
    background: none;
    color: var(--blue);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 6px 12px;
    border-radius: 8px;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

    .resend-btn:hover:not(:disabled) {
        background: var(--gray-100);
        color: var(--purple);
    }

    .resend-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* جداکننده "یا" */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: var(--gray-500);
    font-size: 0.8rem;
}

    .auth-divider::before,
    .auth-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--gray-200);
    }

/* هشدار موفقیت/خطا در بالای فرم */
.auth-card .alert {
    margin-bottom: 24px;
    animation: alertSlide 0.4s ease;
}

@keyframes alertSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* لینک سوئیچ بین فرم‌ها */
.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    font-size: 0.88rem;
    color: var(--gray-500);
}

    .auth-switch a {
        color: var(--blue);
        font-weight: 700;
    }

        .auth-switch a:hover {
            color: var(--purple);
        }

/* لیست قوانین رمز */
.password-rules {
    margin-top: 8px;
    padding-right: 4px;
    font-size: 0.78rem;
    color: var(--gray-500);
    list-style: none;
}

    .password-rules li {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 3px 0;
        transition: var(--transition);
    }

        .password-rules li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            font-size: 0.65rem;
            color: var(--gray-200);
            transition: var(--transition);
        }

        .password-rules li.valid {
            color: #15803d;
        }

            .password-rules li.valid::before {
                color: #15803d;
            }

/* نمایش قدرت رمز */
.password-strength {
    height: 6px;
    border-radius: 3px;
    background: var(--gray-200);
    margin-top: 8px;
    overflow: hidden;
    position: relative;
}

.password-strength-bar {
    height: 100%;
    border-radius: 3px;
    width: 0%;
    transition: width 0.3s ease, background 0.3s ease;
}

.password-strength.weak .password-strength-bar {
    width: 33%;
    background: linear-gradient(90deg, #f87171, #dc2626);
}

.password-strength.medium .password-strength-bar {
    width: 66%;
    background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.password-strength.strong .password-strength-bar {
    width: 100%;
    background: linear-gradient(90deg, #34d399, #10b981);
}

/* حالت موبایل */
@media (max-width: 580px) {
    .auth-card {
        padding: 32px 24px;
        border-radius: 22px;
    }

    .auth-icon {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
        border-radius: 18px;
    }

    .auth-title {
        font-size: 1.3rem;
    }

    .otp-input {
        font-size: 1.4rem;
        letter-spacing: 10px;
    }
}
/* ============================================================
   PERSIAN DATE GROUP
   ============================================================ */
.persian-date-group {
    display: grid;
    grid-template-columns: 1.2fr 1.5fr 1fr;
    gap: 8px;
}

    .persian-date-group .date-select {
        padding: 12px 12px;
        font-size: 0.88rem;
        text-align: center;
        cursor: pointer;
    }

        .persian-date-group .date-select:focus {
            outline: none;
            border-color: var(--blue);
            background: var(--white);
            box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
        }

.d-block {
    display: block;
}

@media (max-width: 420px) {
    .persian-date-group {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 6px;
    }

        .persian-date-group .date-select {
            padding: 10px 6px;
            font-size: 0.8rem;
        }
}


/* ============================================================
   HEADER
   ============================================================ */
.header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: all 0.25s ease;
}

    .header.scrolled {
        background: rgba(255, 255, 255, 0.98);
        border-bottom-color: var(--gray-200);
        box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    }

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
    gap: 20px;
}

/* لوگو */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--navy);
    flex-shrink: 0;
}

.logo-icon {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.1rem;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

/* ناوبری دسکتاپ */
.nav-desktop {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-right: auto;
    margin-left: 20px;
}

    .nav-desktop > li {
        position: relative;
    }

.nav-link {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--navy-light);
    transition: all 0.25s ease;
}

    .nav-link i {
        font-size: 0.85rem;
        color: var(--gray-500);
        transition: all 0.25s ease;
    }

    .nav-link:hover {
        background: var(--gray-100);
        color: var(--blue);
    }

        .nav-link:hover i {
            color: var(--blue);
        }

/* دراپ‌داون */
.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: 0.92rem;
    color: var(--navy-light);
    transition: all 0.25s ease;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
}

    .dropdown-toggle i {
        font-size: 0.85rem;
        color: var(--gray-500);
    }

    .dropdown-toggle:hover {
        background: var(--gray-100);
        color: var(--blue);
    }

    .dropdown-toggle .chevron {
        font-size: 0.65rem;
        margin-right: 4px;
        transition: transform 0.25s ease;
    }

.dropdown.open .dropdown-toggle .chevron {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 210px;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border: 1px solid var(--gray-200);
    padding: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.98);
    transform-origin: top right;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.dropdown.open .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--navy-light);
    transition: all 0.25s ease;
}

    .dropdown-item i {
        font-size: 1rem;
        width: 20px;
        text-align: center;
    }

    .dropdown-item:hover {
        background: var(--gray-100);
        color: var(--blue);
    }

    .dropdown-item.telegram i {
        color: #229ED9;
    }

    .dropdown-item.instagram i {
        color: #E1306C;
    }

/* دکمه‌های سمت چپ (دسکتاپ) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

    .header-actions .btn {
        padding: 9px 20px;
        font-size: 0.88rem;
    }

/* همبرگری */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gray-100);
    transition: all 0.25s ease;
    border: none;
    cursor: pointer;
}

    .hamburger span {
        display: block;
        width: 20px;
        height: 2.5px;
        border-radius: 2px;
        background: var(--navy);
        transition: all 0.25s ease;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
        transform: scaleX(0);
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

/* منوی موبایل */
.mobile-nav {
    position: fixed;
    top: 72px;
    right: 0;
    left: 0;
    z-index: 999;
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    padding: 16px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transform: translateY(-110%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
}

    .mobile-nav.open {
        transform: translateY(0);
    }

    .mobile-nav .nav-link,
    .mobile-nav .dropdown-toggle {
        justify-content: flex-start;
        padding: 12px 16px;
        font-size: 0.95rem;
        width: 100%;
        text-align: right;
    }

    .mobile-nav .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: hidden;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--gray-100);
        max-height: 0;
        overflow: hidden;
        padding: 0 8px;
        transition: max-height 0.3s ease, visibility 0.3s, padding 0.3s;
    }

    .mobile-nav .dropdown.open .dropdown-menu {
        visibility: visible;
        max-height: 200px;
        padding: 8px;
    }

    .mobile-nav .header-actions {
        margin-top: 12px;
        flex-direction: column;
        gap: 10px;
    }

        .mobile-nav .header-actions .btn {
            width: 100%;
            padding: 13px;
        }

/* فاصله زیر هدر برای محتوای صفحه */
main {
    padding-top: 72px;
    min-height: calc(100vh - 72px - 200px);
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .nav-desktop {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .header-inner .header-actions {
        display: none;
    }
}

@media (max-width: 520px) {
    .container {
        padding: 0 18px;
    }

    .logo {
        font-size: 1.15rem;
    }

    .logo-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
}


/* ============================================================
   PROFILE PAGE
   ============================================================ */

.profile-wrapper {
    min-height: calc(100vh - 72px);
    padding: 60px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #f5f0ff 50%, #eefaff 100%);
    position: relative;
    overflow: hidden;
}

    .profile-wrapper::before {
        content: '';
        position: absolute;
        width: 500px;
        height: 500px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, transparent 70%);
        top: -200px;
        right: -150px;
        pointer-events: none;
        filter: blur(40px);
    }

    .profile-wrapper::after {
        content: '';
        position: absolute;
        width: 400px;
        height: 400px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(124,58,237,0.12) 0%, transparent 70%);
        bottom: -150px;
        left: -120px;
        pointer-events: none;
        filter: blur(40px);
    }

.profile-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* ===== کارت هدر (Hero) ===== */
.profile-hero {
    background: var(--white);
    border-radius: 28px;
    padding: 0;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(37,99,235,0.12), 0 4px 20px rgba(0,0,0,0.04);
    border: 1px solid var(--gray-200);
    margin-bottom: 24px;
    animation: profileEnter 0.5s ease;
}

@keyframes profileEnter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-hero-banner {
    height: 140px;
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

    .profile-hero-banner::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(circle at 20% 30%, rgba(255,255,255,0.2) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(255,255,255,0.15) 0%, transparent 35%);
    }

    .profile-hero-banner::after {
        content: '';
        position: absolute;
        inset: 0;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    }

.profile-hero-body {
    padding: 0 40px 32px;
    display: flex;
    align-items: flex-end;
    gap: 24px;
    margin-top: -50px;
    flex-wrap: wrap;
}

.profile-avatar-lg {
    width: 120px;
    height: 120px;
    border-radius: 32px;
    background: var(--white);
    border: 5px solid var(--white);
    box-shadow: 0 8px 30px rgba(37,99,235,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--blue);
    position: relative;
    flex-shrink: 0;
    background-clip: padding-box;
}

    .profile-avatar-lg::before {
        content: '';
        position: absolute;
        inset: -5px;
        border-radius: 32px;
        background: var(--gradient-primary);
        z-index: -1;
    }

.profile-hero-text {
    flex: 1;
    min-width: 200px;
    padding-bottom: 4px;
}

    .profile-hero-text h1 {
        font-size: 1.7rem;
        font-weight: 800;
        color: var(--navy);
        margin-bottom: 6px;
    }

    .profile-hero-text .profile-meta {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        font-size: 0.88rem;
        color: var(--gray-500);
    }

        .profile-hero-text .profile-meta span {
            display: inline-flex;
            align-items: center;
            gap: 6px;
        }

        .profile-hero-text .profile-meta i {
            color: var(--blue);
            font-size: 0.8rem;
        }

.role-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

    .role-badge.super-admin {
        background: linear-gradient(135deg, #fef3c7, #fde68a);
        color: #b45309;
    }

    .role-badge.admin {
        background: linear-gradient(135deg, #dbeafe, #bfdbfe);
        color: #1d4ed8;
    }

    .role-badge.employee {
        background: linear-gradient(135deg, #ede9fe, #ddd6fe);
        color: #6d28d9;
    }

    .role-badge.normal {
        background: var(--gray-100);
        color: var(--gray-500);
    }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

    .status-badge.active {
        background: #dcfce7;
        color: #15803d;
    }

    .status-badge.inactive {
        background: #fef2f2;
        color: #b91c1c;
    }

/* ===== گرید اطلاعات ===== */
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.info-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.25s ease;
}

    .info-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 30px rgba(37,99,235,0.1);
        border-color: var(--blue-soft);
    }

.info-card-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--white);
    flex-shrink: 0;
}

    .info-card-icon.c1 {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .info-card-icon.c2 {
        background: linear-gradient(135deg, #a78bfa, #7c3aed);
    }

    .info-card-icon.c3 {
        background: linear-gradient(135deg, #22d3ee, #06b6d4);
    }

    .info-card-icon.c4 {
        background: linear-gradient(135deg, #f472b6, #db2777);
    }

.info-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.info-card-label {
    font-size: 0.75rem;
    color: var(--gray-500);
    font-weight: 500;
}

.info-card-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ===== کارت عملیات ===== */
.profile-actions-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
    animation: profileEnter 0.6s 0.15s ease both;
}

.profile-actions-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--navy);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .profile-actions-title i {
        color: var(--blue);
    }

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.action-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border-radius: 16px;
    background: var(--off-white);
    border: 1.5px solid transparent;
    transition: all 0.25s ease;
    cursor: pointer;
    text-decoration: none;
    color: var(--navy);
}

    .action-card:hover {
        background: var(--white);
        border-color: var(--blue);
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(37,99,235,0.12);
    }

    .action-card.danger:hover {
        border-color: #dc2626;
        box-shadow: 0 8px 24px rgba(220,38,38,0.15);
    }

.action-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
    transition: all 0.25s ease;
}

.action-card.edit .action-card-icon {
    background: var(--blue-soft);
    color: var(--blue);
}

.action-card.password .action-card-icon {
    background: #ede9fe;
    color: var(--purple);
}

.action-card.phone .action-card-icon {
    background: #cffafe;
    color: var(--cyan);
}

.action-card.delete .action-card-icon {
    background: #fee2e2;
    color: #dc2626;
}

.action-card-content {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.action-card-title {
    font-size: 0.95rem;
    font-weight: 700;
}

.action-card-desc {
    font-size: 0.78rem;
    color: var(--gray-500);
}

@media (max-width: 768px) {
    .profile-hero-body {
        padding: 0 24px 24px;
        gap: 16px;
    }

    .profile-avatar-lg {
        width: 90px;
        height: 90px;
        font-size: 2.2rem;
        border-radius: 24px;
    }

    .profile-hero-text h1 {
        font-size: 1.3rem;
    }

    .profile-info-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .info-card {
        padding: 14px;
        gap: 12px;
    }

    .info-card-icon {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }

    .info-card-value {
        font-size: 0.85rem;
    }

    .profile-actions-card {
        padding: 24px 20px;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .profile-info-grid {
        grid-template-columns: 1fr;
    }

    .profile-hero-text h1 {
        font-size: 1.15rem;
    }
}



/* ============================================================
   PUBLIC OPPORTUNITIES LIST
   ============================================================ */

.opportunities-page {
    padding: 120px 0 80px;
    background: var(--off-white);
    min-height: 100vh;
}

.opps-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.opps-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

    .opps-title i {
        color: var(--blue);
    }

.opps-subtitle {
    color: var(--gray-500);
    font-size: 0.92rem;
}

    .opps-subtitle strong {
        color: var(--blue);
    }

.opps-search {
    display: flex;
    gap: 8px;
    max-width: 400px;
    flex: 1;
    min-width: 260px;
}

.opps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 40px;
}

/* ===== کارت فرصت ===== */
.opp-public-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .opp-public-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 16px 40px rgba(37,99,235,0.12);
        border-color: var(--blue-soft);
    }

.opp-public-image {
    position: relative;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--gray-100);
}

    .opp-public-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

.opp-public-card:hover .opp-public-image img {
    transform: scale(1.06);
}

.opp-level-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--white);
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

    .opp-level-badge.national {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .opp-level-badge.regional {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .opp-level-badge.local {
        background: linear-gradient(135deg, #10b981, #059669);
    }

.opp-public-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.opp-public-cat {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.opp-public-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.opp-public-desc {
    font-size: 0.85rem;
    color: var(--gray-500);
    line-height: 1.8;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
}

.opp-public-dates {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px;
    background: var(--off-white);
    border-radius: 12px;
    font-size: 0.78rem;
}

    .opp-public-dates span {
        display: flex;
        align-items: center;
        gap: 6px;
        color: var(--gray-500);
    }

    .opp-public-dates i {
        color: var(--blue);
        font-size: 0.75rem;
    }

.opp-public-btn {
    width: 100%;
    padding: 11px;
    font-size: 0.88rem;
    margin-top: 4px;
}

/* ===== پیجینیشن ===== */
.pagination-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    border: 1px solid var(--gray-200);
    transition: all 0.2s ease;
    cursor: pointer;
    text-decoration: none;
}

    .page-btn:hover:not(.disabled):not(.active) {
        border-color: var(--blue);
        color: var(--blue);
        background: var(--gray-100);
    }

    .page-btn.active {
        background: var(--gradient-primary);
        color: var(--white);
        border-color: transparent;
        box-shadow: 0 6px 18px rgba(37,99,235,0.35);
    }

    .page-btn.disabled {
        opacity: 0.4;
        pointer-events: none;
        cursor: not-allowed;
    }

.page-dots {
    color: var(--gray-500);
    padding: 0 6px;
    font-weight: 700;
}

/* ============================================================
   PUBLIC OPPORTUNITY DETAILS
   ============================================================ */

.opp-details-page {
    padding: 120px 0 80px;
    background: var(--off-white);
    min-height: 100vh;
}

.opp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

    .opp-breadcrumb a {
        color: var(--gray-500);
        transition: color 0.2s;
    }

        .opp-breadcrumb a:hover {
            color: var(--blue);
        }

    .opp-breadcrumb i {
        font-size: 0.65rem;
        color: var(--gray-200);
    }

    .opp-breadcrumb span {
        color: var(--navy);
        font-weight: 600;
    }

.opp-details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* محتوای اصلی */
.opp-main-content {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.opp-main-image {
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--gray-100);
}

    .opp-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.opp-main-meta {
    padding: 28px 32px;
}

.opp-main-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.opp-level-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
}

    .opp-level-badge-inline.national {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .opp-level-badge-inline.regional {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .opp-level-badge-inline.local {
        background: linear-gradient(135deg, #10b981, #059669);
    }

.opp-main-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 16px;
}

.opp-main-desc {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.95;
    margin-bottom: 24px;
}

.opp-main-dates {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--off-white);
    border-radius: 16px;
}

.date-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 160px;
}

    .date-item i {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        background: var(--gradient-soft);
        color: var(--blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .date-item div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

        .date-item div span {
            font-size: 0.75rem;
            color: var(--gray-500);
        }

        .date-item div strong {
            font-size: 0.92rem;
            color: var(--navy);
            font-weight: 700;
        }

/* محتوای HTML */
.opp-content {
    padding: 8px 32px 32px;
    line-height: 2;
    color: var(--navy-light);
    font-size: 0.98rem;
}

    .opp-content h1,
    .opp-content h2,
    .opp-content h3,
    .opp-content h4 {
        color: var(--navy);
        margin: 24px 0 12px;
        font-weight: 800;
        line-height: 1.5;
    }

    .opp-content h2 {
        font-size: 1.4rem;
    }

    .opp-content h3 {
        font-size: 1.15rem;
    }

    .opp-content p {
        margin-bottom: 14px;
        line-height: 2;
    }

    .opp-content ul,
    .opp-content ol {
        padding-right: 24px;
        margin-bottom: 16px;
    }

    .opp-content li {
        margin-bottom: 6px;
        line-height: 1.9;
    }

    .opp-content a {
        color: var(--blue);
        text-decoration: underline;
    }

    .opp-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 16px 0;
        border: 1px solid var(--gray-200);
    }

    .opp-content blockquote {
        padding: 16px 20px;
        background: var(--gradient-soft);
    }














/* ============================================================
   PUBLIC OPPORTUNITY DETAILS — FULL STYLES
   ============================================================ */

.opp-details-page {
    padding: 120px 0 80px;
    background: var(--off-white);
    min-height: 100vh;
}

/* ===== بردکرامب ===== */
.opp-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.85rem;
    color: var(--gray-500);
    margin-bottom: 24px;
    flex-wrap: wrap;
}

    .opp-breadcrumb a {
        color: var(--gray-500);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
        transition: color 0.2s;
    }

        .opp-breadcrumb a:hover {
            color: var(--blue);
        }

    .opp-breadcrumb i {
        font-size: 0.65rem;
        color: var(--gray-200);
    }

    .opp-breadcrumb span {
        color: var(--navy);
        font-weight: 600;
        max-width: 320px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

/* ===== شبکه اصلی ===== */
.opp-details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}

/* ===== محتوای اصلی ===== */
.opp-main-content {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.opp-main-image {
    aspect-ratio: 16 / 7;
    overflow: hidden;
    background: var(--gray-100);
    position: relative;
}

    .opp-main-image::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(to top, rgba(15, 23, 42, 0.35), transparent 55%);
        pointer-events: none;
    }

    .opp-main-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.6s ease;
    }

.opp-main-content:hover .opp-main-image img {
    transform: scale(1.03);
}

.opp-main-meta {
    padding: 28px 32px 24px;
}

/* دسته‌بندی‌ها و بج‌ها */
.opp-main-cats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.badge-count {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.74rem;
    font-weight: 700;
    background: var(--gray-100);
    color: var(--navy);
    border: 1px solid var(--gray-200);
}

    .badge-count.purple {
        background: var(--gradient-soft);
        color: var(--blue);
        border-color: transparent;
    }

.opp-level-badge-inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

    .opp-level-badge-inline.national {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .opp-level-badge-inline.regional {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .opp-level-badge-inline.local {
        background: linear-gradient(135deg, #10b981, #059669);
    }

/* عنوان و توضیح */
.opp-main-title {
    font-size: 1.9rem;
    font-weight: 800;
    color: var(--navy);
    line-height: 1.5;
    margin-bottom: 14px;
}

.opp-main-desc {
    font-size: 1rem;
    color: var(--gray-500);
    line-height: 1.95;
    margin-bottom: 24px;
}

/* تاریخ‌ها */
.opp-main-dates {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    padding: 20px;
    background: var(--off-white);
    border-radius: 16px;
    border: 1px dashed var(--gray-200);
}

.date-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 160px;
}

    .date-item i {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        background: var(--gradient-soft);
        color: var(--blue);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1rem;
        flex-shrink: 0;
    }

    .date-item > div {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .date-item span {
        font-size: 0.75rem;
        color: var(--gray-500);
    }

    .date-item strong {
        font-size: 0.92rem;
        color: var(--navy);
        font-weight: 700;
    }

/* ===== محتوای HTML ===== */
.opp-content {
    padding: 8px 32px 32px;
    line-height: 2;
    color: var(--navy-light);
    font-size: 0.98rem;
}

    .opp-content h1,
    .opp-content h2,
    .opp-content h3,
    .opp-content h4 {
        color: var(--navy);
        margin: 26px 0 12px;
        font-weight: 800;
        line-height: 1.5;
    }

    .opp-content h1 {
        font-size: 1.6rem;
    }

    .opp-content h2 {
        font-size: 1.4rem;
    }

    .opp-content h3 {
        font-size: 1.15rem;
    }

    .opp-content h4 {
        font-size: 1rem;
    }

    .opp-content p {
        margin-bottom: 14px;
        line-height: 2;
    }

    .opp-content ul,
    .opp-content ol {
        padding-right: 24px;
        margin-bottom: 16px;
    }

    .opp-content li {
        margin-bottom: 6px;
        line-height: 1.9;
    }

    .opp-content a {
        color: var(--blue);
        text-decoration: underline;
    }

    .opp-content strong {
        color: var(--navy);
    }

    .opp-content img {
        max-width: 100%;
        height: auto;
        border-radius: 14px;
        margin: 18px 0;
        border: 1px solid var(--gray-200);
    }

    .opp-content blockquote {
        padding: 16px 20px;
        background: var(--gradient-soft);
        border-right: 4px solid var(--blue);
        border-radius: 12px;
        margin: 20px 0;
        color: var(--navy);
        font-style: italic;
        line-height: 1.9;
    }

    .opp-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 20px 0;
        font-size: 0.9rem;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid var(--gray-200);
    }

        .opp-content table th,
        .opp-content table td {
            padding: 12px 16px;
            text-align: right;
            border-bottom: 1px solid var(--gray-200);
        }

        .opp-content table th {
            background: var(--gradient-soft);
            color: var(--navy);
            font-weight: 700;
        }

        .opp-content table tr:last-child td {
            border-bottom: none;
        }

        .opp-content table tr:hover td {
            background: var(--off-white);
        }

    .opp-content pre {
        background: var(--navy);
        color: var(--white);
        padding: 16px 20px;
        border-radius: 12px;
        overflow-x: auto;
        margin: 16px 0;
        font-size: 0.85rem;
        direction: ltr;
        text-align: left;
    }

    .opp-content code {
        background: var(--gray-100);
        color: var(--blue);
        padding: 2px 8px;
        border-radius: 6px;
        font-size: 0.85rem;
    }

    .opp-content pre code {
        background: transparent;
        color: inherit;
        padding: 0;
    }

    .opp-content hr {
        border: none;
        border-top: 1px solid var(--gray-200);
        margin: 28px 0;
    }

/* ===== تگ‌ها ===== */
.opp-tags-section {
    padding: 0 32px 32px;
}

    .opp-tags-section h3 {
        font-size: 1rem;
        font-weight: 800;
        color: var(--navy);
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 14px;
    }

        .opp-tags-section h3 i {
            color: var(--blue);
        }

.opp-tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.opp-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    background: var(--gradient-soft);
    color: var(--blue);
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.2s ease;
    cursor: default;
}

    .opp-tag:hover {
        background: var(--gradient-primary);
        color: var(--white);
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(37, 99, 235, 0.25);
    }

/* ===== سایدبار ===== */
.opp-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: sticky;
    top: 100px;
}

.sidebar-card {
    background: var(--white);
    border-radius: 20px;
    padding: 24px;
    border: 1px solid var(--gray-200);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.04);
}

.sidebar-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}

    .sidebar-title i {
        color: var(--blue);
    }

/* کارت‌های مشابه */
.similar-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.similar-card {
    display: flex;
    gap: 12px;
    padding: 10px;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

    .similar-card:hover {
        background: var(--off-white);
        border-color: var(--gray-200);
        transform: translateX(-4px);
    }

.similar-image {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--gray-100);
}

    .similar-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s ease;
    }

.similar-card:hover .similar-image img {
    transform: scale(1.08);
}

.similar-body {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
}

    .similar-body h4 {
        font-size: 0.85rem;
        font-weight: 700;
        color: var(--navy);
        line-height: 1.5;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

.similar-cat {
    font-size: 0.72rem;
    color: var(--blue);
    font-weight: 600;
}

.similar-date {
    font-size: 0.72rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    gap: 5px;
}

    .similar-date i {
        color: var(--blue);
        font-size: 0.68rem;
    }

.sidebar-empty {
    font-size: 0.85rem;
    color: var(--gray-500);
    text-align: center;
    padding: 20px 0;
}

/* دکمه بازگشت */
.sidebar-back-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    border-radius: 14px;
    text-decoration: none;
    transition: all 0.25s ease;
}

    .sidebar-back-btn:hover {
        background: var(--gradient-soft);
        color: var(--blue);
        border-color: var(--blue);
    }

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .opp-details-grid {
        grid-template-columns: 1fr;
    }

    .opp-sidebar {
        position: static;
    }

    .opp-main-meta {
        padding: 24px;
    }

    .opp-content {
        padding: 8px 24px 24px;
    }

    .opp-tags-section {
        padding: 0 24px 24px;
    }

    .opp-main-title {
        font-size: 1.6rem;
    }
}

@media (max-width: 768px) {
    .opp-details-page {
        padding: 100px 0 60px;
    }

    .opp-main-title {
        font-size: 1.35rem;
    }

    .opp-main-desc {
        font-size: 0.92rem;
    }

    .opp-main-dates {
        flex-direction: column;
        gap: 14px;
    }

    .date-item {
        min-width: 100%;
    }

    .opp-content {
        font-size: 0.92rem;
        padding: 8px 20px 20px;
    }

    .opp-tags-section {
        padding: 0 20px 20px;
    }

    .opp-content table {
        font-size: 0.8rem;
    }

        .opp-content table th,
        .opp-content table td {
            padding: 9px 10px;
        }

    .opp-breadcrumb span {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .opp-main-meta {
        padding: 18px;
    }

    .opp-main-title {
        font-size: 1.2rem;
    }

    .opp-main-desc {
        font-size: 0.88rem;
    }

    .opp-content {
        padding: 4px 16px 18px;
        font-size: 0.88rem;
    }

    .opp-tags-section {
        padding: 0 16px 18px;
    }

    .sidebar-card {
        padding: 18px;
    }

    .similar-image {
        width: 58px;
        height: 58px;
    }

    .similar-body h4 {
        font-size: 0.8rem;
    }

    .date-item i {
        width: 36px;
        height: 36px;
        font-size: 0.9rem;
    }
}



/* ============================================================
   CATEGORIES PAGE
   ============================================================ */

.categories-page {
    padding: 120px 0 80px;
    background: var(--off-white);
    min-height: 100vh;
}

.cats-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.cats-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

    .cats-title i {
        color: var(--blue);
    }

.cats-subtitle {
    color: var(--gray-500);
    font-size: 0.92rem;
}

/* گرید کارت‌ها */
.cats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 20px;
    align-items: start;
}

/* کارت دسته */
.cat-card {
    background: var(--white);
    border-radius: 20px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

    .cat-card:hover {
        border-color: var(--blue-soft);
        box-shadow: 0 12px 30px rgba(37, 99, 235, 0.10);
    }

/* هدر کارت (دکمه) */
.cat-card-header {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
    transition: background 0.2s;
}

    .cat-card-header:hover {
        background: var(--off-white);
    }

.cat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.cat-card.open .cat-icon {
    background: var(--gradient-primary);
    color: var(--white);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.cat-name {
    flex: 1;
    font-size: 1rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.5;
}

.cat-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--gradient-soft);
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.cat-arrow {
    color: var(--gray-500);
    font-size: 0.8rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.cat-card.open .cat-arrow {
    transform: rotate(180deg);
    color: var(--blue);
}

/* بدنه زیردسته‌ها */
.cat-subs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid transparent;
}

.cat-card.open .cat-subs {
    max-height: 600px;
    border-top-color: var(--gray-200);
    padding: 8px 0;
}

.cat-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    text-decoration: none;
    color: var(--navy-light);
    font-size: 0.88rem;
    transition: all 0.2s ease;
    border-right: 3px solid transparent;
}

    .cat-sub-item:hover {
        background: var(--off-white);
        color: var(--blue);
        border-right-color: var(--blue);
        padding-right: 26px;
    }

    .cat-sub-item i {
        color: var(--blue);
        font-size: 0.72rem;
        flex-shrink: 0;
    }

.sub-name {
    flex: 1;
    font-weight: 600;
}

.sub-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--gradient-soft);
    padding: 2px 9px;
    border-radius: 50px;
    min-width: 26px;
    text-align: center;
}

.cat-empty {
    padding: 14px 20px;
    font-size: 0.82rem;
    color: var(--gray-500);
    text-align: center;
    margin: 0;
}

/* حالت خالی کل صفحه */
.cats-empty {
    text-align: center;
    padding: 80px 20px;
    color: var(--gray-500);
    background: var(--white);
    border-radius: 20px;
    border: 1px dashed var(--gray-200);
}

    .cats-empty i {
        font-size: 3rem;
        color: var(--gray-200);
        margin-bottom: 16px;
        display: block;
    }

    .cats-empty p {
        font-size: 0.95rem;
        margin: 0;
    }

/* ریسپانسیو */
@media (max-width: 768px) {
    .categories-page {
        padding: 100px 0 60px;
    }

    .cats-title {
        font-size: 1.6rem;
    }

    .cats-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .cats-title {
        font-size: 1.35rem;
    }

    .cat-card-header {
        padding: 14px 16px;
        gap: 10px;
    }

    .cat-icon {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }

    .cat-name {
        font-size: 0.92rem;
    }

    .cat-count {
        display: none;
    }
    /* در موبایل کوچک جا نمی‌شود */
    .cat-sub-item {
        padding: 10px 16px;
        font-size: 0.84rem;
    }
}




/* جستجو */
.cats-search {
    display: flex;
    gap: 8px;
    max-width: 380px;
    flex: 1;
    min-width: 240px;
}

.cats-search-input {
    flex: 1;
    padding: 11px 16px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--navy);
}

    .cats-search-input:focus {
        outline: none;
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    }

.cats-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: none;
    background: var(--gradient-primary);
    color: var(--white);
    cursor: pointer;
}

/* هدر کارت با چک‌باکس */
.cat-card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 14px 18px;
    border-bottom: 1px solid var(--gray-200);
}

.cat-toggle {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    text-align: right;
}

    .cat-toggle:hover .cat-name {
        color: var(--blue);
    }

.cat-checkbox {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    cursor: pointer;
}

    .cat-checkbox input {
        position: absolute;
        opacity: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        cursor: pointer;
        z-index: 2;
    }

.checkmark {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    border: 2px solid var(--gray-200);
    background: var(--white);
    transition: all 0.2s;
    position: relative;
}

.cat-checkbox input:checked + .checkmark {
    background: var(--gradient-primary);
    border-color: transparent;
}

    .cat-checkbox input:checked + .checkmark::after {
        content: "";
        position: absolute;
        left: 6px;
        top: 2px;
        width: 6px;
        height: 11px;
        border: solid var(--white);
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.cat-checkbox input:indeterminate + .checkmark {
    background: var(--blue-soft);
    border-color: var(--blue);
}

    .cat-checkbox input:indeterminate + .checkmark::after {
        content: "";
        position: absolute;
        left: 4px;
        top: 9px;
        width: 10px;
        height: 2px;
        background: var(--blue);
    }

/* زیردسته‌ها */
.cat-subs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cat-card.open .cat-subs {
    max-height: 700px;
    padding: 8px 0;
}

.cat-sub-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 20px;
    cursor: pointer;
    transition: background 0.2s;
    border-right: 3px solid transparent;
}

    .cat-sub-item:hover {
        background: var(--off-white);
        border-right-color: var(--blue);
    }

    .cat-sub-item input[type="checkbox"] {
        width: 18px;
        height: 18px;
        accent-color: var(--blue);
        cursor: pointer;
    }

.sub-name {
    flex: 1;
    font-weight: 600;
    color: var(--navy-light);
}

.sub-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--gradient-soft);
    padding: 2px 9px;
    border-radius: 50px;
}

/* دکمه ذخیره */
.cats-save-bar {
    display: flex;
    justify-content: flex-end;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--gray-200);
}

.cats-save-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 32px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 200px;
    justify-content: center;
}

/* توست */
.cats-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    padding: 14px 26px;
    border-radius: 12px;
    color: var(--white);
    font-weight: 700;
    font-size: 0.88rem;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

    .cats-toast.show {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }

    .cats-toast.success {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .cats-toast.error {
        background: linear-gradient(135deg, #ef4444, #dc2626);
    }

@media (max-width: 768px) {
    .cats-search {
        max-width: 100%;
    }

    .cats-save-btn {
        width: 100%;
    }
}



/* ===== آمار مخاطبان ===== */
.aud-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.aud-stat-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px;
    background: var(--off-white);
    border-radius: 14px;
    border: 1px solid var(--gray-200);
}

.aud-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.aud-stat-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .aud-stat-info span {
        font-size: 0.78rem;
        color: var(--gray-500);
    }

    .aud-stat-info strong {
        font-size: 1.15rem;
        font-weight: 800;
        color: var(--navy);
    }

/* ===== جدول مخاطبان ===== */
.aud-table-section {
    margin-top: 40px;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.aud-table-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--gray-200);
}

    .aud-table-title i {
        color: var(--blue);
    }

.aud-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid var(--gray-200);
}

.aud-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.86rem;
}

    .aud-table thead th {
        background: var(--gradient-soft);
        color: var(--navy);
        font-weight: 700;
        text-align: right;
        padding: 13px 16px;
        white-space: nowrap;
        border-bottom: 1px solid var(--gray-200);
    }

    .aud-table tbody td {
        padding: 12px 16px;
        text-align: right;
        color: var(--navy-light);
        border-bottom: 1px solid var(--gray-200);
    }

    .aud-table tbody tr:last-child td {
        border-bottom: none;
    }

    .aud-table tbody tr:hover td {
        background: var(--off-white);
    }

/* ===== صفحه‌بندی ===== */
.aud-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.page-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 14px;
    border-radius: 12px;
    background: var(--white);
    color: var(--navy);
    font-weight: 600;
    font-size: 0.88rem;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
    text-decoration: none;
}

    .page-btn:hover:not(.disabled):not(.active) {
        border-color: var(--blue);
        color: var(--blue);
        background: var(--gray-100);
    }

    .page-btn.active {
        background: var(--gradient-primary);
        color: var(--white);
        border-color: transparent;
        box-shadow: 0 6px 18px rgba(37,99,235,0.35);
    }

    .page-btn.disabled {
        opacity: 0.4;
        pointer-events: none;
        cursor: not-allowed;
    }

.page-dots {
    color: var(--gray-500);
    padding: 0 4px;
    font-weight: 700;
}

/* حالت خالی */
.aud-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-500);
}

    .aud-empty i {
        font-size: 2.6rem;
        color: var(--gray-200);
        margin-bottom: 12px;
        display: block;
    }

    .aud-empty p {
        margin: 0;
        font-size: 0.92rem;
    }

@media (max-width: 768px) {
    .aud-table-section {
        padding: 18px;
        margin-top: 28px;
    }

    .aud-table {
        font-size: 0.8rem;
    }

        .aud-table thead th,
        .aud-table tbody td {
            padding: 10px 10px;
        }

    .page-btn {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 0.8rem;
    }
}



/* ===== صفحه مدیریت کاربران ===== */
.admin-users-page,
.admin-user-details-page {
    padding: 120px 0 80px;
    background: var(--off-white);
    min-height: 100vh;
}

.adm-header {
    margin-bottom: 28px;
}

.adm-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--navy);
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

    .adm-title i {
        color: var(--blue);
    }

.adm-subtitle {
    color: var(--gray-500);
    font-size: 0.92rem;
}

/* آمار */
.adm-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 28px;
}

.adm-stat-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all 0.25s ease;
}

    .adm-stat-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 26px rgba(37,99,235,0.08);
        border-color: var(--blue-soft);
    }

.adm-stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
    color: var(--white);
}

    .adm-stat-icon.blue {
        background: linear-gradient(135deg, #3b82f6, #2563eb);
    }

    .adm-stat-icon.green {
        background: linear-gradient(135deg, #10b981, #059669);
    }

    .adm-stat-icon.orange {
        background: linear-gradient(135deg, #f59e0b, #d97706);
    }

    .adm-stat-icon.sky {
        background: linear-gradient(135deg, #0ea5e9, #0284c7);
    }

    .adm-stat-icon.pink {
        background: linear-gradient(135deg, #ec4899, #db2777);
    }

.adm-stat-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

    .adm-stat-info span {
        font-size: 0.78rem;
        color: var(--gray-500);
    }

    .adm-stat-info strong {
        font-size: 1.3rem;
        font-weight: 800;
        color: var(--navy);
    }

/* جستجو */
.adm-search {
    display: flex;
    gap: 8px;
    max-width: 480px;
    margin-bottom: 24px;
}

.adm-search-input {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    color: var(--navy);
}

    .adm-search-input:focus {
        outline: none;
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    }

.adm-search-btn {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    border: none;
    background: var(--gradient-primary);
    color: var(--white);
    cursor: pointer;
}

/* جدول */
.adm-table-wrap {
    overflow-x: auto;
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.adm-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

    .adm-table thead th {
        background: var(--gradient-soft);
        color: var(--navy);
        font-weight: 700;
        text-align: right;
        padding: 14px 16px;
        white-space: nowrap;
        border-bottom: 1px solid var(--gray-200);
    }

    .adm-table tbody td {
        padding: 12px 16px;
        text-align: right;
        color: var(--navy-light);
        border-bottom: 1px solid var(--gray-200);
    }

    .adm-table tbody tr:last-child td {
        border-bottom: none;
    }

    .adm-table tbody tr:hover td {
        background: var(--off-white);
    }

    .adm-table .text-center {
        text-align: center;
    }

.adm-btn-details {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: 10px;
    background: var(--gradient-soft);
    color: var(--blue);
    font-weight: 700;
    font-size: 0.78rem;
    text-decoration: none;
    transition: all 0.2s;
}

    .adm-btn-details:hover {
        background: var(--gradient-primary);
        color: var(--white);
    }

/* صفحه جزئیات */
.adm-details-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 28px;
    align-items: start;
}

.adm-details-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 28px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
}

.adm-details-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.adm-avatar {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--gradient-primary);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
}

.adm-details-header h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--navy);
    margin: 0 0 6px;
}

.adm-role-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
}

    .adm-role-badge.admin {
        background: linear-gradient(135deg, #ef4444, #dc2626);
        color: #fff;
    }

    .adm-role-badge.user {
        background: var(--gradient-soft);
        color: var(--blue);
    }

.adm-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.adm-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: var(--off-white);
    border-radius: 12px;
    border: 1px solid var(--gray-200);
}

    .adm-info-item .label {
        font-size: 0.76rem;
        color: var(--gray-500);
        display: flex;
        align-items: center;
        gap: 6px;
    }

        .adm-info-item .label i {
            color: var(--blue);
        }

    .adm-info-item .value {
        font-size: 0.9rem;
        font-weight: 700;
        color: var(--navy);
    }

        .adm-info-item .value.active {
            color: #059669;
        }

        .adm-info-item .value.inactive {
            color: #dc2626;
        }

/* کارت تغییر نقش */
.adm-role-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    position: sticky;
    top: 100px;
}

    .adm-role-card h3 {
        font-size: 1rem;
        font-weight: 800;
        color: var(--navy);
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
    }

        .adm-role-card h3 i {
            color: var(--blue);
        }

    .adm-role-card p {
        font-size: 0.82rem;
        color: var(--gray-500);
        line-height: 1.7;
        margin-bottom: 16px;
    }

.adm-role-select {
    width: 100%;
    padding: 11px 14px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    background: var(--white);
    font-family: inherit;
    font-size: 0.88rem;
    color: var(--navy);
    margin-bottom: 12px;
}

    .adm-role-select:focus {
        outline: none;
        border-color: var(--blue);
        box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
    }

.adm-btn-save {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    background: var(--gradient-primary);
    color: var(--white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: transform 0.2s;
}

    .adm-btn-save:hover {
        transform: translateY(-2px);
    }

.adm-btn-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 11px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    color: var(--navy);
    text-decoration: none;
    font-size: 0.86rem;
    font-weight: 700;
    transition: all 0.2s;
}

    .adm-btn-back:hover {
        background: var(--gradient-soft);
        color: var(--blue);
        border-color: var(--blue);
    }

.alert {
    padding: 12px 18px;
    border-radius: 12px;
    margin-bottom: 16px;
    font-size: 0.88rem;
    font-weight: 600;
}

.alert-success {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

.alert-danger {
    background: #fef2f2;
    color: #dc2626;
    border: 1px solid #fecaca;
}

@media (max-width: 992px) {
    .adm-details-grid {
        grid-template-columns: 1fr;
    }

    .adm-role-card {
        position: static;
    }
}

@media (max-width: 768px) {
    .admin-users-page, .admin-user-details-page {
        padding: 100px 0 60px;
    }

    .adm-title {
        font-size: 1.5rem;
    }

    .adm-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .adm-search {
        max-width: 100%;
    }

    .adm-info-grid {
        grid-template-columns: 1fr;
    }
}



/* ============================================================
   HOME SECTIONS (Categories + Matched Opportunities)
   ============================================================ */

.home-categories-section,
.home-matched-section {
    padding: 70px 0;
    background: var(--off-white);
}

.home-matched-section {
    background: var(--white);
}

.home-section-head {
    margin-bottom: 32px;
    text-align: center;
}

.home-section-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--navy);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

    .home-section-title i {
        color: var(--blue);
    }

.home-section-sub {
    color: var(--gray-500);
    font-size: 0.9rem;
}

/* ===== گرید دسته‌بندی ===== */
.home-cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 18px;
    align-items: start;
}

.home-cat-card {
    background: var(--white);
    border-radius: 18px;
    border: 1px solid var(--gray-200);
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(0,0,0,0.03);
}

    .home-cat-card:hover {
        border-color: var(--blue-soft);
        box-shadow: 0 12px 28px rgba(37,99,235,0.10);
    }

.home-cat-head {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: right;
    font-family: inherit;
}

    .home-cat-head:hover {
        background: var(--off-white);
    }

.home-cat-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--gradient-soft);
    color: var(--blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    transition: all 0.3s;
}

.home-cat-card.open .home-cat-icon {
    background: var(--gradient-primary);
    color: var(--white);
}

.home-cat-name {
    flex: 1;
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--navy);
}

.home-cat-count {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--gradient-soft);
    padding: 4px 10px;
    border-radius: 50px;
    white-space: nowrap;
}

.home-cat-arrow {
    font-size: 0.75rem;
    color: var(--gray-500);
    transition: transform 0.3s;
}

.home-cat-card.open .home-cat-arrow {
    transform: rotate(180deg);
    color: var(--blue);
}

/* درخت زیردسته‌ها */
.home-cat-subs {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
    border-top: 1px solid transparent;
}

.home-cat-card.open .home-cat-subs {
    max-height: 500px;
    border-top-color: var(--gray-200);
    padding: 6px 0;
}

.home-sub-tree {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
}

    .home-sub-tree li {
        position: relative;
        padding-right: 18px;
    }

        .home-sub-tree li::before {
            content: "";
            position: absolute;
            right: 8px;
            top: 0;
            bottom: 50%;
            width: 1px;
            background: var(--gray-200);
        }

        .home-sub-tree li::after {
            content: "";
            position: absolute;
            right: 8px;
            top: 50%;
            width: 8px;
            height: 1px;
            background: var(--gray-200);
        }

        .home-sub-tree li:first-child::before {
            top: 50%;
        }

        .home-sub-tree li:last-child::before {
            bottom: auto;
            height: 50%;
        }

.home-sub-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    color: var(--navy-light);
    text-decoration: none;
    font-size: 0.85rem;
    border-radius: 10px;
    transition: all 0.2s;
}

    .home-sub-link:hover {
        background: var(--gradient-soft);
        color: var(--blue);
    }

    .home-sub-link i {
        color: var(--blue);
        font-size: 0.7rem;
    }

    .home-sub-link span:first-of-type {
        flex: 1;
        font-weight: 600;
    }

.home-sub-count {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--white);
    border: 1px solid var(--gray-200);
    padding: 2px 8px;
    border-radius: 50px;
    min-width: 26px;
    text-align: center;
}

.home-cat-empty {
    padding: 12px 18px;
    font-size: 0.82rem;
    color: var(--gray-500);
    margin: 0;
    text-align: center;
}

/* اکشن‌ها */
.home-section-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

/* ===== فرصت‌های مشابه ===== */
.home-matched-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.home-matched-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

    .home-matched-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 14px 32px rgba(37,99,235,0.12);
        border-color: var(--blue-soft);
    }

.home-matched-img {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: var(--gray-100);
}

    .home-matched-img img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.4s;
    }

.home-matched-card:hover .home-matched-img img {
    transform: scale(1.05);
}

.home-matched-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.home-matched-cat {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--blue);
    background: var(--gradient-soft);
    padding: 3px 10px;
    border-radius: 50px;
    align-self: flex-start;
}

.home-matched-body h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--navy);
    line-height: 1.6;
    margin: 4px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.home-matched-sub {
    font-size: 0.75rem;
    color: var(--gray-500);
}

.home-matched-date {
    font-size: 0.75rem;
    color: var(--blue);
    display: flex;
    align-items: center;
    gap: 5px;
    margin-top: 4px;
}

/* حالت خالی */
.home-empty {
    text-align: center;
    padding: 50px 20px;
    color: var(--gray-500);
    background: var(--white);
    border-radius: 18px;
    border: 1px dashed var(--gray-200);
}

    .home-empty i {
        font-size: 2.6rem;
        color: var(--gray-200);
        margin-bottom: 12px;
        display: block;
    }

    .home-empty p {
        font-size: 0.9rem;
        margin-bottom: 14px;
    }

@media (max-width: 768px) {
    .home-categories-section,
    .home-matched-section {
        padding: 50px 0;
    }

    .home-section-title {
        font-size: 1.35rem;
    }

    .home-cat-grid,
    .home-matched-grid {
        grid-template-columns: 1fr;
    }

    .home-section-actions .btn {
        width: 100%;
        justify-content: center;
    }
}