/* =========================
   RESET
========================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    min-height: 100vh;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.45), rgba(0, 0, 0, 0.65)),
        url("../../images/gta-v3.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: white;
    overflow-x: hidden;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   HEADER
========================= */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    z-index: 2000;
}

.header-container {
    width: 100%;
    max-width: 1200px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: relative;
}

/* ===== سمت چپ: فروشگاه + دانلود ===== */
.header-left {
	position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2002;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2002;
}

.header-nav-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 0, 170, 0.1);
    border: 1px solid rgba(255, 0, 170, 0.2);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.header-nav-link:hover {
    background: rgba(255, 0, 170, 0.2);
    border-color: rgba(255, 0, 170, 0.4);
    transform: scale(1.05);
}

/* ===== لوگو (وسط با margin: 0 auto) ===== */
.logo {
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    font-size: 32px;
    font-weight: 800;
    letter-spacing: 1px;
    text-shadow: 0 0 5px rgba(255, 0, 170, 0.8), 0 0 12px rgba(255, 0, 170, 0.8), 0 0 25px rgba(255, 0, 170, 0.7), 0 0 45px rgba(180, 0, 255, 0.5);
    animation: logoGlow 2.2s ease-in-out infinite alternate;
    transition: transform 0.3s ease;
    z-index: 2001;
    filter: none !important;
    margin: 0 auto;
}

.logo:hover {
    transform: scale(1.05);
}

.logo img {
    filter: none !important;
}

.logo .spark {
    filter: none !important;
}

/* Sparks */
.spark {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #ff5ac8;
    box-shadow: 0 0 4px #ff00aa, 0 0 8px #ff00aa, 0 0 14px #b000ff;
    opacity: 0;
    pointer-events: none;
    animation: sparkle 1.8s ease-in-out infinite;
}

.spark-1 { top: 2px; left: 8px; animation-delay: 0.1s; }
.spark-2 { top: -6px; left: 65px; animation-delay: 0.8s; }
.spark-3 { top: 20px; left: -8px; animation-delay: 1.2s; }
.spark-4 { top: 42px; left: 35px; animation-delay: 0.4s; }
.spark-5 { top: 8px; right: 70px; animation-delay: 1.5s; }
.spark-6 { top: 48px; right: 25px; animation-delay: 0.65s; }

@keyframes sparkle {
    0% { opacity: 0; transform: scale(0.2) translate(0, 0); }
    20% { opacity: 1; transform: scale(1.3) translate(0, -2px); }
    40% { opacity: 0.8; transform: scale(0.8) translate(2px, -4px); }
    60% { opacity: 0.4; transform: scale(0.5) translate(-2px, -7px); }
    100% { opacity: 0; transform: scale(0.1) translate(1px, -10px); }
}

/* ===== سمت راست: داشبورد + خروج ===== */
.header-right {
	position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2002;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 2002;
}

.panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: rgba(255, 0, 170, 0.1);
    border: 1px solid rgba(255, 0, 170, 0.2);
    border-radius: 30px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.panel-btn:hover {
    background: rgba(255, 0, 170, 0.2);
    border-color: rgba(255, 0, 170, 0.4);
    transform: scale(1.05);
}

.logout-btn-header {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.2);
    border-radius: 30px;
    color: #ff6b6b;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
    white-space: nowrap;
}

.logout-btn-header:hover {
    background: rgba(255, 0, 0, 0.2);
    border-color: rgba(255, 0, 0, 0.4);
    transform: scale(1.05);
}

/* =========================
   SHOP BANNER
========================= */
.shop-banner {
    width: 100%;
    max-width: 1200px;
    margin: 80px auto 0;
    padding: 0 20px 10px;
}

.banner-card {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(255, 0, 170, 0.3);
    box-shadow: 0 0 30px rgba(255, 0, 170, 0.1), 0 0 60px rgba(176, 0, 255, 0.05);
    transition: all 0.4s ease;
}

.banner-card:hover {
    border-color: rgba(255, 0, 170, 0.6);
    box-shadow: 0 0 40px rgba(255, 0, 170, 0.2), 0 0 80px rgba(176, 0, 255, 0.1);
    transform: translateY(-3px);
}

.banner-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    display: block;
}

