:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --primary-light: #eef2ff;
    --secondary: #7209b7;
    --success: #06d6a0;
    --warning: #ffd166;
    --danger: #ef476f;
    --dark: #0b132b;
    --background: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
        margin: 0;
    padding: 0;
}

.main-content {
    flex: 1;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}


.navbar {
    background: var(--card);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow);
    width: 100%;
}


.nav-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 24px;
    transform: rotate(45deg);
}

.logo-icon span {
    transform: rotate(-45deg);
}

.logo-text {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: var(--text);
    font-weight: 500;
    font-size: 15px;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary);
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s;
    list-style: none;
    padding: 8px 0;
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    font-size: 14px;
}

.platform-badge {
    width: 32px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.platform-badge.bb { background: var(--primary); }
.platform-badge.tbc { background: var(--secondary); }
.platform-badge.tbh { background: var(--danger); }

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nav-btn {
    padding: 8px 16px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.2s;
}

.nav-btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
}

.nav-btn-outline:hover {
    background: var(--background);
}

.nav-btn-primary {
    background: var(--primary);
    color: white;
}

.nav-btn-primary:hover {
    background: var(--primary-dark);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.2s;
}


.hero-section {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 60px 0 40px;
}

.hero-content {
    flex: 1;
}

.hero-title {
    font-size: 48px;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 20px;
    text-align: center; 
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-desc {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 500px;
    text-align: center; 
    margin-left: auto; 
    margin-right: auto; 
}

.hero-stats {
    display: flex;
    gap: 20px;
      margin-top: 100px;
    margin-bottom: 30px;
    width: 100%;
}

.hero-stat {
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, rgba(67, 97, 238, 0.1), rgba(67, 97, 238, 0.05));
    padding: 30px 40px;
    border-radius: 20px;
    border: 1px solid rgba(67, 97, 238, 0.2);
    width: 100%;
    max-width: 100%;
    align-items: center; 
    justify-content: center; 
    text-align: center; 
}

.hero-stat-value {
    display: block;
    font-size: 38px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
    text-align: center;
        transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.hero-stat-label {
    font-size: 18px;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center; 
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 8px;
    font-weight: 600;
    opacity: 0.9;
}

.hero-stat-label i {
    color: var(--primary);
}

@media (max-width: 480px) {
    .code-footer {
        gap: 12px;
    }
    
    .hero-stat-value {
        font-size: 24px;
    }
}

.hero-buttons {
    display: flex;
    gap: 16px;
}

.btn {
    padding: 12px 28px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.btn-outline {
    border: 1px solid var(--border);
    color: var(--text);
    background: var(--card);
}

.btn-outline:hover {
    background: var(--background);
    transform: translateY(-2px);
}

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}


.platform-quick {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 40px 0;
}

.platform-quick-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s;
}

.platform-quick-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.platform-quick-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.platform-quick-info {
    flex: 1;
}

.platform-quick-info h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.platform-quick-info p {
    font-size: 13px;
    color: var(--text-light);
}

.platform-quick-card i {
    color: var(--text-light);
    transition: transform 0.2s;
}

.platform-quick-card:hover i {
    transform: translateX(4px);
    color: var(--primary);
}


.section-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 100px;
    margin-bottom: 60px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    position: relative;
    width: 100%;
}

.section-header::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 3px;
    background: var(--primary) !important;
    border-radius: 3px;
}

.section-title {
    font-size: 28px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    position: relative;
    margin: 0;
    line-height: 1.3;
}

.section-title i {
    font-size: 28px;
    color: var(--primary) !important;
}

.section-subtitle {
    color: var(--text-light);
    font-size: 16px;
    margin: 5px 0 0;
    position: relative;
    padding-left: 0;
    text-align: center;
    max-width: 600px;
}

.section-subtitle::before {
    display: none;
}

.view-all {
    color: var(--primary) !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
    margin: 15px auto 5px;
    padding: 10px 28px;
    background: var(--background);
    border: 1.5px solid var(--border);
    border-radius: 50px;
}

.view-all:hover {
    gap: 12px;
    background: var(--primary);
    color: white !important;
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.view-all:hover i {
    color: white !important;
}

.view-all i {
    color: var(--primary) !important;
    font-size: 14px;
    transition: all 0.3s;
}

.section-divider {
    margin: 70px 0 50px;
    position: relative;
    text-align: center;
}

.section-divider-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--border), 
        var(--border), 
        var(--border), 
        transparent
    );
    z-index: 1;
}

.section-divider-content {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: var(--background);
    padding: 0 25px;
}

.section-divider-content span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: var(--card);
    padding: 12px 35px;
    border-radius: 60px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    font-weight: 700;
    color: var(--text);
    font-size: 16px;
    letter-spacing: 0.5px;
}

.section-divider-content i {
    color: var(--primary) !important;
    font-size: 18px;
}

@media (max-width: 992px) {
    .section-header {
        margin-top: 100px;
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .section-divider {
        margin: 60px 0 40px;
    }
}

@media (max-width: 768px) {
    .section-header {
        margin-top: 100px;
        margin-bottom: 60px;
        gap: 10px;
        padding-bottom: 18px;
    }
    
    .section-header::after {
        width: 80px;
    }
    
    .section-title {
        font-size: 24px;
        gap: 10px;
    }
    
    .section-title i {
        font-size: 24px;
    }
    
    .section-subtitle {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .view-all {
        margin-top: 12px;
        padding: 9px 24px;
    }
    
    .section-divider {
        margin: 50px 0 35px;
    }
    
    .section-divider-content span {
        padding: 10px 30px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .section-header {
        margin-top: 100px;
        margin-bottom: 60px;
        padding-bottom: 15px;
        gap: 8px;
    }
    
    .section-header::after {
        width: 60px;
        height: 2px;
    }
    
    .section-title {
        font-size: 22px;
        gap: 8px;
    }
    
    .section-title i {
        font-size: 22px;
    }
    
    .section-subtitle {
        font-size: 14px;
        padding: 0 10px;
    }
    
    .view-all {
        width: auto;
        min-width: 160px;
        padding: 8px 20px;
        font-size: 14px;
        margin-top: 10px;
    }
    
    .section-divider {
        margin: 40px 0 30px;
    }
    
    .section-divider-content {
        padding: 0 15px;
    }
    
    .section-divider-content span {
        padding: 8px 22px;
        font-size: 14px;
        gap: 8px;
    }
    
    .section-divider-content i {
        font-size: 16px;
    }
}

@media (max-width: 360px) {
    .section-header {
        margin-top: 100px;
        margin-bottom: 60px;
    }
    
    .section-title {
        font-size: 20px;
    }
    
    .section-title i {
        font-size: 20px;
    }
    
    .view-all {
        width: 100%;
        max-width: 180px;
    }
    
    .section-divider-content span {
        padding: 8px 18px;
        font-size: 13px;
    }
}


.code-grid,
.featured-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

.featured-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.code-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.code-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.code-card.featured {
    border: 2px solid var(--warning);
}

.code-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 4px;
}

.code-badge i {
    font-size: 10px;
}

.badge-featured {
    background: var(--warning);
    color: var(--dark);
}

.badge-pinned {
    background: var(--primary);
    color: white;
}

.badge-new {
    background: var(--danger);
    color: white;
}

.code-image {
    height: 160px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--background));
    color: var(--primary);
    font-size: 48px;
}

.code-info {
    padding: 16px;
}

.code-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.code-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.code-platform {
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    color: white;
}

.platform-bb { background: var(--primary); }
.platform-tbc { background: var(--secondary); }
.platform-tbh { background: var(--danger); }

