/* ======================================== */
/* استایل‌های اصلی */
/* ======================================== */
:root {
    --primary-gradient: linear-gradient(135deg, #00d4ff, #7b2ffc);
    --dark-bg: #0a0a0a;
    --card-bg: #1a1a1a;
    --text-light: #ffffff;
    --text-muted: #b0b0b0;
    --border-color: #2a2a2a;
    --shadow-glow: 0 0 30px rgba(0, 212, 255, 0.1);
}

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

body {
    background: var(--dark-bg);
    color: var(--text-light);
    font-family: 'Vazir', 'IRANSans', 'Arial', sans-serif;
    direction: rtl;
    overflow-x: hidden;
}

/* ======================================== */
/* ⭐ Preloader */
/* ======================================== */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: all 0.5s ease;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.preloader-content {
    text-align: center;
}

.preloader-logo {
    font-size: 42px;
    font-weight: bold;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 30px;
}

.preloader-logo i {
    -webkit-text-fill-color: #00d4ff;
    margin-left: 10px;
}

.preloader-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    border: 4px solid #1a1a1a;
    border-top-color: #00d4ff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.preloader-bar {
    width: 200px;
    height: 4px;
    background: #1a1a1a;
    border-radius: 10px;
    margin: 0 auto;
    overflow: hidden;
}

.preloader-bar-inner {
    width: 0%;
    height: 100%;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    border-radius: 10px;
    animation: loading 2s ease-in-out infinite;
}

.preloader-text {
    color: #888;
    font-size: 14px;
    margin-top: 15px;
}

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

@keyframes loading {
    0% {
        width: 0%;
    }

    50% {
        width: 70%;
    }

    100% {
        width: 100%;
    }
}

/* ======================================== */
/* اسکرول بار سفارشی */
/* ======================================== */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--dark-bg);
}

::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 50px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00d4ff;
}

/* ======================================== */
/* هدر */
/* ======================================== */
.main-header {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    border-bottom: 2px solid #00d4ff;
    box-shadow: var(--shadow-glow);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 999;
    transition: all 0.3s ease;
}

.main-header.scrolled {
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.8);
}

.navbar-brand {
    font-size: 28px;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 20px rgba(0, 212, 255, 0.2);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-brand i {
    -webkit-text-fill-color: #00d4ff;
    margin-left: 10px;
    font-size: 30px;
}

.navbar-dark .navbar-nav .nav-link {
    color: #ffffff !important;
    font-size: 16px;
    padding: 10px 18px !important;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-dark .navbar-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    transition: all 0.3s ease;
    transform: translateX(50%);
}

.navbar-dark .navbar-nav .nav-link:hover::after {
    width: 80%;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #00d4ff !important;
    transform: translateY(-2px);
}

.navbar-dark .navbar-nav .nav-link.active {
    color: #ffffff !important;
}

.navbar-dark .navbar-nav .nav-link.active::after {
    width: 0;
}

.btn-register {
    background: var(--primary-gradient);
    color: #ffffff !important;
    padding: 10px 30px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.btn-register:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0, 212, 255, 0.3);
    color: #ffffff !important;
}

.btn-register i {
    font-size: 14px;
}

/* دکمه‌های ورود/خروج هدر */
.header-auth-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header-auth-buttons .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-auth-buttons .user-name {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.header-auth-buttons .user-name i {
    color: #00d4ff;
    margin-left: 6px;
    font-size: 18px;
}

.btn-login {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: transparent;
    border: 2px solid #2a2a2a;
    border-radius: 50px;
    color: #ffffff;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-login:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    text-decoration: none;
}

.btn-logout {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid #f44336;
    border-radius: 50px;
    color: #f44336;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-logout:hover {
    background: #f44336;
    color: #ffffff;
    text-decoration: none;
}

/* ======================================== */
/* بخش هیرو */
/* ======================================== */
.hero-section {
    padding: 80px 0 50px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(0, 212, 255, 0.05), transparent 70%);
    animation: rotate 30s linear infinite;
    z-index: 0;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 14px;
    color: #00d4ff;
    margin-bottom: 20px;
    animation: fadeInDown 1s ease;
}

.hero-title {
    font-size: 52px;
    font-weight: bold;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero-title .highlight {
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 30px;
    animation: fadeInUp 1.2s ease;
}

.hero-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 1.4s ease;
}

.btn-primary-custom {
    background: var(--primary-gradient);
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    border: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-primary-custom:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
    color: #ffffff;
}

.btn-outline-custom {
    background: transparent;
    color: #ffffff;
    padding: 15px 40px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    font-weight: bold;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-outline-custom:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateY(-3px);
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 50px;
    margin-top: 50px;
    animation: fadeInUp 1.6s ease;
}

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

