@font-face {
    font-family: vazir;
    src: url(fonts/Vazir-FD.ttf) format('truetype')
}

:root {
    --primary-dark: #1e3a5f;
    --primary-light: #2c3e66;
    --gradient-start: #1e3a5f;
    --gradient-end: #2c3e66;
    --glass-bg: rgba(255, 255, 255, 0.2);
    --glass-border: rgba(255, 255, 255, 0.4);
    --text-dark: #1a2a3a;
    --text-light: #e0e0e0;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    --transition: all .3s cubic-bezier(.2, .9, .4, 1.1);
    --radius: 28px;
    --radius-sm: 16px;
    --radius-xs: 40px;
}

* {
    font-family: vazir, 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box
}

body {
    background: rgba(255, 255, 255, 0.15);
    min-height: 100vh;
    color: var(--text-dark);
    position: relative;
    overflow-x: hidden;
    transition: background .3s ease, color .3s ease
}

/* ===== انیمیشن‌ها ===== */
@keyframes fadeUp {
    0% {
        opacity: 0;
        transform: translateY(30px)
    }

    100% {
        opacity: 1;
        transform: translateY(0)
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0
    }

    100% {
        opacity: 1
    }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(.9)
    }

    100% {
        opacity: 1;
        transform: scale(1)
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-8px)
    }
}

@keyframes floatSlow {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-5px)
    }
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(30, 58, 95, .4);
        transform: scale(1)
    }

    50% {
        box-shadow: 0 0 0 15px rgba(30, 58, 95, 0);
        transform: scale(1.02)
    }

    100% {
        box-shadow: 0 0 0 0 rgba(30, 58, 95, 0);
        transform: scale(1)
    }
}

@keyframes ripple {
    0% {
        transform: scale(0);
        opacity: .5
    }

    100% {
        transform: scale(4);
        opacity: 0
    }
}

@keyframes glitch {

    0%,
    100% {
        transform: skew(0);
        opacity: 1
    }

    20% {
        transform: skew(2deg);
        opacity: .8
    }

    40% {
        transform: skew(-2deg);
        opacity: .9
    }

    60% {
        transform: skew(1deg);
        opacity: .85
    }

    80% {
        transform: skew(-1deg);
        opacity: .95
    }
}

@keyframes echoPulse {
    0% {
        width: 100%;
        height: 100%;
        opacity: .6
    }

    50% {
        opacity: .3
    }

    100% {
        width: 160%;
        height: 180%;
        opacity: 0
    }
}

@keyframes lightScan {
    0% {
        left: -50%
    }

    100% {
        left: 150%
    }
}

@keyframes iconFloat {

    0%,
    100% {
        transform: translateY(0)
    }

    50% {
        transform: translateY(-10px)
    }
}

@keyframes rotateIcon {
    0% {
        transform: rotate(0)
    }

    100% {
        transform: rotate(360deg)
    }
}

/* ===== کلاس‌های کمکی ===== */
.fade-up {
    animation: fadeUp .6s ease forwards;
    opacity: 0
}

.fade-in-page {
    animation: fadeIn .4s ease forwards
}

.fade-in-scale {
    animation: fadeInScale .3s ease forwards
}

.delay-1 {
    animation-delay: .1s
}

.delay-2 {
    animation-delay: .2s
}

.delay-3 {
    animation-delay: .3s
}

.delay-4 {
    animation-delay: .4s
}

.delay-5 {
    animation-delay: .5s
}

.delay-6 {
    animation-delay: .6s
}

.floating-animation {
    animation: float 3s ease-in-out infinite
}

.floating-icon {
    animation: floatSlow 2s ease-in-out infinite;
    display: inline-block
}

.pulse-animation {
    animation: pulse 2s ease-in-out infinite
}

.hover-lift {
    transition: var(--transition)
}

.hover-lift:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15)
}

.glitch-logo:hover {
    animation: glitch .2s ease-in-out 3
}

