/* =========================================  */
/* --- 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: #7CA84A; /* Darker green for visibility */ 
    text-decoration: none;
    box-shadow: 0 2px 5px rgba(168, 223, 104, 0.3);
    border: 1px solid #A8DF68; 
    z-index: 5;
    transition: all 0.3s ease;
}

/* Icon size yahan se bada hoga */
.nav-gallery-btn i {
    font-size: 16px; /* Icon ko bada kiya (11px -> 16px) */
    margin-left: 1px; /* Center alignment balance */
    display: flex;
    align-items: center;
    justify-content: center;
}

.play-mini-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: #A8DF68;
    border-radius: 50%;
    z-index: -1;
    opacity: 0.08;
    animation: softGlow 3s infinite ease-in-out;
}

@keyframes softGlow {
    0% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.15); opacity: 0.02; }
    100% { transform: scale(1); opacity: 0.1; }
}

.gallery-text {
    font-size: 9px;
    font-weight: 800;
    color: #7CA84A;
    margin-top: 2px;
}

.nav-gallery-btn.active {
    background: rgba(168, 223, 104, 0.15) !important;
    transform: scale(1.05);
    border-color: #FA9A5A; /* Accent color slightly used */
}

/* ------------------------------------------------*/
    .read-p-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
}

.read-tag {
    display: inline-block;
    background: rgba(168, 223, 104, 0.15); /* Light Green Background */
    color: #5E8A2A; /* Primary Dark Green Text */
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid rgba(168, 223, 104, 0.3);
}

.read-tag:hover {
    background: #A8DF68;
    color: #1e293b; /* Dark text for visibility */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(168, 223, 104, 0.3);
}
/* ==========================================================
   FACE CONSISTENCY TOOL CSS (GREEN & RED DESIGN)
   ========================================================== */
.face-ref-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 25px;
}

.face-ref-header {
    font-size: 15px;
    font-weight: 800;
    color: #2C2D2F; 
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.face-ref-actions {
    display: flex;
    gap: 10px;
}

/* Green Copy Button */
.btn-face-copy {
    flex: 1;
    background: #A8DF68;
    color: #1e293b;
    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: 0.2s;
}
.btn-face-copy:hover { background: #7CA84A; color: white; }

/* Orange Outline Full View Button */
.btn-face-view {
    flex: 1;
    background: white;
    color: #FA9A5A;
    border: 1px solid #FA9A5A;
    padding: 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: 0.2s;
}
.btn-face-view:hover { background: rgba(250, 154, 90, 0.1); }

/* Hidden Content Box */
.face-hidden-content {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
}

.face-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: #64748b;
    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: #A8DF68; color: #1e293b; 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.2s; }
.btn-face-copy:hover { background: #7CA84A; color: white; transform: translateY(-2px); }
.btn-face-view { background: transparent; border: 1px solid #FA9A5A; color: #FA9A5A; 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.2s; }
.btn-face-view:hover { background: rgba(250, 154, 90, 0.1); border-color: #FA9A5A; color: #FA9A5A; }
.face-hidden-content { display: none; margin-top: 15px; padding-top: 15px; border-top: 1px dashed #FA9A5A; animation: fadeIn 0.3s ease; }
.face-label { display: block; font-size: 11px; text-transform: uppercase; font-weight: 800; color: #FA9A5A; margin-bottom: 5px; }
.face-text { font-size: 13px; color: #374151; line-height: 1.6; margin-bottom: 15px; font-family: monospace; background: rgba(168, 223, 104, 0.08); padding: 10px; border-radius: 8px; border: 1px solid rgba(168, 223, 104, 0.2); }

.glass-card { background: white; border: 1px solid #e2e8f0; box-shadow: 0 10px 30px rgba(168, 223, 104, 0.05); border-radius: 20px; padding: 30px; margin-top: 25px; }
.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; }
.faq-question { background: #f8fafc; padding: 15px; border-radius: 10px; cursor: pointer; font-weight: 600; color: #334155; position: relative; list-style: none; }
.faq-question::after { content: '+'; position: absolute; right: 20px; font-size: 18px; color: #7CA84A; }
details[open] .faq-question::after { content: '-'; }
.faq-answer { padding: 15px; color: #64748b; line-height: 1.6; font-size: 15px; }
@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(168, 223, 104, 0.12);
    --glass-blur: blur(12px);
    
    --primary: #A8DF68;
    --primary-dark: #7CA84A;
    --primary-gradient: linear-gradient(135deg, #A8DF68 0%, #8CC24A 100%);
    
    --text-main: #1e293b;
    --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(88, 60%, 50%, 0.05) 0, transparent 50%), 
        radial-gradient(at 50% 0%, hsla(24, 95%, 55%, 0.05) 0, transparent 50%), 
        radial-gradient(at 100% 0%, hsla(88, 60%, 50%, 0.05) 0, transparent 50%);
    background-color: var(--bg-body);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(168, 223, 104, 0.1) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, rgba(250, 154, 90, 0.1) 0%, transparent 20%);
    background-attachment: fixed;
    color: var(--text-main);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    /* Added padding bottom for mobile nav */
    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);
}

.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-dark); }
.desktop-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-gradient);
    border-radius: 2px;
}

.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.3s ease;
}
.btn-submit:hover {
    background: var(--primary);
    color: #1e293b !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 223, 104, 0.3);
}

/* Mobile Header Styles */
/* --- NEW MODERN MOBILE HEADER (App Style) --- */
.mobile-header-modern {
    display: none; /* Desktop par hide */
    position: fixed;
    top: 15px;
    left: 15px;
    right: 15px;
    height: 60px;
    background: rgba(255, 255, 255, 0.85); /* Glass Translucency */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 50px; /* Pill Shape */
    box-shadow: 0 8px 32px rgba(168, 223, 104, 0.15);
    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.3s ease;
}

/* Scroll hone par thoda shrink hoga (Dynamic feel) */
.mobile-header-modern.scrolled {
    top: 10px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 15px rgba(168, 223, 104, 0.2);
}

.mobile-logo-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-weight: 800;
    font-size: 18px;
    color: #1e293b;
}

.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: background 0.2s;
}

.header-icon-btn:hover {
    background: rgba(168, 223, 104, 0.2);
    color: var(--primary-dark);
}

/* Mobile par visible karein */
@media (max-width: 768px) {
    .header { display: none; } /* Old Desktop Header Hide */
    .mobile-header { display: none; } /* Old Mobile Header Hide */
    .mobile-header-modern { display: flex; } /* New Header Show */
    
    /* Body padding adjust taaki content header ke piche na chupe */
    body { padding-top: 40px; } 
    
    /* Search Bar ko thoda niche khiskana padega */
    .hero { padding-top: 80px; }
}



/* --- NEW POPUP MENU STYLES (REPLACING OLD SLIDE MENU) --- */
.menu-overlay-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6); /* Darker Dim */
    backdrop-filter: blur(8px);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s 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(168, 223, 104, 0.3);
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    border: 1px solid rgba(168, 223, 104, 0.3);
}