.hero-stats .stat-number {
    font-size: 36px;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-stats .stat-label {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 5px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ======================================== */
/* بخش اسلایدر */
/* ======================================== */
.slider-section {
    padding: 50px 0 70px;
    position: relative;
}

.slider-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-title {
    font-size: 36px;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 15px;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 18px;
}

.slider-section-wrapper {
    margin-bottom: 60px;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.slider-section-wrapper:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.slider-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 0 10px;
}

.slider-section-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.slider-section-title i {
    font-size: 28px;
    color: #00d4ff;
}

.slider-section-title h2 {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.view-all-link {
    color: #00d4ff;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 50px;
    border: 1px solid rgba(0, 212, 255, 0.2);
}

.view-all-link:hover {
    background: rgba(0, 212, 255, 0.1);
    border-color: #00d4ff;
    transform: translateX(-5px);
    color: #00d4ff;
}

.view-all-link i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.view-all-link:hover i {
    transform: translateX(-5px);
}

/* ======================================== */
/* دکمه‌های Carousel در بیرون */
/* ======================================== */
.carousel-with-outer-controls {
    position: relative;
    padding: 0 60px;
}

.carousel-with-outer-controls .carousel-control-prev {
    left: -55px;
    right: auto;
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    opacity: 1;
}

.carousel-with-outer-controls .carousel-control-next {
    right: -55px;
    left: auto;
    width: 45px;
    height: 45px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    opacity: 1;
}

.carousel-with-outer-controls .carousel-control-prev:hover,
.carousel-with-outer-controls .carousel-control-next:hover {
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    border-color: #00d4ff;
}

.carousel-with-outer-controls .carousel-control-prev-icon,
.carousel-with-outer-controls .carousel-control-next-icon {
    background-size: 60% 60%;
}

/* ======================================== */
/* کارت‌های داستان */
/* ======================================== */
.slide-card {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.slide-card:hover {
    transform: translateY(-8px);
    border-color: #00d4ff;
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.12);
}

.slide-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.slide-card:hover .slide-image img {
    transform: scale(1.05);
}

.no-image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    color: var(--text-muted);
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
}

.no-image i {
    font-size: 48px;
    color: #00d4ff;
}

.no-image span {
    font-size: 16px;
    color: #666;
}

.slide-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slide-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.slide-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    color: #00d4ff;
    margin-bottom: 12px;
    align-self: flex-start;
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.slide-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #ffffff;
    line-height: 1.4;
}

.slide-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.slide-title a:hover {
    color: #00d4ff;
}

.slide-text {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    flex: 1;
}

.slide-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: #888;
    font-size: 13px;
}

.slide-footer i {
    margin-left: 5px;
}

/* ======================================== */
/* استایل لینک عنوان و توضیحات */
/* ======================================== */
.slide-title a {
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.slide-title a:hover {
    color: #00d4ff;
    transform: translateX(-5px);
}

.story-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.story-link:hover {
    color: #00d4ff;
    transform: translateX(-5px);
}

/* ======================================== */
/* استایل‌های صفحه آرشیو داستان‌ها */
/* ======================================== */
.archive-header {
    padding: 30px 0 20px;
}

.archive-title {
    font-size: 36px;
    font-weight: bold;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.archive-tabs {
    position: relative;
}

.tab-btn {
    padding: 10px 30px;
    border-radius: 50px;
    border: 2px solid var(--border-color);
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    background: transparent;
    display: inline-block;
}

.tab-btn:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    text-decoration: none;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: var(--primary-gradient);
    border-color: #00d4ff;
    color: #ffffff;
}

.story-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-10px);
    border-color: #00d4ff;
    box-shadow: 0 20px 60px rgba(0, 212, 255, 0.15);
}

.story-image {
    position: relative;
    overflow: hidden;
    height: 200px;
    background: linear-gradient(135deg, #1a1a1a, #2a2a2a);
    display: flex;
    align-items: center;
    justify-content: center;
}

.story-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.story-image .no-image i {
    font-size: 48px;
    color: #00d4ff;
}

.story-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--primary-gradient);
    padding: 5px 15px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 5px;
}

.story-body {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.story-category {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: rgba(0, 212, 255, 0.1);
    padding: 4px 12px;
    border-radius: 50px;
    font-size: 12px;
    color: #00d4ff;
    margin-bottom: 12px;
    align-self: flex-start;
}

.story-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    line-height: 1.4;
}

.story-title a {
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-title a:hover {
    color: #00d4ff;
}

.story-excerpt {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
    margin-bottom: 15px;
    flex: 1;
}

.story-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    color: #888;
    font-size: 13px;
}

.story-footer i {
    margin-left: 5px;
}

.story-read-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    background: var(--primary-gradient);
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.story-read-more:hover {
    color: #ffffff;
    opacity: 0.8;
}

.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

.page-numbers {
    display: inline-block;
    padding: 8px 16px;
    margin: 0 3px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.page-numbers.current {
    background: var(--primary-gradient);
    border-color: #00d4ff;
}

.page-numbers:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

/* ======================================== */
/* ویژگی‌ها */
/* ======================================== */
.features-section {
    padding: 50px 0;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 30px;
    text-align: center;
    transition: all 0.4s ease;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 30px;
    color: #ffffff;
    transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotateY(180deg);
}

.feature-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
}