/* ===== دارک مود ===== */
body.dark-mode {
    background: linear-gradient(132deg, #141414 0, #00001e 100%);
    color: var(--text-light)
}

body.dark-mode .glass-card,
body.dark-mode .article-card,
body.dark-mode .template-card,
body.dark-mode .modal-content,
body.dark-mode .floating-ad,
body.dark-mode .plugin-card,
body.dark-mode .icon-pack-card,
body.dark-mode .icon-card {
    background: rgba(0, 0, 0, .4);
    border-color: rgba(18, 169, 242, .1)
}

body.dark-mode .glass-card:hover,
body.dark-mode .article-card:hover,
body.dark-mode .plugin-card:hover,
body.dark-mode .template-card:hover,
body.dark-mode .icon-pack-card:hover,
body.dark-mode .icon-card:hover {
    background: rgba(0, 0, 0, .5);
    border-color: rgba(18, 169, 242, .5)
}

body.dark-mode .glass-header,
body.dark-mode .glass-footer {
    background: rgba(0, 0, 0, .4);
    border-bottom-color: #12a9f2
}

body.dark-mode .glass-footer {
    border-top-color: rgba(255, 255, 255, .1)
}

body.dark-mode .main-nav a {
    color: var(--text-light)
}

body.dark-mode .main-nav a.active,
body.dark-mode .main-nav a:hover {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

body.dark-mode .main-nav a.active {
    border-bottom-color: #12a9f2
}

body.dark-mode .logo i,
body.dark-mode .feature-card i,
body.dark-mode .section-title h2,
body.dark-mode .articles-header h1 i,
body.dark-mode .service-card h3,
body.dark-mode .templates-header h1 i,
body.dark-mode .github-stats .stat-number,
body.dark-mode .icon-pack-title,
body.dark-mode .github-main-title .gradient-text {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

body.dark-mode .glass-btn {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e
}

body.dark-mode .glass-btn-outline {
    background: rgba(255, 255, 255, .1);
    color: #12a9f2;
    border-color: rgba(18, 169, 242, .5)
}

body.dark-mode .github-primary-btn,
body.dark-mode .primary-glass-btn {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e;
    border-radius: var(--radius-sm);
    height: 40px
}

.primary-glass-btn {
    background: linear-gradient(135deg, #f4f4f4, #b7b7b7);
    color: #1a1a2e;
    border-radius: var(--radius-sm);
    height: 40px
}

body.dark-mode .github-primary-btn:hover,
body.dark-mode .primary-glass-btn:hover {
    background: linear-gradient(135deg, #a0a0a0, #0e8fd1)
}

body.dark-mode .github-secondary-btn,
body.dark-mode .secondary-glass-btn {
    background: rgba(255, 255, 255, .1);
    color: #12a9f2;
    border-color: rgba(18, 169, 242, .5)
}

body.dark-mode .service-card p,
body.dark-mode .service-features li,
body.dark-mode .footer-links a,
body.dark-mode .social-links a {
    color: #ccc
}

body.dark-mode .service-icon {
    background: linear-gradient(135deg, #bababa, #12a9f2)
}

body.dark-mode .service-more-btn {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e;
    border: 1px solid rgba(18, 169, 242, .3)
}

body.dark-mode .service-more-btn:hover {
    background: linear-gradient(135deg, #a0a0a0, #0e8fd1)
}

body.dark-mode .footer-links a:hover,
body.dark-mode .social-links a:hover {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

body.dark-mode .newsletter-form input {
    background: rgba(255, 255, 255, .1);
    color: var(--text-light)
}

body.dark-mode .newsletter-form input::placeholder {
    color: #888
}

body.dark-mode .newsletter-form button {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e
}

body.dark-mode .lang-tab {
    background: rgba(255, 255, 255, .1);
    color: var(--text-light)
}

body.dark-mode .lang-tab.active {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e
}

body.dark-mode .form-group input {
    background: rgba(255, 255, 255, .1);
    color: var(--text-light)
}

body.dark-mode .form-group input::placeholder {
    color: #888
}

body.dark-mode .ad-text h4,
body.dark-mode .ad-text p {
    color: var(--text-light)
}

body.dark-mode .ad-btn {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e
}

body.dark-mode .ad-icon {
    background: linear-gradient(135deg, #bababa, #12a9f2)
}

body.dark-mode .template-link {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

body.dark-mode .mobile-menu-toggle {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-color: rgba(18, 169, 242, .2)
}

body.dark-mode .template-badge {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    background-color: rgba(18, 169, 242, .2)
}

body.dark-mode .support-fab {
    background: linear-gradient(135deg, #bababa, #12a9f2)
}

body.dark-mode .support-fab:hover {
    background: linear-gradient(135deg, #a0a0a0, #0e8fd1)
}

body.dark-mode .support-fab::before {
    background: linear-gradient(135deg, #bababa, #12a9f2)
}

body.dark-mode .support-fab::after {
    background: linear-gradient(135deg, #a0a0a0, #0e8fd1)
}

body.dark-mode .support-title {
    color: #1a1a2e
}

body.dark-mode .support-subtitle {
    color: rgba(26, 26, 46, .8)
}

body.dark-mode .back-to-icons-btn {
    background: rgba(255, 255, 255, .15);
    color: #12a9f2
}

body.dark-mode .back-to-icons-btn:hover {
    background: rgba(255, 255, 255, .25)
}

body.dark-mode .icon-pack-preview i {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

body.dark-mode .icon-pack-count {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e;
    border: none
}

body.dark-mode .icon-card .icon-preview i {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

body.dark-mode .icon-card .icon-name {
    background: rgba(255, 255, 255, .1);
    color: var(--text-light)
}

body.dark-mode .icon-card .icon-category-badge {
    background: rgba(18, 169, 242, .2);
    color: #12a9f2
}

body.dark-mode .search-box input::placeholder {
    color: rgba(255, 255, 255, .5)
}


body.dark-mode .plugin-icon {
    background: linear-gradient(135deg, #bababa, #12a9f2)
}

body.dark-mode .plugin-icon i {
    color: #1a1a2e
}

body.dark-mode .filter-chip.active {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e
}

body.dark-mode .github-header-theme-btn {
    background: linear-gradient(135deg, #bababa, #12a9f2)
}

body.dark-mode .animated-button {
    background: linear-gradient(135deg, #bababa, #12a9f2)
}

body.dark-mode .animated-button .text {
    color: #00001e
}

body.dark-mode .animated-button svg {
    fill: #00001e
}

/* ===== کانتینر ===== */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px
}

.page-container {
    display: none
}

.page-container.active-page {
    display: block
}

/* ===== کارت شیشه‌ای ===== */
.glass-card {
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid var(--glass-border);
    box-shadow: var(--shadow);
    transition: var(--transition)
}

.glass-card:hover {
    background: rgba(255, 255, 255, .35);
    border-color: #1e3a5f;
    transform: translateY(-4px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, .2)
}

/* ===== هدر ===== */
.glass-header {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid #1e3a5f;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .08);
    transition: var(--transition)
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    height: 62px;
    gap: 16px;
    max-width: 1280px;
    margin: 0 auto
}

/* ===== لوگو ===== */
.logo {
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    transition: var(--transition)
}

.logo i {
    font-size: 1.4rem;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.logo span {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700
}

body.dark-mode .logo span {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: 700
}

/* ===== ناوبری ===== */
.main-nav ul {
    display: flex;
    list-style: none;
    gap: 4px;
    margin: 0;
    padding: 0
}

.main-nav ul li a {
    text-decoration: none;
    color: #24292f;
    font-weight: 500;
    font-size: .9rem;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all .2s ease;
    cursor: pointer;
    display: inline-block;
    position: relative;
    overflow: hidden
}

.main-nav ul li a::before {
    content: '';
    position: absolute;
    bottom: 0;
    right: 50%;
    width: 0;
    height: 2px;
    background: #0969da;
    transition: all .3s ease;
    transform: translateX(50%)
}

.main-nav ul li a:hover::before {
    width: 80%
}

.main-nav ul li a:hover {
    background: #f0f2f4;
    color: #0969da
}

.main-nav ul li a.active {
    color: #0969da;
    font-weight: 600;
    background: transparent;
    position: relative
}

.main-nav ul li a.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    right: 12px;
    left: 12px;
    height: 2px;
    background: #0969da;
    border-radius: 2px
}

/* ===== هدر اکشن‌ها ===== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0
}

.github-header-btn,
.github-header-theme-btn {
    padding: 6px 14px;
    border-radius: var(--radius-xs);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s ease;
    border: 1px solid transparent;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden
}

.github-header-btn {
    background: #2da44e;
    color: #fff;
    border-color: #2c974b
}

.github-header-btn:hover {
    background: #2c974b;
    transform: scale(1.02)
}

.github-header-theme-btn {
    background: transparent;
    color: #000;
    border-color: #d0d7de;
    width: 34px;
    height: 34px;
    padding: 0;
    justify-content: center
}

.github-header-theme-btn:hover {
    background: #f0f2f4;
    color: #00001e;
    transform: rotate(15deg)
}

/* ===== منوی موبایل ===== */
.mobile-menu-toggle {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: transparent;
    border: 1px solid #d0d7de;
    cursor: pointer;
    transition: all .2s ease
}

.mobile-menu-toggle i {
    font-size: 1.2rem;
    color: #24292f;
    transition: all .3s ease
}

.mobile-menu-toggle:hover {
    background: #f0f2f4;
    transform: scale(1.05)
}

.mobile-menu-toggle .menu-text {
    display: none
}

.mobile-menu-close {
    display: none
}

/* ===== هیرو (بدون بخش متحرک) ===== */
.github-universe-hero {
    padding: 60px 0 80px;
    position: relative;
    background: #0a0e1a;
    overflow: hidden
}

.hero-dark-overlay {
    position: absolute;
    inset: 0;
    z-index: 1
}

body.dark-mode .hero-dark-overlay {
    background: linear-gradient(135deg, rgba(10, 14, 26, .3) 0, rgba(10, 14, 26, .5) 100%, rgba(10, 14, 26, .7) 100%)
}

body:not(.dark-mode) .hero-dark-overlay {
    background: linear-gradient(135deg, rgba(255, 255, 255, .7) 0, rgba(255, 255, 255, .7) 500%, rgba(255, 255, 255, .9) 100%)
}

.github-universe-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 50%;
    height: 100%;
    z-index: 3;
    pointer-events: none;
    animation: lightScan 12s ease-in-out infinite
}

body.dark-mode .github-universe-hero::before {
    background: linear-gradient(90deg, transparent, rgba(18, 169, 242, .08), transparent)
}

body:not(.dark-mode) .github-universe-hero::before {
    background: linear-gradient(90deg, transparent, rgba(30, 58, 95, .05), transparent)
}

body:not(.dark-mode) .github-universe-hero {
    background: linear-gradient(135deg, #e0eafc 0, #cfdef3 100%)
}

.github-hero-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 2
}

.hero-content-left {
    flex: 1.2
}

.hero-content-right {
    flex: .9
}

.github-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 6px 16px;
    border-radius: var(--radius-xs);
    margin-bottom: 30px;
    font-size: .85rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, .3)
}

.badge-icon {
    font-size: 1rem;
    animation: rotateIcon 1s ease-in-out 1
}

.badge-text {
    color: var(--text-dark)
}

body.dark-mode .badge-text {
    color: #ffff ;
}

.github-main-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 20px;
    font-weight: 700
}

.github-main-title .gradient-text {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.github-description {
    font-size: 1.05rem;
    line-height: 1.7;
    /* color: #555; */
    margin-bottom: 30px;
    max-width: 90%
}

.github-buttons {
    display: flex;
    gap: 15px;
    margin-bottom: 45px;
    flex-wrap: wrap
}

.magnetic-btn {
    transition: transform .2s cubic-bezier(.2, .9, .4, 1.1);
    border-radius: var(--radius-sm);
    height: 40px
}

.ripple-btn {
    position: relative;
    overflow: hidden
}

.ripple-btn .ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .6);
    transform: scale(0);
    animation: ripple .6s linear;
    pointer-events: none
}

.github-primary-btn {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-xs);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden
}

.github-primary-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .2), transparent);
    transition: left .5s ease
}

.github-primary-btn:hover::after {
    left: 100%
}

.github-primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, .15)
}

.github-secondary-btn {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(30, 58, 95, .3);
    color: var(--primary-dark);
    padding: 12px 28px;
    border-radius: var(--radius-xs);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    position: relative;
    overflow: hidden
}

.github-secondary-btn:hover {
    background: rgba(255, 255, 255, .4);
    transform: translateY(-2px)
}

.github-stats {
    display: flex;
    gap: 48px;
    flex-wrap: wrap
}

.github-stats .stat-item {
    display: flex;
    flex-direction: column
}

.github-stats .stat-number {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent
}

.github-stats .stat-label {
    font-size: .85rem;
    color: #666;
    margin-top: 4px
}

/* ===== کد کارت ===== */
.code-card {
    border-radius: 20px;
    overflow: hidden;
    background: rgba(0, 0, 0, .8);
    border: 1px solid rgba(255, 255, 255, .2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
    transition: var(--transition)
}

.code-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 50px rgba(0, 0, 0, .4)
}

.code-header {
    padding: 12px 16px;
    background: rgba(255, 255, 255, .05);
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, .1)
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    transition: var(--transition)
}

.code-dot.red {
    background: #ff5f56
}

.code-dot.yellow {
    background: #ffbd2e
}

.code-dot.green {
    background: #27c93f
}

.code-card:hover .code-dot.red {
    box-shadow: 0 0 5px #ff5f56
}

.code-card:hover .code-dot.yellow {
    box-shadow: 0 0 5px #ffbd2e
}

.code-card:hover .code-dot.green {
    box-shadow: 0 0 5px #27c93f
}

.code-filename {
    font-size: .75rem;
    color: #aaa;
    margin-right: auto;
    font-family: monospace
}

.code-body {
    padding: 20px;
    overflow-x: auto
}

.code-body pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: .8rem;
    line-height: 1.5;
    direction: ltr;
    text-align: left
}

.code-body code {
    color: #e0e0e0
}

.code-keyword {
    color: #ff7b72
}

.code-bracket {
    color: #79c0ff
}

.code-string {
    color: #a5d6ff
}

.code-function {
    color: #d2a8ff
}

.code-boolean {
    color: #ff7b72
}

/* ===== ویژگی‌ها ===== */
.features {
    padding: 60px 0
}

.section-title {
    text-align: center;
    margin-bottom: 48px
}

.section-title h2 {
    font-size: 2rem;
    margin-bottom: 8px;
    display: inline-block
}

.section-title h2::after {
    display: none
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px
}

.feature-card {
    padding: 32px 20px;
    text-align: center
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-dark);
    margin-bottom: 20px
}

/* ===== خدمات ===== */
.services-section {
    padding: 80px 0
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 40px
}

.service-card {
    padding: 30px;
    text-align: center;
    transition: var(--transition)
}

.service-card:hover {
    transform: translateY(-10px)
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: var(--transition)
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg)
}

.service-icon i {
    font-size: 2.5rem;
    color: #fff
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--text-dark)
}

.service-card p {
    color: var(--primary-light);
    line-height: 1.6;
    margin-bottom: 20px
}

.service-features {
    list-style: none;
    text-align: right;
    margin-bottom: 25px
}

.service-features li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .9rem;
    color: var(--primary-light);
    transition: var(--transition)
}

.service-card:hover .service-features li {
    transform: translateX(-5px)
}

.service-features li i {
    color: #27ae60;
    font-size: .9rem
}

.service-more-btn {
    background: var(--primary-dark);
    border: 1px solid rgba(30, 58, 95, .3);
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-size: .9rem;
    color: #fff;
    transition: var(--transition);
    position: relative;
    overflow: hidden
}

.service-more-btn:hover {
    background: #0f2b48;
    padding: 13px 23px;
    font-size: 1rem;
    color: #fff
}

/* ===== مقالات ===== */
.articles-main {
    padding: 60px 0
}

.articles-header {
    text-align: center;
    padding: 50px 30px;
    margin-bottom: 40px
}

.articles-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px
}