.menu-overlay-popup.active .popup-card {
    transform: scale(1) translateY(0);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(168, 223, 104, 0.2);
}

.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: 0.2s;
}

.popup-close:active { transform: scale(0.9); background: #e2e8f0; }

.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: 0.2s;
}

.popup-item:active { transform: scale(0.98); background: #f8fafc; }
.popup-item:hover { background: rgba(168, 223, 104, 0.1); border-color: rgba(168, 223, 104, 0.3); }

.popup-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.pi-blue { background: rgba(168, 223, 104, 0.2); color: #7CA84A; }
.pi-green { background: rgba(168, 223, 104, 0.2); color: #A8DF68; }
.pi-orange { background: rgba(250, 154, 90, 0.15); color: #FA9A5A; }
.pi-purple { background: rgba(168, 223, 104, 0.1); color: #5E8A2A; }
.pi-red { background: rgba(250, 154, 90, 0.1); color: #FA9A5A; }

.popup-arrow { margin-left: auto; color: #cbd5e1; font-size: 12px; }

.popup-submit {
    margin-top: 15px;
    background: var(--primary-gradient);
    color: #1e293b !important;
    justify-content: center;
    border: none;
    box-shadow: 0 10px 20px -5px rgba(168, 223, 104, 0.4);
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    font-weight: 700;
    text-decoration: none;
}

/* Mobile Stats */
.mobile-stats {
    display: none; /* Desktop par hide */
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 12px 15px;
    
    /* --- YE LINE ADD KARNI HAI --- */
    margin: 90px 20px 15px 20px; /* Top margin 90px kar diya */
    /* ----------------------------- */
    
    text-align: center;
    box-shadow: 0 4px 15px rgba(168, 223, 104, 0.1);
    border: 1px solid rgba(168, 223, 104, 0.3);
    position: relative;
    z-index: 1;
}

.mobile-stats span {
    font-size: 13px;
    font-weight: 700;
    color: var(--primary-dark);
    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, #1e293b, #7CA84A);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
}

.hero p { 
    color: var(--text-sub); 
    font-size: 1.1rem; 
    max-width: 600px; 
    margin: 0 auto 30px; 
    line-height: 1.6;
}

/* 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-dark);
    box-shadow: 0 4px 15px rgba(168, 223, 104, 0.2);
    margin-bottom: 20px;
    border: 1px solid rgba(168, 223, 104, 0.3);
    backdrop-filter: blur(10px);
}

.total-badge i {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); color: var(--accent); }
}

/* --- Search Bar (Floating) --- */
.search-wrapper {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 18px 24px;
    padding-right: 60px;
    border-radius: 50px;
    border: 1px solid rgba(168, 223, 104, 0.3);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 40px -10px rgba(168, 223, 104, 0.1);
    font-size: 16px;
    outline: none;
    transition: 0.3s;
    font-family: inherit;
}

.search-input:focus {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px -10px rgba(168, 223, 104, 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: #1e293b;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-btn:hover { 
    transform: scale(1.1); 
    box-shadow: 0 0 20px rgba(168, 223, 104, 0.5);
}

/* --- CATEGORY SLIDER -------------------------------------- */

/* --- NEW PILL STYLE SLIDER CSS --- */
.category-slider-section {
    position: relative;
    max-width: 1400px;
    margin: 10px auto 15px;
    padding: 0 10px;
}

.category-slider-wrapper {
    position: relative;
    background: #ffffff;
    border-radius: 50px;
    padding: 4px;
    box-shadow: 0 2px 10px rgba(168, 223, 104, 0.1);
    border: 1px solid rgba(168, 223, 104, 0.2);
    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 #f1f5f9;
    color: #475569;
    text-decoration: none;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    white-space: nowrap;
    cursor: pointer;
    height: 28px;
}

.category-slider-item:hover {
    background: rgba(168, 223, 104, 0.1);
    border-color: var(--primary-dark);
}

/* Active State (Blue Button) */
.category-slider-item.active {
    background: var(--primary);
    color: #1e293b !important;
    border-color: var(--primary);
}

.category-slider-item.active i {
    color: #1e293b !important; 
}

/* Sort Button Styling */
.category-slider-item.sort-btn {
    border-right: 1px solid #e2e8f0;
    margin-right: 2px;
    background: #f8fafc;
    color: #334155;
}

/* --- COUNT BADGE (FIXED) --- */
.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(168, 223, 104, 0.2);
    color: var(--primary-dark);
    margin-left: 2px;
    line-height: 1;
}

/* Active hone par Badge ka color */
.category-slider-item.active .count-badge {
    background: rgba(255, 255, 255, 0.5);
    color: #1e293b;
}

/* --- TRANSPARENT ARROWS --- */
.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;
}

.slider-nav-btn:hover {
    color: var(--primary-dark);
    background: rgba(168, 223, 104, 0.2);
}

.slider-nav-btn.prev { left: 2px; }
.slider-nav-btn.next { right: 2px; }

/* Mobile CSS */
@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 --- */

/* --- MAIN GRID SYSTEM (UPDATED TO 4 COLUMNS) --- */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Laptop/Desktop par 4 Columns */
    gap: 24px;
    padding-bottom: 60px;
}

.prompt-card {
    background: white;
    border-radius: var(--radius-lg);
    display: flex;         /* Flex use kiya taaki card barabar height ke ho */
    flex-direction: column;
    margin-bottom: 0;       /* Gap grid sambhal lega */
    border: 1px solid rgba(168, 223, 104, 0.3);
    box-shadow: 0 10px 30px -10px rgba(168, 223, 104, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    height: 100%; /* Height full rakhein */
}

.prompt-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -10px rgba(168, 223, 104, 0.3), 0 0 20px rgba(250, 154, 90, 0.15);
    border-color: var(--primary);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio (Square Images) */
    overflow: hidden;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-image-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.prompt-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

/* --- RESPONSIVE BREAKPOINTS --- */

/* Chhote Laptop/Tablet (Landscape) par 3 Columns */
@media (max-width: 1100px) { 
    .masonry-grid { grid-template-columns: repeat(3, 1fr); } 
    .hero h1 { font-size: 2.5rem; }
}

/* Tablet (Portrait) par 2 Columns */
@media (max-width: 768px) { 
    .masonry-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- MOBILE STYLES (UPDATED TO 1 COLUMN) --- */
@media (max-width: 480px) { 
    .masonry-grid { 
        /* 2 ki jagah 1 kar diya */
        grid-template-columns: repeat(1, 1fr) !important; 
        
        /* Gap thoda badha diya taaki saaf dikhe */
        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; /* Text hide karein space bachane ke liye */
    }
    
    .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;
    }
    
    .mobile-nav-links a {
        font-size: 16px;
        padding: 10px 12px;
    }
}

/* --- NEW 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 8px rgba(168, 223, 104, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    border: 1px solid rgba(168, 223, 104, 0.4);
    pointer-events: auto;
    text-decoration: none;
    color: var(--text-main);
}

.model-tag-ai {
    color: var(--primary-dark);
    border-color: rgba(168, 223, 104, 0.6);
}

a.model-tag:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(168, 223, 104, 0.4);
    background: var(--primary);
    color: #1e293b;
}

.card-body { 
    padding: 18px; 
    background: white;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

/* --- DESKTOP VIEW (Default) --- */
.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.2s;
}
.prompt-card:hover .card-title { color: var(--primary-dark); }

/* --- NEW LOGO ICON STYLE (Common for Desktop & Mobile) --- */
.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.3s ease;
}

/* Hover Effect */
a:hover .logo-icon-box img {
    transform: scale(1.1); 
}

/* --- MOBILE VIEW (Phone) --- */
@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(168, 223, 104, 0.3);
}

.prompt-text {
    background: rgba(168, 223, 104, 0.05);
    padding: 10px;
    border-radius: 8px;
    font-size: 12px;
    color: var(--text-sub);
    font-family: monospace;
    margin-bottom: 15px;
    border: 1px dashed rgba(168, 223, 104, 0.3);
    max-height: 80px;
    overflow: hidden;
    position: relative;
    line-height: 1.4;
    transition: border-color 0.3s;
}
.prompt-card:hover .prompt-text { border-color: rgba(168, 223, 104, 0.6); }

.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;
}

.btn-action {
    flex: 1;
    padding: 10px;
    border: 1px solid rgba(168, 223, 104, 0.4);
    background: white;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.btn-action:hover {
    background: rgba(250, 154, 90, 0.05);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-copy {
    background: var(--primary);
    color: #1e293b;
    border: 1px solid var(--primary-dark);
    font-weight: 600;
}
.btn-copy:hover { 
    background: var(--primary-dark); 
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(168, 223, 104, 0.4);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 40px 20px 80px 20px; 
    color: var(--text-sub);
    font-size: 14px;
    background: white;
    border-top: 1px solid rgba(168, 223, 104, 0.2);
    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;
}

.footer-links a:hover {
    color: var(--primary-dark);
}

/* --- Toast --- */
#toast {
    position: fixed;
    bottom: 90px; 
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #1e293b;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    box-shadow: 0 10px 30px rgba(168, 223, 104, 0.3);
    border: 1px solid var(--primary);
    opacity: 0;
    transition: 0.3s;
    z-index: 1100;
    display: flex;
    align-items: center;
    gap: 8px;
}
#toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* --- MOBILE BOTTOM NAVIGATION --- */
.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(168, 223, 104, 0.2);
        justify-content: space-around;
        padding: 10px 0;
        z-index: 1005;
        box-shadow: 0 -5px 20px rgba(168, 223, 104, 0.1);
    }
    
    .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;
    }
    
    .nav-item i {
        font-size: 20px;
        margin-bottom: 2px;
        transition: transform 0.2s ease;
    }
    
    /* Active & Icon Colors */
    .nav-item:nth-child(1) i, .nav-item:nth-child(3) i, .nav-item:nth-child(5) i { color: var(--primary); }
    .nav-item:nth-child(2) i, .nav-item:nth-child(4) i { color: var(--accent); }
    
    .nav-item.active { color: #1e293b; }
    
    .nav-item:active i {
        transform: scale(0.9);
    }

    .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;
    }
}