.code-category {
    font-size: 12px;
    color: var(--text-light);
    background: var(--background);
    padding: 4px 10px;
    border-radius: 100px;
}


.code-footer {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.code-footer span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.code-footer i {
    font-size: 14px;
    width: 16px;
}

.code-installs i,
.code-views i {
    color: var(--primary);
}


.ad-section {
    margin: 40px 0;
    text-align: center;
}

.ad-label {
    font-size: 11px;
    color: var(--text-light);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.ad-placeholder {
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.ad-placeholder img {
    max-width: 100%;
    border-radius: 8px;
}


.app-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 24px;
    padding: 40px;
    margin: 4px 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    color: white;
}

@media (max-width: 768px) {
    .app-banner {
        flex-direction: column-reverse !important;
        text-align: center;
    }
    
    .app-banner-image {
        margin-bottom: 20px;
    }
    
    .app-banner-image i {
        font-size: 100px !important;
    }
}

.app-banner-content {
    flex: 1;
}

.app-banner-content h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 16px;
}

.app-banner-content p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 24px;
    max-width: 500px;
}

.btn-large {
    padding: 16px 36px;
    font-size: 18px;
}

.app-banner-image {
    flex: 1;
    text-align: center;
}

.app-banner-image img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
}


.footer {
    background: var(--card);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 60px;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 40px;
}

.footer-about {
    grid-column: span 1;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-desc {
    color: var(--text-light);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.footer-social a:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-3px);
}

.footer-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.footer-links {
    list-style: none;
}

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

.footer-links a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--primary);
}

.footer-app-text {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.footer-app-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    padding: 12px 20px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 12px;
    transition: all 0.2s;
}

.footer-app-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.footer-version {
    font-size: 12px;
    color: var(--text-light);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-copyright {
    font-size: 14px;
    color: var(--text-light);
}

.footer-stats {
    display: flex;
    gap: 24px;
}

.footer-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
}


.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all 0.2s;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

.scroll-top.visible {
    display: flex;
}


.lightbox {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}


@media (max-width: 1024px) {
    .footer-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .footer-about {
        grid-column: span 3;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--card);
        flex-direction: column;
        padding: 40px 24px;
        transition: left 0.3s;
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-links {
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
    }
    
    .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
    
    .hero-section {
        flex-direction: column;
        text-align: center;
    }
    
    .hero-desc {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .platform-quick {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .footer-about {
        grid-column: span 1;
    }
    
    .app-banner {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
    }
    
    .app-banner-content p {
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-stats {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 36px;
    }
    
    .code-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}


@media (max-width: 768px) {
    .dropdown-menu {
        display: none;
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        opacity: 1;
        visibility: visible;
        transform: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block;
    }
    
    .dropdown-toggle i {
        transition: transform 0.3s;
    }
    
    .dropdown.active .dropdown-toggle i {
        transform: rotate(180deg);
    }
}

@media (max-width: 768px) {
    .section-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 8px;
        margin-bottom: 20px;
    }
    
    .section-title {
        font-size: 22px;
        justify-content: center;
        width: 100%;
    }
    
    .section-subtitle {
        margin-left: 0;
        font-size: 14px;
        color: var(--text-light);
        width: 100%;
    }
    
    .view-all {
        margin-top: 4px;
        width: 100%;
        justify-content: center;
    }
}

.search-section {
    margin: 30px 0 40px;
    position: relative;
    z-index: 999;
}

.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.search-container {
    position: relative;
    width: 100%;
    z-index: 1001;
}


.search-box {
    display: flex;
    align-items: center;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 4px 4px 4px 20px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1002;
    height: 56px;
    width: 100%; 
    flex-wrap: nowrap; 
}

.search-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.search-icon {
    color: var(--text-light);
    font-size: 18px;
    margin-right: 10px;
    flex-shrink: 0;
}

.search-input {
    flex: 1 1 300px; 
    border: none;
    padding: 0;
    font-size: 15px;
    background: transparent;
    color: var(--text);
    outline: none;
    width: 100%;
    min-width: 300px; 
    height: 100%;
    font-weight: 400;
}

.search-input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
    font-size: 15px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.search-clear {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: none;
    background: var(--background);
    color: var(--text-light);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-right: 6px;
    flex-shrink: 0;
    order: 1;
    font-size: 16px;
}

.search-clear:hover {
    background: var(--border);
    color: var(--text);
}


.search-btn {
    background: var(--primary);
    border: none;
    border-radius: 50px;
    padding: 0 24px;
    height: 46px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
    white-space: nowrap;
    flex-shrink: 0; 
    order: 2;
    line-height: 1;
    margin-left: auto; 
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}

.search-btn i {
    font-size: 15px;
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    flex: 1;
    height: 100%;
    min-width: 0;
    background: transparent;
}


@media (max-width: 768px) {
    .search-box {
        height: 52px;
        padding-left: 18px;
    }
    
    .search-icon {
        font-size: 16px;
        margin-right: 8px;
    }
    
    .search-input {
        font-size: 14px;
        min-width: 80px;
    }
    
    .search-input::placeholder {
        font-size: 14px;
    }
    
    .search-btn {
        padding: 0 20px;
        height: 42px;
        font-size: 14px;
    }
    
    .search-btn span {
        display: none;
    }
    
    .search-btn i {
        margin: 0;
        font-size: 16px;
    }
    
    .search-clear {
        width: 34px;
        height: 34px;
        margin-right: 4px;
        font-size: 14px;
    }
}


@media (max-width: 600px) {
    .search-box {
        display: flex;
        flex-direction: column;
        gap: 10px;
        height: auto;
        background: transparent;
        border: none;
        padding: 0;
        box-shadow: none;
        width: 100%;
    }
    
    .search-icon {
        display: none;
    }
    
    .search-input-wrapper {
        display: flex;
        align-items: center;
        background: var(--card);
        border: 2px solid var(--border);
        border-radius: 50px;
        padding: 0 0 0 16px;
        width: 100% !important; 
        box-shadow: var(--shadow);
        height: 50px;
        flex: 1 1 auto;
    }
    
    .search-input {
        font-size: 15px;
        min-width: 0; 
        width: 100% !important;
        flex: 1; 
        padding: 0;
        border: none;
        background: transparent;
    }
    
    .search-input::placeholder {
        font-size: 14px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .search-clear {
        width: 36px;
        height: 36px;
        background: var(--background);
        margin-right: 4px;
        flex-shrink: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
    }
    
    .search-clear:hover {
        background: var(--border);
    }
    
    .search-btn {
        width: 100%;
        justify-content: center;
        height: 48px;
        border-radius: 50px;
        font-size: 16px;
        margin-left: 0;
        background: var(--primary);
        padding: 0 20px;
        display: flex;
        align-items: center;
    }
    
    .search-btn span {
        display: inline;
        margin-left: 6px;
    }
    
    .search-btn i {
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .search-input-wrapper {
        height: 48px !important;
    }
    
    .search-input {
        font-size: 14px;
    }
    
    .search-input::placeholder {
        font-size: 13px;
    }
    
    .search-clear {
        width: 32px;
        height: 32px;
    }
    
    .search-btn {
        height: 46px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .search-input {
        font-size: 13px;
    }
    
    .search-input::placeholder {
        font-size: 12px;
    }
}

.search-input:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: transparent !important;
}

input:focus,
textarea:focus,
button:focus,
select:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
    -webkit-focus-ring-color: transparent !important;
}

.search-input-wrapper:focus-within {
    outline: none !important;
    box-shadow: none !important;
    border-color: var(--border) !important;
}

*:focus {
    outline: none !important;
    -webkit-tap-highlight-color: transparent !important;
}

.search-box:focus-within {
    outline: none !important;
    box-shadow: none !important;
}

.search-form {
    width: 100%;
}

.search-section {
    margin: 20px 0 30px;
}


.pagination {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 40px 0;
    align-items: center;
}

.pagination .btn-outline {
    padding: 10px 20px;
    border: 1px solid var(--border);
    background: var(--card);
    color: var(--text);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: all 0.2s;
}

.pagination .btn-outline:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}


.no-results {
    text-align: center;
    padding: 60px 20px;
}

.no-results i {
    font-size: 64px;
    color: var(--border);
    margin-bottom: 20px;
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--text);
}

.no-results p {
    color: var(--text-light);
    margin-bottom: 20px;
}

.no-results .btn-primary {
    display: inline-block;
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.2s;
}

.no-results .btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
}