.articles-header h1 i {
    margin-left: 12px;
    color: var(--primary-dark)
}

.articles-filters {
    padding: 25px 30px;
    margin-bottom: 40px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    align-items: center
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 12px
}

.filter-group label {
    font-weight: 600
}

.filter-group select {
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(30, 58, 95, .2);
    background: rgba(255, 255, 255, .5);
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition)
}

.filter-group select:hover {
    border-color: var(--primary-dark);
    transform: scale(1.02)
}

.search-group {
    display: flex;
    gap: 8px
}

.search-group input {
    padding: 8px 16px;
    border-radius: 25px;
    border: 1px solid rgba(30, 58, 95, .2);
    background: rgba(255, 255, 255, .5);
    font-family: inherit;
    width: 200px;
    transition: var(--transition)
}

.search-group input:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 10px rgba(30, 58, 95, .2);
    transform: scale(1.02)
}

.search-group button {
    background: var(--primary-dark);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    transition: var(--transition)
}

.search-group button:hover {
    transform: scale(1.1);
    background: #0f2b48
}

.all-articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 50px
}

.article-card {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 24px;
    border: 1px solid rgba(44, 62, 102, .2);
    box-shadow: 0 20px 35px rgba(0, 0, 0, .15);
    transition: var(--transition);
    cursor: pointer
}

.article-card:hover {
    background: rgba(255, 255, 255, .35);
    transform: translateY(-8px);
    border: 1px solid #2c3e66;
    box-shadow: 0 20px 35px rgba(0, 0, 0, .15)
}

.article-badge {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    margin-bottom: 15px
}

.article-badge.tech {
    background: #3498db20;
    color: #2980b9
}

.article-badge.design {
    background: #e74c3c20;
    color: #c0392b
}

.article-badge.programming {
    background: #2ecc7120;
    color: #27ae60
}

.article-badge.lifestyle {
    background: #f39c1220;
    color: #e67e22
}

.article-badge.marketing {
    background: #9b59b620;
    color: #8e44ad
}

.article-title {
    font-size: 1.3rem;
    margin-bottom: 12px
}

.article-excerpt {
    font-size: .9rem;
    line-height: 1.6;
    opacity: .75;
    margin-bottom: 16px
}

.article-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    opacity: .6
}

.article-stats {
    display: flex;
    gap: 12px
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 30px
}

.page-btn {
    background: rgba(0, 0, 0, .4);
    border: 1px solid #12a9f2;
    color: #f0f2f4;
    padding: 8px 24px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition)
}

.page-btn:hover:not(:disabled) {
    background: rgba(0, 0, 0, .6);
    transform: scale(1.05)
}

.page-btn:disabled {
    opacity: .5;
    cursor: not-allowed
}

.page-info {
    font-size: .9rem
}

.no-results {
    text-align: center;
    padding: 60px 20px;
    grid-column: 1/-1
}

/* ===== قالب‌ها ===== */
.templates-main {
    padding: 60px 0
}

.templates-header {
    text-align: center;
    padding: 50px 30px;
    margin-bottom: 40px
}

.templates-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px
}

.templates-header h1 i {
    margin-left: 12px;
    color: #f39c12
}

.language-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    margin-bottom: 40px
}

.lang-tab {
    padding: 10px 24px;
    border-radius: var(--radius-xs);
    border: none;
    background: rgba(30, 58, 95, .15);
    color: var(--primary-dark);
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition)
}

.lang-tab:hover {
    background: rgba(30, 58, 95, .3);
    transform: translateY(-2px)
}

.lang-tab.active {
    background: var(--primary-dark);
    color: #fff
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 30px
}

.template-card {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(30, 58, 95, .3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, .09);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer
}

.template-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, .3);
    box-shadow: 0 20px 35px rgba(0, 0, 0, .15)
}

.template-image {
    position: relative;
    width: 100%;
    height: 180px;
    background: linear-gradient(135deg, #bababa, #12a9f2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden
}

.template-icon {
    font-size: 4rem;
    color: rgba(255, 255, 255, .9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, .2);
    animation: iconFloat 3s ease-in-out infinite
}

.template-language-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, .7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .7rem;
    font-weight: 600;
    color: #fff;
    z-index: 1
}

.template-header {
    padding: 20px 20px 0;
    display: flex;
    justify-content: space-between;
    align-items: center
}

.template-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-dark)
}

body.dark-mode .template-title {
    color: #fff;
}

.template-description {
    padding: 12px 20px;
    color: var(--primary-light);
    line-height: 1.6;
    font-size: .9rem
}

body.dark-mode .template-description {
    color: #9d9c9c;
}

.template-footer {
    padding: 15px 20px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, .2)
}

.template-difficulty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .75rem
}

.difficulty-easy {
    color: #27ae60
}

.difficulty-medium {
    color: #f39c12
}

.difficulty-hard {
    color: #e74c3c
}

.template-link {
    text-decoration: none;
    color: var(--primary-dark);
    font-weight: 600;
    font-size: .85rem;
    transition: all .2s
}

.template-link:hover {
    color: #f39c12;
    transform: translateX(-5px);
    display: inline-block
}

/* ===== افزونه‌ها ===== */
.plugins-main {
    padding: 60px 0
}

.plugins-header {
    text-align: center;
    padding: 50px 30px;
    margin-bottom: 40px
}

.plugins-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px
}

.plugins-header h1 i {
    margin-left: 12px;
    color: var(--primary-dark)
}

.plugins-search-section {
    padding: 30px;
    margin-bottom: 30px;
    border-radius: var(--radius)
}

.search-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, .2);
    border-radius: 60px;
    padding: 5px 20px;
    margin-bottom: 25px;
    border: 1px solid rgba(255, 255, 255, .3);
    transition: var(--transition)
}

.search-box:focus-within {
    border-color: var(--primary-dark);
    box-shadow: 0 0 15px rgba(30, 58, 95, .2);
    transform: scale(1.01)
}

.search-box i {
    font-size: 1.2rem;
    margin-left: 10px;
    color: inherit
}

.search-box input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 15px 0;
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    color: inherit
}

.search-box input::placeholder {
    color: rgba(0, 0, 0, .5)
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center
}

.filter-chip {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgb(86 86 86 / 20%);
    padding: 8px 20px;
    border-radius: var(--radius-xs);
    font-size: .85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    color: inherit
}

.filter-chip:hover {
    background: rgba(255, 255, 255, .3);
    transform: translateY(-2px)
}

.filter-chip.active {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    border-color: transparent
}

.plugins-stats {
    text-align: center;
    margin-bottom: 30px;
    font-size: .9rem;
    opacity: .8
}

.plugins-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px
}

.plugin-card {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .09);
    border: 1px solid rgba(30, 58, 95, .3);
    transition: var(--transition);
    cursor: pointer
}

body.dark-mode .plugin-card {

}

.plugin-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .3);
    box-shadow: 0 20px 35px rgba(0, 0, 0, .15);
    border: 1px solid #2c3e66
}

.plugin-header {
    display: flex;
    gap: 15px;
    margin-bottom: 15px
}

.plugin-icon {
    width: 54px;
    height: 54px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: var(--transition)
}

.plugin-card:hover .plugin-icon {
    transform: scale(1.05) rotate(5deg)
}

.plugin-icon i {
    font-size: 28px;
    color: #fff
}

.plugin-title-section {
    flex: 1
}

.plugin-name {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 5px
}

.plugin-publisher {
    font-size: .75rem;
    opacity: .7;
    display: flex;
    align-items: center;
    gap: 5px
}

.plugin-description {
    font-size: .85rem;
    line-height: 1.5;
    margin-bottom: 15px;
    opacity: .85;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden
}

.plugin-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: .75rem;
    border-top: 1px solid rgba(255, 255, 255, .2);
    padding-top: 12px
}

.plugin-stats {
    display: flex;
    gap: 12px
}

.plugin-stats span {
    display: flex;
    align-items: center;
    gap: 4px
}

.loading-spinner {
    text-align: center;
    padding: 50px;
    grid-column: 1/-1;
    font-size: 1.2rem
}

/* ===== آیکون‌ها ===== */
.icons-main {
    padding: 60px 0
}

.icons-header {
    text-align: center;
    padding: 50px 30px;
    margin-bottom: 40px
}

.icons-header h1 {
    font-size: 2.5rem;
    margin-bottom: 15px
}

.icons-header h1 i {
    margin-left: 12px;
    color: #f39c12
}

.icons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px
}

.icon-pack-card {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(30, 58, 95, .3);
    padding: 30px 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .09);
    text-align: center;
    transition: var(--transition);
    cursor: pointer
}

.icon-pack-card:hover {
    transform: translateY(-8px);
    background: rgba(255, 255, 255, .35);
    border: 1px solid #2c3e66;
    box-shadow: 0 20px 35px rgba(0, 0, 0, .15)
}

.icon-pack-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px
}

.icon-pack-preview i {
    font-size: 2.5rem;
    color: var(--primary-dark);
    transition: var(--transition)
}

.icon-pack-card:hover .icon-pack-preview i {
    transform: scale(1.1)
}