/* --- 2-COLUMN MOBILE GRID STYLES --- */
@media (max-width: 1024px) { 
    .masonry-grid { column-count: 3; } 
    .hero h1 { font-size: 2.5rem; }
}

@media (max-width: 768px) { 
    .masonry-grid { column-count: 2; }
}


/* =========================================
   ONLY FOR EXPLORE PAGE: 2x2 MOBILE GRID (SUPER POWER)
   ========================================= */
@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(168, 223, 104, 0.3);
    box-shadow: 0 4px 15px rgba(168, 223, 104, 0.1);
    display: flex;
    flex-direction: column;
    width: 100%;
    transition: all 0.3s ease;
}
.new-prompt-card:hover {
    border-color: rgba(168, 223, 104, 0.6);
    box-shadow: 0 10px 25px rgba(168, 223, 104, 0.2);
    transform: translateY(-4px);
}

.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.3s ease;
}
.new-prompt-card:hover .new-card-image img {
    transform: scale(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 ease;
}
.new-prompt-card:hover .new-card-title { color: var(--primary-dark); }

/* Tag Row */
.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.2s ease;
    background: rgba(168, 223, 104, 0.2);
    color: var(--primary-dark);
}
.new-inline-tag:hover {
    transform: scale(1.05);
    background: var(--primary);
    color: #1e293b;
}

