/* =========================
   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);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .logo {
        font-size: 20px;
        margin: 0;
    }
    
    .header-container {
        flex-wrap: wrap;
        justify-content: space-between;
        gap: 8px;
    }
    
    .header-left {
        gap: 6px;
    }
    
    .header-right {
        gap: 10px;
    }
    
    .panel-btn {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .logout-btn-header {
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .header-nav-link {
        font-size: 12px;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 16px;
    }
    
    .panel-btn span {
        display: none;
    }
    .panel-btn {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .logout-btn-header span {
        display: none;
    }
    .logout-btn-header {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .header-nav-link {
        font-size: 11px;
        padding: 3px 4px;
    }
    
    .header-right {
        gap: 6px;
    }
}

/* =========================
   BANNER (زیر هدر)
========================= */
.rules-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;
}

/* =========================
   MAIN
========================= */
main {
    width: 100%;
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px 20px;
    position: relative;
    z-index: 1000;
}

/* =========================
   RULES HERO
========================= */
.rules-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    max-width: 800px;
    width: 100%;
    padding: 20px 20px;
}

.rules-hero-title {
    font-size: 38px;
    font-weight: 900;
    text-shadow: 0 0 20px rgba(255, 0, 170, 0.5), 0 0 40px rgba(176, 0, 255, 0.3);
    margin: 0;
    line-height: 1.3;
}

.rules-hero-title span {
    background: linear-gradient(135deg, #ff00aa, #b000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.rules-hero-desc {
    font-size: 17px;
    opacity: 0.85;
    color: rgba(255, 255, 255, 0.8);
    max-width: 500px;
    line-height: 1.8;
}

/* =========================
   BUTTONS
========================= */
.hero-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 5px;
}

.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.rules-btn {
    background: rgba(255, 0, 170, 0.1);
    border-color: rgba(255, 0, 170, 0.25);
}

.action-button.rules-btn:hover {
    background: rgba(255, 0, 170, 0.2);
    border-color: #ff00aa;
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.15);
}

/* =========================
   RULES SECTION
========================= */
.rules-container {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    padding: 20px 25px 30px;
}

.rules-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);
}

.rules-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;
}

.rules-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;
}

/* =========================
   RULE ITEMS
========================= */
.rule-item {
    display: flex;
    gap: 18px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.rule-item:last-child {
    border-bottom: none;
}

.rule-icon {
    min-width: 55px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 2px;
}

.rule-icon img {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border-radius: 12px;
    border: 2px solid rgba(255, 0, 170, 0.2);
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
}

.rule-icon img:hover {
    border-color: #ff00aa;
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 0, 170, 0.2);
}

.rule-content {
    flex: 1;
}

.rule-content h3 {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.rule-content p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

#rules-section {
    scroll-margin-top: 100px;
}

/* =========================
   DIVIDER IMAGE (عکس با عنوان و کپشن)
========================= */
.divider-image-wrapper {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.divider-header {
    text-align: center;
    width: 100%;
}

.divider-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: 6px;
}

.divider-title {
    font-size: 32px;
    font-weight: 900;
    margin: 0;
    background: linear-gradient(135deg, #ff00aa, #b000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 0, 170, 0.3));
}

.divider-image-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    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);
    background: rgba(15, 5, 25, 0.75);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    cursor: pointer;
}

.divider-image-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: scale(1.02) translateY(-3px);
}

.divider-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.divider-image-card:hover img {
    opacity: 0.9;
}

.divider-image-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.divider-image-card:hover .divider-image-hint {
    opacity: 1;
}

.divider-footer {
    text-align: center;
    width: 100%;
}

.divider-caption {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
    line-height: 1.6;
    max-width: 400px;
    margin: 0 auto;
}

/* =========================
   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));
}

.lightbox.active ~ .back-to-top,
.lightbox.show ~ .back-to-top,
body:has(.lightbox[style*="display: flex"]) .back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* =========================
   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);
}

/* =========================
   BLACK & WHITE HOVER
========================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    backdrop-filter: grayscale(1) contrast(1.05);
    -webkit-backdrop-filter: grayscale(1) contrast(1.05);
    opacity: 0;
    transition: opacity 0.35s ease;
}

/* ===== وقتی موس روی دکمه‌های action-button یا rules-btn میره ===== */
body:has(.action-button:hover)::before,
body:has(.rules-btn:hover)::before {
    opacity: 1;
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    animation: lightboxFadeIn 0.3s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid rgba(255, 0, 170, 0.2);
    box-shadow: 0 0 60px rgba(255, 0, 170, 0.1);
    transition: transform 0.2s ease;
    cursor: grab;
    user-select: none;
}

.lightbox-image:active {
    cursor: grabbing;
}

/* ===== دکمه بستن ===== */
.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 40px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    z-index: 10001;
    line-height: 1;
}

.lightbox-close:hover {
    color: #ff00aa;
    transform: rotate(90deg);
}

/* ===== کپشن ===== */
.lightbox-caption {
    color: rgba(255, 255, 255, 0.8);
    font-size: 16px;
    font-weight: 500;
    text-align: center;
    margin-top: 15px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    max-width: 80%;
}

/* ===== دکمه‌های کنترل زوم (بهتر و زیباتر) ===== */
.lightbox-controls {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 10002;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(15px);
    padding: 10px 20px;
    border-radius: 50px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-btn:hover {
    background: rgba(255, 0, 170, 0.25);
    border-color: #ff00aa;
    transform: scale(1.1);
}

.lightbox-btn:active {
    transform: scale(0.9);
}

/* =========================
   SECTION HEADER (عنوان مشترک)
========================= */
.section-header {
    text-align: center;
    width: 100%;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 0, 170, 0.15);
}