.feature-desc {
    color: var(--text-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ======================================== */
/* فوتر */
/* ======================================== */
.main-footer {
    background: linear-gradient(135deg, #0d0d0d 0%, #1a1a1a 100%);
    padding: 60px 0 0;
    margin-top: 50px;
    border-top: 2px solid #00d4ff;
}

.footer-widget h4,
.footer-widget h5 {
    color: #00d4ff;
    margin-bottom: 20px;
    font-weight: bold;
}

.footer-widget h4 i {
    margin-left: 10px;
}

.footer-desc {
    color: var(--text-muted);
    line-height: 2;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    background: var(--primary-gradient);
    border-color: #00d4ff;
    transform: translateY(-3px);
    color: #ffffff;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: #00d4ff;
    transform: translateX(-5px);
}

.footer-contact li {
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-contact li i {
    color: #00d4ff;
    width: 20px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 40px;
    text-align: center;
    color: #666;
    font-size: 14px;
}

.footer-bottom i {
    color: #ff6b6b;
    animation: heartbeat 1.5s infinite;
}

@keyframes heartbeat {

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

    50% {
        transform: scale(1.2);
    }
}

/* ======================================== */
/* دکمه برگشت به بالا */
/* ======================================== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    left: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--primary-gradient);
    color: #ffffff;
    border: none;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    visibility: hidden;
    z-index: 999;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 212, 255, 0.3);
}

/* ======================================== */
/* استایل‌های صفحه تک داستان */
/* ======================================== */
.single-story-section {
    padding: 40px 0 70px;
    background: var(--dark-bg);
}

.story-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.story-breadcrumb a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.story-breadcrumb a:hover {
    color: #7b2ffc;
}

.story-breadcrumb i {
    font-size: 12px;
    color: var(--border-color);
}

.story-breadcrumb span {
    color: var(--text-muted);
}

.single-story-title {
    font-size: 40px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.3;
}

.single-story-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 25px;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 25px;
    color: #888;
    font-size: 14px;
}

.meta-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.meta-item i {
    color: #00d4ff;
}

.single-story-taxonomies {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 30px;
    padding: 15px 20px;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.taxonomy-item {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    color: var(--text-muted);
}

.taxonomy-label {
    font-weight: bold;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.taxonomy-label i {
    color: #00d4ff;
}

.taxonomy-link {
    color: #00d4ff;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 2px 12px;
    border-radius: 50px;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.1);
}

.taxonomy-link:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateX(-3px);
}

.category-link {
    color: #ff6b6b;
    background: rgba(255, 107, 107, 0.1);
    border-color: rgba(255, 107, 107, 0.1);
}

.category-link:hover {
    background: rgba(255, 107, 107, 0.2);
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.tag-link {
    color: #4ecdc4;
    background: rgba(78, 205, 196, 0.1);
    border-color: rgba(78, 205, 196, 0.1);
}

.tag-link:hover {
    background: rgba(78, 205, 196, 0.2);
    border-color: #4ecdc4;
    color: #4ecdc4;
}

.no-taxonomy {
    color: #666;
}

.single-story-image {
    margin-bottom: 35px;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.single-story-image img {
    width: 100%;
    height: auto;
    display: block;
}

.single-story-content {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 2.2;
    margin-bottom: 30px;
}

.single-story-content h1,
.single-story-content h2,
.single-story-content h3,
.single-story-content h4 {
    color: #ffffff;
    margin-top: 30px;
    margin-bottom: 15px;
}

.single-story-content p {
    margin-bottom: 20px;
}

.single-story-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 20px 0;
}

.single-story-content blockquote {
    border-right: 4px solid #00d4ff;
    padding: 15px 25px;
    margin: 20px 0;
    background: rgba(0, 212, 255, 0.05);
    border-radius: 0 10px 10px 0;
    color: #ffffff;
}

.single-story-content ul,
.single-story-content ol {
    padding-right: 25px;
    margin-bottom: 20px;
}

.single-story-content li {
    margin-bottom: 8px;
}

.ai-badge {
    background: rgba(0, 212, 255, 0.08);
    border: 1px solid rgba(0, 212, 255, 0.2);
    padding: 15px 25px;
    border-radius: 12px;
    color: #00d4ff;
    text-align: center;
    margin: 30px 0;
    font-size: 14px;
}

.ai-badge i {
    margin-left: 10px;
    font-size: 18px;
}

.story-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0 50px;
    flex-wrap: wrap;
}

.btn-start-story {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--primary-gradient);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-start-story:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.35);
    color: #ffffff;
}

.btn-start-story i:last-child {
    transition: transform 0.3s ease;
}

.btn-start-story:hover i:last-child {
    transform: translateX(-5px);
}

.btn-back-to-stories {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 30px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    font-size: 16px;
    transition: all 0.3s ease;
}

.btn-back-to-stories:hover {
    border-color: #00d4ff;
    color: #00d4ff;
    transform: translateX(-5px);
}

.btn-back-to-stories i {
    transition: transform 0.3s ease;
}

.btn-back-to-stories:hover i {
    transform: translateX(-5px);
}

.related-stories {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.related-title {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 30px;
    text-align: center;
}

.related-title i {
    color: #00d4ff;
    margin-left: 10px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-item {
    background: var(--card-bg);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: all 0.4s ease;
}

.related-item:hover {
    transform: translateY(-8px);
    border-color: #00d4ff;
    box-shadow: 0 15px 50px rgba(0, 212, 255, 0.1);
}

.related-link {
    display: block;
    text-decoration: none;
    color: #ffffff;
    padding: 15px;
}

.related-image {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    height: 150px;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.related-item-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 8px;
    color: #ffffff;
    transition: color 0.3s ease;
}

.related-item:hover .related-item-title {
    color: #00d4ff;
}

.related-read-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #00d4ff;
    transition: all 0.3s ease;
}

.related-read-more i {
    transition: transform 0.3s ease;
}

.related-item:hover .related-read-more i {
    transform: translateX(-5px);
}

/* ======================================== */
/* استایل‌های صفحه تعامل با هوش مصنوعی */
/* ======================================== */
.play-story-section {
    padding: 40px 0 70px;
    background: #0a0a0a;
}

.play-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 10px;
    flex-wrap: wrap;
    gap: 15px;
}

.play-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin: 0;
}