/* Meta Data */
.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;
}

/* Prompt Box Design */
.new-prompt-box {
    background: #ffffff;
    border: 1px dashed rgba(168, 223, 104, 0.4);
    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-dark); background: rgba(168, 223, 104, 0.05); }

.new-prompt-box::-webkit-scrollbar { width: 4px; }
.new-prompt-box::-webkit-scrollbar-thumb { background: rgba(168, 223, 104, 0.5); border-radius: 4px; }

/* Buttons Footer */
.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.2s ease;
}

/* White Buttons (View & Like) */
.new-btn-white {
    background: #ffffff;
    color: var(--primary-dark);
    border: 1px solid rgba(168, 223, 104, 0.5);
}
.new-btn-white:hover {
    background: rgba(250, 154, 90, 0.05);
    border-color: var(--accent);
    color: var(--accent);
}

/* Dark Green Button (Copy) */
.new-btn-dark {
    background: var(--primary);
    color: #1e293b;
    border: 1px solid var(--primary-dark);
}
.new-btn-dark:hover {
    background: var(--primary-dark);
    color: white;
}

/* Like hone ke baad ka effect */
.stat-like-btn.liked {
    color: var(--accent);
    border-color: rgba(250, 154, 90, 0.4);
    background: rgba(250, 154, 90, 0.1);
}
.stat-like-btn.liked i {
    font-weight: 900;
    animation: pop 0.3s ease;
}

