* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: #ffffff;
    font-family: 'IRANSans', 'sans-serif';
    padding: 0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* استایل هدر اصلی */
.main-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 0 30px 30px;
    padding: 40px 30px 60px;
    margin-bottom: 0;
    position: relative;
    overflow: hidden;
}

/* عنوان */
.header-title {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
    color: white;
}

.gradient-text {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* تگ‌های ویژگی */
.feature-tag {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
}

/* دکمه‌ها */
.btn-primary-header {
    background: white;
    color: #4f46e5;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary-header:hover {
    transform: scale(1.05);
    color: #4f46e5;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-outline-header {
    background: transparent;
    color: white;
    padding: 10px 25px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-outline-header:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border-color: white;
}

.header-description {
    color: rgba(255, 255, 255, 0.9);
}

/* انیمیشن جام */
.header-animation {
    position: relative;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.trophy-main {
    position: relative;
    font-size: 5rem;
    color: #fbbf24;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: floatTrophy 3s ease-in-out infinite;
}

.trophy-main img {
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.3));
    animation: floatTrophy 3s ease-in-out infinite;
}

.trophy-glint {
    position: absolute;
    top: -10px;
    right: -10px;
    width: 20px;
    height: 20px;
    background: radial-gradient(circle, white, transparent);
    border-radius: 50%;
    animation: glint 2s ease-in-out infinite;
}

.floating-cups {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
}

.cup-float {
    position: absolute;
    font-size: 1.8rem;
    animation: float 2.5s ease-in-out infinite;
    filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.2));
}

.cup-float:nth-child(1) {
    top: -10px;
    right: -20px;
    animation-delay: 0s;
}

.cup-float:nth-child(2) {
    bottom: 20px;
    left: -30px;
    animation-delay: 0.3s;
}

.cup-float:nth-child(3) {
    top: 50%;
    right: -40px;
    animation-delay: 0.6s;
}

.cup-float:nth-child(4) {
    bottom: -10px;
    right: 20px;
    animation-delay: 0.9s;
}

.cup-float:nth-child(5) {
    top: 20px;
    left: -20px;
    animation-delay: 1.2s;
}

.cup-float:nth-child(6) {
    bottom: 40%;
    left: -15px;
    animation-delay: 1.5s;
}

/* ذرات */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: #fbbf24;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat 2s ease-in-out infinite;
}

.particle:nth-child(1) {
    top: 10%;
    left: 20%;
    animation-delay: 0s;
}

.particle:nth-child(2) {
    top: 70%;
    right: 30%;
    animation-delay: 0.5s;
}

.particle:nth-child(3) {
    bottom: 20%;
    left: 40%;
    animation-delay: 1s;
}

.particle:nth-child(4) {
    top: 40%;
    right: 50%;
    animation-delay: 1.5s;
}

.particle:nth-child(5) {
    bottom: 60%;
    left: 60%;
    animation-delay: 2s;
}

/* انیمیشن‌ها */
@keyframes floatTrophy {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

@keyframes glint {

    0%,
    100% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-12px) rotate(8deg);
    }
}

@keyframes particleFloat {

    0%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }

    50% {
        opacity: 1;
        transform: translateY(-20px);
    }
}

/* کارت معرفی */
.intro-card {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 24px;
    padding: 25px 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
    margin-top: -30px;
    margin-bottom: 40px;
    position: relative;
    z-index: 10;
}

.intro-content {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.intro-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.intro-icon i {
    font-size: 2rem;
    color: white;
}

.intro-text {
    flex: 1;
}

.intro-text h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
}

.intro-text p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0;
}

.intro-stats {
    display: flex;
    gap: 20px;
}

.intro-stat {
    text-align: center;
    padding: 8px 16px;
    background: white;
    border-radius: 16px;
    min-width: 100px;
}

.intro-stat-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: #4f46e5;
    display: block;
}

.intro-stat-label {
    font-size: 0.7rem;
    color: #64748b;
}