.play-meta {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #888;
}

.play-meta i {
    color: #00d4ff;
    margin-left: 5px;
}

.interaction-area {
    background: #1a1a1a;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid #2a2a2a;
}

/* وضعیت محدودیت */
.limit-status-compact {
    margin-bottom: 15px;
}

.limit-warning {
    background: rgba(244, 67, 54, 0.1);
    border: 1px solid #f44336;
    border-radius: 12px;
    padding: 15px 20px;
    text-align: center;
    color: #f44336;
    margin-bottom: 15px;
}

.limit-warning a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
}

.limit-warning a:hover {
    text-decoration: underline;
}

.limit-reached-message {
    text-align: center;
    padding: 20px;
}

.login-required {
    text-align: center;
    padding: 30px;
}

.login-required a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: bold;
}

.login-required a:hover {
    text-decoration: underline;
}

.interaction-history {
    max-height: 550px;
    overflow-y: auto;
    padding: 10px;
    margin-bottom: 20px;
    background: rgba(26, 26, 26, 0.3);
    border-radius: 16px;
    border: 1px solid #2a2a2a;
}

.interaction-history::-webkit-scrollbar {
    width: 5px;
}

.interaction-history::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    border-radius: 10px;
}

.story-content-message {
    margin-bottom: 25px;
}

.story-message {
    background: rgba(0, 212, 255, 0.08) !important;
    border-right: 3px solid #00d4ff !important;
    border-radius: 12px;
    padding: 20px 25px !important;
}

.story-message .message-icon {
    background: rgba(0, 212, 255, 0.15) !important;
}

.story-message .message-label {
    color: #00d4ff !important;
}

.story-content {
    color: #e0e0e0 !important;
    font-size: 16px !important;
    line-height: 2.2 !important;
}

.story-content p {
    color: #e0e0e0 !important;
    margin-bottom: 15px !important;
}

.interaction-item {
    margin-bottom: 20px;
}

.user-message {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(0, 212, 255, 0.05);
    border-right: 3px solid #00d4ff;
}

.ai-message {
    display: flex;
    gap: 15px;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 12px;
    background: rgba(123, 47, 252, 0.05);
    border-right: 3px solid #7b2ffc;
}

.ai-response-new .ai-message {
    border-right: 3px solid #ffd93d;
    background: rgba(255, 217, 61, 0.05);
}

.message-icon {
    font-size: 24px;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.message-content {
    flex: 1;
}

.message-label {
    display: block;
    font-size: 12px;
    font-weight: bold;
    color: #888;
    margin-bottom: 5px;
}

.message-content p {
    color: #b0b0b0;
    font-size: 15px;
    line-height: 2;
    margin: 0;
    white-space: pre-wrap;
}

.input-area {
    margin-top: 20px;
}

.input-group textarea {
    width: 100%;
    padding: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    color: #ffffff;
    font-size: 16px;
    font-family: 'Vazir', sans-serif;
    resize: vertical;
    transition: border-color 0.3s ease;
    min-height: 150px;
}

.input-group textarea:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
}

.input-group textarea::placeholder {
    color: #666;
    font-size: 15px;
}

.input-actions {
    margin-top: 15px;
    display: flex;
    justify-content: flex-end;
}

.btn-submit {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 35px;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    border-radius: 50px;
    color: #ffffff;
    border: none;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ======================================== */
/* استایل صفحات احراز هویت */
/* ======================================== */
.auth-page-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
    background: #0a0a0a;
}

.auth-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 50px 40px;
    max-width: 450px;
    width: 100%;
    margin: 0 auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-title {
    font-size: 28px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 8px;
}