@media (max-width: 768px) {
    .pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .no-results {
        padding: 40px 15px;
    }
    
    .no-results h3 {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .no-results i {
        font-size: 48px;
    }
    
    .no-results .btn-primary {
        width: 100%;
    }
}

.search-header {
    text-align: center;
    margin: 30px 0 20px;
}

.search-header h1 {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.3;
}

.search-header .search-stats {
    font-size: 16px;
    color: var(--text-light);
    margin-top: 8px;
}


@media (max-width: 768px) {
    .search-header {
        margin: 20px 0 15px;
    }
    
    .search-header h1 {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .search-header h1 {
        font-size: 24px;
    }
    
    .search-header .search-stats {
        font-size: 14px;
    }
}

.search-box.error {
    border-color: var(--danger);
    animation: shake 0.3s ease-in-out;
}

.search-box.error .search-input {
    color: var(--danger);
}

.search-box.error .search-input::placeholder {
    color: var(--danger);
    opacity: 0.7;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-5px); }
    40% { transform: translateX(5px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}


.category-select {
    width: 100%;
    height: 50px;
    border: 2px solid var(--border);
    border-radius: 50px;
    padding: 0 20px;
    background: var(--card);
    color: var(--text);
    font-size: 15px;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.category-select:hover {
    border-color: var(--primary-light);
}


@media (max-width: 768px) {
    .search-form > div {
        flex-direction: column;
    }
    
    .search-form > div > div {
        width: 100%;
    }
    
    .category-select {
        height: 48px;
    }
}


.breadcrumb-wrapper {
    margin: 20px 0 10px;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 5px;
    scrollbar-width: thin;
}

.breadcrumb-wrapper::-webkit-scrollbar {
    height: 3px;
}

.breadcrumb-wrapper::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.breadcrumb {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    flex-wrap: nowrap;
}

@media (min-width: 1024px) {
    .breadcrumb {
        margin-top: 20px; 
    }
}

.breadcrumb-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    background: var(--background);
    border-radius: 50px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    border: 1px solid var(--border);
}

.breadcrumb-item:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
    transform: translateY(-1px);
}

.breadcrumb-item i {
    font-size: 14px;
}

.breadcrumb-platform {
    padding: 2px 8px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 12px;
}

.breadcrumb-separator {
    color: var(--text-light);
    font-size: 12px;
    opacity: 0.5;
}

.breadcrumb-current {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: var(--primary);
    border-radius: 50px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    border: none;
}

.breadcrumb-current i {
    font-size: 14px;
}


.btn-round {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 60px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    outline: none;
    line-height: 1;
}

.btn-primary-round {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.btn-primary-round:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.btn-outline-round {
    background: transparent;
    color: var(--text);
    border: 2px solid var(--border);
}

.btn-outline-round:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
    transform: translateY(-2px);
}

.btn-large-round {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-round i {
    font-size: 16px;
}


.code-detail-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin: 30px 0;
}


.code-detail-header {
    background: var(--card);
    border-radius: 24px;
    padding: 30px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.code-header-content {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.code-detail-image {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--primary-light);
    flex-shrink: 0;
    cursor: pointer;
    box-shadow: var(--shadow);
}

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

.code-detail-info {
    flex: 1;
    min-width: 250px;
}

.code-detail-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.code-category-badge {
    background: var(--background);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-light);
    font-weight: 500;
}

.featured-badge {
    background: var(--warning);
    color: var(--dark);
    padding: 4px 12px !important; 
    border-radius: 100px;
    font-size: 12px !important; 
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.featured-badge i {
    font-size: 10px !important; 
}

.code-detail-title {
    font-size: 30px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 15px;
    line-height: 1.3;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}


.code-detail-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.code-detail-stats span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-light);
    cursor: pointer;
    font-size: 15px;
}

.code-detail-stats span i {
    font-size: 16px;
    color: var(--primary);
}

.code-detail-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}


.code-tabs-container {
    background: var(--card);
    border-radius: 24px;
    border: 1px solid var(--border);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border);
    background: var(--background);
    overflow-x: auto;
    scrollbar-width: thin;
    padding: 0 4px;
}

.tabs-header::-webkit-scrollbar {
    height: 3px;
}

.tabs-header::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 18px;
    background: none;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: var(--text-light);
    transition: all 0.3s ease;
    white-space: nowrap;
    position: relative;
    font-size: 15px;
}

.tab-btn:hover {
    color: var(--primary);
    background: rgba(67, 97, 238, 0.05);
}

.tab-btn.active {
    color: var(--primary);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary);
    border-radius: 3px 3px 0 0;
}

.tab-content-container {
    padding: 30px;
}

.tab-content {
    line-height: 1.8;
}

.description-text,
.tutorial-text,
.faqs-text {
    color: var(--text);
    font-size: 16px;
}

.no-content {
    color: var(--text-light);
    text-align: center;
    padding: 40px;
    font-size: 16px;
}


.comment-form {
    margin-bottom: 30px;
    background: var(--background);
    padding: 25px;
    border-radius: 20px;
}

.comment-form h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
}

.comment-form-fields {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 60px;
    background: var(--card);
    color: var(--text);
    outline: none;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 15px;
}

