/* ============================================================
   Squid Game Theme - استایل‌های اصلی (نسخه اصلاح شده)
   ============================================================ */

/* =============== ریست =============== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    overflow-x: hidden;
}

body {
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    background: #0a0a0a;
}
/* =============== نوار کاربری سفارشی =============== */
.custom-user-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 0, 0, 0.2);
    padding: 8px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 55px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}

.user-bar-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatarbar {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.user-avatarbar img {
    border-radius: 50%;
    border: 2px solid #ff0000;
    width: 35px;
    height: 35px;
}

.user-name {
    font-weight: 600;
    color: #fff;
}

.user-bar-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.bar-btn {
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 8px;
    padding: 6px 12px;
    color: rgba(255,255,255,0.7);
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s;
    cursor: pointer;
}
.logout-btn svg {
    stroke: #ff0000;
    transition: all 0.3s;
}

.logout-btn:hover svg {
    stroke: #ff4444;
    transform: rotate(90deg);
}
.bar-btn:hover {
    background: rgba(255,0,0,0.15);
    border-color: rgba(255,0,0,0.3);
    color: #fff;
}

.bar-btn.logout-btn:hover {
    background: rgba(255,0,0,0.2);
    border-color: #ff0000;
    color: #ff0000;
}

/* فاصله برای محتوای صفحه */
.game-main {
    padding-top: 75px !important;
}

/* واکنش‌گرا */
@media (max-width: 480px) {
    .user-name {
        font-size: 12px;
    }
    .bar-btn {
        font-size: 14px;
        padding: 4px 10px;
    }
}
/* =============== برای موبایل =============== */
@media (max-width: 768px) {
    .custom-user-bar {
        padding: 8px 12px;
        border-radius: 12px;
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .user-name {
        font-size: 12px;
    }
    
    .user-avatarbar img {
        width: 28px !important;
        height: 28px !important;
    }
    
    .bar-btn,
    .logout-btn {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
    
    .logout-btn svg {
        width: 15px;
        height: 15px;
    }
}
/* =============== پس‌زمینه =============== */
.squid-game-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    height: auto;
    overflow-y: auto;
    padding: 20px 20px 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: 
        radial-gradient(ellipse at 20% 50%, rgba(255,0,0,0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(255,0,0,0.10) 0%, transparent 60%),
        linear-gradient(180deg, #0a0a0a 0%, #1a0a0a 50%, #0a0a0a 100%);
}

/* =============== المان‌های بازی مرکب =============== */
.squid-pattern {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.squid-pattern .circle {
    position: absolute;
    border: 2px solid rgba(255,0,0,0.08);
    border-radius: 50%;
    animation: rotate 60s linear infinite;
}

.squid-pattern .circle:nth-child(1) {
    width: 600px;
    height: 600px;
    top: -100px;
    right: -100px;
    border-color: rgba(255,0,0,0.06);
}

.squid-pattern .circle:nth-child(2) {
    width: 400px;
    height: 400px;
    bottom: -50px;
    left: -50px;
    border-color: rgba(255,0,0,0.08);
    animation-duration: 40s;
    animation-direction: reverse;
}

.squid-pattern .circle:nth-child(3) {
    width: 800px;
    height: 800px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-color: rgba(255,0,0,0.04);
    animation-duration: 80s;
}

.squid-pattern .circle:nth-child(4) {
    width: 200px;
    height: 200px;
    top: 20%;
    left: 15%;
    border-color: rgba(255,0,0,0.05);
    animation-duration: 30s;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.triangle-pattern {
    position: fixed;
    z-index: 0;
    pointer-events: none;
    opacity: 0.06;
}

.triangle-pattern::before {
    content: '▲';
    position: absolute;
    font-size: 200px;
    color: #ff0000;
}

.triangle-pattern:nth-child(1) {
    top: 10%;
    right: 5%;
}

.triangle-pattern:nth-child(2) {
    bottom: 15%;
    left: 8%;
    transform: rotate(45deg);
}

/* =============== کارت اصلی =============== */
.squid-main-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 500px;
    background: linear-gradient(145deg, #1a0a0a, #0a0a0a);
    border: 2px solid rgba(255,0,0,0.3);
    border-radius: 30px;
    padding: 40px 30px 35px;
    text-align: center;
    box-shadow: 0 0 40px rgba(255,0,0,0.1);
    margin: 20px 0;
    overflow-y: visible;
}

/* =============== هدر =============== */
.game-badge {
    display: inline-block;
    background: rgba(255,0,0,0.15);
    border: 1px solid rgba(255,0,0,0.2);
    border-radius: 50px;
    padding: 5px 18px;
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.game-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 5px;
}

.game-logo .sword {
    font-size: 35px;
    opacity: 0.3;
}

.game-logo .title {
    font-size: 40px;
    font-weight: 900;
    background: linear-gradient(135deg, #ff0000, #cc0000, #ff0000);
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradient-shift 3s ease-in-out infinite;
    letter-spacing: -2px;
}

@keyframes gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.subtitle {
    font-size: 13px;
    color: rgba(255,255,255,0.3);
    font-weight: 300;
    letter-spacing: 4px;
    margin-top: 5px;
}

/* =============== شمارنده =============== */
.squid-counter {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 25px 0;
}

.counter-item {
    background: rgba(255,0,0,0.05);
    border: 1px solid rgba(255,0,0,0.1);
    border-radius: 10px;
    padding: 6px 12px;
    min-width: 55px;
}

.counter-item .number {
    font-size: 18px;
    font-weight: 700;
    color: #ff0000;
    display: block;
}

.counter-item .label {
    font-size: 9px;
    color: rgba(255,255,255,0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* =============== دکمه‌ها =============== */
.squid-btn-primary {
    display: block;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 700;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    background: linear-gradient(135deg, #ff0000, #cc0000);
    color: #fff;
    box-shadow: 0 5px 25px rgba(255,0,0,0.3);
}

.squid-btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 35px rgba(255,0,0,0.5);
    color: #fff;
}

.squid-btn-primary:active {
    transform: translateY(0px);
}

.squid-btn-primary .icon {
    margin-left: 8px;
}

/* =============== فوتر =============== */
.squid-footer {
    margin-top: 25px;
    font-size: 10px;
    color: rgba(255,255,255,0.15);
    letter-spacing: 2px;
}

.squid-footer .dot {
    color: #ff0000;
    margin: 0 5px;
}

/* =============== اسکرول‌بار =============== */
::-webkit-scrollbar {
    width: 5px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #ff0000;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: #cc0000;
}

/* =============== واکنش‌گرا =============== */
@media (max-width: 480px) {
    .squid-main-card {
        padding: 25px 18px 25px;
        border-radius: 20px;
    }
    
    .game-logo .title {
        font-size: 28px;
    }
    
    .game-logo .sword {
        font-size: 24px;
    }
    
    .squid-btn-primary {
        font-size: 15px;
        padding: 14px;
    }
    
    .counter-item {
        padding: 4px 8px;
        min-width: 45px;
    }
    
    .counter-item .number {
        font-size: 15px;
    }
}

@media (min-width: 768px) {
    .squid-main-card {
        padding: 50px 40px 45px;
    }
}
/* =============== منوی پروفایل =============== */
.profile-menu {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    flex-wrap: wrap;
}

.profile-tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', Tahoma, sans-serif;
    position: relative;
    flex: 1;
    justify-content: center;
}

.profile-tab-btn .tab-icon {
    font-size: 18px;
    transition: all 0.3s;
}

.profile-tab-btn .tab-label {
    font-size: 14px;
}

.profile-tab-btn:hover {
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.05);
}

.profile-tab-btn.active {
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.15), rgba(250, 204, 21, 0.05));
    color: #facc15;
    box-shadow: 0 0 30px rgba(250, 204, 21, 0.05);
}

.profile-tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: linear-gradient(90deg, transparent, #facc15, transparent);
    border-radius: 2px;
}

.profile-tab-btn.active .tab-icon {
    transform: scale(1.1);
}

/* =============== محتوای تب‌ها =============== */
.profile-tab-content {
    display: none;
    animation: fadeInTab 0.3s ease;
}

.profile-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =============== برای موبایل =============== */
@media (max-width: 768px) {
    .profile-menu {
        flex-direction: column;
        gap: 6px;
        padding: 6px;
        border-radius: 12px;
    }
    
    .profile-tab-btn {
        justify-content: center;
        padding: 10px 16px;
        font-size: 13px;
        flex: none;
    }
    
    .profile-tab-btn .tab-label {
        font-size: 13px;
    }
}