.auth-subtitle {
    color: #888;
    font-size: 15px;
    margin: 0;
}

.auth-success {
    background: rgba(76, 175, 80, 0.15);
    border: 1px solid #4caf50;
    border-radius: 10px;
    padding: 15px 20px;
    color: #4caf50;
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.8;
}

.auth-success i {
    font-size: 20px;
    display: block;
    margin-bottom: 5px;
}

.auth-success small {
    color: #888;
    font-size: 13px;
}

.auth-error {
    background: rgba(244, 67, 54, 0.15);
    border: 1px solid #f44336;
    border-radius: 10px;
    padding: 15px 20px;
    color: #f44336;
    margin-bottom: 20px;
    text-align: center;
}

.auth-error i {
    display: block;
    font-size: 20px;
    margin-bottom: 5px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-form label {
    display: block;
    color: #b0b0b0;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 6px;
}

.auth-form label i {
    color: #00d4ff;
    margin-left: 8px;
    width: 18px;
}

.auth-form .form-control {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a2a;
    border-radius: 10px;
    color: #ffffff;
    font-size: 15px;
    font-family: inherit;
    transition: border-color 0.3s ease;
    direction: rtl;
}

.auth-form .form-control:focus {
    outline: none;
    border-color: #00d4ff;
    box-shadow: 0 0 20px rgba(0, 212, 255, 0.05);
}

.auth-form .form-control::placeholder {
    color: #555;
}

.auth-form .form-hint {
    display: block;
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.remember-group {
    display: flex;
    align-items: center;
    margin-top: 5px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #b0b0b0;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    appearance: none;
    width: 18px;
    height: 18px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid #2a2a2a;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked {
    background: #00d4ff;
    border-color: #00d4ff;
}

.checkbox-label input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #0a0a0a;
    font-size: 14px;
    font-weight: bold;
}

.auth-form .btn-submit {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    border: none;
    border-radius: 12px;
    color: #ffffff;
    font-size: 17px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: inherit;
}

.auth-form .btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
}

.auth-form .btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-form .btn-submit i {
    font-size: 18px;
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #2a2a2a;
}

.auth-footer p {
    color: #888;
    font-size: 14px;
    margin: 8px 0;
}

.auth-footer a {
    color: #00d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-footer a:hover {
    color: #7b2ffc;
}

.forgot-link {
    font-size: 13px;
}

.forgot-link i {
    margin-left: 5px;
}

.register-link,
.login-link {
    font-weight: 500;
}

/* ======================================== */
/* استایل صفحه خرید اشتراک */
/* ======================================== */
.premium-page-section {
    padding: 60px 0;
    background: #0a0a0a;
    min-height: calc(100vh - 200px);
    direction: rtl;
    text-align: right;
}

.premium-box {
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    padding: 40px;
    color: #fff;
}

.premium-header {
    text-align: center;
    margin-bottom: 30px;
}

.premium-title {
    font-size: 36px;
    font-weight: bold;
    color: #ffd93d;
    margin-bottom: 10px;
}

.premium-subtitle {
    color: #b0b0b0;
    font-size: 16px;
}

.premium-user-status {
    margin-bottom: 30px;
}

.status-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a2a;
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px 20px;
    align-items: center;
}

.status-icon {
    grid-row: span 4;
    font-size: 36px;
    text-align: center;
    padding-left: 10px;
    min-width: 80px;
}

.status-info {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.status-label {
    color: #888;
    font-size: 14px;
    min-width: 100px;
}

.status-value {
    color: #fff;
    font-size: 14px;
}

.status-value.premium {
    color: #ffd93d;
    font-weight: bold;
}

.status-value.free {
    color: #888;
}

.premium-products {
    margin: 30px 0;
}

.products-title {
    text-align: center;
    color: #fff;
    font-size: 24px;
    margin-bottom: 25px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 25px;
}

.product-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid #2a2a2a;
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: #00d4ff;
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.1);
}

.product-name {
    color: #fff;
    font-size: 18px;
    margin-bottom: 10px;
}

.product-description {
    color: #b0b0b0;
    font-size: 14px;
    margin-bottom: 15px;
    line-height: 1.8;
}

.product-price {
    font-size: 24px;
    font-weight: bold;
    color: #ffd93d;
    margin-bottom: 15px;
}

.product-price .woocommerce-Price-currencySymbol {
    font-size: 16px;
    color: #888;
}

.btn-add-to-cart {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    color: #fff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: all 0.3s ease;
}

.btn-add-to-cart:hover {
    transform: scale(1.05);
    color: #fff;
    box-shadow: 0 5px 20px rgba(0, 212, 255, 0.3);
}

.btn-add-to-cart i {
    margin-left: 8px;
}

.cart-link {
    text-align: center;
    margin-top: 10px;
}