.comment-form textarea {
    border-radius: 30px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.comment-form button {
    align-self: flex-start;
}

.comments-list {
    margin-top: 20px;
}

.comment-item {
    padding: 20px;
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.comment-item:hover {
    background: var(--background);
}

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

.comment-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 10px;
}

.comment-author {
    font-weight: 600;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 6px;
}

.comment-author i {
    color: var(--primary);
    font-size: 18px;
}

.comment-date {
    font-size: 13px;
    color: var(--text-light);
    background: var(--background);
    padding: 4px 12px;
    border-radius: 30px;
}

.comment-text {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 15px;
}


.sidebar-card {
    background: var(--card);
    border-radius: 24px;
    padding: 25px;
    border: 1px solid var(--border);
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.sidebar-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-card h3 i {
    color: var(--primary);
    font-size: 20px;
}

.info-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

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

.info-label {
    color: var(--text-light);
    font-size: 15px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.info-value {
    font-weight: 600;
    font-size: 15px;
}

.developer-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
}

.developer-value {
    width: 100%;
    padding: 12px;
    background: var(--background);
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.6;
}

.developer-value a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.developer-value a:hover {
    text-decoration: underline;
}


.similar-codes-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.similar-code-item {
    display: flex;
    gap: 15px;
    padding: 12px;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.2s;
    background: var(--card);
    border: 1px solid var(--border);
}

.similar-code-item:hover {
    background: var(--background);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--primary-light);
}

.similar-code-image {
    width: 60px;
    height: 60px;
    border-radius: 14px;
    overflow: hidden;
    background: var(--primary-light);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.similar-code-image i {
    font-size: 24px;
    color: var(--primary);
}

.similar-code-info {
    flex: 1;
    min-width: 0;
}

.similar-code-info h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
}

.similar-code-meta {
    display: flex;
    gap: 15px;
    font-size: 12px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.similar-code-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.similar-code-meta i {
    color: var(--primary);
    font-size: 12px;
}



@media (max-width: 1024px) {
    .code-detail-layout {
        gap: 20px;
    }
}

@media (max-width: 900px) {
    .code-detail-layout {
        grid-template-columns: 1fr;
    }
    
    
    .code-detail-sidebar {
        order: 2;
        margin-top: 20px;
    }
    
    .code-detail-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .breadcrumb-item {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .breadcrumb-current {
        padding: 6px 14px;
        font-size: 13px;
    }
    
    .code-detail-header {
        padding: 20px;
    }
    
    .code-detail-image {
        width: 100px;
        height: 100px;
    }
    
    .code-detail-title {
        font-size: 28px;
    }
    
    .code-detail-stats {
        gap: 15px;
    }
    
    .code-detail-stats span {
        font-size: 14px;
    }
    
    .tabs-header {
        flex-wrap: nowrap;
    }
    
    .tab-btn {
        min-width: 100px;
        padding: 15px 12px;
        font-size: 14px;
    }
    
    .tab-content-container {
        padding: 20px;
    }
    
    .comment-form button {
        width: 100%;
    }
    
    .btn-round {
        padding: 10px 20px;
        font-size: 14px;
    }
    
    .btn-large-round {
        padding: 12px 28px;
    }
    
    
    .code-detail-sidebar {
        width: 100%;
    }
}

@media (max-width: 600px) {
    .code-detail-actions {
        flex-direction: column;
    }
    
    .btn-round {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .breadcrumb-wrapper {
        margin: 15px 0 5px;
    }
    
    .breadcrumb-item {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .breadcrumb-current {
        padding: 5px 12px;
        font-size: 12px;
    }
    
    .code-detail-header {
        padding: 15px;
    }
    
    .code-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .code-detail-image {
        width: 120px;
        height: 120px;
    }
    
    .code-detail-meta {
        justify-content: center;
    }
    
    .code-detail-stats {
        justify-content: center;
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }
    
    .code-detail-actions {
        justify-content: center;
    }
    
    .code-detail-title {
        font-size: 24px;
    }
    
    .tab-btn {
        min-width: 80px;
        padding: 12px 8px;
        font-size: 13px;
    }
    
    .tab-content-container {
        padding: 15px;
    }
    
    .sidebar-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .similar-code-item {
        padding: 10px;
    }
    
    .similar-code-image {
        width: 50px;
        height: 50px;
    }
    
    .comment-form {
        padding: 20px;
    }
    
    .comment-form input,
    .comment-form textarea {
        padding: 12px 16px;
    }
    
    .code-detail-sidebar .sidebar-card:last-child {
        margin-bottom: 0;
    }
}


.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, var(--background) 0%, var(--primary-light) 100%);
}

.auth-card {
    max-width: 500px;
    width: 100%;
    background: var(--card);
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}

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

.auth-header .logo-icon {
    width: 60px;
    height: 60px;
    font-size: 32px;
    margin: 0 auto 20px;
}

.auth-header h2 {
    font-size: 28px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px;
}

.auth-header p {
    color: var(--text-light);
    font-size: 15px;
}


.auth-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: var(--background);
    padding: 6px;
    border-radius: 60px;
}

.auth-tab {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: var(--text-light);
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}


.auth-message {
    padding: 15px 20px;
    border-radius: 16px;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    animation: slideIn 0.3s ease;
}

.auth-message.error {
    background: rgba(239, 71, 111, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 71, 111, 0.2);
}

.auth-message.success {
    background: rgba(6, 214, 160, 0.1);
    color: var(--success);
    border: 1px solid rgba(6, 214, 160, 0.2);
}

.auth-message i {
    font-size: 18px;
}


.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    margin-bottom: 15px;
}

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

.form-group label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.form-group label i {
    color: var(--primary);
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border);
    border-radius: 60px;
    background: var(--background);
    color: var(--text);
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(67, 97, 238, 0.1);
}

.form-group input::placeholder {
    color: var(--text-light);
    opacity: 0.5;
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: var(--primary);
}

.password-hint {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 6px;
    margin-left: 10px;
}


.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 14px;
    color: var(--text-light);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.forgot-link:hover {
    text-decoration: underline;
}


.terms-group {
    margin-bottom: 25px;
    padding: 15px;
    background: var(--background);
    border-radius: 16px;
}

.terms-group .checkbox-label a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.terms-group .checkbox-label a:hover {
    text-decoration: underline;
}


.auth-submit {
    position: relative;
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 60px;
    background: var(--primary);
    color: white;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(67, 97, 238, 0.3);
    min-height: 48px;
}

.auth-submit:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.4);
}

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


.auth-divider {
    position: relative;
    text-align: center;
    margin: 30px 0 20px;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    position: relative;
    background: var(--card);
    padding: 0 15px;
    color: var(--text-light);
    font-size: 14px;
}


.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.social-btn {
    width: 100%;
    padding: 14px 20px;
    border: 2px solid var(--border);
    border-radius: 60px;
    background: var(--card);
    color: var(--text);
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-btn:hover {
    background: var(--background);
    transform: translateY(-2px);
}

.social-btn.google:hover {
    border-color: #4361ee;
    color: #4361ee;
    background: rgba(66, 133, 244, 0.05);
}

.social-btn.google i {
    color: #4361ee;
    font-size: 20px;
}

.social-btn.microsoft {
    border-color: var(--border);
}

.social-btn.microsoft:hover {
    border-color: #4361ee;
    color: #4361ee;
    background: rgba(0, 164, 239, 0.05);
}

.social-btn.microsoft i {
    color: #4361ee;
    font-size: 20px;
}

.social-btn.github:hover {
    border-color: #333;
    color: #333;
    background: rgba(51, 51, 51, 0.05);
}

.social-btn.github i {
    color: #333;
    font-size: 20px;
}

@media (max-width: 480px) {
    .social-btn {
        padding: 12px 16px;
        font-size: 14px;
    }
    
    .social-btn i {
        font-size: 18px !important;
    }
    
    .social-login {
        gap: 10px;
    }
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}


@media (max-width: 768px) {
    .auth-card {
        padding: 30px 20px;
    }
    
    .auth-header h2 {
        font-size: 24px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .auth-tab {
        font-size: 15px;
        padding: 10px;
    }
    
    .social-login {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .auth-container {
        padding: 20px 15px;
    }
    
    .auth-card {
        padding: 25px 15px;
    }
    
    .auth-submit {
        padding: 14px;
    }
}

.user-menu {
    position: relative;
}

.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 8px 45px;
    cursor: pointer;
    transition: all 0.2s;
    max-width: 200px;
    width: auto;
}

.user-menu-toggle:hover {
    background: var(--card);
    border-color: var(--primary);
}

.user-menu-toggle i:first-child {
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100px;
}

.user-menu-toggle i:last-child {
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.user-menu:hover .user-menu-toggle i:last-child {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 200px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s;
    z-index: 1000;
    list-style: none;
    padding: 8px 0;
}


.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown li {
    margin: 0;
    padding: 0;
}

.user-dropdown li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.user-dropdown li a:hover {
    background: var(--background);
    color: var(--primary);
}

.user-dropdown li a i {
    width: 18px;
    font-size: 16px;
    color: var(--text-light);
    transition: color 0.2s;
}

.user-dropdown li a:hover i {
    color: var(--primary);
}

.user-dropdown hr {
    margin: 8px 0;
    border: none;
    border-top: 1px solid var(--border);
}


@media (max-width: 768px) {
    .user-menu {
        width: 100%;
    }
    
    .user-menu-toggle {
        max-width: none;
        width: 100%;
        justify-content: space-between;
        padding: 10px 16px;
    }
    
    .user-name {
        max-width: none;
        flex: 1;
        text-align: left;
    }
    
    .user-dropdown {
        position: static;
        width: 100%;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: 1px solid var(--border);
        margin-top: 10px;
        display: none;
    }
    
    .user-menu.active .user-dropdown {
        display: block;
    }
    
    .user-dropdown li a {
        padding: 14px 20px;
    }
}


@media (max-width: 480px) {
    .user-menu-toggle {
        padding: 8px 14px;
    }
    
    .user-menu-toggle i:first-child {
        font-size: 20px;
    }
    
    .user-name {
        font-size: 14px;
    }
    
    .user-dropdown li a {
        padding: 12px 16px;
        font-size: 14px;
    }
}

.error-container {
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.error-card {
    max-width: 550px;
    width: 100%;
    background: var(--card);
    border-radius: 30px;
    padding: 50px 40px;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    animation: errorFadeInUp 0.5s ease;
}

.error-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: errorBounce 2s infinite;
    color: var(--primary);
}

.error-code {
    font-size: 120px;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.error-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 15px;
}

.error-message {
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.error-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 5px 15px rgba(67, 97, 238, 0.2);
}

.error-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(67, 97, 238, 0.3);
}

.error-btn-outline {
    background: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
    box-shadow: none;
}

.error-btn-outline:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.error-back-btn {
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50px;
    padding: 12px 30px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s;
}

.error-back-btn:hover {
    background: var(--border);
    color: var(--primary);
}

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

@keyframes errorBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}


@media (max-width: 768px) {
    .error-card {
        padding: 40px 25px;
    }
    
    .error-code {
        font-size: 100px;
    }
    
    .error-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .error-card {
        padding: 30px 20px;
    }
    
    .error-code {
        font-size: 80px;
    }
    
    .error-title {
        font-size: 24px;
    }
    
    .error-icon {
        font-size: 60px;
    }
    
    .error-actions {
        flex-direction: column;
    }
    
    .error-btn {
        width: 100%;
        justify-content: center;
    }
    
    .error-back-btn {
        width: 100%;
        justify-content: center;
    }
}

.faq-item {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 18px 20px;
    background: var(--background);
    cursor: pointer;
    transition: all 0.2s;
}

.faq-question:hover {
    background: var(--primary-light);
}

.faq-question i {
    color: var(--primary);
    font-size: 20px;
}

.faq-question h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.faq-answer {
    padding: 20px;
    border-top: 1px solid var(--border);
    background: var(--card);
}

.faq-answer p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
    font-size: 15px;
}