/* 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) { 
    /* 1. Main Grid: 1 Post Per Row (Bada Card) */
    .masonry-grid {
        grid-template-columns: repeat(1, 1fr) !important;
        display: grid !important;
        gap: 24px !important; 
    }

    /* 2. Card Styling (Bada aur Clean) */
    .prompt-card {
        width: 100% !important;
        margin-bottom: 15px;
        border-radius: 16px; 
        box-shadow: 0 10px 30px -10px rgba(168, 223, 104, 0.15); 
    }

    .card-body {
        padding: 18px !important; 
    }

    /* 3. IMPORTANT: Prompt Text Show Karein */
    .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(168, 223, 104, 0.3);
    }

    /* 4. Title Size (Laptop jaisa bada) */
    .card-title {
        font-size: 16px !important; 
        height: auto !important;    
        margin-bottom: 10px !important;
        line-height: 1.4 !important;
    }

    /* 5. Buttons Styling (Bade Buttons) */
    .card-footer {
        gap: 10px !important;
    }
    
    .btn-action {
        padding: 10px !important; 
        font-size: 13px !important;
        border-radius: 8px !important;
    }

    /* Other necessary mobile fixes */
    .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(168, 223, 104, 0.2);
    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: #1e293b;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 4px 15px rgba(168, 223, 104, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(168, 223, 104, 0.6);
}

/* --- FIXED SORT MODAL STYLE --- */
.custom-sort-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    width: 90%;
    max-width: 320px;
    background: white;
    border-radius: 20px;
    z-index: 1002;
    box-shadow: 0 25px 50px -12px rgba(168, 223, 104, 0.3);
    opacity: 0;
    transition: all 0.2s ease-out;
    border: 1px solid rgba(168, 223, 104, 0.2);
}

.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(168, 223, 104, 0.2);
}

.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;
}

.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: background 0.2s;
}

.sort-option-item:hover {
    background: rgba(168, 223, 104, 0.1);
    color: var(--primary-dark);
}

.sort-option-item.active {
    color: var(--primary-dark);
    background: rgba(168, 223, 104, 0.2);
    font-weight: 600;
}

.sort-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}
  
/* Like Button Style */
.btn-like.liked i { font-weight: 900; color: var(--accent); animation: pop 0.3s ease; }
.btn-like.liked { background: rgba(250, 154, 90, 0.1); border-color: var(--accent); color: var(--accent); }
@keyframes pop { 0% { transform: scale(1); } 50% { transform: scale(1.3); } 100% { transform: scale(1); } }


/* --- WIDE FOOTER RESTORED (Original Layout) --- */
.small-footer {
    background: #ffffff;
    border-top: 1px solid rgba(168, 223, 104, 0.2);
    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;
}

.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: color 0.2s ease;
}

.footer-links-compact a:hover {
    color: var(--primary-dark); 
}

/* --- MOBILE RESPONSIVE --- */
@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 (Positioning) --- */
.stats-wrapper {
    display: flex;
    justify-content: center;
    width: 100%;
    position: relative;
    z-index: 10;
    margin-top: 55px; 
    margin-bottom: 15px;
}

/* Laptop/Desktop Adjustments */
@media (min-width: 768px) {
    .stats-wrapper {
        margin-top: 40px;  
        margin-bottom: 25px;
    }
}

/* --- 2. BASE DESIGN (Mobile First) --- */
.premium-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    
    background: rgba(255, 255, 255, 0.6); 
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(168, 223, 104, 0.4);
    
    padding: 8px 12px 8px 16px; 
    border-radius: 100px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(168, 223, 104, 0.1);
    transition: all 0.4s ease;
    max-width: 90%; 
}

@media (min-width: 768px) {
    .premium-pill {
        background: rgba(255, 255, 255, 0.8); 
        padding: 10px 24px; 
        gap: 15px; 
        border: 1px solid rgba(168, 223, 104, 0.3); 
    }

    .premium-pill:hover {
        transform: translateY(-3px) scale(1.02); 
        background: #ffffff;
        box-shadow: 0 10px 30px rgba(168, 223, 104, 0.25); 
        border-color: rgba(168, 223, 104, 0.6);
    }
}

.pp-icon {
    color: var(--accent); 
    font-size: 14px;
    animation: bounce 2s infinite;
}

@media (min-width: 768px) {
    .pp-icon { font-size: 18px; } 
}

.pp-text {
    font-size: 13px;
    color: var(--primary-dark); 
    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: #1e293b; 
    font-weight: 800;
    position: relative;
}

@media (min-width: 768px) {
    .pp-count::after {
        content: "";
        display: inline-block;
        width: 1px;
        height: 14px;
        background: rgba(168, 223, 104, 0.5); 
        margin-left: 12px;
        vertical-align: middle;
        transform: translateY(-1px);
    }
}

.pp-arrow {
    background: transparent; 
    font-size: 18px;
    display: flex;
    align-items: center;
    transition: transform 0.3s ease;
    padding-left: 4px;
    color: var(--text-sub);
}