.btn-view-cart {
    display: inline-block;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-view-cart:hover {
    border-color: #00d4ff;
    color: #00d4ff;
}

.no-products {
    text-align: center;
    color: #f44336;
    padding: 30px;
    background: rgba(244, 67, 54, 0.05);
    border-radius: 12px;
}

.premium-features {
    margin-top: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

.premium-features h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 18px;
}

.features-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.features-list li {
    padding: 8px 0;
    color: #b0b0b0;
    border-bottom: 1px solid #2a2a2a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list i {
    color: #4caf50;
}

.premium-active {
    text-align: center;
    padding: 20px 0;
}

.premium-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ffd93d, #f59f00);
    color: #1a1a1a;
    padding: 8px 25px;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
}

.premium-badge i {
    margin-left: 8px;
}

.premium-active-text {
    color: #b0b0b0;
    font-size: 16px;
    margin: 15px 0 25px;
}

.premium-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin: 25px 0;
    flex-wrap: wrap;
}

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

.premium-stats .stat-number {
    display: block;
    font-size: 32px;
    font-weight: bold;
    color: #00d4ff;
}

.premium-stats .stat-label {
    color: #888;
    font-size: 13px;
}

.btn-back-home {
    display: inline-block;
    background: linear-gradient(135deg, #00d4ff, #7b2ffc);
    color: #fff;
    padding: 12px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
}

.btn-back-home:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 40px rgba(0, 212, 255, 0.3);
    color: #fff;
}

.btn-back-home i {
    margin-left: 8px;
}

/* ======================================== */
/* رفع رنگ آبی همه لینک‌های منو */
/* ======================================== */
.main-header a,
.main-header .navbar-nav .nav-link,
.main-header .navbar-nav a {
    color: #ffffff !important;
    text-decoration: none !important;
}

.main-header a:hover,
.main-header .navbar-nav .nav-link:hover,
.main-header .navbar-nav a:hover {
    color: #00d4ff !important;
    text-decoration: none !important;
}

.main-header a::after,
.main-header .navbar-nav .nav-link::after {
    display: none !important;
}

/* ======================================== */
/* کلاس اصلی محتوا */
/* ======================================== */
.site-main,
main.site-main {
    padding-top: 30px;
    padding-bottom: 60px;
    min-height: 60vh;
}

.section,
.slider-section,
.auth-page-section,
.play-story-section,
.single-story-section,
.archive-section,
.hero-section {
    padding-top: 40px;
    padding-bottom: 40px;
}

.hero-section {
    padding-top: 60px;
    padding-bottom: 40px;
}

.auth-page-section {
    padding-top: 60px;
    padding-bottom: 60px;
    min-height: calc(100vh - 200px);
}