.icon-pack-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark)
}

.icon-pack-count {
    font-size: .8rem;
    background: rgba(30, 58, 95, .15);
    display: inline-block;
    padding: 4px 15px;
    border-radius: 20px;
    color: var(--primary-light)
}

.icons-detail-main {
    padding: 60px 0
}

.icons-detail-header {
    text-align: center;
    padding: 30px 40px 50px;
    margin-bottom: 40px;
    position: relative
}

.button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 30px
}

.back-to-icons-btn {
    background: rgba(30, 58, 95, .15);
    border: none;
    padding: 8px 18px;
    border-radius: 30px;
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
    color: var(--primary-dark);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px
}

.back-to-icons-btn:hover {
    background: rgba(30, 58, 95, .3);
    transform: translateX(-5px)
}

#downloadPackBtn {
    order: -1
}

.icons-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 10px
}

.icons-detail-header h1 i {
    margin-left: 12px;
    color: #f39c12
}

.icons-detail-header p {
    opacity: .8;
    font-size: 1rem
}

.icons-detail-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px
}

.icon-card {
    background: rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 20px 15px;
    text-align: center;
    border: 1px solid #1e3a5f;
    box-shadow: 0 8px 32px rgba(0, 0, 0, .09);
    transition: var(--transition);
    cursor: pointer
}

.icon-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, .35);
    box-shadow: 0 15px 30px rgba(0, 0, 0, .1)
}

.icon-preview {
    font-size: 2.5rem;
    margin-bottom: 12px;
    color: var(--primary-dark);
    transition: var(--transition)
}

.icon-card:hover .icon-preview {
    transform: scale(1.1);
    color: #f39c12
}

.icon-name {
    font-size: .75rem;
    font-weight: 600;
    color: var(--text-dark);
    direction: ltr;
    background: rgba(0, 0, 0, .05);
    display: inline-block;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: monospace
}

.icon-category-badge {
    display: inline-block;
    margin-top: 8px;
    font-size: .6rem;
    background: rgba(30, 58, 95, .2);
    padding: 2px 8px;
    border-radius: 15px;
    color: var(--primary-light)
}

/* ===== مودال ===== */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 1000;
    justify-content: center;
    align-items: center
}

.modal-content {
    max-width: 450px;
    width: 90%;
    padding: 32px;
    border-radius: 40px !important;
    text-align: center;
    position: relative;
    animation: fadeInScale .3s ease
}

body.dark-mode .modal-content {
    border-radius: 40px;
    color: #fff;
}

.close-modal {
    position: absolute;
    top: 20px;
    left: 24px;
    font-size: 28px;
    cursor: pointer;
    transition: var(--transition)
}


.close-modal:hover {
    transform: rotate(90deg);
    color: #e74c3c
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 16px;
    color: var(--primary-dark)
}

body.dark-mode .modal-icon {
    color: #fff;
}

.form-group {
    margin-bottom: 20px
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border-radius: 60px;
    border: none;
    background: rgba(255, 255, 255, .6);
    font-size: 1rem;
    font-family: inherit;
    outline: none;
    transition: var(--transition)
}

.form-group input:focus {
    transform: scale(1.02);
    box-shadow: 0 0 15px rgba(30, 58, 95, .2)
}

.modal-footer p {
    margin-top: 15px
}

/* ===== فوتر ===== */
.glass-footer {
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(255, 255, 255, .3);
    margin-top: 40px;
    padding: 30px 0 0;
    box-shadow: var(--shadow)
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 20px
}

.footer-about .logo {
    font-size: 1.3rem;
    margin-bottom: 8px
}

.footer-about p {
    font-size: .8rem;
    line-height: 1.5;
    margin-bottom: 10px
}

.social-links {
    display: flex;
    gap: 12px;
    margin-top: 12px
}

.social-links a {
    color: var(--primary-dark);
    font-size: 1.1rem;
    transition: var(--transition);
    display: inline-block
}

.social-links a:hover {
    transform: translateY(-3px) scale(1.1);
    color: #f39c12
}

.footer-links h4,
.footer-newsletter h4 {
    font-size: 1rem;
    margin-bottom: 12px
}

.footer-links ul {
    list-style: none
}

.footer-links li {
    margin-bottom: 6px
}

.footer-links a {
    text-decoration: none;
    color: #1e2f41;
    cursor: pointer;
    font-size: .8rem;
    transition: var(--transition);
    display: inline-block
}

.footer-links a:hover {
    transform: translateX(-5px);
    color: var(--primary-dark)
}

.footer-newsletter p {
    font-size: .75rem;
    margin-bottom: 10px
}

.newsletter-form {
    display: flex;
    gap: 6px;
    margin-top: 8px
}

.newsletter-form input {
    flex: 1;
    padding: 6px 10px;
    border-radius: 60px;
    /* border: none; */
    background: rgba(255, 255, 255, .5);
    font-size: .75rem;
    transition: var(--transition)
}

.newsletter-form input:focus {
    transform: scale(1.02);
    outline: none
}

.newsletter-form button {
    background: var(--primary-dark);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    font-size: .8rem;
    transition: var(--transition)
}

.newsletter-form button:hover {
    transform: scale(1.1);
    background: #0f2b48
}

.footer-bottom {
    text-align: center;
    padding: 12px;
    border-top: 1px solid rgba(0, 0, 0, .05);
    font-size: .7rem
}

/* ===== تبلیغ شناور ===== */
.floating-ad {
    position: fixed;
    bottom: 30px;
    left: 30px;
    max-width: 320px;
    background: rgba(255, 255, 255, .25);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid #d0d0d0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .15);
    padding: 16px;
    z-index: 999;
    opacity: 0;
    transform: translateX(-50px) scale(.9);
    transition: all .4s cubic-bezier(.68, -.55, .265, 1.55);
    pointer-events: none
}

.floating-ad.show {
    opacity: 1;
    transform: translateX(0) scale(1);
    pointer-events: auto
}

.ad-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: rgba(0, 0, 0, .3);
    border: none;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s ease
}

.ad-close-btn:hover {
    background: rgba(220, 53, 69, .9);
    transform: scale(1.1)
}

.ad-content {
    display: flex;
    gap: 15px;
    align-items: center
}

.ad-icon {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0
}

.ad-icon i {
    font-size: 28px;
    color: #fff
}

.ad-text h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: var(--text-dark)
}

.ad-text p {
    margin: 0 0 10px;
    font-size: .8rem;
    color: var(--primary-light);
    line-height: 1.4
}

.ad-btn {
    display: inline-block;
    background: var(--primary-dark);
    color: #fff;
    text-decoration: none;
    padding: 5px 15px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 600;
    transition: all .2s ease;
    cursor: pointer;
    border: none
}

.ad-btn:hover {
    background: #0f2b48;
    transform: scale(.98)
}

/* ===== دکمه پشتیبانی ===== */
.support-fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: none;
    border-radius: 60px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
    opacity: 0;
    transform: scale(.8) translateY(20px);
    transition: all .4s cubic-bezier(.68, -.55, .265, 1.55);
    overflow: visible
}

.support-fab.show {
    opacity: 1;
    transform: scale(1) translateY(0)
}

.support-fab:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, #0f2b48, var(--primary-dark));
    box-shadow: 0 10px 28px rgba(0, 0, 0, .35)
}

.support-fab:active {
    transform: scale(.96)
}

.support-fab::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, .5);
    border-radius: 60px;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: echoPulse 2s ease-out infinite
}

.support-fab::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, .3);
    border-radius: 60px;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: echoPulse 2s ease-out infinite .6s
}

.echo-wave {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(30, 58, 95, .15);
    border-radius: 60px;
    transform: translate(-50%, -50%);
    z-index: -1;
    animation: echoPulse 2s ease-out infinite 1.2s;
    pointer-events: none
}

.support-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, .2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition)
}

.support-icon i {
    font-size: 1.4rem;
    color: #fff
}

.support-fab:hover .support-icon {
    background: rgba(255, 255, 255, .35);
    transform: rotate(10deg)
}

.support-text {
    display: flex;
    flex-direction: column;
    text-align: right
}

.support-title {
    font-size: .85rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: .5px
}

.support-subtitle {
    color: rgba(255, 255, 255, .8);
    margin-top: 2px
}

/* ===== توست ===== */
.copy-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background: #27ae60;
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius-xs);
    font-size: .85rem;
    z-index: 1000;
    opacity: 0;
    transition: all .3s ease;
    pointer-events: none
}

.copy-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0)
}

/* ===== دکمه انیمیشن‌دار ===== */
.animated-button {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 28px;
    width: 180px;
    height: 40px;
    border: 0.5px solid transparent;
    font-size: .95rem;
    background-color: #1e3a5f;
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: #fff;
    box-shadow: 0 0 0 2px #1e3a5f;
    cursor: pointer;
    overflow: hidden;
    transition: all .5s cubic-bezier(.23, 100, .320, 100)
}

.animated-button svg {
    position: absolute;
    width: 24px;
    fill: #fff;
    z-index: 9;
    transition: all .5s cubic-bezier(.23, 1, .32, 1)
}

.animated-button .arr-1 {
    right: 16px
}

.animated-button .arr-2 {
    left: -25%
}

.animated-button .circle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    opacity: 0;
    transition: all .8s cubic-bezier(.23, 1, .32, 1)
}

.animated-button .text {
    position: relative;
    color: #fff;
    z-index: 1;
    transform: translateX(-12px);
    transition: all .8s cubic-bezier(.23, 1, .32, 1)
}

.animated-button:hover {
    box-shadow: 0 0 0 12px transparent;
    color: #212121;
    border-radius: var(--radius-xs)
}

.animated-button:hover .arr-1 {
    right: -25%
}

