/* ============================================= */
/* متغیرها */
/* ============================================= */
:root {
    --primary-color: #dc3545;
    --primary-dark: #c82333;
    --primary-light: #f8d7da;
    --primary-gradient: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    
    --gold-color: #ffc107;
    --gold-dark: #e0a800;
    
    --success-color: #28a745;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    
    --white: #ffffff;
    --light-gray: #f8f9fa;
    --gray: #e9ecef;
    --dark-gray: #495057;
    --black: #212529;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.15);
    --shadow-xl: 0 15px 40px rgba(0,0,0,0.2);
    --shadow-primary: 0 4px 15px rgba(220, 53, 69, 0.3);
    
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 30px;
    
    --font-family: 'Vazirmatn', sans-serif;
    
    --transition: all 0.3s ease;
}

/* ============================================= */
/* ریست و تنظیمات پایه */
/* ============================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background: linear-gradient(180deg, #1a1a2e 0%, #16213e 50%, #1a1a2e 100%);
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--white);
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================= */
/* اشکال هندسی چرخان (Geometric Shapes) */
/* ============================================= */
.shapes-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.shape {
    position: absolute;
    opacity: 0.15;
    animation: floatRotate linear infinite;
}

/* مثلث */
.shape.triangle {
    width: 0;
    height: 0;
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-bottom: 43px solid var(--primary-color);
}

.shape.triangle.gold {
    border-bottom-color: var(--gold-color);
}

/* مربع */
.shape.square {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    border-radius: 8px;
}

.shape.square.gold {
    background: var(--gold-color);
}

/* دایره */
.shape.circle {
    width: 35px;
    height: 35px;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    background: transparent;
}

.shape.circle.gold {
    border-color: var(--gold-color);
}

/* لوزی */
.shape.diamond {
    width: 30px;
    height: 30px;
    background: var(--primary-color);
    transform: rotate(45deg);
}

.shape.diamond.gold {
    background: var(--gold-color);
}

/* شش‌ضلعی */
.shape.hexagon {
    width: 40px;
    height: 23px;
    background: var(--primary-color);
    position: relative;
}

.shape.hexagon::before,
.shape.hexagon::after {
    content: '';
    position: absolute;
    width: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
}

.shape.hexagon::before {
    top: -11px;
    border-bottom: 11px solid var(--primary-color);
}

.shape.hexagon::after {
    bottom: -11px;
    border-top: 11px solid var(--primary-color);
}

.shape.hexagon.gold {
    background: var(--gold-color);
}

.shape.hexagon.gold::before {
    border-bottom-color: var(--gold-color);
}

.shape.hexagon.gold::after {
    border-top-color: var(--gold-color);
}

/* ستاره */
.shape.star {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 25px solid var(--primary-color);
    position: relative;
}

.shape.star::after {
    content: '';
    position: absolute;
    top: 8px;
    left: -15px;
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid var(--primary-color);
}

.shape.star.gold {
    border-bottom-color: var(--gold-color);
}

.shape.star.gold::after {
    border-top-color: var(--gold-color);
}

/* انیمیشن شناور و چرخش */
@keyframes floatRotate {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.15;
    }
    90% {
        opacity: 0.15;
    }
    100% {
        transform: translateY(-100px) rotate(360deg);
        opacity: 0;
    }
}

/* انیمیشن پالس برای برخی اشکال */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.15;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.25;
    }
}

.shape.pulse {
    animation: floatRotate linear infinite, pulse 3s ease-in-out infinite;
}

/* ============================================= */
/* دکمه بازگشت ثابت */
/* ============================================= */
.back-btn-fixed {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50px;
    color: var(--white);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 100;
    transition: var(--transition);
}

.back-btn-fixed:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-5px);
}

.back-btn-fixed i {
    font-size: 1rem;
}

/* ============================================= */
/* صفحه جزئیات */
/* ============================================= */
.game-detail-page {
    position: relative;
    z-index: 1;
    padding: 80px 0 60px;
}

/* ============================================= */
/* کارت جزئیات */
/* ============================================= */
.detail-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    overflow: hidden;
    animation: cardAppear 0.6s ease;
}