.play-story-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.container {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

.col-lg-10,
.col-md-6,
.col-lg-5 {
    padding-left: 15px;
    padding-right: 15px;
}

/* ======================================== */
/* ریسپانسیو - موبایل و تبلت */
/* ======================================== */

/* تبلت و موبایل بزرگ */
@media (max-width: 992px) {
    .hero-title {
        font-size: 38px;
    }

    .section-title {
        font-size: 30px;
    }

    .slider-section-title h2 {
        font-size: 20px;
    }

    .view-all-link {
        font-size: 13px;
        padding: 6px 14px;
    }

    .single-story-title {
        font-size: 32px;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .archive-title {
        font-size: 28px;
    }

    .tab-btn {
        padding: 8px 20px;
        font-size: 14px;
    }
}

/* موبایل */
@media (max-width: 768px) {

    /* هدر */
    .navbar-brand {
        font-size: 22px;
    }

    .navbar-brand i {
        font-size: 24px;
    }

    .header-auth-buttons {
        flex-wrap: wrap;
        justify-content: center;
        margin-top: 10px;
    }

    .header-auth-buttons .user-info {
        flex-wrap: wrap;
        justify-content: center;
    }

    .btn-login,
    .btn-logout,
    .btn-register {
        padding: 6px 16px;
        font-size: 13px;
    }

    /* هیرو */
    .hero-section {
        padding: 40px 0 30px;
    }

    .hero-title {
        font-size: 28px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
    }

    .hero-stats .stat-number {
        font-size: 28px;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn-primary-custom,
    .hero-buttons .btn-outline-custom {
        width: 100%;
        justify-content: center;
    }

    /* اسلایدر */
    .slider-section {
        padding: 30px 0 50px;
    }

    .slider-header {
        margin-bottom: 30px;
    }

    .section-title {
        font-size: 24px;
    }

    .section-subtitle {
        font-size: 15px;
    }

    .slider-section-wrapper {
        margin-bottom: 40px;
        padding: 15px 0;
    }

    .slider-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-bottom: 15px;
    }

    .slider-section-title h2 {
        font-size: 18px;
    }

    .slider-section-title i {
        font-size: 22px;
    }

    .view-all-link {
        font-size: 12px;
        padding: 5px 12px;
    }

    /* دکمه‌های Carousel */
    .carousel-with-outer-controls {
        padding: 0 40px;
    }

    .carousel-with-outer-controls .carousel-control-prev {
        left: -40px;
        width: 35px;
        height: 35px;
    }

    .carousel-with-outer-controls .carousel-control-next {
        right: -40px;
        width: 35px;
        height: 35px;
    }

    .carousel-with-outer-controls .carousel-control-prev-icon,
    .carousel-with-outer-controls .carousel-control-next-icon {
        background-size: 50% 50%;
    }

    /* کارت‌ها */
    .slide-image {
        height: 180px;
    }

    .slide-title {
        font-size: 16px;
    }

    .slide-text {
        font-size: 13px;
    }

    .slide-footer {
        font-size: 12px;
    }

    /* آرشیو */
    .archive-header {
        padding: 20px 0 15px;
    }

    .archive-title {
        font-size: 24px;
    }

    .tab-btn {
        padding: 6px 16px;
        font-size: 13px;
    }

    .story-image {
        height: 160px;
    }

    .story-title {
        font-size: 16px;
    }

    .story-excerpt {
        font-size: 13px;
    }

    /* صفحه تک داستان */
    .single-story-section {
        padding: 25px 0 50px;
    }

    .single-story-title {
        font-size: 26px;
    }

    .single-story-meta {
        gap: 12px;
        font-size: 13px;
        flex-wrap: wrap;
        padding: 12px 0;
    }

    .single-story-content {
        font-size: 15px;
        line-height: 2;
    }

    .story-actions {
        flex-direction: column;
        align-items: center;
    }

    .btn-start-story,
    .btn-back-to-stories {
        width: 100%;
        justify-content: center;
        font-size: 15px;
        padding: 14px 20px;
    }

    .related-grid {
        grid-template-columns: 1fr 1fr;
        gap: 15px;
    }

    .related-image {
        height: 130px;
    }

    .related-item-title {
        font-size: 14px;
    }

    .single-story-taxonomies {
        padding: 12px 15px;
    }

    .taxonomy-item {
        font-size: 13px;
    }

    /* صفحه تعامل */
    .play-story-section {
        padding: 25px 0 50px;
    }

    .play-title {
        font-size: 22px;
    }

    .play-meta {
        gap: 15px;
        font-size: 13px;
        flex-wrap: wrap;
    }

    .interaction-area {
        padding: 15px;
    }

    .interaction-history {
        max-height: 350px;
        padding: 8px;
    }

    .user-message,
    .ai-message {
        padding: 12px 15px;
    }

    .user-message .message-icon,
    .ai-message .message-icon {
        width: 32px;
        height: 32px;
        font-size: 18px;
    }

    .message-content p {
        font-size: 14px;
        line-height: 1.8;
    }

    .story-content {
        font-size: 14px !important;
    }

    .input-group textarea {
        min-height: 120px;
        font-size: 15px;
        padding: 14px;
    }

    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 12px 20px;
        font-size: 15px;
    }

    /* احراز هویت */
    .auth-box {
        padding: 30px 20px;
        border-radius: 12px;
    }

    .auth-title {
        font-size: 24px;
    }

    .auth-form .form-control {
        padding: 12px 14px;
        font-size: 14px;
    }

    .auth-form .btn-submit {
        padding: 14px;
        font-size: 15px;
    }

    /* خرید اشتراک */
    .premium-box {
        padding: 25px 20px;
    }

    .premium-title {
        font-size: 28px;
    }

    .premium-subtitle {
        font-size: 14px;
    }

    .products-grid {
        grid-template-columns: 1fr;
    }

    .product-card {
        padding: 20px;
    }

    .product-name {
        font-size: 16px;
    }

    .product-price {
        font-size: 20px;
    }

    .status-card {
        grid-template-columns: 1fr;
        gap: 5px;
    }

    .status-icon {
        grid-row: auto;
        text-align: center;
        padding-left: 0;
        padding-bottom: 5px;
    }

    .status-info {
        justify-content: center;
    }

    .premium-stats {
        gap: 20px;
    }

    .premium-stats .stat-number {
        font-size: 24px;
    }

    /* فوتر */
    .main-footer {
        padding: 40px 0 0;
    }

    .footer-widget {
        text-align: center;
    }

    .social-links {
        justify-content: center;
    }

    .footer-contact li {
        justify-content: center;
    }

    .footer-bottom {
        font-size: 13px;
        padding: 15px 0;
    }

    /* دکمه برگشت */
    .back-to-top {
        width: 40px;
        height: 40px;
        font-size: 16px;
        bottom: 20px;
        left: 20px;
    }
}

/* موبایل کوچک */
@media (max-width: 576px) {

    /* هدر */
    .navbar-brand {
        font-size: 18px;
    }

    .navbar-brand i {
        font-size: 20px;
    }

    /* هیرو */
    .hero-title {
        font-size: 22px;
    }

    .hero-badge {
        font-size: 12px;
        padding: 5px 14px;
    }

    /* اسلایدر */
    .carousel-with-outer-controls {
        padding: 0 30px;
    }

    .carousel-with-outer-controls .carousel-control-prev {
        left: -30px;
        width: 30px;
        height: 30px;
    }

    .carousel-with-outer-controls .carousel-control-next {
        right: -30px;
        width: 30px;
        height: 30px;
    }

    .carousel-with-outer-controls .carousel-control-prev-icon,
    .carousel-with-outer-controls .carousel-control-next-icon {
        background-size: 40% 40%;
    }

    .slide-image {
        height: 160px;
    }

    .slide-body {
        padding: 15px;
    }

    .slide-title {
        font-size: 15px;
    }

    .slide-text {
        font-size: 12px;
    }

    .section-title {
        font-size: 20px;
    }

    /* آرشیو */
    .archive-title {
        font-size: 20px;
    }

    .tab-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    /* صفحه تک داستان */
    .single-story-title {
        font-size: 22px;
    }

    .story-breadcrumb {
        font-size: 12px;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .related-image {
        height: 180px;
    }

    /* صفحه تعامل */
    .play-title {
        font-size: 20px;
    }

    .play-meta {
        gap: 12px;
        font-size: 12px;
    }

    .start-icon {
        font-size: 36px;
    }

    .start-message h3 {
        font-size: 20px;
    }

    .start-message p {
        font-size: 14px;
    }

    /* احراز هویت */
    .auth-title {
        font-size: 20px;
    }

    .auth-subtitle {
        font-size: 13px;
    }

    .auth-box {
        padding: 20px 15px;
    }

    /* خرید اشتراک */
    .premium-title {
        font-size: 22px;
    }

    .premium-box {
        padding: 15px;
    }

    .product-name {
        font-size: 15px;
    }

    .product-price {
        font-size: 18px;
    }

    .btn-add-to-cart {
        font-size: 13px;
        padding: 8px 18px;
    }

    .btn-view-cart {
        font-size: 13px;
        padding: 10px 20px;
    }

    .premium-features h3 {
        font-size: 16px;
    }

    .features-list li {
        font-size: 13px;
        padding: 6px 0;
    }
}

/* تبلت (بین موبایل و دسکتاپ) */
@media (min-width: 577px) and (max-width: 768px) {
    .slide-item {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* ======================================== */
/* ریسپانسیو هدر - فقط تغییرات جزئی */
/* ======================================== */

/* موبایل */
@media (max-width: 768px) {
    .main-header {
        padding: 8px 0;
    }

    .navbar-brand {
        font-size: 20px;
    }

    .navbar-brand i {
        font-size: 22px;
    }

    /* دکمه‌های ورود/خروج در موبایل */
    .header-auth-buttons {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        margin-top: 10px;
        padding-top: 10px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }

    .header-auth-buttons .user-info {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 8px;
        width: 100%;
    }

    .btn-login,
    .btn-logout,
    .btn-register {
        padding: 6px 16px;
        font-size: 13px;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 17px;
    }

    .navbar-brand i {
        font-size: 18px;
    }

    .btn-login,
    .btn-logout,
    .btn-register {
        padding: 5px 12px;
        font-size: 12px;
    }
}



.history-container {
    background: #0a0a0a;
    min-height: 100vh;
    padding: 40px 0;
    direction: rtl;
    text-align: right;
    color: #fff;
}

.container-custom {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.history-header {
    text-align: center;
    margin-bottom: 40px;
}

.history-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #ffd93d, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.history-subtitle {
    color: #b0b0b0;
    font-size: 1.1rem;
    margin-top: 10px;
}

.history-section {
    background: linear-gradient(145deg, #1a1a1a, #0d0d0d);
    border: 1px solid #2a2a2a;
    border-radius: 15px;
    padding: 25px;
}

.section-title {
    color: #ffd93d;
    font-size: 1.3rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #2a2a2a;
    padding-bottom: 10px;
}

.section-title .count {
    background: #2a2a2a;
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    color: #888;
}

.item-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.item-list li {
    padding: 15px 15px;
    border-bottom: 1px solid #1a1a1a;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    transition: background 0.3s ease;
    cursor: pointer;
}

.item-list li:hover {
    background: #141414;
    border-radius: 8px;
}

.item-list li:last-child {
    border-bottom: none;
}

.item-title {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.05rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.item-title:hover {
    color: #00d4ff;
}

.item-title .icon {
    font-size: 1.3rem;
}

.item-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.item-date {
    color: #888;
    font-size: 0.85rem;
    direction: ltr;
    display: inline-block;
}

.item-badge {
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    color: #888;
    background: #2a2a2a;
}

.item-badge.info {
    background: rgba(0, 212, 255, 0.2);
    color: #00d4ff;
}

.empty-state {
    color: #888;
    text-align: center;
    padding: 40px;
    font-style: italic;
}

.empty-state a {
    color: #00d4ff;
    text-decoration: none;
    font-weight: 500;
}

.empty-state a:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .history-title {
        font-size: 1.8rem;
    }

    .item-list li {
        flex-direction: column;
        align-items: flex-start;
    }

    .item-meta {
        width: 100%;
        justify-content: flex-start;
    }
}