.animated-button:hover .arr-2 {
    left: 16px
}

.animated-button:hover .text {
    transform: translateX(12px)
}

.animated-button:hover svg {
    fill: #fff
}

.animated-button:active {
    scale: .95;
    box-shadow: 0 0 0 4px
}

.animated-button:hover .circle {
    width: 220px;
    height: 220px;
    opacity: 1
}

/* ===== جزئیات مقاله ===== */
.article-detail-main {
    padding: 60px 0
}

.article-detail-container {
    padding: 40px;
    margin: 0 auto
}

.article-detail-header {
    text-align: center;
    margin-bottom: 30px
}

.article-detail-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: var(--radius-xs);
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 20px
}

.article-detail-badge.tech {
    background: #3498db20;
    color: #2980b9
}

.article-detail-badge.design {
    background: #e74c3c20;
    color: #c0392b
}

.article-detail-badge.programming {
    background: #2ecc7120;
    color: #27ae60
}

.article-detail-badge.lifestyle {
    background: #f39c1220;
    color: #e67e22
}

.article-detail-badge.marketing {
    background: #9b59b620;
    color: #8e44ad
}

.article-detail-header h1 {
    font-size: 2rem;
    margin-bottom: 20px;
    /* color: var(--text-dark) */
}

.article-detail-meta {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: .85rem;
    opacity: .7
}

.article-detail-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px
}

.article-detail-image {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    overflow: hidden
}

.article-detail-image i {
    font-size: 5rem;
    color: rgba(255, 255, 255, .9)
}

.article-detail-content {
    line-height: 1.8;
    font-size: 1rem;
    color: var(--text-dark)
}

.article-detail-content p {
    margin-bottom: 20px
}

.article-detail-content h2 {
    font-size: 1.5rem;
    margin: 25px 0 15px
}

.article-detail-content h3 {
    font-size: 1.2rem;
    margin: 20px 0 10px
}

.article-detail-content ul,
.article-detail-content ol {
    margin: 15px 0;
    padding-right: 25px
}

.article-detail-content li {
    margin-bottom: 8px
}

.article-detail-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 25px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    flex-wrap: wrap;
    gap: 15px
}

.back-to-articles-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, .15);
    padding: 10px 24px;
    border-radius: var(--radius-xs);
    cursor: pointer;
    font-family: inherit;
    font-size: .85rem;
    color: #666;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px
}

.back-to-articles-btn:hover {
    background: #1e3a5f;
    color: #fff;
    transform: translateX(-5px)
}

/* ===== تعاملات مقاله ===== */
.article-interactions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    padding: 25px 0;
    margin-top: 30px;
    border-top: 1px solid rgba(0, 0, 0, .08);
    border-bottom: 1px solid rgba(0, 0, 0, .08)
}

body.dark-mode .article-interactions {
    border-top-color: rgba(255, 255, 255, .08);
    border-bottom-color: rgba(255, 255, 255, .08)
}

.interaction-left {
    display: flex;
    align-items: center;
    gap: 12px
}

.like-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border: none;
    border-radius: var(--radius-xs);
    background: rgba(30, 58, 95, .08);
    color: var(--text-dark);
    font-family: inherit;
    font-size: .9rem;
    cursor: pointer;
    transition: var(--transition)
}

.like-btn:hover {
    background: rgba(30, 58, 95, .15);
    transform: scale(1.02)
}

.like-btn.liked {
    background: #e74c3c20;
    color: #e74c3c
}

.like-btn.liked i {
    font-weight: 900;
    color: #e74c3c
}

.like-btn .like-count {
    font-weight: 600;
    min-width: 20px
}

.like-btn .like-text {
    font-weight: 500
}

body.dark-mode .like-btn {
    background: rgba(255, 255, 255, .08);
    color: var(--text-light)
}

body.dark-mode .like-btn:hover {
    background: rgba(255, 255, 255, .15)
}

body.dark-mode .like-btn.liked {
    background: #e74c3c30;
    color: #e74c3c
}

.bookmark-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: 1px solid rgba(0, 0, 0, .12);
    border-radius: var(--radius-xs);
    background: transparent;
    color: var(--text-dark);
    font-family: inherit;
    font-size: .85rem;
    cursor: pointer;
    transition: var(--transition)
}

.bookmark-btn:hover {
    background: rgba(0, 0, 0, .05);
    transform: scale(1.02)
}

.bookmark-btn.saved {
    color: #f39c12;
    border-color: #f39c12
}

.bookmark-btn.saved i {
    font-weight: 900
}

body.dark-mode .bookmark-btn {
    border-color: rgba(255, 255, 255, .15);
    color: var(--text-light)
}

body.dark-mode .bookmark-btn:hover {
    background: rgba(255, 255, 255, .05)
}

.interaction-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap
}

.share-label {
    font-size: .8rem;
    opacity: .6;
    margin-left: 4px
}

.share-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: #666;
    background: rgba(0, 0, 0, .04);
    font-size: 1rem;
    text-decoration: none
}

.share-link:hover {
    transform: translateY(-3px);
    color: #fff
}

.share-link.telegram:hover {
    background: #0088cc
}

.share-link.twitter:hover {
    background: #1da1f2
}

.share-link.linkedin:hover {
    background: #0077b5
}

body.dark-mode .share-link {
    background: rgba(255, 255, 255, .06);
    color: #aaa
}

.copy-link-btn {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: rgba(0, 0, 0, .04);
    color: #666;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center
}

.copy-link-btn:hover {
    background: #2ecc71;
    color: #fff;
    transform: translateY(-3px)
}

body.dark-mode .copy-link-btn {
    background: rgba(255, 255, 255, .06);
    color: #aaa
}

body.dark-mode .copy-link-btn:hover {
    background: #2ecc71;
    color: #fff
}

/* ===== نظرات ===== */
.article-comments-section {
    margin-top: 35px
}

.comments-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 25px
}

.comments-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark)
}

body.dark-mode .comments-header h3 {
    color: var(--text-light)
}

.comments-header h3 i {
    color: var(--primary-dark)
}

body.dark-mode .comments-header h3 i {
    color: #12a9f2
}

.comments-count {
    background: rgba(30, 58, 95, .12);
    padding: 2px 12px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 600
}

body.dark-mode .comments-count {
    background: rgba(255, 255, 255, .08)
}

.comments-sort select {
    padding: 6px 14px;
    border-radius: 30px;
    border: 1px solid rgba(0, 0, 0, .1);
    background: rgba(255, 255, 255, .5);
    font-family: inherit;
    font-size: .8rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark)
}

.comments-sort select:hover {
    border-color: var(--primary-dark)
}

body.dark-mode .comments-sort select {
    background: rgba(0, 0, 0, .3);
    border-color: rgba(255, 255, 255, .1);
    color: var(--text-light)
}

.comment-form {
    padding: 25px;
    margin-bottom: 30px;
    background: rgba(255, 255, 255, .15);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, .2)
}

body.dark-mode .comment-form {
    background: rgba(0, 0, 0, .3);
    border-color: rgba(255, 255, 255, .05)
}

.comment-form-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px
}

.comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.2rem
}

body.dark-mode .comment-avatar {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e
}

.comment-form-title {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-dark)
}

body.dark-mode .comment-form-title {
    color: var(--text-light)
}

.comment-form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 15px
}

.comment-form-row .form-group {
    flex: 1;
    margin-bottom: 0
}

.comment-form .form-group input,
.comment-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, .08);
    background: rgba(255, 255, 255, .4);
    font-family: inherit;
    font-size: .9rem;
    transition: var(--transition);
    color: var(--text-dark)
}

.comment-form .form-group input:focus,
.comment-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-dark);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, .08)
}

body.dark-mode .comment-form .form-group input,
body.dark-mode .comment-form .form-group textarea {
    background: rgba(255, 255, 255, .05);
    border-color: rgba(255, 255, 255, .08);
    color: var(--text-light)
}

body.dark-mode .comment-form .form-group input::placeholder,
body.dark-mode .comment-form .form-group textarea::placeholder {
    color: rgba(255, 255, 255, .4)
}

.comment-form .form-group textarea {
    resize: vertical;
    min-height: 100px
}

.comment-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 15px
}

.comment-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .85rem;
    color: var(--text-dark)
}

body.dark-mode .comment-rating {
    color: var(--text-light)
}

.stars {
    display: flex;
    gap: 4px;
    cursor: pointer
}

.stars i {
    font-size: 1.2rem;
    color: #ccc;
    transition: all .2s ease
}

.stars i.active,
.stars i:hover {
    color: #f39c12;
    transform: scale(1.1)
}

body.dark-mode .stars i {
    color: #555
}

body.dark-mode .stars i.active,
body.dark-mode .stars i:hover {
    color: #f39c12
}

.submit-comment-btn {
    padding: 10px 28px;
    border: none;
    border-radius: var(--radius-xs);
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    color: #fff;
    font-family: inherit;
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px
}

.submit-comment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 95, .25)
}

body.dark-mode .submit-comment-btn {
    background: linear-gradient(135deg, #bababa, #12a9f2);
    color: #1a1a2e
}

body.dark-mode .submit-comment-btn:hover {
    box-shadow: 0 6px 20px rgba(18, 169, 242, .3)
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px
}

.no-comments {
    text-align: center;
    padding: 50px 20px;
    color: #999
}

.no-comments i {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: .3
}

.no-comments p {
    font-size: .95rem
}

body.dark-mode .no-comments {
    color: #666
}

.comment-item {
    display: flex;
    gap: 15px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, .08);
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, .05);
    transition: var(--transition)
}

.comment-item:hover {
    background: rgba(255, 255, 255, .12);
    transform: translateX(-4px)
}

