/* =========================================  */
/* --- NEW MODERN BOTTOM NAV --- */
/* --- GALLERY CENTER HIGHLIGHT (MINI BUTTON - LARGE ICON) --- */
.nav-gallery-wrapper {
    position: relative;
    top: -5px; 
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 20%;
    background: transparent !important;
}

.nav-gallery-btn {
    width: 32px; 
    height: 32px;
    background: transparent !important; 
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3B5FCD; /* Icon Dark Blue */
    text-decoration: none;
    box-shadow: 0 2px 10px rgba(59, 95, 205, 0.3);
    border: 1px solid #3B5FCD; 
    z-index: 5;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-gallery-btn i {
    font-size: 16px;
    margin-left: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.nav-gallery-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 5px 15px rgba(59, 95, 205, 0.5);
}

.nav-gallery-btn:hover i {
    transform: rotate(10deg) scale(1.1);
}

.play-mini-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #FA991C; /* Icon Orange Glow */
    border-radius: 50%;
    z-index: -1;
    opacity: 0.2;
    animation: powerfulGlow 2.5s infinite alternate ease-in-out;
}

@keyframes powerfulGlow {
    0% { transform: scale(1); opacity: 0.15; box-shadow: 0 0 10px rgba(250, 153, 28, 0.2); }
    100% { transform: scale(1.4); opacity: 0.4; box-shadow: 0 0 25px rgba(250, 153, 28, 0.6); }
}

.gallery-text {
    font-size: 9px;
    font-weight: 800;
    color: #3B5FCD;
    margin-top: 2px;
    transition: color 0.3s ease;
}

.nav-gallery-btn.active {
    background: rgba(59, 95, 205, 0.15) !important;
    transform: scale(1.1);
    border-color: #FA991C;
}

/* ------------------------------------------------*/
.read-p-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.read-tag {
    display: inline-block;
    background: rgba(59, 95, 205, 0.08); /* Light Blue Background */
    color: #3B5FCD; /* Primary Blue Text */
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(59, 95, 205, 0.2);
}

.read-tag:hover {
    background: #3B5FCD;
    color: #ffffff;
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 15px rgba(59, 95, 205, 0.3);
}

/* ==========================================================
   FACE CONSISTENCY TOOL CSS (MODERNIZED DESIGN)
   ========================================================== */
.face-ref-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
    transition: all 0.4s ease;
}

.face-ref-card:hover {
    box-shadow: 0 10px 30px rgba(59, 95, 205, 0.1);
    border-color: rgba(59, 95, 205, 0.3);
}

.face-ref-header {
    font-size: 15px;
    font-weight: 800;
    color: #2C2D2F; /* Dark details from icon */
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.face-ref-actions {
    display: flex;
    gap: 10px;
}

/* Copy Button */
.btn-face-copy {
    flex: 1;
    background: #3B5FCD;
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-face-copy::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}

.btn-face-copy:hover::before {
    left: 100%;
}

.btn-face-copy:hover { 
    background: #2C2D2F; /* Dark Hover */
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 95, 205, 0.4);
}