.comment-login-prompt {
    text-align: center;
    padding: 30px;
    background: var(--background);
    border-radius: 16px;
    margin-bottom: 30px;
}

.comment-login-prompt a {
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

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

.description-text p {
    margin-bottom: 15px;
}

.description-text strong {
    color: var(--text);
    font-weight: 600;
}

.description-text ul, 
.description-text ol {
    margin: 15px 0;
    padding-left: 25px;
}

.description-text li {
    margin-bottom: 8px;
    color: var(--text-light);
}

.description-text h1, 
.description-text h2, 
.description-text h3, 
.description-text h4 {
    margin: 20px 0 10px;
    color: var(--text);
}

.tutorial-text {
    line-height: 1.8;
}

.tutorial-text p {
    margin-bottom: 15px;
}

html, body {

    width: 100%;
    max-width: 100%;
    position: relative;
}

* {
    max-width: 100%;
    box-sizing: border-box;
}

.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 16px;
    overflow-x: hidden;
}


.code-detail-layout {
    width: 100%;
    overflow-x: hidden;
}

.code-header-content {
    width: 100%;
    overflow-x: hidden;
}

.code-detail-info {
    width: 100%;
    overflow-x: hidden;
}

.code-detail-title {
    font-size: 28px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
}

.code-detail-meta {
    flex-wrap: wrap;
    width: 100%;
}

.code-detail-stats {
    flex-wrap: wrap;
    width: 100%;
}

.code-detail-actions {
    flex-wrap: wrap;
    width: 100%;
}


.code-detail-sidebar {
    width: 100%;
    overflow-x: hidden;
}

.sidebar-card {
    width: 100%;
    overflow-x: hidden;
}

.info-list {
    width: 100%;
}

.info-item {
    flex-wrap: wrap;
    word-break: break-word;
}

.info-value {
    max-width: 100%;
    word-break: break-word;
    text-align: right;
}

.developer-value {
    width: 100%;
    word-break: break-word;
}


.similar-codes-list {
    width: 100%;
}

.similar-code-item {
    width: 100%;
    overflow: hidden;
}

.similar-code-info {
    min-width: 0;
    flex: 1;
}

.similar-code-info h4 {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}


.comment-item {
    width: 100%;
    overflow-x: hidden;
}

.comment-header {
    flex-wrap: wrap;
    width: 100%;
}

.comment-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
}


@media (max-width: 768px) {
    .container {
        padding: 0 12px;
    }
    
    .code-detail-title {
        font-size: 24px;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .info-value {
        text-align: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 10px;
    }
    
    .code-detail-title {
        font-size: 20px;
    }
    
    .breadcrumb {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 5px;
    }
    
    .breadcrumb-item {
        white-space: nowrap;
    }
    
    .code-detail-image {
        width: 80px;
        height: 80px;
    }
}

.code-detail-main {
    width: 100%;
}

.code-detail-sidebar {
    width: 100%;
}


@media (min-width: 901px) {
    .code-detail-layout {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 30px;
        align-items: start;
    }
    
    .code-detail-main {
        grid-column: 1;
    }
    
    .code-detail-sidebar {
        grid-column: 2;
        margin-top: 0;
    }
}


@media (max-width: 900px) {
    .code-detail-layout {
        display: flex;
        flex-direction: column;
    }
    
    .code-detail-sidebar {
        order: 2;
        margin-top: 30px;
    }
}
.comment-actions {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.view-replies-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border-radius: 20px;
    transition: all 0.2s;
}

.view-replies-btn:hover {
    background: var(--primary-light);
}

.view-replies-btn i:last-child {
    transition: transform 0.3s;
    font-size: 12px;
}

.replies-container {
    margin-top: 15px;
    margin-left: 40px;
    border-left: 2px solid var(--border);
    padding-left: 15px;
}
#cookieConsent {
    animation: slideUp 0.4s ease;
}

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

#cookieConsent button:hover, #cookieConsent a:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

#cookieConsent button:active, #cookieConsent a:active {
    transform: translateY(0);
}

@media (max-width: 480px) {
    #cookieConsent {
        left: 15px;
        right: 15px;
        bottom: 15px;
        padding: 18px;
        max-width: 100%;
    }
    
    #cookieConsent div[style*="flex-wrap: wrap"] {
        flex-direction: column;
    }
    
    #cookieConsent button,
    #cookieConsent a {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (min-width: 1200px) {
    #cookieConsent {
        left: 30px;
        right: auto;
        bottom: 30px;
        max-width: 420px;
    }
}

.h-captcha {
    display: block !important;
    width: 100% !important;
    min-height: 78px !important;
    margin: 10px 0 !important;
    overflow: visible !important;
}

.h-captcha iframe {
    display: block !important;
    width: 100% !important;
    max-width: 302px !important;
    height: 76px !important;
    margin: 0 auto !important;
    border: none !important;
}

.auth-form.active .h-captcha {
    visibility: visible !important;
    opacity: 1 !important;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    position: relative; 
    z-index: 1001;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text);
    transition: all 0.3s ease;
    position: absolute;
    left: 8px;
    display: block;
}