body.dark-mode .comment-item {
    background: rgba(255, 255, 255, .03);
    border-color: rgba(255, 255, 255, .03)
}

body.dark-mode .comment-item:hover {
    background: rgba(255, 255, 255, .06)
}

.comment-avatar-sm {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    flex-shrink: 0
}

.comment-avatar-sm.orange {
    background: linear-gradient(135deg, #f39c12, #e67e22)
}

.comment-avatar-sm.purple {
    background: linear-gradient(135deg, #9b59b6, #8e44ad)
}

.comment-avatar-sm.red {
    background: linear-gradient(135deg, #e74c3c, #c0392b)
}

.comment-avatar-sm.teal {
    background: linear-gradient(135deg, #1abc9c, #16a085)
}

.comment-body {
    flex: 1;
    min-width: 0
}

.comment-body-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px
}

.comment-author {
    font-weight: 700;
    font-size: .95rem;
    color: var(--text-dark)
}

body.dark-mode .comment-author {
    color: var(--text-light)
}

.comment-author-badge {
    font-size: .6rem;
    background: #2ecc71;
    color: #fff;
    padding: 2px 10px;
    border-radius: 30px;
    font-weight: 600
}

.comment-date {
    font-size: .7rem;
    opacity: .5
}

.comment-text {
    font-size: .9rem;
    line-height: 1.7;
    color: var(--text-dark);
    margin-bottom: 10px
}

body.dark-mode .comment-text {
    color: #ccc
}

.comment-footer-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: .75rem
}

.comment-footer-actions button {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-family: inherit;
    font-size: .75rem;
    transition: all .2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 20px
}

.comment-footer-actions button:hover {
    color: var(--primary-dark);
    background: rgba(0, 0, 0, .04)
}

.comment-footer-actions button.liked-comment {
    color: #e74c3c
}

.comment-footer-actions button.liked-comment i {
    font-weight: 900
}

body.dark-mode .comment-footer-actions button:hover {
    color: #12a9f2;
    background: rgba(255, 255, 255, .05)
}

.comment-rating-display {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: .7rem;
    color: #f39c12
}

.comment-rating-display i {
    font-size: .7rem
}

.comments-load-more {
    text-align: center;
    margin-top: 25px
}

.load-more-btn {
    padding: 10px 30px;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: var(--radius-xs);
    background: transparent;
    font-family: inherit;
    font-size: .85rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-dark)
}

.load-more-btn:hover {
    background: rgba(0, 0, 0, .04);
    transform: translateY(-2px)
}

body.dark-mode .load-more-btn {
    border-color: rgba(255, 255, 255, .1);
    color: var(--text-light)
}

body.dark-mode .load-more-btn:hover {
    background: rgba(255, 255, 255, .05)
}

/* ===== استایل‌های صفحه جزئیات قالب ===== */
.template-detail-container {
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12)
}

.template-detail-header {
    text-align: center;
    padding-bottom: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    margin-bottom: 30px
}

.template-detail-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 2.5rem;
    color: #fff;
    transition: var(--transition)
}

.template-detail-icon i {
    color: #fff
}

.template-detail-header h2 {
    font-size: 1.8rem;
    margin-bottom: 12px;
    color: var(--text-dark)
}

.template-detail-meta {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap
}

.template-detail-meta .meta-badge {
    padding: 6px 18px;
    border-radius: 30px;
    font-size: .85rem;
    font-weight: 600;
    background: rgba(30, 58, 95, .15);
    color: var(--primary-dark)
}

.template-detail-meta .meta-badge.difficulty.easy {
    background: #2ecc7120;
    color: #27ae60
}

.template-detail-meta .meta-badge.difficulty.medium {
    background: #f39c1220;
    color: #e67e22
}

.template-detail-meta .meta-badge.difficulty.hard {
    background: #e74c3c20;
    color: #c0392b
}

.template-detail-body {
    margin-bottom: 30px
}

.detail-section {
    margin-bottom: 25px
}

.detail-section h3 {
    font-size: 1.2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px
}

.detail-section h3 i {
    color: var(--primary-dark)
}

.detail-section p {
    line-height: 1.8;
    color: var(--text-dark);
    opacity: .85
}

.detail-section ul {
    list-style: none;
    padding: 0
}

.detail-section ul li {
    padding: 8px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dark);
    border-bottom: 1px solid rgba(255, 255, 255, .08)
}

.detail-section ul li:last-child {
    border-bottom: none
}

.detail-section ul li i {
    color: #27ae60;
    font-size: .9rem
}

.code-block {
    background: rgba(0, 0, 0, .7);
    border-radius: var(--radius-sm);
    padding: 20px;
    overflow-x: auto;
    direction: ltr;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, .1)
}

.code-block pre {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: .85rem;
    line-height: 1.6;
    color: #e0e0e0
}

.code-block code {
    color: #e0e0e0;
    font-family: 'Courier New', monospace
}

.template-detail-footer {
    padding-top: 25px;
    border-top: 1px solid rgba(255, 255, 255, .15);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px
}

.price-section {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap
}

.price-section .old-price {
    font-size: 1rem;
    color: #999;
    text-decoration: line-through
}

.price-section .new-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark)
}

.price-section .currency {
    font-size: .9rem;
    color: #666
}

.price-section .discount-badge {
    background: #e74c3c;
    color: #fff;
    padding: 4px 12px;
    border-radius: 30px;
    font-size: .75rem;
    font-weight: 600
}

.action-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap
}

.action-buttons .buy-btn {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    color: #fff;
    border: none;
    padding: 12px 28px;
    border-radius: var(--radius-xs);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px
}

.action-buttons .buy-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(39, 174, 96, .3)
}

.action-buttons .demo-btn {
    background: rgba(30, 58, 95, .15);
    color: var(--primary-dark);
    border: 1px solid rgba(30, 58, 95, .3);
    padding: 12px 24px;
    border-radius: var(--radius-xs);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px
}

.action-buttons .demo-btn:hover {
    background: rgba(30, 58, 95, .25);
    transform: translateY(-2px)
}

.action-buttons .back-btn {
    background: transparent;
    color: var(--text-dark);
    border: 1px solid rgb(86 86 86 / 20%);
    padding: 12px 24px;
    border-radius: var(--radius-xs);
    font-size: .95rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px
}

.action-buttons .back-btn:hover {
    background: rgba(255, 255, 255, .1);
    transform: translateX(-4px)
}

/* ===== دارک مود جزئیات قالب ===== */
body.dark-mode .template-detail-container {
    background: rgba(0, 0, 0, .4);
    border-color: rgba(18, 169, 242, .1)
}

body.dark-mode .template-detail-header h2 {
    color: var(--text-light)
}

body.dark-mode .template-detail-meta .meta-badge {
    background: rgba(255, 255, 255, .1);
    color: var(--text-light)
}

body.dark-mode .detail-section h3 {
    color: var(--text-light)
}

body.dark-mode .detail-section h3 i {
    color: #12a9f2
}

body.dark-mode .detail-section p {
    color: var(--text-light)
}

body.dark-mode .detail-section ul li {
    color: var(--text-light);
    border-bottom-color: rgba(255, 255, 255, .05)
}

body.dark-mode .price-section .new-price {
    color: #12a9f2
}

body.dark-mode .price-section .currency {
    color: #888
}

body.dark-mode .action-buttons .demo-btn {
    background: rgba(255, 255, 255, .1);
    color: #12a9f2;
    border-color: rgba(18, 169, 242, .3)
}

body.dark-mode .action-buttons .demo-btn:hover {
    background: rgba(255, 255, 255, .15)
}

body.dark-mode .action-buttons .back-btn {
    color: var(--text-light);
    border-color: rgba(255, 255, 255, .1)
}

body.dark-mode .action-buttons .back-btn:hover {
    background: rgba(255, 255, 255, .05)
}

body.dark-mode .article-detail-content {
    color: var(--text-light)
}

body.dark-mode .back-to-articles-btn {
    color: #12a9f2;
    border-color: #12a9f2
}

body.dark-mode .back-to-articles-btn:hover {
    background: #12a9f2;
    color: #1a1a2e
}

/* ============================================================
   ریسپانسیو
   ============================================================ */

@media (max-width: 1200px) {
    .icons-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .icons-detail-grid {
        grid-template-columns: repeat(3, 1fr)
    }
}

@media (max-width: 1000px) {
    .github-hero-container {
        flex-direction: column;
        gap: 50px
    }

    .hero-content-left,
    .hero-content-right {
        flex: 1;
        width: 100%
    }

    .github-main-title {
        font-size: 2.5rem;
        text-align: center
    }

    .github-description {
        max-width: 100%;
        text-align: center
    }

    .github-buttons {
        justify-content: center
    }

    .github-stats {
        justify-content: center;
        text-align: center
    }
}