@media (min-width: 768px) {
    .pp-arrow { font-size: 22px; } 
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.premium-pill:hover .pp-arrow {
    transform: translateY(-4px) rotate(-45deg);
    color: var(--primary-dark);
}

/* --- Hero Title Design --- */
.hero-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(to right, #1e293b, var(--primary), #1e293b);
    -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;
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;   
        font-weight: 800;    
        letter-spacing: -1.5px;
        margin-bottom: 20px;
        line-height: 1.1;
    }
}


/* --- MOBILE BOTTOM NAVIGATION (Colorful Edition) --- */
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 65px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(168, 223, 104, 0.2);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 9999;
    box-shadow: 0 -5px 20px rgba(168, 223, 104, 0.1);
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 10px;
    font-weight: 600;
    color: #94a3b8; 
    gap: 5px;
    width: 20%;
    height: 100%;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 20px;
    margin-bottom: 2px;
    transition: transform 0.2s;
}

/* --- ICON COLORS (Always Visible - Green & Orange) --- */
.nav-item:nth-child(1) i, .nav-item:nth-child(3) i, .nav-item:nth-child(5) i { color: var(--primary); }
.nav-item:nth-child(2) i, .nav-item:nth-child(4) i { color: var(--accent); }

.nav-item:nth-child(1).active, .nav-item:nth-child(3).active, .nav-item:nth-child(5).active { color: var(--primary-dark); }
.nav-item:nth-child(2).active, .nav-item:nth-child(4).active { color: var(--accent); }

.nav-item:active i {
    transform: scale(0.9);
}

@media (min-width: 768px) {
    .mobile-bottom-nav {
        display: none !important;
    }
}

/* --- MICRO GRID & BUTTONS CSS --- */
.view-all-pill {
    padding: 5px 12px;
    border-radius: 20px;
    background: white;
    border: 1px solid rgba(168, 223, 104, 0.4);
    color: var(--primary-dark);
    font-weight: 600;
    font-size: 11px;
    text-decoration: none;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.view-all-pill:hover { border-color: var(--primary-dark); color: var(--primary-dark); background: rgba(168, 223, 104, 0.1); }

.refresh-pill {
    padding: 5px 12px;
    border-radius: 20px;
    background: rgba(168, 223, 104, 0.15); 
    border: 1px solid rgba(168, 223, 104, 0.3);
    color: var(--primary-dark); 
    cursor: pointer;
    font-weight: 600;
    font-size: 11px;
    font-family: inherit;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 5px;
}
.refresh-pill:hover { background: var(--primary); color: #1e293b; border-color: var(--primary-dark); }
.refresh-pill:hover i { transform: rotate(180deg); transition: transform 0.4s ease; }

.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 5px rgba(168, 223, 104, 0.1); }
.micro-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; filter: brightness(0.95); }
.micro-card:hover img { transform: scale(1.1); filter: brightness(1.05); }

@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-dark); }
.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(168, 223, 104, 0.3); box-shadow: var(--glass-shadow);
    position: sticky; top: 100px; display: flex; flex-direction: column;
}
.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; 
}
.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(168, 223, 104, 0.2);
    color: var(--text-main); z-index: 2; border: 1px solid rgba(168, 223, 104, 0.3);
}
.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(168, 223, 104, 0.2);
    transition: all 0.2s ease; border: 1px solid rgba(168, 223, 104, 0.3);
}
.image-overlay-like:hover { transform: scale(1.1); background: white; color: var(--accent); border-color: var(--accent); }
.image-overlay-like.liked-active { color: var(--accent); background: white; border-color: var(--accent); }
.image-overlay-like.liked-active i { animation: pop 0.3s 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-dark));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 10px;
}
.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(168, 223, 104, 0.3); box-shadow: var(--glass-shadow);
}
.stat-item { text-align: center; }
.stat-val { display: block; font-size: 20px; font-weight: 700; color: var(--primary-dark); 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(168, 223, 104, 0.3); border-radius: var(--radius-md);
    padding: 20px; position: relative; box-shadow: var(--glass-shadow);
}
.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-dark); 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(168, 223, 104, 0.05); padding: 15px; border-radius: 8px; border: 1px dashed rgba(168, 223, 104, 0.4);
    margin-bottom: 15px; max-height: 100px; overflow-y: auto; white-space: pre-wrap;
}
.prompt-text::-webkit-scrollbar { width: 6px; }
.prompt-text::-webkit-scrollbar-thumb { background: rgba(168, 223, 104, 0.5); 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: 0.2s; text-decoration: none;
}
.btn-primary { background: var(--primary); color: #1e293b; box-shadow: 0 4px 15px rgba(168, 223, 104, 0.3); border: 1px solid var(--primary-dark);}
.btn-primary:hover { transform: translateY(-2px); background: var(--primary-dark); color: white; }
.btn-outline { background: white; border: 1px solid rgba(168, 223, 104, 0.5); color: var(--primary-dark); }
.btn-outline:hover { background: rgba(168, 223, 104, 0.1); border-color: var(--primary-dark); transform: translateY(-2px); }
.btn-copy-sm {
    background: rgba(168, 223, 104, 0.2); border: 1px solid rgba(168, 223, 104, 0.3); padding: 6px 12px; border-radius: 6px; font-size: 12px;
    cursor: pointer; color: var(--primary-dark); font-weight: 600;
}
.btn-copy-sm:hover { background: var(--primary); color: #1e293b; }

.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(168, 223, 104, 0.3); text-decoration: none; transition: 0.2s;
}
.tag-pill:hover { border-color: var(--primary-dark); color: #1e293b; background: var(--primary); transform: translateY(-2px); }

.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);
}