@keyframes cardAppear {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================= */
/* هدر با پوستر */
/* ============================================= */
.detail-header {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.header-poster {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.poster-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.poster-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 46, 0.3) 0%,
        rgba(26, 26, 46, 0.6) 50%,
        rgba(26, 26, 46, 0.95) 100%
    );
}

.header-content {
    position: absolute;
    bottom: 30px;
    right: 30px;
    left: 30px;
    z-index: 2;
}

.detail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(220, 53, 69, 0.9);
    backdrop-filter: blur(5px);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.detail-badge.team {
    background: rgba(40, 167, 69, 0.9);
}

.detail-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 8px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.detail-subtitle {
    font-size: 1rem;
    opacity: 0.8;
}

.header-icon {
    position: absolute;
    top: 30px;
    left: 30px;
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 35px;
    color: var(--white);
    z-index: 2;
}

/* ============================================= */
/* محتوای جزئیات */
/* ============================================= */
.detail-body {
    padding: 35px;
}

.detail-section {
    margin-bottom: 35px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-section h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2rem;
    color: var(--white);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.detail-section h2 i {
    width: 40px;
    height: 40px;
    background: var(--primary-gradient);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1rem;
}

.detail-section p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.9;
    font-size: 0.95rem;
}

/* ============================================= */
/* لیست قوانین */
/* ============================================= */
.rules-list {
    list-style: none;
    display: grid;
    gap: 12px;
}

.rules-list li {
    position: relative;
    padding: 15px 20px 15px 50px;  /* ❌ این درست است برای RTL */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.9rem;
    transition: var(--transition);
}

.rules-list li:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 53, 69, 0.3);
    transform: translateX(-5px);
}

.rules-list li::before {
    content: '✓';
    position: absolute;
    left: 15px;  /* ✅ تغییر از right به left */
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 0.7rem;
    font-weight: bold;
}

/* ============================================= */
/* جوایز */
/* ============================================= */
.prizes-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.prize-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.prize-item:hover {
    transform: translateY(-5px);
}

.prize-item.gold {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.15) 0%, rgba(255, 193, 7, 0.05) 100%);
    border-color: rgba(255, 193, 7, 0.4);
}

.prize-item.gold:hover {
    box-shadow: 0 10px 30px rgba(255, 193, 7, 0.2);
}

.prize-item.silver {
    background: linear-gradient(135deg, rgba(192, 192, 192, 0.15) 0%, rgba(192, 192, 192, 0.05) 100%);
    border-color: rgba(192, 192, 192, 0.4);
}

.prize-item.silver:hover {
    box-shadow: 0 10px 30px rgba(192, 192, 192, 0.2);
}

.prize-item.bronze {
    background: linear-gradient(135deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.05) 100%);
    border-color: rgba(205, 127, 50, 0.4);
}

.prize-item.bronze:hover {
    box-shadow: 0 10px 30px rgba(205, 127, 50, 0.2);
}

.prize-medal {
    font-size: 40px;
    flex-shrink: 0;
}

.prize-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.prize-rank {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
}

.prize-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

/* ============================================= */
/* اطلاعات مسابقه */
/* ============================================= */
.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.info-item:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(220, 53, 69, 0.3);
}

.info-icon {
    width: 50px;
    height: 50px;
    background: var(--primary-gradient);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.info-icon.capacity {
    background: linear-gradient(135deg, var(--success-color) 0%, #218838 100%);
}

.info-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex-grow: 1;
}

.info-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.info-content strong {
    font-size: 1rem;
    color: var(--white);
}

/* نوار ظرفیت */
.capacity-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    margin-top: 8px;
    overflow: hidden;
}

.capacity-fill {
    height: 100%;
    background: var(--primary-gradient);
    border-radius: 3px;
    transition: width 1s ease;
}