.banner-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 50px 35px 35px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.3) 60%, transparent 100%);
}

.banner-overlay h2 {
    font-size: 32px;
    font-weight: 900;
    color: white;
    margin-bottom: 10px;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.8);
}

.banner-overlay p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    max-width: 600px;
}

/* =========================
   BUTTONS
========================= */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 10px;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 100px;
    height: 45px;
    padding: 0 25px;
    background: rgba(15, 5, 25, 0.6);
    backdrop-filter: blur(12px);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.action-button:hover {
    transform: translateY(-3px);
    border-color: #ff00aa;
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.2);
    background: rgba(255, 0, 170, 0.1);
}

.action-button.shop-btn {
    background: rgba(255, 0, 170, 0.1);
    border-color: rgba(255, 0, 170, 0.25);
}

.action-button.shop-btn:hover {
    background: rgba(255, 0, 170, 0.2);
    border-color: #ff00aa;
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.15);
}

/* =========================
   SHOP CONTAINER
========================= */
.shop-container {
    max-width: 1000px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 25px 30px;
}

.shop-card {
    background: rgba(15, 5, 25, 0.75);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 0, 170, 0.25);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6), 0 0 60px rgba(255, 0, 170, 0.05);
}

.shop-card h1 {
    text-align: center;
    font-size: 36px;
    font-weight: 900;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #ff00aa, #b000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.shop-card .subtitle {
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 20px;
}

/* =========================
   SHOP SECTION
========================= */
.shop-section {
    margin-bottom: 45px;
}

.shop-section:last-child {
    margin-bottom: 0;
}

.section-header {
    text-align: center;
    margin-bottom: 20px;
}

.section-badge {
    display: inline-block;
    font-size: 14px;
    font-weight: 600;
    color: white;
    padding: 6px 18px;
    background: rgba(255, 0, 170, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    border: 1px solid rgba(255, 0, 170, 0.3);
    letter-spacing: 0.5px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    margin-bottom: 8px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin: 0;
}

/* =========================
   SHOP GRID
========================= */
.shop-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* =========================
   SHOP ITEM
========================= */
.shop-item {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    transition: all 0.3s ease;
}

.shop-item:hover {
    background: rgba(255, 0, 170, 0.06);
    border-color: rgba(255, 0, 170, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.shop-item-image {
    position: relative;
    width: 100%;
    height: 180px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.3);
}

.shop-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.shop-item:hover .shop-item-image img {
    transform: scale(1.05);
}

.shop-item-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(255, 0, 170, 0.8);
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    box-shadow: 0 2px 10px rgba(255, 0, 170, 0.3);
}

.shop-item-info {
    padding: 16px 18px;
}

.shop-item-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.shop-item-info p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
}

.shop-item-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
}

.shop-item-price .price {
    font-size: 18px;
    font-weight: 700;
    color: #ff4fc3;
}

.shop-item-price .price-label {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.shop-btn-buy {
    width: 100%;
    padding: 10px;
    background: rgba(255, 0, 170, 0.15);
    border: 1px solid rgba(255, 0, 170, 0.3);
    border-radius: 30px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: inherit;
}

.shop-btn-buy:hover {
    background: rgba(255, 0, 170, 0.25);
    border-color: #ff00aa;
    transform: scale(1.02);
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.15);
}

.shop-btn-buy:active {
    transform: scale(0.98);
}

/* =========================
   FOOTER
========================= */
.footer {
    flex-shrink: 0;
    width: fit-content;
    min-width: 320px;
    max-width: 95%;
    padding: 12px 25px;
    margin: 0 auto 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    pointer-events: none;
    border: 1px solid rgba(255, 0, 170, 0.4);
    border-radius: 30px;
    background: rgba(15, 5, 25, 0.45);
    backdrop-filter: blur(10px);
    box-shadow: 0 0 10px rgba(255, 0, 170, 0.2), 0 0 25px rgba(176, 0, 255, 0.15);
    z-index: 100;
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.footer-text {
    font-size: 13px;
    font-weight: 500;
    line-height: 1.8;
}

.footer-text span {
    color: #ff4fc3;
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 0, 170, 0.8), 0 0 10px rgba(255, 0, 170, 0.6), 0 0 20px rgba(180, 0, 255, 0.5);
}