/* --- FIX FOR HOME PAGE PROMPT TEXT SCROLL --- */
.prompt-text-preview {
    background: rgba(168, 223, 104, 0.05); padding: 10px; border-radius: 8px; font-size: 12px; color: var(--text-sub);
    font-family: monospace; margin-bottom: 15px; border: 1px dashed rgba(168, 223, 104, 0.4);
    max-height: 80px !important; 
    overflow-y: auto !important; 
    overflow-x: hidden !important;
    white-space: pre-wrap !important;
}
.prompt-text-preview::after { display: none !important; }
.prompt-text-preview::-webkit-scrollbar { width: 4px; }
.prompt-text-preview::-webkit-scrollbar-thumb { background: rgba(168, 223, 104, 0.5); border-radius: 4px; }

.btn-card-action {
    flex: 1; padding: 10px; border: 1px solid rgba(168, 223, 104, 0.4); background: white; border-radius: 10px;
    font-size: 13px; font-weight: 600; color: var(--primary-dark); cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    text-decoration: none; transition: 0.2s;
}
.btn-card-action:hover { background: rgba(168, 223, 104, 0.1); border-color: var(--primary-dark); }
.btn-card-copy { background: var(--primary); color: #1e293b; border: 1px solid var(--primary-dark); font-weight: 600; }
.btn-card-copy:hover { background: var(--primary-dark); color: white; }

.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);
}
.lightbox img { max-width: 90%; max-height: 90vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(168, 223, 104, 0.3); }
.close-lb { position: absolute; top: 30px; right: 30px; font-size: 40px; border: none; background: none; cursor: pointer; color: var(--text-main); }

@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(168, 223, 104, 0.05) !important;
    border: 1px dashed rgba(168, 223, 104, 0.3) !important;
}
.prompt-card:hover .prompt-text { border-color: rgba(168, 223, 104, 0.6) !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(168, 223, 104, 0.5); 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(168, 223, 104, 0.2); padding: 6px 16px; border-radius: 100px;
    font-size: 12px; font-weight: 700; color: var(--primary-dark);
    margin-bottom: 15px; border: 1px solid rgba(168, 223, 104, 0.4);
}

.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(--accent); /* Orange */
    box-shadow: 0 2px 10px rgba(168, 223, 104, 0.1); border: 1px solid rgba(168, 223, 104, 0.2); transition: 0.3s; text-decoration: none;
}
.filter-pill:hover { transform: translateY(-2px); color: var(--primary-dark); border-color: var(--primary-dark); }
.filter-pill.active { background: var(--primary); color: #1e293b; border-color: var(--primary); }

.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(168, 223, 104, 0.15); transition: all 0.3s ease;
    border: 1px solid rgba(168, 223, 104, 0.2); display: flex; flex-direction: column; height: 100%; text-decoration: none;
}
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px -10px rgba(168, 223, 104, 0.3); border-color: rgba(168, 223, 104, 0.5);}

.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.5s ease; }
.blog-card:hover .blog-single-img { transform: scale(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.4s ease; }
.blog-card-collage a:hover img { transform: scale(1.08); 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(--accent); 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(--accent); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; transition: color 0.3s ease;
}
.blog-card:hover .blog-card-title { color: var(--primary-dark); }
.blog-card-excerpt {
    font-size: 13px; color: var(--accent); 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(168, 223, 104, 0.4); display: flex; justify-content: space-between; align-items: center; transition: border-color 0.3s ease;}
.blog-card:hover .blog-card-footer { border-color: rgba(168, 223, 104, 0.8); }
.blog-read-btn { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--primary-dark); transition: 0.2s; }
.blog-card:hover .blog-read-btn { gap: 8px; color: var(--accent); }

.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(168, 223, 104, 0.2); border: 1px solid rgba(168, 223, 104, 0.3); transition: 0.3s ease;
}
.blog-cta-box:hover { transform: translateY(-5px); box-shadow: 0 15px 40px -10px rgba(168, 223, 104, 0.4); border-color: rgba(168, 223, 104, 0.5); }
.blog-cta-btn {
    display: inline-flex; align-items: center; gap: 8px; background: var(--primary-gradient); color: #1e293b;
    padding: 12px 28px; border-radius: 50px; font-weight: 700; margin-top: 15px; transition: 0.3s; text-decoration: none; border: 1px solid var(--primary-dark);
}
.blog-cta-btn:hover { transform: translateY(-3px); box-shadow: 0 10px 20px rgba(168, 223, 104, 0.5); background: var(--primary-dark); color: white;}