/* فیلترها */
.filter-wrapper {
    background: #f8fafc;
    border-radius: 20px;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 1px solid #e2e8f0;
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-title {
    font-weight: 700;
    color: #1e293b;
    font-size: 0.9rem;
}

.filter-title i {
    color: #4f46e5;
    margin-left: 5px;
}

.filter-result {
    font-size: 0.8rem;
    color: #64748b;
}

.filter-section {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
}

.filter-btn.active {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
}

.filter-btn:not(.active) {
    background: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
}

.filter-btn:not(.active):hover {
    background: #f1f5f9;
    color: #4f46e5;
}

.filter-count {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    padding: 2px 8px;
    font-size: 0.7rem;
    font-weight: 600;
}

.filter-btn.active .filter-count {
    background: rgba(255, 255, 255, 0.2);
}

/* تعداد کل */
.total-count-wrapper {
    margin-bottom: 30px;
}

.total-count {
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    border-radius: 60px;
    padding: 12px 25px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 10px 25px rgba(79, 70, 229, 0.3);
}

.total-count-icon {
    width: 45px;
    height: 45px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.total-count-icon i {
    font-size: 1.5rem;
    color: white;
}

.total-count-text {
    color: white;
}

.total-count-text span {
    font-size: 1.8rem;
    font-weight: 800;
    display: block;
    line-height: 1.2;
}

.total-count-text small {
    font-size: 0.7rem;
    opacity: 0.9;
}

.total-count-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 0.8rem;
    color: #fbbf24;
}

/* هدر کاربران */
.users-header {
    text-align: center;
    margin-bottom: 30px;
}

.users-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.users-subtitle {
    color: #64748b;
    font-size: 0.85rem;
}

/* کارت‌های کاربران */
.user-card {
    background: white;
    border-radius: 20px;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    height: 100%;
    border: 1px solid #e2e8f0;
}

.user-card:hover {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.card-avatar {
    position: relative;
    padding: 25px 20px 15px;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
}

.avatar-img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid white;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    background: white;
}

.cup-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.2));
}

.user-info {
    padding: 20px;
    text-align: center;
}

.user-name {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 5px;
    color: #1e293b;
}

.user-cup {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.cup_bronze {
    background: linear-gradient(135deg, #cd7f32, #b87333);
    color: white;
}

.cup_silver {
    background: linear-gradient(135deg, #c0c0c0, #a0a0a0);
    color: #2d2d2d;
}

.cup_gold {
    background: linear-gradient(135deg, #ffd700, #f0b90b);
    color: #5c4000;
}

.cup_diamond {
    background: linear-gradient(135deg, #4a69bd, #3b5998);
    color: white;
}

.stats-row {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 10px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 1.2rem;
    font-weight: 800;
    color: #4f46e5;
}

.stat-label {
    font-size: 0.7rem;
    color: #64748b;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-icon {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f5f9;
    color: #4f46e5;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 1.1rem;
}

.social-icon:hover {
    background: #4f46e5;
    color: white;
}

.view-profile-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    color: white;
    text-align: center;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 600;
    margin-top: 15px;
    transition: all 0.2s ease;
}

.view-profile-btn:hover {
    background: linear-gradient(135deg, #4338ca, #6d28d9);
    color: white;
}

a {
    text-decoration: none !important;
}

/* ریسپانسیو */
@media (max-width: 992px) {

    .header-title,
    .gradient-text {
        font-size: 2rem;
    }

    .intro-content {
        flex-direction: column;
        text-align: center;
    }

    .intro-stats {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .main-header {
        padding: 30px 20px;
    }

    .header-title,
    .gradient-text {
        font-size: 1.5rem;
    }

    .feature-tag {
        font-size: 0.7rem;
    }

    .btn-primary-header,
    .btn-outline-header {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .intro-card {
        padding: 20px;
        margin-top: -20px;
    }

    .intro-text h3 {
        font-size: 1.1rem;
    }

    .intro-text p {
        font-size: 0.8rem;
    }

    .intro-stat-number {
        font-size: 1.2rem;
    }

    .total-count {
        padding: 10px 20px;
    }

    .total-count-text span {
        font-size: 1.2rem;
    }

    .filter-btn {
        padding: 6px 14px;
        font-size: 0.75rem;
    }

    .user-name {
        font-size: 1rem;
    }
}