.copyright {
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 12px;
    letter-spacing: 0.5px;
}

/* =========================
   BACK TO TOP
========================= */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid rgba(255, 0, 170, 0.6);
    background: rgba(15, 5, 25, 0.8);
    backdrop-filter: blur(10px);
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.8);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.2), 0 0 40px rgba(176, 0, 255, 0.1);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    transform: translateY(-3px) scale(1.1);
    border-color: #ff00aa;
    box-shadow: 0 0 30px rgba(255, 0, 170, 0.4), 0 0 60px rgba(176, 0, 255, 0.2);
    background: rgba(255, 0, 170, 0.15);
}

.back-to-top:active {
    transform: scale(0.9);
}

.back-to-top svg {
    stroke: #ff4fc3;
    filter: drop-shadow(0 0 5px rgba(255, 0, 170, 0.5));
    transition: all 0.3s ease;
}

.back-to-top:hover svg {
    stroke: white;
    filter: drop-shadow(0 0 10px rgba(255, 0, 170, 0.8));
}

/* =========================
   SCROLL ANIMATIONS
========================= */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .banner-card img {
        height: 220px;
    }

    .banner-overlay {
        padding: 30px 20px 20px;
    }

    .banner-overlay h2 {
        font-size: 22px;
    }

    .banner-overlay p {
        font-size: 14px;
    }

    .shop-card {
        padding: 25px 20px;
    }

    .shop-card h1 {
        font-size: 26px;
    }

    .shop-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .shop-item-image {
        height: 140px;
    }

    .shop-item-info h3 {
        font-size: 15px;
    }

    .shop-item-info p {
        font-size: 12px;
    }

    .shop-item-price .price {
        font-size: 16px;
    }

    .shop-btn-buy {
        font-size: 14px;
        padding: 8px;
    }

    .footer {
        min-width: unset;
        width: 90%;
        max-width: 400px;
        padding: 10px 18px;
        margin: 0 auto 20px;
    }

    .footer-text {
        font-size: 12px;
    }

    .copyright {
        font-size: 11px;
    }

    .fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .fade-up.visible {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (max-width: 480px) {
    .banner-card img {
        height: 160px;
    }

    .banner-overlay {
        padding: 18px 15px 15px;
    }

    .banner-overlay h2 {
        font-size: 17px;
        margin-bottom: 4px;
    }

    .banner-overlay p {
        font-size: 12px;
    }

    .shop-card {
        padding: 18px 14px;
    }

    .shop-card h1 {
        font-size: 22px;
    }

    .shop-card .subtitle {
        font-size: 12px;
    }

    .shop-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .shop-item-image {
        height: 180px;
    }

    .shop-item-info h3 {
        font-size: 16px;
    }

    .shop-item-info p {
        font-size: 13px;
    }

    .shop-item-price .price {
        font-size: 17px;
    }

    .shop-btn-buy {
        font-size: 15px;
        padding: 10px;
    }

    .footer {
        width: 92%;
        max-width: 320px;
        padding: 8px 14px;
        margin: 0 auto 15px;
        border-radius: 20px;
    }

    .footer-text {
        font-size: 10px;
        line-height: 1.6;
    }

    .copyright {
        font-size: 9px;
        margin-top: 2px;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 44px;
        height: 44px;
    }

    .back-to-top svg {
        width: 20px;
        height: 20px;
    }

    .section-title {
        font-size: 20px;
    }
}

/* =========================
   SAMANDEHI LOGO
========================= */
.samandehi-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px 0 5px;
    margin-top: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.samandehi-footer a {
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid rgba(255, 0, 170, 0.1);
    padding: 5px;
    background: rgba(255, 255, 255, 0.02);
}

.samandehi-footer a:hover {
    transform: scale(1.05);
    border-color: rgba(255, 0, 170, 0.3);
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.08);
}

.samandehi-footer img {
    display: block;
    width: 85px;
    height: 85px;
    object-fit: contain;
}

/* ===== موبایل ===== */
@media (max-width: 600px) {
    .samandehi-footer img {
        width: 65px;
        height: 65px;
    }
    
    .samandehi-footer {
        padding: 8px 0 4px;
    }
}