/* View Button */
.btn-face-view {
    flex: 1;
    background: white;
    color: #FA991C; /* Orange */
    border: 1px solid #FA991C;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}
.btn-face-view:hover { 
    background: rgba(250, 153, 28, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(250, 153, 28, 0.2);
}

/* Hidden Content Box */
.face-hidden-content {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border: 1px dashed #3B5FCD;
    border-radius: 8px;
    animation: slideDownFade 0.4s ease-out;
}

@keyframes slideDownFade {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.face-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #2C2D2F;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
}

.face-text {
    font-family: monospace;
    font-size: 13px;
    line-height: 1.5;
    background: #f8fafc;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
    white-space: pre-wrap;
    margin-bottom: 12px;
}
.face-text:last-child { margin-bottom: 0; }

@media (max-width: 500px) {
    .face-ref-actions { flex-direction: column; gap: 8px; }
}

/* CSS FOR NEW ADDED SECTIONS */
.face-ref-card { background: transparent; border: 1px solid #e2e8f0; border-radius: 16px; padding: 20px; margin-top: 30px; margin-bottom: 20px; }
.face-ref-header { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #2C2D2F; margin-bottom: 15px; font-size: 15px; }
.face-ref-actions { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.btn-face-copy { background: #3B5FCD; color: white; border: none; padding: 12px; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; transition: 0.3s; }
.btn-face-copy:hover { background: #2C2D2F; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(59, 95, 205, 0.4); }
.btn-face-view { background: transparent; border: 1px solid #FA991C; color: #FA991C; padding: 12px; border-radius: 10px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 13px; transition: 0.3s; }
.btn-face-view:hover { background: rgba(250, 153, 28, 0.1); border-color: #FA991C; color: #FA991C; transform: translateY(-2px); }
.face-hidden-content { display: none; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #FA991C; animation: fadeInBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.face-label { display: block; font-size: 11px; text-transform: uppercase; font-weight: 800; color: #FA991C; margin-bottom: 5px; }
.face-text { font-size: 13px; color: #374151; line-height: 1.6; margin-bottom: 15px; font-family: monospace; background: rgba(59, 95, 205, 0.05); padding: 10px; border-radius: 8px; border: 1px solid rgba(59, 95, 205, 0.1); }

.glass-card { background: white; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(59, 95, 205, 0.08); border-radius: 20px; padding: 30px; margin-top: 25px; transition: transform 0.3s ease; }
.glass-card:hover { transform: translateY(-5px); box-shadow: 0 15px 35px rgba(59, 95, 205, 0.15); }
.section-title { font-size: 18px; font-weight: 800; color: #1e293b; margin-bottom: 15px; display: flex; align-items: center; gap: 10px; }
.faq-item { border-bottom: 1px solid #f1f5f9; margin-bottom: 10px; transition: all 0.3s ease; }
.faq-question { background: #f8fafc; padding: 15px; border-radius: 10px; cursor: pointer; font-weight: 600; color: #334155; position: relative; list-style: none; transition: background 0.3s ease; }
.faq-question:hover { background: rgba(59, 95, 205, 0.05); color: #3B5FCD; }
.faq-question::after { content: '+'; position: absolute; right: 20px; font-size: 18px; color: #3B5FCD; transition: transform 0.3s ease; }
details[open] .faq-question::after { content: '-'; transform: rotate(180deg); }
.faq-answer { padding: 15px; color: #64748b; line-height: 1.6; font-size: 15px; animation: slideDownFade 0.3s ease; }

@keyframes fadeInBounce { 
    0% { opacity: 0; transform: translateY(-10px) scale(0.95); } 
    50% { transform: translateY(5px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); } 
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================
   AERO GLASS DESIGN SYSTEM
   ========================================= */
:root {
    --bg-body: #f4f6f9;
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.9);
    --glass-shadow: 0 8px 32px 0 rgba(59, 95, 205, 0.08); /* Blue Shadow */
    --glass-blur: blur(12px);
    
    --primary: #3B5FCD; /* Icon Dark Blue */
    --primary-dark: #2C2D2F; /* Icon Dark Grey/Black Details */
    --accent: #FA991C; /* Icon Orange */
    --primary-gradient: linear-gradient(135deg, #3B5FCD 0%, #FA991C 100%); 
    
    --text-main: #0f172a;
    --text-sub: #64748b;
    
    --radius-md: 16px;
    --radius-lg: 24px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: 
        radial-gradient(at 0% 0%, hsla(225, 60%, 50%, 0.05) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(34, 95%, 55%, 0.05) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(225, 60%, 50%, 0.05) 0, transparent 50%);
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(59, 95, 205, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(250, 153, 28, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    padding-bottom: 70px; 
}

/* --- Header (Glass) --- */
.header {
    position: sticky;
    top: 20px;
    margin: 0 20px;
    z-index: 1000;
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--glass-shadow);
    transition: all 0.4s ease;
}

.header:hover {
    box-shadow: 0 12px 40px rgba(59, 95, 205, 0.15);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: 800;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.desktop-nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.desktop-nav a {
    color: var(--text-sub);
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
    font-size: 14px;
    padding: 6px 1px;
    position: relative;
}

.desktop-nav a:hover, .desktop-nav a.active { color: var(--primary); }
.desktop-nav a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}
.desktop-nav a:hover::after, .desktop-nav a.active::after {
    width: 100%;
}

.btn-submit {
    background: var(--text-main);
    color: white !important;
    padding: 10px 20px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.btn-submit::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.6s ease;
}

.btn-submit:hover::before { left: 100%; }

.btn-submit:hover {
    background: var(--primary);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(59, 95, 205, 0.4);
}

/* Mobile Header Styles */
.mobile-header-modern {
    display: none; 
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 60px;
    background: rgba(255, 255, 255, 0.85); 
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px; 
    box-shadow: 0 8px 32px rgba(59, 95, 205, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.8);
    z-index: 1000;
    padding: 0 20px;
    justify-content: space-between;
    align-items: center;
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.mobile-header-modern.scrolled {
    top: 10px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(59, 95, 205, 0.15);
}

.mobile-logo-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.header-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.header-icon-btn:hover {
    background: rgba(59, 95, 205, 0.1);
    color: var(--primary);
    transform: rotate(10deg);
}

@media (max-width: 768px) {
    .header { display: none; } 
    .mobile-header { display: none; } 
    .mobile-header-modern { display: flex; } 
    body { padding-top: 40px; } 
    .hero { padding-top: 80px; }
}

/* --- NEW POPUP MENU STYLES --- */
.menu-overlay-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.7); 
    backdrop-filter: blur(10px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.menu-overlay-popup.active {
    opacity: 1;
    visibility: visible;
}

.popup-card {
    background: #ffffff;
    width: 100%;
    max-width: 340px;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 25px 50px -12px rgba(59, 95, 205, 0.3);
    transform: scale(0.8) translateY(40px) rotate(-2deg);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(59, 95, 205, 0.2);
}

.menu-overlay-popup.active .popup-card {
    transform: scale(1) translateY(0) rotate(0deg);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(59, 95, 205, 0.1);
}

.popup-title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    letter-spacing: -0.5px;
}

.popup-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #f1f5f9;
    border: none;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.popup-close:hover { background: #ffe4e6; color: #e11d48; transform: rotate(90deg); }
.popup-close:active { transform: scale(0.9); }

.popup-grid { display: flex; flex-direction: column; gap: 10px; }

.popup-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: #ffffff;
    border: 1px solid transparent;
    border-radius: 16px;
    text-decoration: none;
    color: #334155;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
}

.popup-item:hover { 
    background: rgba(59, 95, 205, 0.05); 
    border-color: rgba(59, 95, 205, 0.2);
    transform: translateX(5px);
}

.popup-item:active { transform: scale(0.98); }

.popup-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
    transition: transform 0.3s ease;
}

.popup-item:hover .popup-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Updated Colors for Popup Icons */
.pi-blue { background: rgba(59, 95, 205, 0.1); color: #3B5FCD; } 
.pi-green { background: rgba(177, 192, 151, 0.2); color: #B1C097; } /* Screen Green */
.pi-orange { background: rgba(250, 153, 28, 0.1); color: #FA991C; } 
.pi-purple { background: rgba(200, 51, 32, 0.1); color: #C83320; } /* Red Button */
.pi-red { background: rgba(251, 161, 48, 0.15); color: #FBA130; } /* Yellow Button */

.popup-arrow { margin-left: auto; color: #cbd5e1; font-size: 12px; transition: 0.3s; }
.popup-item:hover .popup-arrow { color: var(--primary); transform: translateX(3px); }

.popup-submit {
    margin-top: 15px;
    background: var(--primary-gradient);
    color: white !important;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(59, 95, 205, 0.4);
    animation: pulseGlow 2s infinite;
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(59, 95, 205, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(59, 95, 205, 0); }
    100% { box-shadow: 0 0 0 0 rgba(59, 95, 205, 0); }
}

/* Mobile Stats */
.mobile-stats {
    display: none; 
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 15px;
    margin: 90px 20px 15px 20px; 
    text-align: center;
    box-shadow: 0 4px 15px rgba(59, 95, 205, 0.1);
    border: 1px solid rgba(59, 95, 205, 0.2);
    position: relative;
    z-index: 1;
    animation: fadeInDown 0.6s ease;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

.mobile-stats span {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* --- Hero --- */
.hero {
    text-align: center;
    padding: 40px 20px 30px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 15px;
    background: linear-gradient(to right, #FA991C, #3B5FCD, #C83320, #FA991C);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    animation: flowingTextShine 5s linear infinite;
}

@keyframes flowingTextShine {
    to { background-position: 300% center; }
}

.hero p { 
    color: var(--text-sub); 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin: 0 auto 30px; 
    line-height: 1.6;
    animation: fadeIn 1s ease 0.3s both;
}

/* Total Badge Style */
.total-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(59, 95, 205, 0.15);
    margin-bottom: 20px;
    border: 1px solid rgba(59, 95, 205, 0.2);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}
.total-badge:hover { transform: translateY(-3px) scale(1.05); }

.total-badge i {
    animation: pulseRotate 2s infinite;
}

@keyframes pulseRotate {
    0% { transform: scale(1) rotate(0deg); }
    50% { transform: scale(1.2) rotate(15deg); color: #FA991C; }
    100% { transform: scale(1) rotate(0deg); }
}

/* --- Search Bar (Floating) --- */
.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    animation: zoomInFade 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) both;
}

@keyframes zoomInFade {
    0% { opacity: 0; transform: scale(0.9) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

.search-input {
    width: 100%;
    padding: 18px 24px;
    padding-right: 60px;
    border-radius: 50px;
    border: 2px solid rgba(59, 95, 205, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px -10px rgba(59, 95, 205, 0.15);
    font-size: 16px;
    outline: none;
    transition: all 0.4s ease;
    font-family: inherit;
}

.search-input:focus {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px -10px rgba(59, 95, 205, 0.3);
    border-color: var(--primary);
}

.search-btn {
    position: absolute;
    right: 8px;
    top: 8px;
    background: var(--primary-gradient);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover { 
    transform: scale(1.15) rotate(10deg); 
    box-shadow: 0 0 20px rgba(59, 95, 205, 0.5);
}

/* --- CATEGORY SLIDER --- */
.category-slider-section {
    position: relative;
    max-width: 1400px;
    margin: 10px auto 15px;
    padding: 0 10px;
    animation: fadeIn 1s ease 0.5s both;
}

.category-slider-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 15px rgba(59, 95, 205, 0.05);
    border: 1px solid rgba(59, 95, 205, 0.1);
    display: flex;
    align-items: center;
}

.category-slider {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 0 30px;
    width: 100%;
    align-items: center;
    height: 40px;
}

.category-slider::-webkit-scrollbar { display: none; }

.category-slider-item {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 30px; 
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #475569;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    white-space: nowrap;
    cursor: pointer;
    height: 28px;
}

.category-slider-item:hover {
    background: rgba(59, 95, 205, 0.05);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateY(-2px);
}

.category-slider-item.active {
    background: var(--primary-gradient);
    color: #ffffff !important;
    border-color: transparent;
    box-shadow: 0 4px 10px rgba(59, 95, 205, 0.3);
}

.category-slider-item.active i { color: #ffffff !important; }

.category-slider-item.sort-btn {
    border-right: 1px solid #e2e8f0;
    margin-right: 2px;
    background: #f8fafc;
    color: #334155;
}
.category-slider-item.sort-btn:hover { background: #e2e8f0; color: #1e293b; }

.count-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 700;
    height: 16px;
    min-width: 16px;
    padding: 0 5px;
    border-radius: 10px;
    background: rgba(59, 95, 205, 0.1);
    color: var(--primary-dark);
    margin-left: 2px;
    line-height: 1;
    transition: 0.3s;
}

.category-slider-item.active .count-badge {
    background: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.category-slider-item:hover .count-badge { background: var(--primary); color: white; }

.slider-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: transparent;
    border: none; 
    color: #94a3b8;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}

.slider-nav-btn:hover {
    color: var(--primary);
    background: rgba(59, 95, 205, 0.1);
    transform: translateY(-50%) scale(1.1);
}

.slider-nav-btn.prev { left: 2px; }
.slider-nav-btn.next { right: 2px; }

@media (max-width: 768px) {
    .category-slider-wrapper { padding: 4px 0; background: transparent; border: none; box-shadow: none; }
    .category-slider { padding: 0 10px; gap: 6px; }
    .slider-nav-btn { display: none; }
    .category-slider-item { 
        height: 30px; 
        padding: 4px 12px; 
        font-size: 11px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    }
}

/* --- MASONRY GRID --- */
.container { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); 
    gap: 24px;
    padding-bottom: 60px;
}

/* POWERFUL CARD ANIMATIONS */
.prompt-card {
    background: white;
    border-radius: var(--radius-lg);
    display: flex;         
    flex-direction: column;
    margin-bottom: 0;       
    border: 1px solid rgba(59, 95, 205, 0.1);
    box-shadow: 0 10px 30px -10px rgba(59, 95, 205, 0.1);
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    height: 100%; 
    animation: fadeUpCard 0.6s ease backwards;
}

.masonry-grid .prompt-card:nth-child(even) { animation-delay: 0.1s; }
.masonry-grid .prompt-card:nth-child(3n) { animation-delay: 0.2s; }

@keyframes fadeUpCard {
    0% { opacity: 0; transform: translateY(30px) scale(0.95); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.prompt-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px -15px rgba(59, 95, 205, 0.3), 0 0 20px rgba(250, 153, 28, 0.1);
    border-color: rgba(59, 95, 205, 0.4);
    z-index: 2;
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; 
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    background: #f1f5f9;
}

.card-image-wrapper img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease;
    filter: brightness(0.95);
}

.prompt-card:hover .card-image-wrapper img {
    transform: scale(1.12) rotate(1deg);
    filter: brightness(1.05);
}

@media (max-width: 1100px) { 
    .masonry-grid { grid-template-columns: repeat(3, 1fr); } 
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) { 
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) { 
    .masonry-grid { 
        grid-template-columns: repeat(1, 1fr) !important; 
        gap: 20px !important; 
    }
            
    .prompt-card { border-radius: 12px; }
    .card-body { padding: 10px; }
    .card-title { font-size: 13px; height: 36px; line-height: 1.3; margin-bottom: 5px; }
    .card-meta { font-size: 10px; margin-bottom: 8px; }
    .prompt-text { display: none; }
    .card-footer { gap: 4px; }
    .btn-action { padding: 6px; font-size: 11px; border-radius: 6px; }
    .hero h1 { font-size: 1.8rem; }
    .search-input { padding: 15px 20px; padding-right: 55px; font-size: 14px; }
    .search-btn { width: 40px; height: 40px; top: 7px; }
}

/* --- BADGE SYSTEM --- */
.card-badges {
    position: absolute; top: 12px; left: 12px;
    display: flex; flex-wrap: wrap; gap: 6px;
    z-index: 5; max-width: 90%; pointer-events: none;
}

.model-tag {
    font-size: 8px; font-weight: 800; padding: 4px 10px; border-radius: 8px;
    background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px);
    box-shadow: 0 2px 10px rgba(59, 95, 205, 0.2);
    display: inline-flex; align-items: center; gap: 5px; white-space: nowrap;
    border: 1px solid rgba(59, 95, 205, 0.1); pointer-events: auto; text-decoration: none;
    transition: all 0.3s ease;
}

.model-tag-ai { color: var(--primary); border-color: rgba(59, 95, 205, 0.3); }

a.model-tag:hover {
    transform: scale(1.1) translateY(-2px);
    box-shadow: 0 5px 15px rgba(59, 95, 205, 0.3);
    background: var(--primary); color: white;
}

.card-body { 
    padding: 18px; background: white; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    position: relative; z-index: 3;
}

.card-title {
    font-size: 14px; font-weight: 700; margin-bottom: 6px; color: var(--text-main);
    line-height: 1.3; height: 38px; overflow: hidden; display: -webkit-box;
    -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: color 0.3s;
}
.prompt-card:hover .card-title { color: var(--primary); }

.logo-icon-box {
    width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
    border-radius: 8px; overflow: hidden;
}

.logo-icon-box img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
a:hover .logo-icon-box img { transform: scale(1.2) rotate(-5deg); }

@media (max-width: 480px) {
    .card-title { font-size: 11px !important; height: 30px; line-height: 1.3; margin-bottom: 4px; font-weight: 600; }
}

.card-meta {
    display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8;
    margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px dashed rgba(59, 95, 205, 0.2);
}

.prompt-text {
    background: #f8fafc; padding: 10px; border-radius: 8px; font-size: 12px;
    color: var(--text-sub); font-family: monospace; margin-bottom: 15px;
    border: 1px solid rgba(59, 95, 205, 0.1); max-height: 80px; overflow: hidden;
    position: relative; line-height: 1.4; transition: border 0.3s;
}
.prompt-card:hover .prompt-text { border-color: rgba(59, 95, 205, 0.3); }

.prompt-text::after {
    content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 30px;
    background: linear-gradient(to bottom, transparent, #f8fafc);
}

.card-footer { display: flex; gap: 8px; }

/* POWERFUL BUTTONS */
.btn-action {
    flex: 1; padding: 10px; border: 1px solid rgba(59, 95, 205, 0.3); background: white;
    border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--primary);
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    gap: 6px; text-decoration: none; transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.btn-action:hover {
    background: rgba(59, 95, 205, 0.05);
    border-color: var(--primary);
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(59, 95, 205, 0.2);
}

.btn-copy {
    background: var(--primary); color: white; border: none; position: relative; overflow: hidden;
}
.btn-copy::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.5s ease;
}
.btn-copy:hover::before { left: 100%; }
.btn-copy:hover { 
    background: var(--primary-dark); 
    transform: translateY(-3px); 
    box-shadow: 0 6px 15px rgba(59, 95, 205, 0.4);
    color: white;
}

/* Footer */
footer {
    text-align: center; padding: 40px 20px 80px 20px; color: var(--text-sub);
    font-size: 14px; background: white; border-top: 1px solid rgba(59, 95, 205, 0.1); margin-top: 40px;
}
.footer-content { max-width: 1200px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
.footer-links { display: flex; justify-content: center; gap: 30px; flex-wrap: wrap; }
.footer-links a { color: var(--text-sub); text-decoration: none; transition: color 0.3s ease, transform 0.3s; display: inline-block;}
.footer-links a:hover { color: var(--primary); transform: translateY(-2px); }

/* Toast */
#toast {
    position: fixed; bottom: 90px; left: 50%; transform: translateX(-50%) translateY(100px);
    background: var(--primary-dark); color: white; padding: 12px 24px; border-radius: 50px;
    box-shadow: 0 10px 30px rgba(59, 95, 205, 0.3); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1100; display: flex; align-items: center; gap: 8px; border: 1px solid #3B5FCD;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* Mobile Bottom Nav Restructure */
.mobile-bottom-nav { display: none; }

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex; position: fixed; bottom: 0; left: 0; width: 100%;
        background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px);
        border-top: 1px solid rgba(59, 95, 205, 0.1); justify-content: space-around;
        padding: 10px 0; z-index: 1005; box-shadow: 0 -5px 20px rgba(59, 95, 205, 0.1);
        z-index: 99999; /* Z-Index badha diya gaya hai */
    }
    
 
    
    
    .nav-item {
        display: flex; flex-direction: column; align-items: center; text-decoration: none;
        color: #94a3b8; font-size: 10px; font-weight: 600; gap: 4px; flex: 1; transition: 0.3s;
    }
    
    .nav-item i { font-size: 20px; margin-bottom: 2px; transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
    .nav-item.active i { transform: scale(1.2); }
    .nav-item:active i { transform: scale(0.9); }
    
    /* New Teal/Yellow Themed Mobile Icons -> Updated to Blue/Orange */
    .nav-item:nth-child(1) i { color: #3B5FCD; }
    .nav-item:nth-child(1).active { color: #2C2D2F; } 
    .nav-item:nth-child(2) i { color: #FA991C; }
    .nav-item:nth-child(2).active { color: #C83320; }
    .nav-item:nth-child(3) i { color: #3B5FCD; }
    .nav-item:nth-child(3).active { color: #2C2D2F; }
    .nav-item:nth-child(4) i { color: #FBA130; }
    .nav-item:nth-child(4).active { color: #FA991C; }
    .nav-item:nth-child(5) i { color: #3B5FCD; }
    .nav-item:nth-child(5).active { color: #2C2D2F; }

    .header { display: none; }
    .mobile-header { display: block; }
    .mobile-stats { display: block; }
    .hero { padding: 20px 15px; }
    .hero h1 { font-size: 2rem; }
    .hero p { font-size: 1rem; }
    .total-badge { display: none; }
    .footer-links { flex-direction: column; gap: 15px; align-items: center; }
}

@media (max-width: 1024px) { .masonry-grid { column-count: 3; } .hero h1 { font-size: 2.5rem; } }
@media (max-width: 768px) { .masonry-grid { column-count: 2; } }

/* EXPLORE PAGE MOBILE GRID */
@media (max-width: 480px) { 
    #promptGrid.explore-page-grid { display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 10px !important; }
    #promptGrid.explore-page-grid .prompt-card { width: 100% !important; margin-bottom: 0 !important; border-radius: 12px !important; }
    #promptGrid.explore-page-grid .card-body { padding: 10px !important; }
    #promptGrid.explore-page-grid .card-title { font-size: 11px !important; height: 32px !important; margin-bottom: 5px !important; line-height: 1.3 !important; font-weight: 600 !important; }
    #promptGrid.explore-page-grid .card-meta { font-size: 10px !important; margin-bottom: 8px !important; }
    #promptGrid.explore-page-grid .prompt-text { display: none !important; }
    #promptGrid.explore-page-grid .card-footer { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 4px !important; }
    #promptGrid.explore-page-grid .btn-action { padding: 6px 2px !important; font-size: 10px !important; border-radius: 6px !important; flex: 1 !important; justify-content: center !important; }
    #promptGrid.explore-page-grid .btn-action i { margin-right: 3px !important; font-size: 10px !important; }
}

/* EXACT MATCH DESIGN (AS PER SCREENSHOT) */
.new-prompt-card {
    background: #ffffff; border-radius: 16px; overflow: hidden; border: 1px solid rgba(59, 95, 205, 0.1);
    box-shadow: 0 4px 15px rgba(59, 95, 205, 0.05); display: flex; flex-direction: column; width: 100%;
    transition: all 0.4s ease;
}
.new-prompt-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(59, 95, 205, 0.15); border-color: rgba(59, 95, 205, 0.3); }

.new-card-image { width: 100%; aspect-ratio: 1 / 1; overflow: hidden; background: #f8fafc; }
.new-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); filter: brightness(0.95); }
.new-prompt-card:hover .new-card-image img { transform: scale(1.1); filter: brightness(1.05); }

.new-card-content { padding: 16px; display: flex; flex-direction: column; }
.new-card-title { font-size: 12px !important; font-weight: 700; color: #1e293b; margin: 0 0 8px 0; line-height: 1.3; transition: 0.3s; }
.new-prompt-card:hover .new-card-title { color: var(--primary); }

.new-card-tag-row { margin-bottom: 12px; }
.new-inline-tag {
    display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700;
    padding: 4px 12px; border-radius: 50px; text-decoration: none; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: rgba(59, 95, 205, 0.1); color: var(--primary);
}
.new-inline-tag:hover { transform: scale(1.1); background: var(--primary); color: white; box-shadow: 0 4px 10px rgba(59, 95, 205, 0.3); }

.new-card-meta { display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; font-weight: 500; margin-bottom: 12px; }
.new-card-meta i { margin-right: 4px; }

.new-prompt-box {
    background: #ffffff; border: 1px solid rgba(59, 95, 205, 0.2); border-radius: 8px; padding: 10px 12px;
    font-size: 11px; color: #334155; font-family: monospace; line-height: 1.6; margin-bottom: 16px;
    max-height: 70px; overflow-y: auto; white-space: normal; transition: 0.3s;
}
.new-prompt-card:hover .new-prompt-box { border-color: var(--primary); }
.new-prompt-box::-webkit-scrollbar { width: 4px; }
.new-prompt-box::-webkit-scrollbar-thumb { background: rgba(59, 95, 205, 0.4); border-radius: 4px; }

.new-card-actions { display: flex; gap: 8px; align-items: center; }
.new-action-btn {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 10px 0; border-radius: 8px; font-size: 13px; font-weight: 600; cursor: pointer;
    text-decoration: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* White Buttons to Blue Outline */
.new-btn-white { background: #ffffff; color: var(--primary); border: 1px solid rgba(59, 95, 205, 0.3); }
.new-btn-white:hover { background: rgba(59, 95, 205, 0.05); border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }

/* Dark Button to Blue Solid */
.new-btn-dark { background: var(--primary); color: white !important; border: 1px solid var(--primary); position: relative; overflow: hidden; }
.new-btn-dark::before {
    content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s;
}
.new-btn-dark:hover::before { left: 100%; }
.new-btn-dark:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(59, 95, 205, 0.4); }

/* NEXT LEVEL ANIMATIONS & MICRO-INTERACTIONS */
.hero-title { background-size: 200% auto; animation: flowingTextShine 4s linear infinite; }
.prompt-card { transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease; }
.prompt-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(59, 95, 205, 0.3), 0 0 20px rgba(250, 153, 28, 0.15);
    border-color: var(--primary); 
}

.btn-send, .btn-submit { position: relative; overflow: hidden; }
.btn-send::after, .btn-submit::after {
    content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%;
    background: rgba(255,255,255,0.2); transform: rotate(45deg); animation: sleekGlow 3s infinite;
}
@keyframes sleekGlow { 0% { left: -100%; top: -100%; } 50% { left: 100%; top: 100%; } 100% { left: 100%; top: 100%; } }

.card-image-wrapper img { filter: brightness(0.9); transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s ease; }
.prompt-card:hover .card-image-wrapper img { transform: scale(1.1); filter: brightness(1.05); }

/* FIX: ALL CARD BUTTONS THEME (VIEW, LIKE, COPY) - Blue & Orange Edition */
.new-btn-white, .btn-action, .btn-card-action {
    background: #ffffff !important; color: var(--primary) !important; border: 1px solid rgba(59, 95, 205, 0.4) !important;
}
.new-btn-white:hover, .btn-action:hover, .btn-card-action:hover {
    background: rgba(250, 153, 28, 0.05) !important; border-color: var(--accent) !important; color: #FA991C !important; transform: translateY(-2px);
}
.new-btn-dark, .btn-card-copy, .btn-copy, .btn-send {
    background: var(--primary) !important; border: 1px solid var(--primary-dark) !important; color: #ffffff !important; box-shadow: 0 4px 12px rgba(59, 95, 205, 0.3) !important;
}
.new-btn-dark:hover, .btn-card-copy:hover, .btn-copy:hover, .btn-send:hover {
    background: var(--primary-dark) !important; border: 1px solid var(--primary-dark) !important; color: #ffffff !important; transform: translateY(-2px);
}
.stat-like-btn.liked, .btn-like.liked, .image-overlay-like.liked-active {
    color: var(--accent) !important; border-color: var(--accent) !important; background: rgba(250, 153, 28, 0.1) !important;
}
.new-btn-dark:hover { background: var(--primary-dark); border-color: var(--primary-dark); color: #ffffff !important; }
.btn-card-copy:hover, .btn-copy:hover { background: var(--primary-dark) !important; color: #ffffff !important; }

.stat-like-btn.liked { color: var(--accent); border-color: rgba(250, 153, 28, 0.3); background: rgba(250, 153, 28, 0.1); }
.stat-like-btn.liked i { font-weight: 900; animation: bouncePop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
@keyframes bouncePop { 0% { transform: scale(1); } 50% { transform: scale(1.4); color: var(--accent); } 100% { transform: scale(1); } }

/* MOBILE FIXES */
@media (max-width: 480px) {
    .new-card-content { padding: 12px; } .new-card-title { font-size: 14px; margin-bottom: 8px; }
    .new-inline-tag { font-size: 10px; padding: 3px 10px; } .new-card-meta { font-size: 11px; margin-bottom: 10px; }
    .new-prompt-box { font-size: 10px; padding: 8px; margin-bottom: 12px; max-height: 40px; }
    .new-card-actions { gap: 6px; } .new-action-btn { font-size: 11px; padding: 8px 0; border-radius: 6px; }
}

/* NEW MOBILE STYLE (LAPTOP LOOK) */
@media (max-width: 480px) { 
    .masonry-grid { grid-template-columns: repeat(1, 1fr) !important; display: grid !important; gap: 24px !important; }
    .prompt-card { width: 100% !important; margin-bottom: 15px; border-radius: 16px; box-shadow: 0 10px 30px -10px rgba(59, 95, 205, 0.1); }
    .card-body { padding: 18px !important; }
    .prompt-text { display: block !important; font-size: 13px !important; padding: 12px !important; margin-bottom: 15px !important; background: #f8fafc; border-radius: 8px; border: 1px solid rgba(59, 95, 205, 0.2); }
    .card-title { font-size: 16px !important; height: auto !important; margin-bottom: 10px !important; line-height: 1.4 !important; }
    .card-footer { gap: 10px !important; }
    .btn-action { padding: 10px !important; font-size: 13px !important; border-radius: 8px !important; }
    .hero h1 { font-size: 1.8rem; } .search-input { padding: 15px 20px; font-size: 14px; } .search-btn { width: 40px; height: 40px; top: 7px; }
}

/* Loading Animation */
.loading-spinner {
    display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 50px; height: 50px; border: 3px solid rgba(59, 95, 205, 0.1); border-radius: 50%;
    border-top-color: var(--primary); animation: spin 1s ease-in-out infinite; z-index: 999;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

/* Scroll to Top */
.scroll-top {
    position: fixed; bottom: 80px; right: 20px; width: 44px; height: 44px;
    background: var(--primary-gradient); color: white; border: none; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px;
    box-shadow: 0 4px 15px rgba(59, 95, 205, 0.3); opacity: 0; visibility: hidden; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); z-index: 999;
}
.scroll-top.visible { opacity: 1; visibility: visible; }
.scroll-top:hover { transform: translateY(-8px) scale(1.1); box-shadow: 0 10px 25px rgba(59, 95, 205, 0.5); }

/* FIXED SORT MODAL STYLE */
.custom-sort-modal {
    display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0.8);
    width: 90%; max-width: 320px; background: white; border-radius: 20px; z-index: 1002;
    box-shadow: 0 25px 50px -12px rgba(59, 95, 205, 0.3); opacity: 0; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(59, 95, 205, 0.1);
}
.custom-sort-modal.active { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.sort-header { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; border-bottom: 1px solid rgba(59, 95, 205, 0.1); }
.sort-header h3 { margin: 0; font-size: 18px; color: var(--text-main); }
.sort-close-btn { background: none; border: none; font-size: 20px; color: var(--text-sub); cursor: pointer; padding: 4px; transition: 0.3s; }
.sort-close-btn:hover { color: #e11d48; transform: rotate(90deg); }
.sort-options-list { padding: 8px 0; }
.sort-option-item { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; text-decoration: none; color: var(--text-main); font-weight: 500; transition: all 0.3s; }
.sort-option-item:hover { background: rgba(59, 95, 205, 0.05); padding-left: 25px; color: var(--primary); }
.sort-option-item.active { color: var(--primary); background: rgba(59, 95, 205, 0.1); font-weight: 600; border-left: 3px solid var(--primary); }
.sort-icon-wrapper { display: flex; align-items: center; gap: 12px; }

/* Like Button Style */
.btn-like.liked i { font-weight: 900; color: var(--accent); animation: bouncePop 0.4s ease; }
.btn-like.liked { background: rgba(250, 153, 28, 0.1); border-color: var(--accent); color: var(--accent); }

/* WIDE FOOTER RESTORED */
.small-footer { background: #ffffff; border-top: 1px solid rgba(59, 95, 205, 0.1); padding: 30px 0; margin-top: 40px; font-size: 14px; color: #64748b; }
.footer-wrapper { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; transition: transform 0.3s;}
.footer-brand:hover { transform: translateY(-2px); }
.footer-brand-title { font-weight: 700; font-size: 18px; display: flex; align-items: center; gap: 8px; color: #1e293b; text-decoration: none; }
.footer-links-compact { display: flex; flex-wrap: wrap; gap: 25px; align-items: center; }
.footer-links-compact a { color: #64748b; text-decoration: none; font-weight: 500; transition: all 0.3s ease; position: relative;}
.footer-links-compact a::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 1px; background: var(--primary); transition: width 0.3s; }
.footer-links-compact a:hover { color: var(--primary); }
.footer-links-compact a:hover::after { width: 100%; }

@media (max-width: 768px) {
    .footer-wrapper { flex-direction: column; gap: 20px; text-align: center; }
    .footer-brand { align-items: center; }
    .footer-links-compact { justify-content: center; gap: 15px; font-size: 13px; }
    .small-footer { padding-bottom: 90px; }
}

/* Wrapper */
.stats-wrapper { display: flex; justify-content: center; width: 100%; position: relative; z-index: 10; margin-top: 55px; margin-bottom: 15px; animation: fadeUpCard 0.8s ease backwards 0.2s;}
@media (min-width: 768px) { .stats-wrapper { margin-top: 40px; margin-bottom: 25px; } }

/* BASE DESIGN */
.premium-pill {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(255, 255, 255, 0.7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 95, 205, 0.2); padding: 8px 12px 8px 16px; border-radius: 100px;
    text-decoration: none; box-shadow: 0 4px 15px rgba(59, 95, 205, 0.1); transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1); max-width: 90%; 
}
@media (min-width: 768px) {
    .premium-pill { background: rgba(255, 255, 255, 0.9); padding: 10px 24px; gap: 15px; border: 1px solid rgba(59, 95, 205, 0.2); }
    .premium-pill:hover { transform: translateY(-4px) scale(1.03); background: #ffffff; box-shadow: 0 12px 35px rgba(59, 95, 205, 0.25); border-color: rgba(59, 95, 205, 0.4); }
}

.pp-icon { color: var(--accent); font-size: 14px; animation: bouncePop 2s infinite; }
@media (min-width: 768px) { .pp-icon { font-size: 18px; } }
.pp-text { font-size: 13px; color: var(--primary); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: sans-serif; display: flex; align-items: center; gap: 10px; }
@media (min-width: 768px) { .pp-text { font-size: 16px; } }
.pp-count { color: #0f172a; font-weight: 800; position: relative; }
@media (min-width: 768px) { .pp-count::after { content: ""; display: inline-block; width: 1px; height: 14px; background: rgba(59, 95, 205, 0.3); margin-left: 12px; vertical-align: middle; transform: translateY(-1px); } }
.pp-arrow { background: transparent; font-size: 18px; display: flex; align-items: center; transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); padding-left: 4px; }
@media (min-width: 768px) { .pp-arrow { font-size: 22px; } }
.premium-pill:hover .pp-arrow { transform: translateY(-6px) rotate(-45deg) scale(1.2); color: var(--primary); }

/* Hero Title Design */
.hero-title { font-family: 'Plus Jakarta Sans', sans-serif; background: linear-gradient(to right, #3B5FCD, #FA991C, #2C2D2F); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; font-weight: 600; font-size: 1.4rem; letter-spacing: -0.2px; margin-bottom: 8px; text-align: center; animation: flowingTextShine 4s linear infinite; background-size: 200% auto;}
@media (min-width: 768px) { .hero-title { font-size: 3.5rem; font-weight: 800; letter-spacing: -1.5px; margin-bottom: 20px; line-height: 1.1; } }

/* MICRO GRID & BUTTONS CSS */
.view-all-pill { padding: 5px 12px; border-radius: 20px; background: white; border: 1px solid rgba(59, 95, 205, 0.3); color: var(--primary); font-weight: 600; font-size: 11px; text-decoration: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 4px; }
.view-all-pill:hover { border-color: var(--primary); color: white; background: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(59, 95, 205, 0.3);}
.refresh-pill { padding: 5px 12px; border-radius: 20px; background: rgba(59, 95, 205, 0.1); border: 1px solid rgba(59, 95, 205, 0.2); color: var(--primary); cursor: pointer; font-weight: 600; font-size: 11px; font-family: inherit; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: flex; align-items: center; gap: 5px; }
.refresh-pill:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 4px 10px rgba(59, 95, 205, 0.3);}
.refresh-pill:hover i { transform: rotate(180deg) scale(1.2); transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); }

.micro-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; }
.micro-card { display: block; position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; background: #f1f5f9; box-shadow: 0 2px 10px rgba(59, 95, 205, 0.1); transition: 0.4s ease;}
.micro-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); filter: brightness(0.9);}
.micro-card:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(59, 95, 205, 0.2); }
.micro-card:hover img { transform: scale(1.15) rotate(2deg); filter: brightness(1.1); }
@media (max-width: 480px) { .micro-grid { grid-template-columns: repeat(4, 1fr); gap: 6px; } .micro-card { border-radius: 8px; } }

/* SINGLE PROMPT VIEW PAGE (view.php) */
.breadcrumb { margin-top: 35px; margin-bottom: 25px; font-size: 14px; color: var(--text-sub); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-sub); text-decoration: none; transition: 0.2s; }
.breadcrumb a:hover { color: var(--primary); transform: translateX(2px); display: inline-block;}
.breadcrumb i { font-size: 10px; opacity: 0.5; }
.detail-wrapper { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; margin-bottom: 60px; }

.image-card { background: white; padding: 10px; border-radius: var(--radius-lg); border: 1px solid rgba(59, 95, 205, 0.2); box-shadow: 0 10px 40px rgba(59, 95, 205, 0.1); position: sticky; top: 100px; display: flex; flex-direction: column; transition: 0.4s; }
.image-card:hover { box-shadow: 0 15px 50px rgba(59, 95, 205, 0.15); border-color: rgba(59, 95, 205, 0.3); }
.image-wrapper { border-radius: 16px; overflow: hidden; position: relative; background: #f1f5f9; cursor: zoom-in; display: flex; justify-content: center; align-items: center; }
.image-wrapper img { width: 100%; height: auto; display: block; max-height: 80vh; object-fit: contain; transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);}
.image-wrapper:hover img { transform: scale(1.02); }

.model-badge-overlay { position: absolute; top: 15px; left: 15px; background: rgba(255,255,255,0.95); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 30px; font-weight: 700; font-size: 8px; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(59, 95, 205, 0.15); color: var(--text-main); z-index: 2; transition: 0.3s;}
.model-badge-overlay:hover { transform: scale(1.05); background: var(--primary); color: white;}
.image-stats { margin-top: 10px; display: flex; justify-content: space-between; font-size: 12px; color: var(--text-sub); padding: 5px 10px; }
.image-stats span { display: flex; align-items: center; gap: 6px; }

.image-overlay-like { position: absolute; top: 15px; right: 15px; background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(4px); padding: 6px 12px; border-radius: 30px; font-size: 13px; font-weight: 700; color: var(--text-main); cursor: pointer; z-index: 10; display: flex; align-items: center; gap: 6px; box-shadow: 0 4px 12px rgba(59, 95, 205, 0.2); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(59, 95, 205, 0.1); }
.image-overlay-like:hover { transform: scale(1.15) rotate(5deg); background: white; color: var(--accent); border-color: var(--accent);}
.image-overlay-like.liked-active { color: var(--accent); background: white; border-color: var(--accent); box-shadow: 0 5px 15px rgba(250, 153, 28, 0.3);}
.image-overlay-like.liked-active i { animation: bouncePop 0.4s ease; } 

.info-card { display: flex; flex-direction: column; gap: 25px; }
.meta-header { display: flex; gap: 15px; font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.meta-header span { display: flex; align-items: center; gap: 6px; }
h1.title { font-size: clamp(24px, 4vw, 30px); font-weight: 800; line-height: 1.3; background: linear-gradient(to right, #1e293b, var(--primary)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px; animation: fadeInDown 0.6s ease;}
.desc { font-size: 15px; color: var(--text-sub); line-height: 1.6; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; background: white; padding: 20px; border-radius: var(--radius-md); border: 1px solid rgba(59, 95, 205, 0.2); box-shadow: 0 10px 30px rgba(59, 95, 205, 0.05); transition: 0.4s;}
.stats-grid:hover { box-shadow: 0 15px 40px rgba(59, 95, 205, 0.1); border-color: rgba(59, 95, 205, 0.3);}
.stat-item { text-align: center; transition: 0.3s;}
.stat-item:hover { transform: translateY(-3px); }
.stat-val { display: block; font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 4px; }
.stat-val.liked-active { color: var(--accent); }
.stat-val.liked-active i { font-weight: 900; }
.stat-lbl { font-size: 11px; text-transform: uppercase; color: var(--text-sub); font-weight: 600; }

.prompt-box { background: white; border: 1px solid rgba(59, 95, 205, 0.2); border-radius: var(--radius-md); padding: 20px; position: relative; box-shadow: 0 10px 30px rgba(59, 95, 205, 0.05); transition: 0.4s;}
.prompt-box:hover { border-color: var(--primary); box-shadow: 0 15px 35px rgba(59, 95, 205, 0.1);}
.prompt-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.prompt-label { font-size: 12px; font-weight: 700; color: var(--primary); text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.prompt-text { font-family: monospace; font-size: 14px; line-height: 1.6; color: var(--text-main); background: rgba(59, 95, 205, 0.02); padding: 15px; border-radius: 8px; border: 1px dashed rgba(59, 95, 205, 0.3); margin-bottom: 15px; max-height: 100px; overflow-y: auto; white-space: pre-wrap; transition: 0.3s;}
.prompt-text:hover { background: rgba(59, 95, 205, 0.05); border-color: var(--primary);}
.prompt-text::-webkit-scrollbar { width: 6px; }
.prompt-text::-webkit-scrollbar-thumb { background: rgba(59, 95, 205, 0.3); border-radius: 3px; }

.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.btn { padding: 14px; border-radius: 12px; border: none; font-weight: 600; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none; position: relative; overflow: hidden;}
.btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s ease;}
.btn:hover::before { left: 100%; }
.btn-primary { background: var(--primary); color: white; box-shadow: 0 8px 20px rgba(59, 95, 205, 0.3); border: 1px solid var(--primary-dark);}
.btn-primary:hover { transform: translateY(-4px); background: var(--primary-dark); box-shadow: 0 12px 25px rgba(59, 95, 205, 0.4);}
.btn-outline { background: white; border: 1px solid rgba(59, 95, 205, 0.4); color: var(--primary); }
.btn-outline:hover { background: rgba(59, 95, 205, 0.05); border-color: var(--primary); color: var(--primary); transform: translateY(-4px); box-shadow: 0 8px 20px rgba(59, 95, 205, 0.15);}
.btn-copy-sm { background: rgba(59, 95, 205, 0.1); border: 1px solid rgba(59, 95, 205, 0.2); padding: 6px 12px; border-radius: 6px; font-size: 12px; cursor: pointer; color: var(--primary); font-weight: 600; transition: 0.3s;}
.btn-copy-sm:hover { background: var(--primary); color: white; transform: translateY(-2px);}

.tags-container { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tag-pill { background: white; padding: 6px 14px; border-radius: 20px; font-size: 13px; color: var(--text-sub); border: 1px solid rgba(59, 95, 205, 0.2); text-decoration: none; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.tag-pill:hover { border-color: var(--primary); background: var(--primary); color: white; transform: translateY(-3px) scale(1.05); box-shadow: 0 5px 15px rgba(59, 95, 205, 0.2);}

.related-section { margin-top: 30px; padding-bottom: 60px; }
.related-title { font-size: 24px; font-weight: 800; margin-bottom: 30px; display: flex; align-items: center; gap: 10px; color: var(--text-main); }

/* HOME PAGE PROMPT TEXT SCROLL */
.prompt-text-preview { background: rgba(59, 95, 205, 0.02); padding: 10px; border-radius: 8px; font-size: 12px; color: var(--text-sub); font-family: monospace; margin-bottom: 15px; border: 1px dashed rgba(59, 95, 205, 0.2); max-height: 80px !important; overflow-y: auto !important; overflow-x: hidden !important; white-space: pre-wrap !important; transition: 0.3s;}
.prompt-card:hover .prompt-text-preview { border-color: rgba(59, 95, 205, 0.4); background: rgba(59, 95, 205, 0.05);}
.prompt-text-preview::after { display: none !important; }
.prompt-text-preview::-webkit-scrollbar { width: 4px; }
.prompt-text-preview::-webkit-scrollbar-thumb { background: rgba(59, 95, 205, 0.4); border-radius: 4px; }

.btn-card-action { flex: 1; padding: 10px; border: 1px solid rgba(59, 95, 205, 0.3); background: white; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--primary); cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.btn-card-action:hover { background: rgba(59, 95, 205, 0.05); border-color: var(--primary); color: var(--primary); transform: translateY(-3px);}
.btn-card-copy { background: var(--primary); color: white; border: none; border: 1px solid var(--primary-dark);}
.btn-card-copy:hover { background: var(--primary-dark); box-shadow: 0 5px 15px rgba(59, 95, 205, 0.4);}

/* Lightbox */
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(255,255,255,0.95); z-index: 2000; justify-content: center; align-items: center; backdrop-filter: blur(10px); animation: fadeIn 0.4s ease;}
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(59, 95, 205, 0.2); animation: zoomInFade 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);}
.close-lb { position: absolute; top: 30px; right: 30px; font-size: 40px; border: none; background: none; cursor: pointer; color: var(--text-main); transition: 0.3s;}
.close-lb:hover { color: #e11d48; transform: rotate(90deg) scale(1.1);}

@media (max-width: 1024px) { .detail-wrapper { grid-template-columns: 1fr; gap: 20px; } .image-card { position: static; } }
@media (max-width: 768px) { .title { font-size: 24px; } .action-row { grid-template-columns: 1fr; } .breadcrumb { flex-wrap: nowrap !important; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; scrollbar-width: none; } .breadcrumb::-webkit-scrollbar { display: none; } .breadcrumb a, .breadcrumb span { flex-shrink: 0; } }
@media (max-width: 600px) { .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; } }

/* FIX FOR HOME PAGE PROMPT TEXT SCROLL */
.prompt-card .prompt-text { font-size: 11px !important; line-height: 1.5 !important; white-space: normal !important; text-align: left !important; max-height: 80px !important; overflow-y: auto !important; overflow-x: hidden !important; padding-right: 8px !important; background: rgba(59, 95, 205, 0.02) !important; border: 1px dashed rgba(59, 95, 205, 0.2) !important; transition: 0.3s;}
.prompt-card:hover .prompt-text { border-color: rgba(59, 95, 205, 0.4) !important; background: rgba(59, 95, 205, 0.05) !important;}
.prompt-card .prompt-text::after { display: none !important; }
.prompt-card .prompt-text::-webkit-scrollbar { width: 4px; }
.prompt-card .prompt-text::-webkit-scrollbar-track { background: transparent; }
.prompt-card .prompt-text::-webkit-scrollbar-thumb { background: rgba(59, 95, 205, 0.4); border-radius: 4px; }

/* BLOG PAGE SPECIFIC STYLES */
.blog-hero { padding: 40px 20px 20px; text-align: center; }
.blog-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(59, 95, 205, 0.1); padding: 6px 16px; border-radius: 100px; font-size: 12px; font-weight: 700; color: var(--primary); margin-bottom: 15px; border: 1px solid rgba(59, 95, 205, 0.2); transition: 0.3s;}
.blog-badge:hover { transform: translateY(-2px); background: var(--primary); color: white;}

.filter-container { display: flex; justify-content: center; gap: 10px; margin-bottom: 40px; flex-wrap: wrap; padding: 0 20px; }
.filter-pill { background: white; padding: 8px 20px; border-radius: 100px; font-size: 13px; font-weight: 600; color: var(--text-sub); box-shadow: 0 2px 10px rgba(59, 95, 205, 0.05); border: 1px solid rgba(59, 95, 205, 0.1); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none; }
.filter-pill:hover { transform: translateY(-4px) scale(1.05); color: var(--primary); border-color: var(--primary); box-shadow: 0 6px 15px rgba(59, 95, 205, 0.15);}
.filter-pill.active { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 6px 15px rgba(59, 95, 205, 0.3);}

.blog-container { max-width: 1200px; margin: 0 auto; padding: 0 20px 60px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 30px; }

.blog-card { background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 10px 30px -10px rgba(59, 95, 205, 0.1); transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275); border: 1px solid rgba(59, 95, 205, 0.1); display: flex; flex-direction: column; height: 100%; text-decoration: none; position: relative;}
.blog-card:hover { transform: translateY(-10px); box-shadow: 0 25px 40px -10px rgba(59, 95, 205, 0.25); border-color: rgba(59, 95, 205, 0.3); z-index: 2;}

.blog-card-visual { height: 220px; width: 100%; position: relative; overflow: hidden; background: #f8fafc; }
.blog-single-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1), filter 0.6s; filter: brightness(0.95);}
.blog-card:hover .blog-single-img { transform: scale(1.1) rotate(1deg); filter: brightness(1.05);}

/* SMART COLLAGE GRID SYSTEM (1 to 10 Images) */
.blog-card-collage { display: grid; gap: 2px; width: 100%; height: 450px; background: #f1f5f9; overflow: hidden; }
.blog-card-collage a { display: block; overflow: hidden; position: relative; }
.blog-card-collage a img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); filter: brightness(0.95);}
.blog-card-collage a:hover img { transform: scale(1.15); filter: brightness(1.1); z-index: 2; position: relative;}

.grid-count-1 { grid-template-columns: 1fr; } .grid-count-2 { grid-template-columns: repeat(2, 1fr); } .grid-count-3 { grid-template-columns: repeat(3, 1fr); } .grid-count-4 { grid-template-columns: repeat(2, 1fr); grid-template-rows: repeat(2, 1fr); } .grid-count-5 { grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(2, 1fr); } .grid-count-5 a:nth-child(1), .grid-count-5 a:nth-child(2) { grid-column: span 3; } .grid-count-5 a:nth-child(n+3) { grid-column: span 2; } .grid-count-6 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); } .grid-count-7 { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(2, 1fr); } .grid-count-7 a:nth-child(-n+3) { grid-column: span 4; } .grid-count-7 a:nth-child(n+4) { grid-column: span 3; } .grid-count-8 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); } .grid-count-9 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(3, 1fr); } .grid-count-10 { grid-template-columns: repeat(12, 1fr); grid-template-rows: repeat(3, 1fr); } .grid-count-10 a:nth-child(-n+6) { grid-column: span 4; } .grid-count-10 a:nth-child(n+7) { grid-column: span 3; } 

.blog-card-content { padding: 20px; flex-grow: 1; display: flex; flex-direction: column; }
.blog-meta-info { display: flex; gap: 15px; font-size: 12px; color: var(--text-sub); margin-bottom: 10px; font-weight: 500; }
.blog-meta-info span { display: flex; align-items: center; gap: 5px; }
.blog-card-title { font-size: 18px; font-weight: 700; margin-bottom: 10px; color: var(--text-main); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s;}
.blog-card:hover .blog-card-title { color: var(--primary); }
.blog-card-excerpt { font-size: 13px; color: var(--text-sub); line-height: 1.5; margin-bottom: 20px; flex-grow: 1; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-card-footer { margin-top: auto; padding-top: 15px; border-top: 1px dashed rgba(59, 95, 205, 0.2); display: flex; justify-content: space-between; align-items: center; transition: border 0.3s;}
.blog-card:hover .blog-card-footer { border-color: rgba(59, 95, 205, 0.5); }
.blog-read-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary); transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.blog-card:hover .blog-read-btn { gap: 12px; color: var(--primary-dark); transform: scale(1.05); }

.blog-cta-box { background: white; border-radius: var(--radius-lg); padding: 40px 20px; text-align: center; margin-top: 40px; box-shadow: 0 10px 30px -10px rgba(59, 95, 205, 0.1); border: 1px solid rgba(59, 95, 205, 0.2); transition: 0.4s; animation: fadeUpCard 0.8s ease backwards;}
.blog-cta-box:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(59, 95, 205, 0.2); border-color: rgba(59, 95, 205, 0.4);}
.blog-cta-btn { display: inline-flex; align-items: center; gap: 8px; background: var(--primary-gradient); color: white; padding: 12px 28px; border-radius: 50px; font-weight: 700; margin-top: 15px; transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none; border: none; position: relative; overflow: hidden;}
.blog-cta-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s;}
.blog-cta-btn:hover::before { left: 100%; }
.blog-cta-btn:hover { transform: translateY(-5px) scale(1.05); box-shadow: 0 12px 25px rgba(59, 95, 205, 0.4); color: white;}

@media (max-width: 768px) { .blog-grid { grid-template-columns: 1fr; gap: 20px; } }

/* SINGLE BLOG POST (READ.PHP) STYLES */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@600;700&display=swap');

.screenshot-container { background: rgba(59, 95, 205, 0.03); padding: 5px; border-radius: 16px; border: 1px solid rgba(59, 95, 205, 0.2); margin-bottom: 40px; transition: 0.4s;}
.screenshot-container:hover { border-color: rgba(59, 95, 205, 0.4); box-shadow: 0 10px 30px rgba(59, 95, 205, 0.1);}
.screenshot-title { text-align: center; font-size: 32px; font-weight: 800; color: #0f172a; margin-bottom: 20px; font-family: 'Plus Jakarta Sans', sans-serif; }
.screenshot-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; border-radius: 12px; overflow: hidden; }
.screenshot-item { aspect-ratio: 1 / 1; background: #e2e8f0; overflow: hidden;}
.screenshot-img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);}
.screenshot-item:hover .screenshot-img { transform: scale(1.15); }

.screenshot-grid.count-1 { grid-template-columns: 1fr; } .screenshot-grid.count-2 { grid-template-columns: repeat(2, 1fr); } .screenshot-grid.count-3 { grid-template-columns: repeat(3, 1fr); } .screenshot-grid.count-4 { grid-template-columns: repeat(2, 1fr); } .screenshot-grid.count-5 { grid-template-columns: repeat(5, 1fr); } .screenshot-grid.count-6 { grid-template-columns: repeat(3, 1fr); } .screenshot-grid.count-7 { grid-template-columns: repeat(4, 1fr); } .screenshot-grid.count-8 { grid-template-columns: repeat(4, 1fr); } .screenshot-grid.count-9 { grid-template-columns: repeat(3, 1fr); }

.read-container { max-width: 1000px; margin: 40px auto 60px; padding: 0 20px; animation: fadeUpCard 0.8s ease backwards;}
.read-header { text-align: left; margin-bottom: 40px; max-width: 800px; }
.read-meta-pill { display: inline-flex; flex-wrap: wrap; gap: 20px; background: white; padding: 8px 24px; justify-content: flex-start; border-radius: 100px; border: 1px solid rgba(59, 95, 205, 0.2); margin-bottom: 20px; font-size: 13px; font-weight: 600; color: var(--text-sub); box-shadow: 0 4px 10px rgba(59, 95, 205, 0.05); transition: 0.3s;}
.read-meta-pill:hover { transform: translateY(-2px); box-shadow: 0 8px 15px rgba(59, 95, 205, 0.1); border-color: rgba(59, 95, 205, 0.3);}
.read-title { font-family: 'Inter', sans-serif; font-size: clamp(24px, 4vw, 36px); font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--text-main); margin: 0; }

.read-cover-box { border-radius: 24px; overflow: hidden; margin-bottom: 40px; border: 4px solid white; box-shadow: 0 10px 40px -10px rgba(59, 95, 205, 0.2); background: white; transition: 0.4s;}
.read-cover-box:hover { transform: translateY(-5px); box-shadow: 0 15px 50px -10px rgba(59, 95, 205, 0.3);}
.read-c-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s cubic-bezier(0.25, 0.8, 0.25, 1); filter: brightness(0.95);}
.read-cover-box:hover .read-c-img { transform: scale(1.05); filter: brightness(1.05);}
.read-grid-1 { height: auto; min-height: 300px; max-height: 600px; background: #f8fafc; display: flex; align-items: center; justify-content: center; } .read-grid-1 .read-c-img { object-fit: contain; max-height: 600px; } .read-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; height: 400px; } .read-grid-3 { display: grid; grid-template-columns: 2fr 1fr; gap: 2px; height: 400px; } .read-grid-3-col { display: grid; grid-template-rows: 1fr 1fr; gap: 2px; height: 100%; } .read-grid-4 { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 2px; height: 450px; } .read-grid-8 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; } .read-g8-item { height: 180px; position: relative; overflow: hidden; } .read-more-overlay { position: absolute; inset: 0; background: rgba(59, 95, 205, 0.7); color: white; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; backdrop-filter: blur(4px); transition: 0.3s;}
.read-g8-item:hover .read-more-overlay { background: rgba(44, 45, 47, 0.8); transform: scale(1.1);}

.read-content-body { background: white; padding: 50px; border-radius: 24px; box-shadow: 0 4px 30px rgba(59, 95, 205, 0.08); border: 1px solid rgba(59, 95, 205, 0.1); font-size: 17px; color: var(--text-main); line-height: 1.8; transition: 0.4s;}
.read-content-body:hover { box-shadow: 0 10px 40px rgba(59, 95, 205, 0.15);}
.read-content-body p { margin-bottom: 24px; }
.read-content-body h2 { font-size: 24px; font-weight: 800; margin: 40px 0 20px; color: var(--text-main); border-left: 5px solid var(--primary); padding-left: 15px; }
.read-content-body img { border-radius: 12px; margin: 30px 0; width: 100%; height: auto; object-fit: contain; box-shadow: 0 5px 20px rgba(0,0,0,0.1);}

.read-prompt-sec { margin-top: 50px; border-top: 2px dashed rgba(59, 95, 205, 0.3); padding-top: 40px; }
.read-sec-title { text-align: left; font-family: 'Inter', sans-serif; font-size: 20px; font-weight: 700; color: var(--primary); margin-bottom: 25px; border-bottom: 1px solid rgba(59, 95, 205, 0.2); padding-bottom: 10px; }

.read-p-card { background: white; border: 1px solid rgba(59, 95, 205, 0.2); border-radius: 20px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 10px 30px rgba(59, 95, 205, 0.08); display: flex; transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);}
.read-p-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(59, 95, 205, 0.2); border-color: rgba(59, 95, 205, 0.4);}
.read-p-vis { background: #f8fafc; height: auto; min-height: 300px; display: flex; flex-direction: column; border-right: 1px solid rgba(59, 95, 205, 0.2); width: 45%; padding: 20px; position: relative; overflow: hidden;}
.read-p-num { align-self: flex-start; background: rgba(255, 255, 255, 0.8); color: var(--primary); padding: 6px 14px; border-radius: 50px; font-weight: 800; font-size: 11px; text-decoration: none; margin-bottom: 15px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); display: inline-flex; align-items: center; border: 1px solid rgba(59, 95, 205, 0.3); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 2;}
.read-p-num:hover { background: var(--primary); color: white; border-color: var(--primary); transform: translateY(-4px) scale(1.1); box-shadow: 0 5px 15px rgba(59, 95, 205, 0.4);}
.read-p-vis img { width: 100%; max-height: 400px; object-fit: contain; border-radius: 12px; margin: auto 0; transition: transform 0.6s cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 1;}
.read-p-card:hover .read-p-vis img { transform: scale(1.05); }

.read-p-content { padding: 30px; width: 55%; display: flex; flex-direction: column; }
.read-p-name { font-size: 20px; font-weight: 800; margin-bottom: 12px; color: var(--text-main); line-height: 1.3; transition: 0.3s;}
.read-p-card:hover .read-p-name { color: var(--primary); }
.read-p-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.read-tag { background: rgba(59, 95, 205, 0.1); color: var(--primary); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; border: 1px solid transparent; transition: 0.3s;}
.read-tag:hover { border-color: var(--primary); background: var(--primary); color: white; transform: translateY(-2px);}
.read-p-code { background: rgba(59, 95, 205, 0.05); color: #334155; padding: 15px; border-radius: 12px; font-family: monospace; font-size: 13px; line-height: 1.6; margin-bottom: 20px; overflow-x: auto; white-space: pre-wrap; word-wrap: break-word; border: 1px dashed rgba(59, 95, 205, 0.3); transition: 0.3s;}
.read-p-card:hover .read-p-code { background: rgba(59, 95, 205, 0.1); border-color: var(--primary);}

.read-p-btns { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; margin-top: auto; }
.read-btn { padding: 12px; border: none; border-radius: 10px; font-weight: 700; font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); text-decoration: none; position: relative; overflow: hidden;}
.read-btn::before { content: ''; position: absolute; top: 0; left: -100%; width: 100%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent); transition: left 0.5s ease;}
.read-btn:hover::before { left: 100%; }
.read-btn-copy { background: var(--primary); color: white; box-shadow: 0 4px 15px rgba(59, 95, 205, 0.3); border: 1px solid var(--primary-dark);}
.read-btn-copy:hover { transform: translateY(-3px); background: var(--primary-dark); box-shadow: 0 8px 20px rgba(59, 95, 205, 0.5);}
.read-btn-copy:active { transform: scale(0.95); }
.read-btn-dl { background: white; border: 1px solid rgba(59, 95, 205, 0.4); color: var(--primary); }
.read-btn-dl:hover { background: rgba(59, 95, 205, 0.05); border-color: var(--primary); color: var(--primary); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(59, 95, 205, 0.2);}

.read-auth-row { display: flex; align-items: center; gap: 15px; background: white; padding: 15px 30px; border-radius: 100px; border: 1px solid rgba(59, 95, 205, 0.2); margin: 40px auto 0; width: fit-content; box-shadow: 0 10px 30px rgba(59, 95, 205, 0.1); transition: 0.4s; animation: fadeUpCard 0.8s ease backwards 0.4s;}
.read-auth-row:hover { transform: translateY(-5px); box-shadow: 0 15px 40px rgba(59, 95, 205, 0.2); border-color: rgba(59, 95, 205, 0.4);}

@media (max-width: 768px) {
    .read-container { margin-top: 80px; padding: 0 15px; }
    .read-content-body { padding: 25px 20px; font-size: 15px; border-radius: 16px; }
    .read-title { font-size: 24px; } .read-sec-title { font-size: 18px; }
    .read-meta-pill { padding: 6px 15px; font-size: 11px; gap: 10px; width: 100%; justify-content: flex-start; }
    .read-p-card { flex-direction: column; border-radius: 16px; }
    .read-p-vis { width: 100%; min-height: 250px; border-right: none; border-bottom: 1px solid rgba(59, 95, 205, 0.2); }
    .read-p-content { width: 100%; padding: 20px; }
    .read-p-btns { grid-template-columns: 1fr; } 
}