.nav-toggle span:nth-child(1) {
    top: 12px;
}

.nav-toggle span:nth-child(2) {
    top: 19px;
}

.nav-toggle span:nth-child(3) {
    top: 26px;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg);
    top: 19px;
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg);
    top: 19px;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex !important; 
    }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

#captcha-loading {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 15px;
    background: var(--background);
    border-radius: 50px;
    margin: 10px 0;
    border: 1px solid var(--border);
}

#captcha-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

#captcha-loading span {
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.h-captcha {
    display: flex !important;
    justify-content: center !important;
    margin: 10px 0 !important;
}

.h-captcha iframe {
    margin: 0 auto !important;
}

@media (max-width: 480px) {
    .overview-tab h2 {
        font-size: 22px !important;
        padding: 0 5px;
    }
    
    .overview-tab .profile-bio {
        padding: 15px !important;
    }
    
    .overview-tab .profile-bio p {
        font-size: 14px !important;
        word-break: break-word;
    }
    
    .overview-tab div[style*="grid-template-columns: repeat(2, 1fr)"] {
        gap: 12px !important;
    }
    
    .overview-tab div[style*="background: var(--background); padding: 20px;"] {
        padding: 15px !important;
    }
    
    .overview-tab div[style*="background: var(--background); padding: 20px;"] p {
        font-size: 14px !important;
        word-break: break-word;
    }
}

@media (max-width: 360px) {
    .overview-tab h2 {
        font-size: 18px !important;
    }
    
    .overview-tab p {
        font-size: 13px !important;
    }
}
@media (max-width: 480px) {
    .profile-bio {
        padding: 15px !important;
    }
    
    .profile-bio p {
        font-size: 14px !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
    }
}
@media (max-width: 480px) {
    .overview-tab div[style*="background: var(--background); padding: 20px;"] {
        padding: 15px !important;
    }
    
    .overview-tab div[style*="background: var(--background); padding: 20px;"] p {
        font-size: 14px !important;
        overflow-wrap: break-word !important;
        word-break: break-word !important;
        line-height: 1.4 !important;
    }
    
    .overview-tab div[style*="background: var(--background); padding: 20px;"] div[style*="display: flex;"] {
        gap: 8px !important;
    }
    
    .overview-tab div[style*="background: var(--background); padding: 20px;"] i {
        font-size: 18px !important;
    }
    
    .overview-tab div[style*="background: var(--background); padding: 20px;"] h4 {
        font-size: 13px !important;
    }
}

@media (max-width: 360px) {
    .overview-tab div[style*="background: var(--background); padding: 20px;"] {
        padding: 12px !important;
    }
    
    .overview-tab div[style*="background: var(--background); padding: 20px;"] p {
        font-size: 13px !important;
    }
}

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

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

.blog-header h1 {
    font-size: 42px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 15px;
}

.blog-header h1 i {
    color: var(--primary);
    margin-right: 10px;
}

.blog-header p {
    font-size: 18px;
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto;
}