.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: 32px;
    font-weight: 900;
    margin: 5px 0;
    background: linear-gradient(135deg, #ff00aa, #b000ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(255, 0, 170, 0.3));
}

.section-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    margin: 5px 0 0;
}

/* =========================
   DIVIDER GRID (دو عکس کنار هم)
========================= */
.divider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 25px;
    width: 100%;
    max-width: 800px;
    margin: 0 auto;
}

.divider-grid-item {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.divider-grid-item .divider-image-card {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 20px;
    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);
    background: rgba(15, 5, 25, 0.75);
    backdrop-filter: blur(15px);
    transition: all 0.4s ease;
    cursor: pointer;
}

.divider-grid-item .divider-image-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: scale(1.02) translateY(-3px);
}

.divider-grid-item .divider-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.4s ease;
}

.divider-grid-item .divider-image-card:hover img {
    opacity: 0.9;
}

.divider-grid-item .divider-image-hint {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.divider-grid-item .divider-image-card:hover .divider-image-hint {
    opacity: 1;
}

/* ===== کپشن زیر عکس ===== */
.divider-grid-item .divider-footer {
    text-align: center;
    width: 100%;
    margin-top: 10px;
}

.divider-grid-item .divider-caption {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.9);
    line-height: 1.6;
    max-width: 90%;
    margin: 0 auto;
}

/* =========================
   RESPONSIVE
========================= */

/* تبلت و موبایل بزرگ */
@media (max-width: 768px) {
    .rules-banner {
        margin: 70px auto 0;
        padding: 0 15px 5px;
    }

    .banner-card img {
        height: 220px;
    }

    .banner-overlay {
        padding: 30px 20px 20px;
    }

    .banner-overlay h2 {
        font-size: 22px;
    }

    .banner-overlay p {
        font-size: 14px;
    }

    .rules-hero-title {
        font-size: 28px;
    }

    .rules-hero-desc {
        font-size: 15px;
    }

    .rules-card {
        padding: 25px 20px;
    }

    .rules-card h1 {
        font-size: 26px;
    }

    .rule-item {
        gap: 15px;
        padding: 14px 0;
    }

    .rule-icon img {
        width: 38px;
        height: 38px;
    }

    .rule-content h3 {
        font-size: 16px;
    }

    .rule-content p {
        font-size: 13px;
    }

    .action-button {
        min-width: 80px;
        height: 40px;
        font-size: 14px;
        padding: 0 18px;
    }

    .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;
    }

    .divider-image-wrapper {
        max-width: 400px;
    }

    .divider-title {
        font-size: 26px;
    }

    .divider-caption {
        font-size: 14px;
    }

    .divider-image-card {
        border-radius: 20px;
    }

    .lightbox-close {
        top: -40px;
        right: 0;
        font-size: 32px;
    }
    
    .lightbox-image {
        max-height: 75vh;
    }
    
    .lightbox-caption {
        font-size: 14px;
        padding: 8px 16px;
        margin-top: 10px;
    }
    
    .lightbox-controls {
        bottom: -50px;
        gap: 10px;
    }
    
    .lightbox-btn {
        width: 35px;
        height: 35px;
        font-size: 15px;
    }

    .fade-up {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    
    .fade-up.visible {
        opacity: 1 !important;
        transform: none !important;
    }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .rules-banner {
        margin: 60px auto 0;
        padding: 0 12px 5px;
    }

    .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;
    }

    .rules-hero-title {
        font-size: 22px;
    }

    .rules-hero-desc {
        font-size: 13px;
    }

    .rules-card {
        padding: 18px 14px;
    }

    .rules-card h1 {
        font-size: 22px;
    }

    .rules-card .subtitle {
        font-size: 12px;
    }

    .rule-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        padding: 12px 0;
    }

    .rule-icon {
        min-width: auto;
    }

    .rule-icon img {
        width: 50px;
        height: 50px;
    }

    .rule-content h3 {
        font-size: 15px;
    }

    .rule-content p {
        font-size: 12px;
    }

    .action-button {
        min-width: 70px;
        height: 36px;
        font-size: 13px;
        padding: 0 14px;
    }

    .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;
    }

    .divider-image-wrapper {
        max-width: 300px;
    }

    .divider-title {
        font-size: 20px;
    }

    .divider-badge {
        font-size: 11px;
        padding: 4px 12px;
    }

    .divider-caption {
        font-size: 12px;
    }

    .divider-image-card {
        border-radius: 16px;
    }

    .divider-image-hint {
        font-size: 10px;
        padding: 4px 10px;
        bottom: 10px;
        right: 10px;
    }

    .lightbox-close {
        top: -35px;
        font-size: 28px;
    }
    
    .lightbox-image {
        max-height: 65vh;
        border-radius: 8px;
    }
    
    .lightbox-caption {
        font-size: 12px;
        padding: 6px 14px;
        margin-top: 8px;
    }
    
    .lightbox-controls {
        bottom: -45px;
        gap: 8px;
    }
    
    .lightbox-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

@media (max-width: 600px) {
    .divider-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .section-title {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .divider-grid-item .divider-caption {
        font-size: 13px;
    }
}

/* =========================
   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;
    }
}