/* ============================================= */
/* فوتر - قیمت و ثبت‌نام */
/* ============================================= */
.detail-footer {
    background: rgba(0, 0, 0, 0.3);
    padding: 30px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.price-section {
    flex-grow: 1;
}

.price-breakdown {
    display: flex;
    gap: 30px;
    margin-bottom: 15px;
}

.price-row {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.price-row span:first-child {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.price-row span:last-child {
    font-size: 1rem;
    color: var(--white);
}

.price-total {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-top: 15px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.price-total span:first-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.price-total span:last-child {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--gold-color);
}

/* دکمه ثبت‌نام */
.register-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 40px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--border-radius-lg);
    font-family: var(--font-family);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-primary);
    white-space: nowrap;
}

.register-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(220, 53, 69, 0.4);
}

.btn-text {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    z-index: 1;
}

.btn-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: left 0.5s ease;
}

.register-btn:hover .btn-shine {
    left: 100%;
}

/* ============================================= */
/* مودال‌ها */
/* ============================================= */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal.hidden {
    display: none;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
}

.modal-content {
    position: relative;
    background: linear-gradient(180deg, #1e1e3f 0%, #16213e 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-xl);
    padding: 35px;
    max-width: 450px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalSlideUp 0.4s ease;
}

.modal-content.large {
    max-width: 600px;
}

@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--white);
    font-size: 1rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

/* مودال لاگین */
.modal-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 20px;
    font-size: 35px;
}

.modal-icon.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.2) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 2px solid rgba(255, 193, 7, 0.5);
    color: var(--gold-color);
}

.modal-content h2 {
    text-align: center;
    font-size: 1.4rem;
    color: var(--white);
    margin-bottom: 10px;
}

.modal-content > p {
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 25px;
}

.modal-buttons {
    display: flex;
    gap: 12px;
}

/* دکمه‌ها */
.btn-primary,
.btn-secondary {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    border: none;
}

.btn-primary {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(220, 53, 69, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* ============================================= */
/* مودال ثبت‌نام بازی */
/* ============================================= */
.modal-header {
    text-align: center;
    margin-bottom: 25px;
}

.modal-game-icon {
    width: 70px;
    height: 70px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto 15px;
    font-size: 30px;
    color: white;
    box-shadow: var(--shadow-primary);
}

.modal-header h2 {
    margin-bottom: 0;
}

.modal-header h2 span {
    color: var(--primary-color);
}

/* نشانگر مراحل */
.step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.step-number {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 700;
    font-size: 1rem;
    transition: var(--transition);
    border: 2px solid transparent;
}

.step-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.step.active .step-number {
    background: var(--primary-gradient);
    color: white;
    box-shadow: var(--shadow-primary);
}

.step.active .step-label {
    color: var(--white);
    font-weight: 600;
}

.step.completed .step-number {
    background: var(--success-color);
    color: white;
}

.step-line {
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    margin-bottom: 25px;
}

.step-line.active {
    background: var(--primary-gradient);
}

/* فرم استپ‌ها */
.form-step {
    display: none;
}

.form-step.active {
    display: block;
    animation: fadeIn 0.4s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* کارت عضو */
.member-card {
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--border-radius-lg);
    margin-bottom: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.03);
}

.member-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.member-header i {
    color: var(--primary-color);
}

.member-body {
    padding: 20px;
}

/* فرم */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group:last-child {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 8px;
}

.form-group label .required {
    color: var(--primary-color);
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.95rem;
    color: var(--white);
    transition: var(--transition);
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.15);
}

.form-group input.error {
    border-color: var(--primary-color);
    background: rgba(220, 53, 69, 0.1);
}

/* بخش هم‌تیمی‌ها */
.teammates-section {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.2);
}

.teammates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.teammates-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--white);
}

.teammates-header h3 i {
    color: var(--success-color);
}

.add-teammate-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: linear-gradient(135deg, var(--success-color) 0%, #218838 100%);
    color: white;
    border: none;
    border-radius: var(--border-radius);
    font-family: var(--font-family);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.add-teammate-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.add-teammate-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.teammates-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.teammate-card {
    border: 2px solid var(--success-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    animation: slideDown 0.3s ease;
    background: rgba(40, 167, 69, 0.05);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.teammate-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: rgba(40, 167, 69, 0.2);
    border-bottom: 1px solid rgba(40, 167, 69, 0.3);
}

.teammate-header span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--success-color);
}