.blog-filter-bar {
    background: var(--card);
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 40px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.blog-filter-form {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.filter-group {
    flex: 2;
    min-width: 250px;
}

.filter-group.small {
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.filter-group label i {
    color: var(--primary);
    margin-right: 5px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 12px 20px;
    border: 2px solid var(--border);
    border-radius: 50px;
    font-size: 15px;
    background: var(--card);
    color: var(--text);
    outline: none;
    transition: all 0.2s;
}

.filter-group input:focus,
.filter-group select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.filter-group input:hover,
.filter-group select:hover {
    border-color: var(--primary-light);
}

.filter-submit {
    flex: 0 0 auto;
}

.filter-submit button {
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.filter-submit button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}

.filter-clear {
    flex: 0 0 auto;
}

.filter-clear a {
    padding: 12px 30px;
    background: var(--background);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 50px;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.filter-clear a:hover {
    background: var(--border);
    color: var(--primary);
}


.blog-results-count {
    margin-bottom: 20px;
    color: var(--text-light);
    font-size: 15px;
}


.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.blog-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.3s;
    box-shadow: var(--shadow);
    position: relative;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}


.blog-badge {
    position: absolute;
    padding: 5px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.blog-badge.pinned {
    top: 15px;
    left: 15px;
    background: var(--warning);
    color: var(--dark);
}

.blog-badge.featured {
    top: 15px;
    right: 15px;
    background: var(--primary);
    color: white;
}

.blog-image {
    display: block;
    height: 200px;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    position: relative;
}

.blog-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

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

.blog-image.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.blog-image.no-image i {
    font-size: 60px;
    color: white;
    opacity: 0.3;
}

.blog-image.no-image::after {
    content: 'No Blog Image';
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
}

.blog-image-error {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    z-index: 5;
}


.blog-content {
    padding: 25px;
}

.blog-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 13px;
    color: var(--text-light);
    flex-wrap: wrap;
}

.blog-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.blog-meta i {
    color: var(--primary);
}

.blog-platform-badge {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.platform-tag {
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
}

.platform-tag.bb {
    background: rgba(67, 97, 238, 0.1);
    color: #4361ee;
}

.platform-tag.tbc {
    background: rgba(114, 9, 183, 0.1);
    color: #7209b7;
}

.platform-tag.tbh {
    background: rgba(239, 71, 111, 0.1);
    color: #ef476f;
}

.platform-tag.all {
    background: var(--background);
    color: var(--text-light);
}

.category-tag {
    background: var(--background);
    color: var(--text-light);
    padding: 4px 12px;
    border-radius: 30px;
    font-size: 11px;
    font-weight: 700;
}

.blog-title {
    margin-bottom: 10px;
}

.blog-title a {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    line-height: 1.4;
    display: block;
    transition: color 0.2s;
}

.blog-title a:hover {
    color: var(--primary);
}

.blog-excerpt {
    color: var(--text-light);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 14px;
}

.blog-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 20px;
}

.blog-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.author-avatar i {
    color: var(--primary);
    font-size: 16px;
}

.author-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
}

.read-more {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.read-more:hover {
    gap: 8px;
}


.blog-pagination {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.pagination-prev,
.pagination-next {
    padding: 10px 20px;
    border: 1px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s;
}

.pagination-prev:hover,
.pagination-next:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.pagination-numbers {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.pagination-number {
    padding: 10px 18px;
    border: 1px solid var(--border);
    border-radius: 50px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
}

.pagination-number:hover {
    background: var(--primary-light);
    color: var(--primary);
    border-color: var(--primary);
}

.pagination-number.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
}


.blog-no-results {
    text-align: center;
    padding: 60px 20px;
    background: var(--card);
    border-radius: 30px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.blog-no-results i {
    font-size: 60px;
    color: var(--border);
    margin-bottom: 20px;
}

.blog-no-results h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text);
}

.blog-no-results p {
    color: var(--text-light);
    margin-bottom: 30px;
}

.reset-btn {
    padding: 12px 30px;
    background: var(--primary);
    color: white;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(67, 97, 238, 0.2);
}

.reset-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(67, 97, 238, 0.3);
}


@media (max-width: 992px) {
    .blog-header h1 {
        font-size: 38px;
    }
    
    .blog-header p {
        font-size: 16px;
    }
    
    .blog-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

@media (max-width: 768px) {
    .blog-container {
        padding: 30px 15px;
    }
    
    .blog-header h1 {
        font-size: 32px;
    }
    
    .blog-header p {
        font-size: 15px;
        padding: 0 15px;
    }
    
    .blog-filter-bar {
        padding: 20px;
    }
    
    .blog-filter-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-group,
    .filter-group.small,
    .filter-submit,
    .filter-clear {
        width: 100%;
        min-width: 100%;
    }
    
    .filter-submit button,
    .filter-clear a {
        width: 100%;
        justify-content: center;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-meta {
        gap: 12px;
    }
    
    .blog-title a {
        font-size: 18px;
    }
    
    .blog-footer {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
    
    .blog-author {
        width: 100%;
    }
    
    .read-more {
        width: 100%;
        justify-content: center;
        padding: 10px;
        background: var(--primary-light);
        border-radius: 50px;
    }
    
    .blog-pagination {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .pagination-prev,
    .pagination-next {
        width: 100%;
        justify-content: center;
    }
    
    .pagination-numbers {
        justify-content: center;
        width: 100%;
    }
    
    .pagination-number {
        padding: 8px 14px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .blog-container {
        padding: 20px 12px;
    }
    
    .blog-header {
        margin-bottom: 30px;
    }
    
    .blog-header h1 {
        font-size: 28px;
    }
    
    .blog-header h1 i {
        font-size: 24px;
    }
    
    .blog-header p {
        font-size: 14px;
    }
    
    .blog-filter-bar {
        padding: 15px;
        margin-bottom: 25px;
    }
    
    .filter-group label {
        font-size: 13px;
    }
    
    .filter-group input,
    .filter-group select,
    .filter-submit button,
    .filter-clear a {
        padding: 10px 18px;
        font-size: 14px;
    }
    
    .blog-card {
        border-radius: 20px;
    }
    
    .blog-image {
        height: 160px;
    }
    
    .blog-image.no-image i {
        font-size: 40px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-meta {
        font-size: 12px;
        gap: 10px;
    }
    
    .blog-platform-badge {
        margin-bottom: 12px;
    }
    
    .platform-tag,
    .category-tag {
        padding: 3px 10px;
        font-size: 10px;
    }
    
    .blog-title a {
        font-size: 17px;
    }
    
    .blog-excerpt {
        font-size: 13px;
        margin-bottom: 15px;
    }
    
    .author-avatar {
        width: 30px;
        height: 30px;
    }
    
    .author-avatar i {
        font-size: 14px;
    }
    
    .author-name {
        font-size: 13px;
    }
    
    .read-more {
        font-size: 13px;
    }
    
    .blog-no-results {
        padding: 40px 15px;
    }
    
    .blog-no-results i {
        font-size: 48px;
    }
    
    .blog-no-results h3 {
        font-size: 20px;
    }
    
    .blog-no-results p {
        font-size: 14px;
    }
    
    .reset-btn {
        padding: 10px 25px;
        font-size: 14px;
    }
    
    .pagination-numbers {
        gap: 5px;
    }
    
    .pagination-number {
        padding: 6px 12px;
        font-size: 13px;
    }
}

@media (max-width: 360px) {
    .blog-header h1 {
        font-size: 24px;
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    .blog-image {
        height: 140px;
    }
    
    .blog-content {
        padding: 15px;
    }
    
    .blog-title a {
        font-size: 16px;
    }
    
    .pagination-number {
        padding: 5px 10px;
        font-size: 12px;
    }
}

img[onerror] {
    display: none;
}

img[onerror] + .blog-image-error {
    display: block;
}


.auth-submit .btn-loading {
    display: none !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: white !important;
}

.auth-submit .btn-loading i {
    color: white !important;
}

.auth-submit.loading .btn-normal {
    display: none !important;
}

.auth-submit.loading .btn-loading {
    display: flex !important;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

.dmca-badge-wrapper {
    text-align: center;
    margin: 15px 0 5px;
    padding: 10px 0;
}

.dmca-badge-wrapper img {
    max-width: 100%;
    height: auto;
    width: auto;
    max-height: 35px;
    transition: opacity 0.2s;
}

.dmca-badge-wrapper img:hover {
    opacity: 0.8;
}

@media (max-width: 480px) {
    .dmca-badge-wrapper {
        margin: 10px 0;
    }
    
    .dmca-badge-wrapper img {
        max-height: 30px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .dmca-badge-wrapper img {
        max-height: 32px;
    }
}

.btn-profile-save {
    position: relative !important;
    min-height: 48px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    padding: 14px 40px !important;
    background: var(--primary) !important;
    color: white !important;
    border: none !important;
    border-radius: 50px !important;
    font-weight: 600 !important;
    font-size: 16px !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

.btn-profile-save .spinner-text {
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    color: white !important;
}

.btn-profile-save .spinner-text i {
    color: white !important;
}

.btn-profile-save.loading-state .normal-text {
    display: none !important;
}

.btn-profile-save.loading-state .spinner-text {
    display: flex !important;
}

.btn-profile-save.loading-state {
    cursor: not-allowed !important;
    opacity: 0.8 !important;
}

.fa-spinner {
    animation: spin 1s linear infinite !important;
}

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


.comment-delete,
.reply-delete {
    background: #ef476f !important;
    color: white !important;
    border: none !important;
    border-radius: 50% !important;
    width: 32px !important;
    height: 32px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    padding: 0 !important;
    margin: 0 !important;
    line-height: 1 !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1) !important;
    opacity: 0.9 !important;
}

.comment-delete:hover,
.reply-delete:hover {
    background: #d64161 !important;
    transform: scale(1.1) !important;
    opacity: 1 !important;
}

.comment-delete i,
.reply-delete i {
    color: white !important;
    font-size: 14px !important;
    display: inline-block !important;
}

.comment-meta {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: fit-content !important;
}

button.comment-delete,
a.comment-delete,
button.reply-delete,
a.reply-delete {
    opacity: 1 !important;
    visibility: visible !important;
    display: inline-flex !important;
}

.review-success-badge {
    background: linear-gradient(135deg, #4285F4, #34A853);
    border-radius: 16px;
    margin: 20px 0;
    padding: 3px;
    box-shadow: 0 10px 25px rgba(66, 133, 244, 0.3);
    animation: slideInBadge 0.4s ease;
    max-width: 100%;
}

.badge-content {
    background: white;
    border-radius: 14px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
    position: relative;
}

.badge-stars {
    display: flex;
    gap: 4px;
    align-items: center;
    background: #f8fafc;
    padding: 8px 12px;
    border-radius: 50px;
}

.badge-stars i {
    color: #FBBC05;
    font-size: 16px;
    animation: starGlow 1.5s infinite;
}

.badge-stars i:nth-child(1) { animation-delay: 0s; }
.badge-stars i:nth-child(2) { animation-delay: 0.1s; }
.badge-stars i:nth-child(3) { animation-delay: 0.2s; }
.badge-stars i:nth-child(4) { animation-delay: 0.3s; }
.badge-stars i:nth-child(5) { animation-delay: 0.4s; }

@keyframes starGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.2); opacity: 0.8; }
}

.badge-text {
    font-size: 15px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
    white-space: nowrap;
}

.badge-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #4285F4;
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
}

.badge-link:hover {
    background: #3367D6;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(66, 133, 244, 0.3);
}

.badge-link i {
    font-size: 16px;
}

.badge-close {
    background: none;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    position: absolute;
    top: -8px;
    right: -8px;
    background: white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-close:hover {
    color: #ef476f;
    transform: scale(1.1);
}

@keyframes slideInBadge {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card {
    position: relative !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}


.security-details {
    text-align: left !important;
    margin-top: 15px !important;
    padding: 12px !important;
    background: var(--background) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    width: 100% !important;
}

.security-details i {
    margin-right: 6px !important;
    width: 18px !important;
    display: inline-block !important;
}


@media (max-width: 768px) {
    .badge-content {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .badge-stars {
        padding: 6px 10px;
    }
    
    .badge-stars i {
        font-size: 14px;
    }
    
    .badge-text {
        font-size: 14px;
    }
    
    .badge-link {
        padding: 6px 16px;
        font-size: 13px;
    }
    
    .modal-cancel-btn {
        padding: 8px 20px !important;
        font-size: 14px !important;
        min-width: 140px !important;
    }
}

@media (max-width: 600px) {
    .badge-content {
        flex-direction: column;
        text-align: center;
        padding: 16px;
    }
    
    .badge-stars {
        width: fit-content;
        margin: 0 auto;
    }
    
    .badge-text {
        white-space: normal;
        text-align: center;
        width: 100%;
    }
    
    .badge-link {
        width: 100%;
        justify-content: center;
    }
    
    .badge-close {
        top: -5px;
        right: -5px;
        width: 24px;
        height: 24px;
    }
}

@media (max-width: 480px) {
    .review-success-badge {
        margin: 15px 0;
    }
    
    .badge-content {
        padding: 14px;
    }
    
    .badge-stars i {
        font-size: 12px;
    }
    
    .badge-text {
        font-size: 13px;
    }
    
    .modal-close-btn {
        top: 8px !important;
        right: 8px !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }
    
    .modal-close-btn i {
        font-size: 14px !important;
    }
    
    .modal-cancel-btn {
        width: 100% !important;
        max-width: 200px !important;
    }
}

.modal-review-btn {
    background: #4285F4 !important;
    color: white !important;
    padding: 12px 25px !important;
    border-radius: 50px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    margin: 15px auto 5px !important;
    transition: all 0.3s ease !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    text-decoration: none !important;
    border: none !important;
    width: auto !important;
    min-width: 200px !important;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3) !important;
}

.modal-review-btn:hover {
    background: #3367D6 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(66, 133, 244, 0.4) !important;
}

.modal-review-btn i {
    font-size: 18px !important;
    color: white !important;
}


@media (max-width: 480px) {
    .modal-review-btn {
        padding: 10px 20px !important;
        font-size: 14px !important;
        min-width: 180px !important;
        width: 100% !important;
        max-width: 250px !important;
    }
}

.footer-col:last-child {
    text-align: center !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}

.footer-col:last-child .footer-title {
    text-align: center !important;
    width: 100% !important;
}

.footer-col:last-child .footer-app-text {
    text-align: center !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.footer-col:last-child .footer-app-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 200px !important;
    margin-left: auto !important;
    margin-right: auto !important;
}


@media (max-width: 768px) {
    .footer-col:last-child {
        text-align: left !important;
        align-items: flex-start !important;
    }
    
    .footer-col:last-child .footer-app-text,
    .footer-col:last-child .footer-title {
        text-align: left !important;
    }
    
    .footer-col:last-child .footer-app-btn {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--background);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease;
}

.preloader-logo .logo-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 60px;
    transform: rotate(45deg); 
    animation: pulseRotate 1.5s ease-in-out infinite;
    box-shadow: 0 20px 40px rgba(67, 97, 238, 0.3);
}

.preloader-logo .logo-icon span {
    transform: rotate(-45deg); 
    display: block;
}

@keyframes pulseRotate {
    0%, 100% {
        transform: rotate(45deg) scale(1);
        box-shadow: 0 20px 40px rgba(67, 97, 238, 0.3);
    }
    50% {
        transform: rotate(45deg) scale(1.15);
        box-shadow: 0 35px 70px rgba(67, 97, 238, 0.5);
    }
}

@media (max-width: 768px) {
    .preloader-logo .logo-icon {
        width: 80px;
        height: 80px;
        font-size: 48px;
        border-radius: 22px;
    }
}

@media (max-width: 480px) {
    .preloader-logo .logo-icon {
        width: 70px;
        height: 70px;
        font-size: 42px;
        border-radius: 20px;
    }
}
.code-image,
.code-detail-image,
.similar-code-image {
    position: relative;
    background: #e0e0e0 !important;
    min-height: 160px;
    overflow: hidden;
}

.code-detail-image {
    min-height: 120px;
}

.similar-code-image {
    min-height: 60px;
}

.code-image::after,
.code-detail-image::after,
.similar-code-image::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: skeleton-shimmer 1.5s infinite;
}

.code-image img,
.code-detail-image img,
.similar-code-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 2;
    display: block !important;
}

.code-image img,
.code-detail-image img,
.similar-code-image img {
    opacity: 0;
}

.code-image img.loaded,
.code-detail-image img.loaded,
.similar-code-image img.loaded {
    opacity: 1 !important;
}

.code-image.loaded,
.code-detail-image.loaded,
.similar-code-image.loaded {
    background: none !important;
}

.code-image.loaded::after,
.code-detail-image.loaded::after,
.similar-code-image.loaded::after {
    display: none !important;
}

.code-image.no-image,
.code-detail-image.no-image,
.similar-code-image.no-image {
    background: linear-gradient(135deg, var(--primary-light), var(--background)) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 48px;
}

.code-image.no-image::after,
.code-detail-image.no-image::after,
.similar-code-image.no-image::after {
    display: none !important;
}

.code-image.no-image img,
.code-detail-image.no-image img,
.similar-code-image.no-image img {
    display: none !important;
}

@keyframes skeleton-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}


@media (max-width: 768px) {
    .code-image {
        min-height: 180px !important;
    }
    
    .code-detail-image {
        min-height: 150px;
        width: 150px;
        height: 150px;
    }
    
    .similar-code-image {
        min-height: 70px;
        width: 70px;
        height: 70px;
    }
    
    .code-image.no-image,
    .code-detail-image.no-image,
    .similar-code-image.no-image {
        font-size: 42px;
    }
}

@media (max-width: 480px) {
    .code-image {
        min-height: 200px !important;
        height: 200px !important;
    }
    
    .code-detail-image {
        min-height: 180px;
        width: 180px;
        height: 180px;
        margin: 0 auto 20px;
    }
    
    .similar-code-image {
        min-height: 80px;
        width: 80px;
        height: 80px;
    }
    
    .code-image.no-image,
    .code-detail-image.no-image,
    .similar-code-image.no-image {
        font-size: 48px;
    }
    
    .code-image.no-image i,
    .code-detail-image.no-image i,
    .similar-code-image.no-image i {
        font-size: 48px;
    }
    
    .code-card .code-image {
        height: 220px !important;
        min-height: 220px !important;
    }
}

@media (max-width: 360px) {
    .code-image {
        min-height: 180px !important;
        height: 180px !important;
    }
    
    .code-detail-image {
        min-height: 160px;
        width: 160px;
        height: 160px;
    }
    
    .similar-code-image {
        min-height: 70px;
        width: 70px;
        height: 70px;
    }
    
    .code-card .code-image {
        height: 200px !important;
        min-height: 200px !important;
    }
    
    .code-image.no-image,
    .code-detail-image.no-image,
    .similar-code-image.no-image {
        font-size: 40px;
    }
    
    .code-image.no-image i,
    .code-detail-image.no-image i,
    .similar-code-image.no-image i {
        font-size: 40px;
    }
}

@media (max-width: 480px) {
    .code-header-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .code-detail-image {
        margin: 0 auto 20px;
    }
}

@media (max-width: 600px) {
    .code-grid {
        grid-template-columns: 1fr;
    }
    
    .code-card .code-image {
        height: 250px !important;
        min-height: 250px !important;
    }
}

.badge-pinned-icon {
    background: #4361ee;
    color: white;
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 15;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.badge-pinned-icon i {
    margin: 0;
    font-size: 14px;
}

.code-image.no-image {
    min-height: 160px !important;
    height: 160px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.code-image.no-image i {
    font-size: 48px !important;
    color: var(--primary) !important;
    display: block !important;
}