@media (max-width: 768px) {
    .blog-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* =========================================
   SINGLE BLOG POST (READ.PHP) STYLES
   ========================================= */
.screenshot-container {
    background: rgba(168, 223, 104, 0.05); padding: 5px; border-radius: 16px; border: 1px solid rgba(168, 223, 104, 0.3); margin-bottom: 40px;
}
.screenshot-title { text-align: center; font-size: 32px; font-weight: 800; color: var(--accent); 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; }
.screenshot-img { width: 100%; height: 100%; object-fit: cover; display: block; }

.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; }
.read-header { text-align: center; margin-bottom: 40px; max-width: 800px; margin-left: auto; margin-right: auto; }
.read-meta-pill { 
    display: inline-flex; flex-wrap: wrap; gap: 20px; background: white; padding: 8px 24px; justify-content: center;
    border-radius: 100px; border: 1px solid rgba(168, 223, 104, 0.4); margin-bottom: 20px; 
    font-size: 13px; font-weight: 600; color: var(--accent); box-shadow: 0 4px 10px rgba(168, 223, 104, 0.1);
}
.read-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; color: var(--accent); }

.read-cover-box { 
    border-radius: 24px; overflow: hidden; margin-bottom: 40px; 
    border: 4px solid white; box-shadow: 0 10px 30px -10px rgba(168, 223, 104, 0.3); background: white;
}
.read-c-img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.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(168, 223, 104, 0.8); color: #1e293b; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 24px; backdrop-filter: blur(4px); }

.read-content-body {
    background: white; padding: 50px; border-radius: 24px; 
    box-shadow: 0 4px 20px rgba(168, 223, 104, 0.1); border: 1px solid rgba(168, 223, 104, 0.2);
    font-size: 17px; color: var(--accent); line-height: 1.8;
}
.read-content-body p { margin-bottom: 24px; }
.read-content-body h2 { font-size: 24px; font-weight: 800; margin: 40px 0 20px; color: var(--accent); 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; }

.read-prompt-sec { margin-top: 50px; border-top: 2px dashed rgba(168, 223, 104, 0.5); padding-top: 40px; }
.read-sec-title { text-align: center; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: var(--accent); margin-bottom: 30px; display: flex; align-items: center; justify-content: center; gap: 15px; }
.read-sec-title::before, .read-sec-title::after { content:''; height: 2px; width: 40px; background: rgba(168, 223, 104, 0.5); }

.read-p-card { background: white; border: 1px solid rgba(168, 223, 104, 0.3); border-radius: 20px; overflow: hidden; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(168, 223, 104, 0.1); display: flex; }
.read-p-vis { background: #f8fafc; height: auto; min-height: 300px; display: flex; flex-direction: column; border-right: 1px solid rgba(168, 223, 104, 0.3); width: 45%; padding: 20px; }
.read-p-num { 
    align-self: flex-start; background: rgba(255, 255, 255, 0.8); color: var(--primary-dark); 
    padding: 6px 14px; border-radius: 50px; font-weight: 800; font-size: 11px; text-decoration: none; margin-bottom: 15px; transition: 0.3s; display: inline-flex; align-items: center; border: 1px solid rgba(168, 223, 104, 0.4); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.read-p-num:hover { background: var(--primary); color: #1e293b; border-color: var(--primary); transform: translateY(-2px); }
.read-p-vis img { width: 100%; max-height: 400px; object-fit: contain; border-radius: 12px; margin: auto 0; }

.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(--accent); line-height: 1.3; }
.read-p-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 15px; }
.read-tag { background: rgba(168, 223, 104, 0.2); color: var(--primary-dark); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; transition: 0.2s ease;}
.read-tag:hover { background: var(--primary); color: #1e293b; }
.read-p-code { background: rgba(168, 223, 104, 0.1); color: var(--accent); 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(168, 223, 104, 0.4); }

.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: 0.2s; text-decoration: none; }
.read-btn-copy { background: var(--primary); color: #1e293b; box-shadow: 0 4px 10px rgba(168, 223, 104, 0.3); border: 1px solid var(--primary-dark);}
.read-btn-copy:hover { background: var(--primary-dark); color: white; }
.read-btn-dl { background: white; border: 1px solid rgba(168, 223, 104, 0.5); color: var(--primary-dark); }
.read-btn-dl:hover { background: rgba(168, 223, 104, 0.1); border-color: var(--primary-dark); color: var(--primary-dark); }

.read-auth-row { display: flex; align-items: center; gap: 15px; background: white; padding: 15px 30px; border-radius: 100px; border: 1px solid rgba(168, 223, 104, 0.3); margin: 40px auto 0; width: fit-content; box-shadow: 0 4px 10px rgba(168, 223, 104, 0.1);}

@media (max-width: 768px) {
    .read-container { margin-top: 55px; padding: 0 15px; }
    .read-content-body { padding: 25px 20px; font-size: 15px; border-radius: 16px; }
    .read-title { font-size: 26px; }
    .read-meta-pill { padding: 6px 15px; font-size: 11px; gap: 10px; width: 100%; }
    
    .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(168, 223, 104, 0.3); }
    .read-p-content { width: 100%; padding: 20px; }
    .read-p-btns { grid-template-columns: 1fr; } 
}