.remove-teammate-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.remove-teammate-btn:hover {
    background: var(--primary-dark);
}

.teammate-body {
    padding: 15px;
}

.teammates-hint {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 15px;
    padding: 12px 15px;
    background: rgba(23, 162, 184, 0.1);
    border: 1px solid rgba(23, 162, 184, 0.3);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    color: var(--info-color);
}

/* دکمه ادامه */
.btn-next {
    width: 100%;
    margin-top: 10px;
}

/* ============================================= */
/* مرحله پرداخت */
/* ============================================= */
.payment-summary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    padding: 20px;
    margin-bottom: 25px;
}

.payment-summary h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 15px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-summary h3 i {
    color: var(--primary-color);
}

.summary-item {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.7);
}

.summary-item span:last-child {
    color: var(--white);
}

.summary-item.total {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gold-color);
    padding-top: 15px;
}

.summary-item.total span:last-child {
    color: var(--gold-color);
}

.summary-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* درگاه پرداخت */
.payment-methods {
    margin-bottom: 25px;
}

.payment-methods h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    color: var(--white);
    margin-bottom: 15px;
}

.payment-methods h3 i {
    color: var(--primary-color);
}

.payment-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.payment-option {
    cursor: pointer;
}

.payment-option input {
    display: none;
}

.payment-option-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-lg);
    transition: var(--transition);
}

.payment-option input:checked + .payment-option-content {
    border-color: var(--primary-color);
    background: rgba(220, 53, 69, 0.1);
}

.payment-option-content img {
    height: 40px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.7;
}

.payment-option input:checked + .payment-option-content img {
    opacity: 1;
}

.payment-option-content span {
    font-size: 0.9rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
}

.payment-option input:checked + .payment-option-content span {
    color: var(--white);
}

/* دکمه‌های فرم */
.form-buttons {
    display: flex;
    gap: 15px;
}

.form-buttons .btn-secondary,
.form-buttons .btn-primary {
    flex: 1;
}

.btn-pay {
    background: linear-gradient(135deg, var(--success-color) 0%, #218838 100%);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-pay:hover {
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

/* ============================================= */
/* کلاس‌های کمکی */
/* ============================================= */
.hidden {
    display: none !important;
}

/* ============================================= */
/* ریسپانسیو */
/* ============================================= */
@media (max-width: 768px) {
    .game-detail-page {
        padding: 70px 0 40px;
    }
    
    .back-btn-fixed span {
        display: none;
    }
    
    .detail-header {
        height: 220px;
    }
    
    .header-content {
        bottom: 20px;
        right: 20px;
        left: 20px;
    }
    
    .detail-title {
        font-size: 1.6rem;
    }
    
    .header-icon {
        width: 60px;
        height: 60px;
        font-size: 25px;
        top: 20px;
        left: 20px;
    }
    
    .detail-body {
        padding: 25px 20px;
    }
    
    .prizes-grid {
        grid-template-columns: 1fr;
    }
    
    .prize-item {
        padding: 15px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-footer {
        flex-direction: column;
        padding: 25px 20px;
        gap: 20px;
    }
    
    .price-breakdown {
        flex-direction: column;
        gap: 10px;
    }
    
    .price-row {
        flex-direction: row;
        justify-content: space-between;
    }
    
    .register-btn {
        width: 100%;
        justify-content: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .payment-options {
        grid-template-columns: 1fr;
    }
    
    .step-indicator {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .step-line {
        display: none;
    }
}

@media (max-width: 480px) {
    .detail-header {
        height: 180px;
    }
    
    .detail-title {
        font-size: 1.3rem;
    }
    
    .detail-subtitle {
        font-size: 0.85rem;
    }
    
    .modal-content {
        padding: 25px 20px;
    }
    
    .modal-buttons {
        flex-direction: column;
    }
    
    .form-buttons {
        flex-direction: column;
    }
    
    .price-total span:last-child {
        font-size: 1.2rem;
    }
}

/* ============================================= */
/* اسکرول‌بار سفارشی */
/* ============================================= */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}