@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: flex
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        max-width: 85%;
        height: 100vh;
        background: #fff;
        transition: right .3s ease;
        z-index: 1001;
        padding: 80px 20px 30px;
        box-shadow: -5px 0 30px rgba(0, 0, 0, .1)
    }

    body.dark-mode .main-nav {
        background: #0d1117
    }

    .main-nav.active {
        right: 0
    }

    .main-nav ul {
        flex-direction: column;
        gap: 12px;
        align-items: stretch
    }

    .main-nav ul li a {
        display: block;
        text-align: center;
        font-size: 1rem;
        padding: 10px
    }

    .main-nav ul li a.active::after {
        display: none
    }

    .mobile-menu-close {
        position: absolute;
        top: 20px;
        left: 20px;
        background: rgba(0, 0, 0, .08);
        padding: 8px 15px;
        border-radius: 30px;
        cursor: pointer;
        font-size: .8rem;
        display: flex;
        align-items: center;
        gap: 8px;
        color: #24292f
    }

    body.dark-mode .mobile-menu-close {
        background: rgba(255, 255, 255, .1);
        color: #e6edf3
    }

    .github-header-btn span {
        display: inline-block
    }

    .header-container {
        padding: 0 16px
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px
    }

    .section-title h2 {
        font-size: 1.5rem
    }

    .features-grid,
    .services-grid,
    .templates-grid,
    .all-articles-grid {
        grid-template-columns: 1fr;
        gap: 20px
    }

    .feature-card,
    .service-card,
    .article-card,
    .template-card {
        padding: 20px
    }

    .github-stats {
        gap: 30px
    }

    .github-stats .stat-number {
        font-size: 1.3rem
    }

    .service-icon {
        width: 60px;
        height: 60px
    }

    .service-icon i {
        font-size: 1.8rem
    }

    .articles-filters {
        flex-direction: column;
        align-items: stretch;
        padding: 20px
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 8px
    }

    .filter-group select,
    .search-group input {
        width: 100%
    }

    .search-group {
        flex-direction: row
    }

    .pagination {
        flex-direction: column;
        gap: 12px
    }

    .page-btn {
        width: 100%;
        text-align: center
    }

    .language-tabs {
        gap: 8px
    }

    .lang-tab {
        padding: 6px 12px;
        font-size: .7rem
    }

    .modal-content {
        width: 95%;
        padding: 20px
    }

    .form-group input {
        padding: 12px 16px;
        font-size: 16px
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center
    }

    .social-links {
        justify-content: center
    }

    .newsletter-form {
        flex-direction: column
    }

    .newsletter-form button {
        width: 100%;
        border-radius: var(--radius-xs);
        padding: 10px
    }

    .support-fab {
        bottom: 20px;
        right: 20px;
        padding: 8px 16px;
        gap: 8px
    }

    .support-icon {
        width: 34px;
        height: 34px
    }

    .support-icon i {
        font-size: 1.1rem
    }

    .support-title {
        font-size: .75rem
    }

    .support-subtitle {
        font-size: .55rem
    }

    .floating-ad {
        bottom: 15px;
        left: 15px;
        right: 15px;
        width: auto;
        max-width: none;
        padding: 12px
    }

    .ad-content {
        flex-direction: row;
        gap: 10px
    }

    .ad-icon {
        width: 40px;
        height: 40px
    }

    .ad-icon i {
        font-size: 20px
    }

    .ad-text h4 {
        font-size: .85rem
    }

    .ad-text p {
        font-size: .7rem
    }

    .github-main-title {
        font-size: 1.8rem
    }

    .github-description {
        font-size: .9rem
    }

    .github-primary-btn,
    .github-secondary-btn {
        padding: 10px 20px;
        font-size: .85rem
    }

    .code-body pre {
        font-size: .65rem
    }

    .icons-grid {
        grid-template-columns: 1fr
    }

    .icons-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px
    }

    .icons-detail-header h1 {
        font-size: 1.5rem
    }

    .icon-pack-preview i {
        font-size: 2rem
    }

    .icon-pack-title {
        font-size: 1.1rem
    }

    .button-container {
        justify-content: center
    }

    .back-to-icons-btn {
        position: static;
        margin-bottom: 20px;
        display: inline-flex;
        justify-content: center
    }

    .plugins-header h1 {
        font-size: 1.8rem
    }

    .plugins-search-section {
        padding: 20px
    }

    .filter-buttons {
        gap: 8px
    }

    .filter-chip {
        padding: 5px 12px;
        font-size: .7rem
    }

    .plugin-header {
        gap: 10px
    }

    .plugin-icon {
        width: 45px;
        height: 45px
    }

    .plugin-icon i {
        font-size: 22px
    }

    .github-header-btn span {
        display: none
    }

    .github-header-btn {
        padding: 6px 10px
    }

    .article-detail-container {
        padding: 20px
    }

    .article-detail-header h1 {
        font-size: 1.4rem
    }

    .article-detail-meta {
        gap: 12px;
        font-size: .7rem
    }

    .article-detail-footer {
        flex-direction: column;
        text-align: center
    }

    .article-detail-image {
        height: 180px
    }

    .article-detail-image i {
        font-size: 3.5rem
    }

    .article-interactions {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 20px 0
    }

    .interaction-left {
        justify-content: center
    }

    .interaction-right {
        justify-content: center
    }

    .like-btn {
        padding: 8px 16px;
        font-size: .8rem
    }

    .bookmark-btn {
        padding: 8px 14px;
        font-size: .8rem
    }

    .share-link,
    .copy-link-btn {
        width: 34px;
        height: 34px;
        font-size: .85rem
    }

    .comment-form {
        padding: 18px
    }

    .comment-form-row {
        flex-direction: column;
        gap: 10px
    }

    .comment-form-footer {
        flex-direction: column;
        align-items: stretch
    }

    .comment-rating {
        justify-content: center
    }

    .submit-comment-btn {
        width: 100%;
        justify-content: center
    }

    .comments-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px
    }

    .comments-header h3 {
        font-size: 1rem;
        justify-content: center
    }

    .comments-sort select {
        width: 100%
    }

    .comment-item {
        padding: 14px 16px;
        flex-direction: column;
        align-items: flex-start
    }

    .comment-body-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px
    }

    .comment-footer-actions {
        flex-wrap: wrap
    }

    .template-detail-container {
        padding: 20px;
        border-radius: 20px
    }

    .template-detail-header h2 {
        font-size: 1.4rem
    }

    .template-detail-meta {
        gap: 10px
    }

    .template-detail-meta .meta-badge {
        font-size: .75rem;
        padding: 4px 14px
    }

    .template-detail-footer {
        flex-direction: column;
        align-items: stretch;
        text-align: center
    }

    .price-section {
        justify-content: center
    }

    .action-buttons {
        justify-content: center
    }

    .action-buttons .buy-btn,
    .action-buttons .demo-btn,
    .action-buttons .back-btn {
        padding: 10px 20px;
        font-size: .85rem;
        flex: 1;
        justify-content: center;
        min-width: 120px
    }

    .code-block {
        padding: 14px;
        font-size: .75rem
    }

    .code-block pre {
        font-size: .7rem
    }
}

@media (max-width: 576px) {
    body {
        font-size: 14px
    }

    .logo {
        font-size: 1rem
    }

    .logo i {
        font-size: 1.1rem
    }

    .header-actions {
        gap: 4px
    }

    .article-card {
        padding: 16px
    }

    .article-title {
        font-size: 1.1rem
    }

    .article-excerpt {
        font-size: .85rem
    }

    .article-footer {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start
    }

    .support-fab {
        padding: 8px 12px
    }

    .icons-detail-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px
    }

    .icon-pack-preview i {
        font-size: 1.5rem
    }

    .icon-pack-card {
        padding: 20px 15px
    }

    .icon-preview {
        font-size: 1.8rem
    }

    .icon-name {
        font-size: .65rem
    }

    .logo span {
        display: none
    }

    .logo i {
        font-size: 1.3rem
    }

    .interaction-left {
        flex-wrap: wrap;
        justify-content: center
    }

    .like-btn .like-text {
        display: none
    }

    .share-label {
        display: none
    }
}

@media (max-width: 480px) {
    .support-text {
        display: none
    }

    .support-fab {
        padding: 10px;
        border-radius: 50%
    }

    .support-fab::after,
    .support-fab::before,
    .support-fab .echo-wave {
        border-radius: 50%
    }

    .support-icon {
        width: 40px;
        height: 40px
    }

    .support-icon i {
        font-size: 1.3rem
    }

    .template-detail-container {
        padding: 16px
    }

    .template-detail-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem
    }

    .action-buttons {
        flex-direction: column;
        width: 100%
    }

    .action-buttons .buy-btn,
    .action-buttons .demo-btn,
    .action-buttons .back-btn {
        width: 100%;
        justify-content: center
    }
}

@media (min-width: 769px) and (max-width: 992px) {

    .features-grid,
    .services-grid {
        grid-template-columns: repeat(2, 1fr)
    }

    .container {
        padding: 0 20px
    }
}

/* ===== تنظیمات عمومی ===== */
html {
    scroll-behavior: smooth
}

a,
button,
.clickable {
    touch-action: manipulation
}

/* ============================================================
   بخش متحرک هیرو - کدهای در حال حرکت (Hero Animation)
   ============================================================ */

/* ===== انیمیشن حرکت کدها ===== */
@keyframes slideCodeRightToLeft {
    0% {
        transform: translateX(100%);
        opacity: 0
    }

    5% {
        opacity: 1
    }

    95% {
        opacity: 1
    }

    100% {
        transform: translateX(-400%);
        opacity: 0
    }
}

/* ===== کانتینر پس‌زمینه کدها ===== */
.hero-code-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 0;
    opacity: .55;
    width: 200%
}

/* ===== هر خط کد ===== */
.code-line-bg {
    position: absolute;
    white-space: nowrap;
    font-family: 'Courier New', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 16px;
    font-weight: 500;
    color: #12a9f2;
    text-shadow: 0 0 5px rgba(18, 169, 242, .6);
    opacity: .655;
    animation: slideCodeRightToLeft 22s linear infinite;
    letter-spacing: .5px;
    transform: translateX(100%)
}

/* ===== تنظیمات هر خط ===== */
.line-1 {
    top: 20%;
    animation-duration: 20s;
    animation-delay: 0s;
    font-size: 16px;
    opacity: .7
}

.line-2 {
    top: 50%;
    animation-duration: 18s;
    animation-delay: -.5s;
    font-size: 15px;
    opacity: .7
}

.line-3 {
    top: 8%;
    animation-duration: 24s;
    animation-delay: 1s;
    font-size: 17px;
    opacity: .7
}

.line-4 {
    top: 11%;
    animation-duration: 19s;
    animation-delay: -1.5s;
    font-size: 14px;
    opacity: .7
}

.line-5 {
    top: 14%;
    animation-duration: 21s;
    animation-delay: -2s;
    font-size: 16px;
    opacity: .7
}

.line-6 {
    top: 17%;
    animation-duration: 23s;
    animation-delay: -2.5s;
    font-size: 15px;
    opacity: .7
}

.line-7 {
    top: 20%;
    animation-duration: 17s;
    animation-delay: -3s;
    font-size: 18px;
    font-weight: 700
}

.line-8 {
    top: 29%;
    animation-duration: 22s;
    animation-delay: -3.5s;
    font-size: 14px;
    opacity: .7
}

.line-9 {
    top: 45%;
    animation-duration: 20s;
    animation-delay: -4s;
    font-size: 16px;
    opacity: .7
}

.line-10 {
    top: 2%;
    animation-duration: 25s;
    animation-delay: 4.5s;
    font-size: 15px;
    opacity: .7
}

.line-11 {
    top: 32%;
    animation-duration: 19s;
    animation-delay: 5s;
    font-size: 17px;
    opacity: .7
}

.line-12 {
    top: 35%;
    animation-duration: 21s;
    animation-delay: 5.5s;
    font-size: 14px;
    opacity: .7
}

.line-13 {
    top: 38%;
    animation-duration: 24s;
    animation-delay: -6s;
    font-size: 16px
}

.line-14 {
    top: 41%;
    animation-duration: 18s;
    animation-delay: -6.5s;
    font-size: 15px
}

.line-15 {
    top: 44%;
    animation-duration: 22s;
    animation-delay: 7s;
    font-size: 17px
}

.line-16 {
    top: 47%;
    animation-duration: 20s;
    animation-delay: -7.5s;
    font-size: 14px
}

.line-17 {
    top: 50%;
    animation-duration: 23s;
    animation-delay: -8s;
    font-size: 16px;
    opacity: .7
}

.line-18 {
    top: 53%;
    animation-duration: 17s;
    animation-delay: -8.5s;
    font-size: 15px
}

.line-19 {
    top: 56%;
    animation-duration: 25s;
    animation-delay: 9s;
    font-size: 18px;
    font-weight: 700
}

.line-20 {
    top: 59%;
    animation-duration: 21s;
    animation-delay: 9.5s;
    font-size: 14px;
    opacity: .7
}

.line-21 {
    top: 62%;
    animation-duration: 19s;
    animation-delay: -10s;
    font-size: 16px;
    opacity: .7
}

.line-22 {
    top: 65%;
    animation-duration: 24s;
    animation-delay: -10.5s;
    font-size: 15px
}

.line-23 {
    top: 68%;
    animation-duration: 20s;
    animation-delay: -11s;
    font-size: 17px
}

.line-24 {
    top: 71%;
    animation-duration: 22s;
    animation-delay: 11.5s;
    font-size: 14px
}

.line-25 {
    top: 7%;
    animation-duration: 18s;
    animation-delay: -12s;
    font-size: 16px
}

.line-26 {
    top: 77%;
    animation-duration: 23s;
    animation-delay: 12.5s;
    font-size: 15px
}

.line-27 {
    top: 80%;
    animation-duration: 21s;
    animation-delay: -13s;
    font-size: 17px;
    opacity: .7
}

.line-28 {
    top: 90%;
    animation-duration: 19s;
    animation-delay: -13.5s;
    font-size: 14px
}

.line-29 {
    top: 8%;
    animation-duration: 24s;
    animation-delay: 14s;
    font-size: 16px
}

.line-30 {
    top: 8%;
    animation-duration: 20s;
    animation-delay: 14.5s;
    font-size: 15px;
    opacity: .7
}

.line-31 {
    top: 91%;
    animation-duration: 22s;
    animation-delay: -15s;
    font-size: 17px;
    opacity: .7
}

.line-32 {
    top: 95%;
    animation-duration: 18s;
    animation-delay: 15.5s;
    font-size: 14px
}

.line-33 {
    top: 9%;
    animation-duration: 25s;
    animation-delay: 16s;
    font-size: 16px
}

.line-34 {
    top: 4%;
    animation-duration: 28s;
    animation-delay: 1.2s;
    font-size: 13px;
    opacity: .7
}

.line-35 {
    top: 10%;
    animation-duration: 30s;
    animation-delay: 3.8s;
    font-size: 12px;
    opacity: .6
}

.line-36 {
    top: 18%;
    animation-duration: 26s;
    animation-delay: 5.5s;
    font-size: 13px;
    opacity: .7
}

.line-37 {
    top: 28%;
    animation-duration: 32s;
    animation-delay: 7.2s;
    font-size: 12px;
    opacity: .6
}

.line-38 {
    top: 36%;
    animation-duration: 29s;
    animation-delay: 9s;
    font-size: 13px;
    opacity: .7
}

.line-39 {
    top: 3%;
    animation-duration: 26s;
    animation-delay: 1.4s;
    font-size: 15px
}

.line-40 {
    top: 7%;
    animation-duration: 22s;
    animation-delay: 2.8s;
    font-size: 14px
}

.line-41 {
    top: 12%;
    animation-duration: 28s;
    animation-delay: 4.2s;
    font-size: 16px
}

.line-42 {
    top: 16%;
    animation-duration: 24s;
    animation-delay: 5.6s;
    font-size: 13px;
    opacity: .7
}

.line-43 {
    top: 21%;
    animation-duration: 20s;
    animation-delay: -7s;
    font-size: 15px
}

.line-44 {
    top: 25%;
    animation-duration: 27s;
    animation-delay: -8.5s;
    font-size: 14px
}

.line-45 {
    top: 30%;
    animation-duration: 23s;
    animation-delay: -10s;
    font-size: 16px;
    font-weight: 700
}

.line-46 {
    top: 34%;
    animation-duration: 29s;
    animation-delay: 11.5s;
    font-size: 13px;
    opacity: .7
}

.line-47 {
    top: 39%;
    animation-duration: 21s;
    animation-delay: 13s;
    font-size: 15px
}

.line-48 {
    top: 43%;
    animation-duration: 25s;
    animation-delay: 14.5s;
    font-size: 14px
}

.line-49 {
    top: 48%;
    animation-duration: 30s;
    animation-delay: -16s;
    font-size: 16px
}

.line-50 {
    top: 57%;
    animation-duration: 26s;
    animation-delay: -19s;
    font-size: 15px;
    opacity: .7
}

.line-51 {
    top: 61%;
    animation-duration: 24s;
    animation-delay: 20.5s;
    font-size: 14px
}

.line-52 {
    top: 66%;
    animation-duration: 28s;
    animation-delay: 22s;
    font-size: 16px;
    opacity: .7
}

.line-53 {
    top: 70%;
    animation-duration: 21s;
    animation-delay: -23.5s;
    font-size: 13px
}

.line-54 {
    top: 75%;
    animation-duration: 27s;
    animation-delay: -25s;
    font-size: 15px;
    font-weight: 700
}

.line-55 {
    top: 79%;
    animation-duration: 23s;
    animation-delay: -26.5s;
    font-size: 14px
}

.line-56 {
    top: 84%;
    animation-duration: 29s;
    animation-delay: 28s;
    font-size: 16px
}

.line-57 {
    top: 88%;
    animation-duration: 20s;
    animation-delay: 29.5s;
    font-size: 13px
}

.line-58 {
    top: 97%;
    animation-duration: 25s;
    animation-delay: 31s;
    font-size: 15px
}

.line-59 {
    top: 97%;
    animation-duration: 22s;
    animation-delay: -32.5s;
    font-size: 14px
}

/* ===== رنگ‌های سینتکس کد ===== */
.code-line-bg .keyword {
    color: #ff7b72;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(255, 123, 114, .5)
}

.code-line-bg .string {
    color: #a5d6ff;
    font-weight: 500;
    text-shadow: 0 0 2px rgba(165, 214, 255, .5)
}

.code-line-bg .function {
    color: #d2a8ff;
    font-weight: 700;
    text-shadow: 0 0 3px rgba(210, 168, 255, .5)
}

.code-line-bg .comment {
    color: #6a737d;
    font-style: italic;
    font-weight: 500
}

.code-line-bg .variable {
    color: #79c0ff;
    font-weight: 600;
    text-shadow: 0 0 2px rgba(121, 192, 255, .5)
}

.code-line-bg .number {
    color: #ffa657;
    font-weight: 700
}

/* ===== حالت لایت مود ===== */
body:not(.dark-mode) .hero-code-bg {
    opacity: 1.7
}

body:not(.dark-mode) .code-line-bg {
    color: #1e3a5f;
    text-shadow: 0 0 3px rgba(30, 58, 95, .9)
}

body:not(.dark-mode) .code-line-bg .keyword {
    color: #d73a49;
    text-shadow: none
}

body:not(.dark-mode) .code-line-bg .string {
    color: #032f62
}

body:not(.dark-mode) .code-line-bg .function {
    color: #6f42c1
}

body:not(.dark-mode) .code-line-bg .comment {
    color: #6a737d
}

body:not(.dark-mode) .code-line-bg .variable {
    color: #005cc5
}

/* ===== ریسپانسیو ===== */
@media(max-width:992px) {
    .code-line-bg {
        font-size: 13px !important
    }

    .hero-code-bg {
        opacity: .5
    }
}

@media(max-width:768px) {
    .code-line-bg {
        font-size: 11px !important
    }

    .hero-code-bg {
        opacity: .45
    }
}

@media(max-width:576px) {
    .code-line-bg {
        font-size: 9px !important
    }

    .hero-code-bg {
        opacity: .4
    }
}