@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,400;0,700;0,900;1,400;1,700;1,900&display=swap');

:root {
    --vpg-bg: #0a0a0a;
    --vpg-card-bg: rgba(255, 255, 255, 0.03);
    --vpg-accent: #a855f7;
    --vpg-text-main: #ffffff;
    --vpg-text-dim: rgba(255, 255, 255, 0.6);
    --vpg-border: rgba(255, 255, 255, 0.08);
    --vpg-glass: rgba(10, 10, 10, 0.7);
}

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

body {
    background-color: var(--vpg-bg);
    color: var(--vpg-text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ─────────────────────────────────────────────────────────── */
/* CINEMATIC PRELOADER                                          */
/* ─────────────────────────────────────────────────────────── */
#vpg-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #0a0a0a;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000000;
}

.loader-percentage {
    font-family: 'Playfair Display', serif;
    font-size: 15vh;
    font-weight: 900;
    color: white;
    font-style: italic;
    line-height: 1;
}

/* ─────────────────────────────────────────────────────────── */
/* NAVIGATION BAR                                               */
/* ─────────────────────────────────────────────────────────── */
.vpg-navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--vpg-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    padding: 1.5rem 5%;
    border-bottom: 1px solid var(--vpg-border);
}

.vpg-navbar-content {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.vpg-brand {
    font-family: 'Playfair Display', serif;
    font-weight: 900;
    font-size: 1.5rem;
    letter-spacing: -0.01em;
}

/* Hamburger hidden on desktop */
.vpg-hamburger {
    display: none;
}

/* Mobile close hidden on desktop */
.vpg-mobile-close {
    display: none;
}

/* ─────────────────────────────────────────────────────────── */
/* HERO SECTION                                                */
/* ─────────────────────────────────────────────────────────── */
.vpg-hero {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 7rem 2rem 1rem 2rem;
    margin-bottom: 2rem;
    background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.05) 0%, transparent 70%);
}

.vpg-hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(3rem, 10vw, 6rem);
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
}

.vpg-hero-subtitle {
    color: var(--vpg-text-dim);
    font-size: 1.25rem;
    max-width: 600px;
}

/* ─────────────────────────────────────────────────────────── */
/* GALLERY GRID                                                */
/* ─────────────────────────────────────────────────────────── */
.gallery-container {
    padding: 0 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.gallery-filters {
    position: relative;
    margin-bottom: 2.5rem;
}

.gallery-filters-scroll {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-filters-scroll::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--vpg-border);
    color: var(--vpg-text-dim);
    padding: 0.6rem 1.4rem;
    border-radius: 50px;
    font-size: 0.88rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
}

.filter-pill:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.filter-pill.active {
    background: #10b981 !important;
    border-color: #10b981 !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
}

.filter-pill.active::before {
    content: none;
}

#vpg-category-select:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.06);
}

.vpg-dropdown-icon {
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.8rem;
    opacity: 0.4;
}

#vpg-category-select option {
    background: #0d0d0d;
    color: white;
    padding: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.prompt-grid {
    columns: 2;
    column-gap: 12px;
    margin-bottom: 6rem;
}

@media (min-width: 768px) {
    .prompt-grid {
        columns: 3;
        column-gap: 16px;
    }
}

@media (min-width: 1024px) {
    .prompt-grid {
        columns: 4;
        column-gap: 16px;
    }
}



/* ─────────────────────────────────────────────────────────── */
/* PROMPT CARDS                                                 */
/* ─────────────────────────────────────────────────────────── */
.vpg-card {
    background: #1a1a1a;
    min-height: 200px;
    border: none;
    padding: 0;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    break-inside: avoid-column;
    transition: transform 0.2s ease;
    background: linear-gradient(90deg, #1a1a1a 25%, #2a2a2a 50%, #1a1a1a 75%);
    background-size: 200% 100%;
    animation: skeletonSweep 1.5s infinite linear;
}

@keyframes skeletonSweep {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

@media (min-width: 768px) {
    .vpg-card {
        margin-bottom: 16px;
    }

    .vpg-card:hover {
        transform: scale(1.02);
    }
}

.vpg-card-fallback {
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #1f1f1f;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    text-align: center;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 12px;
    color: white;
}

.vpg-card-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
    display: block;
    margin-bottom: 0;
    transition: transform 0.3s ease;
}

.vpg-card:hover .vpg-card-img {
    transform: scale(1.05);
    /* Slight zoom on hover */
}

/* Overlay for Get Prompt badge */
.vpg-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 1.5rem 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
    text-align: center;
}

.vpg-card:hover .vpg-card-overlay {
    opacity: 1;
}

.vpg-get-prompt-btn {
    background: #10b981;
    color: white;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    letter-spacing: 0.05em;
    transform: translateY(15px);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
    margin-bottom: 0.5rem;
}

.vpg-card:hover .vpg-get-prompt-btn {
    transform: translateY(0);
}

.vpg-card-hover-title {
    color: white;
    font-size: 0.85rem;
    font-weight: 600;
    opacity: 0.9;
    text-transform: capitalize;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Ensure mobile users also see it clearly since they don't have hover */
@media (max-width: 768px) {
    .vpg-card-overlay {
        opacity: 1;
        background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.7) 100%);
        padding: 1rem 0.5rem;
    }

    .vpg-get-prompt-btn {
        transform: translateY(0);
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
        background: rgba(16, 185, 129, 0.9);
    }
}

.vpg-card-tag {
    color: var(--vpg-text-dim);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.vpg-card-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
}

.vpg-card-text {
    color: var(--vpg-text-dim);
    font-size: 1rem;
    line-height: 1.8;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-clamp: 3;
    overflow: hidden;
}

.vpg-card-actions {
    margin-top: auto;
    display: flex;
    gap: 1rem;
}

.btn-premium {
    background: transparent;
    border: 1px solid var(--vpg-border);
    color: white;
    padding: 0.8rem 1.5rem;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.75rem;
    transition: all 0.3s ease;
    flex: 1;
    text-align: center;
    text-decoration: none;
}

.btn-premium:hover {
    background: white;
    color: black;
}

/* ── Generate Button — NEW highlight ───────────────────────── */
.btn-generate-new {
    position: relative;
    background: linear-gradient(135deg, #7c3aed, #4f46e5, #2563eb) !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px;
    overflow: visible;
    animation: genGlow 2.5s ease-in-out infinite;
}

.btn-generate-new::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.18) 50%, transparent 100%);
    transform: translateX(-100%);
    animation: genShimmer 2.5s ease-in-out infinite;
    border-radius: inherit;
    pointer-events: none;
}

.btn-generate-new::after {
    content: 'NEW';
    position: absolute;
    top: -9px;
    right: -9px;
    background: #f43f5e;
    color: #fff;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 5px;
    border-radius: 20px;
    line-height: 1.4;
    pointer-events: none;
    z-index: 1;
}

.btn-generate-new:hover {
    background: linear-gradient(135deg, #6d28d9, #4338ca, #1d4ed8) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

@keyframes genGlow {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(124, 58, 237, 0.4);
    }

    50% {
        box-shadow: 0 0 18px rgba(124, 58, 237, 0.75);
    }
}

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

    60%,
    100% {
        transform: translateX(200%);
    }
}

/* ─────────────────────────────────────────────────────────── */
/* FOOTER                                                      */
/* ─────────────────────────────────────────────────────────── */
.vpg-footer {
    padding: 8rem 5% 4rem 5%;
    border-top: 1px solid var(--vpg-border);
    text-align: center;
}

.footer-brand {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.footer-link {
    color: var(--vpg-text-dim);
    text-decoration: none;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ─────────────────────────────────────────────────────────── */
/* SEARCH SECTION                                               */
/* ─────────────────────────────────────────────────────────── */
.vpg-search-container {
    padding: 0 5%;
    max-width: 800px;
    margin: 0 auto 3rem auto;
}

.search-box {
    position: relative;
    width: 100%;
}

#vpg-search-input {
    width: 100%;
    background: var(--vpg-card-bg);
    border: 1px solid var(--vpg-border);
    padding: 1.2rem 1.5rem 1.2rem 3.5rem;
    color: white;
    font-size: 1.1rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

#vpg-search-input:focus {
    outline: none;
    border-color: white;
    background: rgba(255, 255, 255, 0.05);
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.5;
    font-size: 1.2rem;
}

/* ─────────────────────────────────────────────────────────── */
/* PAGINATION                                                   */
/* ─────────────────────────────────────────────────────────── */
.vpg-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.page-btn {
    background: transparent;
    border: 1px solid var(--vpg-border);
    color: var(--vpg-text-dim);
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.page-btn.active,
.page-btn:hover {
    border-color: white;
    color: white;
}

.page-btn:disabled {
    opacity: 0.2;
    cursor: not-allowed;
}

/* ─────────────────────────────────────────────────────────── */
/* LEGAL CONTENT                                                */
/* ─────────────────────────────────────────────────────────── */
.legal-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 4rem 0;
}

.legal-content h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    margin-bottom: 2rem;
}

.legal-content h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    margin: 2rem 0 1rem 0;
}

.legal-content p,
.legal-content li {
    color: var(--vpg-text-dim);
    margin-bottom: 1rem;
    font-size: 1.05rem;
}

.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

/* ─────────────────────────────────────────────────────────── */
/* MODAL SYSTEM                                                 */
/* ─────────────────────────────────────────────────────────── */
.vpg-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-backdrop {
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    background: #111111;
    border: none;
    padding: 3.5rem 1rem 1rem 1rem;
    overflow-y: auto;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8);
}

.modal-detail-img {
    width: 100%;
    border-radius: 12px;
    max-height: 50vh;
    object-fit: cover;
    margin-bottom: 1rem;
    display: block;
}

.modal-tag-row {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.modal-tag-pill {
    background: rgba(255, 255, 255, 0.08);
    color: var(--vpg-text-dim);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.75rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.modal-tag-pill:hover {
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

.modal-action-row {
    display: flex;
    gap: 0.8rem;
    margin-bottom: 1.5rem;
}

.btn-detail-action {
    flex: 1;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    font-size: 0.9rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.btn-detail-action:hover {
    background: rgba(255, 255, 255, 0.05);
}

.btn-detail-copy {
    width: 100%;
    background: white;
    color: black;
    border: none;
    border-radius: 8px;
    padding: 1.1rem;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-detail-copy:hover {
    transform: translateY(-2px);
}

.modal-prompt-label {
    color: #10b981;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.modal-prompt-box {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.2rem;
    border-radius: 12px;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    white-space: pre-wrap;
}

/* Copy Overlay */
#vpg-copy-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 30000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

#vpg-copy-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.copy-overlay-card {
    background: #1e1e1e;
    border-radius: 20px;
    width: 90%;
    max-width: 380px;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

#vpg-copy-overlay.show .copy-overlay-card {
    transform: translateY(0);
}

.copy-overlay-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #1e293b, #0f172a);
    border-radius: 16px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.copy-overlay-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: white;
}

.copy-overlay-text {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2rem;
    line-height: 1.5;
}

.btn-overlay-open {
    width: 100%;
    background: white;
    color: black;
    border: none;
    padding: 1.1rem;
    border-radius: 12px;
    font-weight: 700;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

.btn-overlay-open:hover {
    transform: scale(1.02);
}

.btn-overlay-later {
    width: 100%;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    border: none;
    padding: 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
}

.btn-overlay-later:hover {
    color: white;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: none;
    border: none;
    color: white;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: opacity 0.3s ease;
    z-index: 10;
}

.modal-close::before {
    content: "〈";
    font-size: 1.5rem;
    font-weight: 300;
}

.modal-close:hover {
    opacity: 1;
}

/* ─────────────────────────────────────────────────────────── */
/* COOKIE CONSENT                                               */
/* ─────────────────────────────────────────────────────────── */
.vpg-cookie-banner {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 700px;
    background: #111;
    border: 1px solid var(--vpg-border);
    padding: 1.5rem 2rem;
    z-index: 15000;
    border-radius: 4px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.cookie-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.cookie-content p {
    font-size: 0.9rem;
    color: var(--vpg-text-dim);
}

.cookie-content .link {
    text-decoration: underline;
    cursor: pointer;
    color: white;
}

/* ─────────────────────────────────────────────────────────── */
/* BACK TO TOP & UTILS                                          */
/* ─────────────────────────────────────────────────────────── */
.vpg-btt {
    position: fixed;
    bottom: 2.5rem;
    right: 2.5rem;
    width: 50px;
    height: 50px;
    background: white;
    color: black;
    border: none;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 14000;
}

.vpg-btt.visible {
    opacity: 1;
    visibility: visible;
}

.vpg-nav-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.vpg-nav-link {
    background: none;
    border: none;
    color: var(--vpg-text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
    transition: color 0.3s ease;
}

.vpg-nav-link:hover {
    color: white;
}

.footer-link-btn {
    background: none;
    border: none;
    color: var(--vpg-text-dim);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    cursor: pointer;
}

.footer-link-btn:hover {
    color: white;
}

.hidden {
    display: none !important;
}

.fade-out {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s ease;
}

/* ─────────────────────────────────────────────────────────── */
/* ADMIN BAR                                                    */
/* ─────────────────────────────────────────────────────────── */
.vpg-admin-bar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20000;
    background: linear-gradient(90deg, #7c3aed, #4f46e5);
    padding: 0.6rem 2rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

.admin-bar-content {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.admin-bar-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    letter-spacing: 0.05em;
    margin-right: auto;
}

.btn-admin-action {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 0.4rem 1.2rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.btn-admin-action:hover {
    background: rgba(255, 255, 255, 0.25);
}

.btn-admin-logout {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.4rem 1rem;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.btn-admin-logout:hover {
    background: rgba(255, 0, 0, 0.25);
    color: white;
}

/* Shift content down when admin bar is visible */
.admin-bar-active .vpg-navbar {
    top: 40px;
}

.admin-bar-active body {
    padding-top: 40px;
}

/* ─────────────────────────────────────────────────────────── */
/* FEATURE FLIPPER PANEL                                        */
/* ─────────────────────────────────────────────────────────── */
.btn-flipper-toggle {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.35);
}

.btn-flipper-toggle:hover {
    background: rgba(255, 255, 255, 0.28);
}

.vpg-flipper-panel {
    max-width: 1400px;
    margin: 0.5rem auto 0;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem 1.5rem;
}

.flipper-panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.flipper-panel-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
}

.flipper-panel-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.flipper-flags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem 2rem;
    margin-bottom: 0.8rem;
}

.flipper-flag-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    user-select: none;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 6px;
    padding: 0.45rem 0.9rem;
    transition: background 0.15s;
    min-width: 220px;
}

.flipper-flag-row:hover {
    background: rgba(255, 255, 255, 0.12);
}

.flipper-checkbox {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #a78bfa;
    flex-shrink: 0;
}

.flipper-flag-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
}

.flipper-flag-desc {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-left: 0.25rem;
}

.flipper-panel-footer {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.btn-flipper-save {
    background: #a78bfa;
    border: none;
    color: #1a1040;
    padding: 0.45rem 1.4rem;
    border-radius: 5px;
    font-size: 0.84rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    font-family: inherit;
}

.btn-flipper-save:hover {
    background: #c4b5fd;
}

.btn-flipper-save:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.flipper-save-status {
    font-size: 0.82rem;
}

.flipper-save-ok {
    color: #86efac;
}

.flipper-save-err {
    color: #fca5a5;
}

.flipper-loading,
.flipper-error {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
    padding: 0.3rem 0;
}

/* ─────────────────────────────────────────────────────────── */
/* ADMIN FORMS                                                  */
/* ─────────────────────────────────────────────────────────── */
.admin-form-group {
    margin-bottom: 1.25rem;
}

.admin-label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--vpg-text-dim);
    margin-bottom: 0.5rem;
}

.admin-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--vpg-border);
    border-radius: 4px;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.admin-input:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

select.admin-input option {
    background-color: #1a1a1a;
    color: white;
}

.admin-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--vpg-border);
    border-radius: 4px;
    color: white;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    resize: vertical;
    min-height: 180px;
    line-height: 1.7;
    transition: border-color 0.2s;
}

.admin-textarea:focus {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

.admin-error {
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.4);
    color: #fca5a5;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
}

/* Edit button on cards (admin only) */
.btn-edit-prompt {
    background: rgba(124, 58, 237, 0.2);
    border: 1px solid rgba(124, 58, 237, 0.5);
    color: #c4b5fd;
    padding: 0.45rem 0.9rem;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}


.btn-edit-prompt:hover {
    background: rgba(124, 58, 237, 0.4);
    color: white;
}

/* ─────────────────────────────────────────────────────────── */
/* SSR FEATURED PROMPTS SECTION (visible to Googlebot)         */
/* ─────────────────────────────────────────────────────────── */



/* ─────────────────────────────────────────────────────────── */
/* GUIDE / ARTICLE SECTION                                      */
/* ─────────────────────────────────────────────────────────── */
.vpg-guide-section {
    padding: 6rem 5%;
    border-top: 1px solid var(--vpg-border);
    background: rgba(255, 255, 255, 0.018);
}

.vpg-guide-inner {
    max-width: 1400px;
    margin: 0 auto;
}

.vpg-guide-heading {
    font-family: 'Playfair Display', serif;
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 900;
    margin-bottom: 1.25rem;
}

.vpg-guide-lead {
    color: var(--vpg-text-dim);
    font-size: 1.15rem;
    max-width: 750px;
    margin-bottom: 3.5rem;
    line-height: 1.75;
}

.vpg-guide-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-bottom: 4rem;
}

.vpg-guide-step {
    border-left: 2px solid var(--vpg-border);
    padding-left: 2rem;
}

.vpg-guide-num {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.07);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.vpg-guide-step h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.vpg-guide-step p {
    color: var(--vpg-text-dim);
    font-size: 0.95rem;
    line-height: 1.8;
}

.vpg-guide-tools {
    border-top: 1px solid var(--vpg-border);
    padding-top: 3rem;
}

.vpg-guide-tools h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.vpg-tools-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1rem;
}

.vpg-tools-list li {
    color: var(--vpg-text-dim);
    font-size: 0.95rem;
    padding: 1rem 1.25rem;
    background: var(--vpg-card-bg);
    border: 1px solid var(--vpg-border);
    line-height: 1.6;
}

.vpg-tools-list li strong {
    display: block;
    color: var(--vpg-text-main);
    margin-bottom: 0.25rem;
}

@media (max-width: 768px) {


    /* Guide section */
    .vpg-guide-section {
        padding: 3rem 4%;
    }

    .vpg-guide-lead {
        font-size: 0.95rem;
    }

    .vpg-guide-step {
        padding: 1.4rem;
    }

    /* Footer */
    .footer-links {
        gap: 0.4rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-link-btn {
        font-size: 0.78rem;
        padding: 0.3rem 0.5rem;
    }
}

/* ─────────────────────────────────────────────────────────── */
/* USER AUTH MODAL                                              */
/* ─────────────────────────────────────────────────────────── */
.auth-modal-content {
    padding: 2rem;
}

.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.auth-tab {
    flex: 1;
    padding: 0.8rem 1rem;
    background: none;
    border: none;
    color: var(--vpg-text-dim);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--vpg-accent);
    border-bottom-color: var(--vpg-accent);
}

.auth-tab:hover:not(.active) {
    color: var(--vpg-text);
}

.auth-form-group {
    margin-bottom: 1.2rem;
}

.auth-label {
    display: block;
    font-size: 0.85rem;
    color: var(--vpg-text-dim);
    margin-bottom: 0.4rem;
    font-weight: 500;
}

.auth-input {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--vpg-text);
    font-size: 0.95rem;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.auth-input:focus {
    border-color: var(--vpg-accent);
    outline: none;
}

.auth-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Password visibility toggle */
.auth-password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.auth-password-wrapper .auth-input {
    padding-right: 2.5rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.7rem;
    background: none;
    border: none;
    color: var(--vpg-text-dim);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.4rem;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-password-toggle:hover {
    color: var(--vpg-accent);
}

.auth-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--vpg-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 0.5rem;
    box-shadow: 0 4px 12px rgba(168, 85, 247, 0.3);
}

.auth-submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(168, 85, 247, 0.4);
}

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

.auth-form-error {
    color: #f87171;
    font-size: 0.78rem;
    margin-top: 0.3rem;
    display: none;
}

.auth-form-error.show {
    display: block;
}

.auth-switch-text {
    text-align: center;
    margin-top: 1.2rem;
    font-size: 0.85rem;
    color: var(--vpg-text-dim);
}

.auth-switch-link {
    color: var(--vpg-accent);
    cursor: pointer;
    font-weight: 600;
}

.auth-switch-link:hover {
    text-decoration: underline;
}

/* API key guide */
.apikey-guide {
    margin-top: 0.6rem;
}

.apikey-guide-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.6rem 0.8rem;
    background: rgba(168, 85, 247, 0.08);
    border: 1px solid rgba(168, 85, 247, 0.2);
    border-radius: 8px;
    color: var(--vpg-accent);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.apikey-guide-toggle:hover {
    background: rgba(168, 85, 247, 0.15);
}

.apikey-guide-icon {
    font-size: 1rem;
}

.apikey-guide-arrow {
    margin-left: auto;
    font-size: 0.7rem;
    transition: transform 0.2s;
}

.apikey-guide-steps {
    margin-top: 0.6rem;
    padding: 0.8rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
}

.apikey-step {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.6rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.apikey-step:last-of-type {
    border-bottom: none;
}

.apikey-step-num {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    background: var(--vpg-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    margin-top: 2px;
}

.apikey-step-body strong {
    display: block;
    color: var(--vpg-text);
    font-size: 0.85rem;
    margin-bottom: 2px;
}

.apikey-step-body p {
    color: var(--vpg-text-dim);
    font-size: 0.78rem;
    margin: 0;
    line-height: 1.4;
}

.apikey-step-body a {
    color: var(--vpg-accent);
    text-decoration: underline;
}

.apikey-step-body code {
    background: rgba(168, 85, 247, 0.15);
    padding: 0.1rem 0.35rem;
    border-radius: 4px;
    font-size: 0.78rem;
    color: var(--vpg-accent);
}

.apikey-guide-note {
    margin-top: 0.6rem;
    padding: 0.5rem 0.7rem;
    background: rgba(60, 220, 100, 0.08);
    border: 1px solid rgba(60, 220, 100, 0.15);
    border-radius: 6px;
    font-size: 0.76rem;
    color: #6ee7b7;
    line-height: 1.4;
}

.auth-message {
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-size: 0.88rem;
    margin-bottom: 1rem;
    text-align: center;
}

.auth-message.auth-error {
    background: rgba(220, 60, 60, 0.15);
    border: 1px solid rgba(220, 60, 60, 0.3);
    color: #f87171;
}

.auth-message.auth-success {
    background: rgba(60, 220, 100, 0.15);
    border: 1px solid rgba(60, 220, 100, 0.3);
    color: #6ee7b7;
}

/* User badge in navbar */
.vpg-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.7rem 0.3rem 0.4rem;
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 20px;
    font-size: 0.82rem;
    margin-left: 0.5rem;
}

.vpg-user-avatar {
    width: 24px;
    height: 24px;
    background: var(--vpg-accent);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
}

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

.vpg-logout-btn {
    background: none;
    border: none;
    color: var(--vpg-text-dim);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 0 0.2rem;
    transition: color 0.2s;
}

.vpg-logout-btn:hover {
    color: #f87171;
}

/* ─────────────────────────────────────────────────────────── */
/* FLOATING GENERATE BUTTON (FAB)                               */
/* ─────────────────────────────────────────────────────────── */
.vpg-gen-fab-wrap {
    display: flex;
    justify-content: center;
    padding: 0 5% 3rem 5%;
}

.vpg-gen-fab {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5, #2563eb);
    color: #fff;
    border: none;
    padding: 1rem 2.2rem;
    font-size: 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(124, 58, 237, 0.45);
    transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1);
    text-transform: uppercase;
}

.vpg-gen-fab:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 8px 36px rgba(124, 58, 237, 0.6);
}

.vpg-gen-fab:active {
    transform: translateY(0) scale(0.98);
}

.vpg-gen-fab-icon {
    font-size: 1.2rem;
    animation: fabPulse 2s ease-in-out infinite;
}

@keyframes fabPulse {

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

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

/* ─────────────────────────────────────────────────────────── */
/* IMAGE GEN MODAL SHEET                                        */
/* ─────────────────────────────────────────────────────────── */
.imggen-sheet {
    position: relative;
    width: 95%;
    max-width: 860px;
    max-height: 92vh;
    background: #0d0d0d;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.8);
}

/* ── Modal header ── */
.imggen-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.4rem 1.8rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(79, 70, 229, 0.1));
    flex-shrink: 0;
}

.imggen-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #fff;
}

.imggen-title-icon {
    color: #a78bfa;
    font-size: 1.3rem;
    animation: fabPulse 2s ease-in-out infinite;
}

.imggen-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.imggen-close:hover {
    color: #fff;
}

/* ── Unified Layout (Single Column) ── */
.imggen-unified-panel {
    padding: 1.5rem 1.8rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.imggen-section {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.imggen-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #a78bfa;
}

.imggen-textarea {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    resize: vertical;
    outline: none;
    transition: border-color 0.2s;
    min-height: 120px;
}

.imggen-textarea:focus {
    border-color: rgba(167, 139, 250, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.imggen-radio-group {
    display: flex;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.imggen-radio {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.2s;
}

.imggen-radio:hover {
    color: #fff;
}

.imggen-radio input[type="radio"] {
    accent-color: #a78bfa;
    width: 1.1rem;
    height: 1.1rem;
    cursor: pointer;
}

.imggen-mode-panel {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    animation: fadeIn 0.3s ease;
}

.imggen-select {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    padding: 0.85rem 1rem;
    border-radius: 6px;
    font-size: 0.95rem;
    font-family: 'Inter', sans-serif;
    outline: none;
    cursor: pointer;
}

.imggen-select:focus {
    border-color: rgba(167, 139, 250, 0.5);
}

.imggen-select option {
    background: #111;
    color: #fff;
}

.imggen-selected-preview {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
    padding: 0.5rem 0.5rem;
    font-style: italic;
    min-height: 30px;
}

/* ── Upload zone ── */
.imggen-upload-zone {
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s;
    background: rgba(255, 255, 255, 0.02);
}

.imggen-upload-zone:hover,
.imggen-upload-zone.drag-over {
    border-color: #a78bfa;
    background: rgba(124, 58, 237, 0.08);
}

.imggen-upload-zone.has-image {
    border-color: rgba(34, 197, 94, 0.4);
    background: rgba(34, 197, 94, 0.04);
}

.imggen-upload-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.imggen-upload-text {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 0.25rem;
}

.imggen-upload-hint {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
}

/* ── Upload preview ── */
.imggen-preview-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.imggen-preview-img {
    max-width: 100%;
    max-height: 220px;
    border-radius: 6px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.imggen-remove-btn {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #fca5a5;
    padding: 0.45rem 1.1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.imggen-remove-btn:hover {
    background: rgba(239, 68, 68, 0.3);
    color: #fff;
}

.imggen-upload-note {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

/* ── Result area ── */
.imggen-result {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.4rem 1.8rem;
    background: rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
}

.imggen-result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.imggen-result-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 600;
}

.imggen-result-actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.imggen-action-btn {
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
    padding: 0.45rem 1rem;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s;
}

.imggen-action-btn:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}

.imggen-action-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.imggen-minimize-btn {
    background: rgba(124, 58, 237, 0.12);
    border-color: rgba(124, 58, 237, 0.35);
    color: #c4b5fd;
}

.imggen-minimize-btn:hover {
    background: rgba(124, 58, 237, 0.25);
    color: #fff;
}

.imggen-close-result-btn {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.imggen-close-result-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    color: #fff;
}

/* Minimized state — hide the image, show just the header bar */
.imggen-result.minimized .imggen-result-img-wrap {
    display: none;
}

.imggen-result.minimized {
    padding-bottom: 0.8rem;
}

.imggen-result-img-wrap {
    text-align: center;
}

.imggen-result-img {
    max-width: 100%;
    max-height: 360px;
    border-radius: 8px;
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: imgFadeIn 0.5s ease;
}

@keyframes imgFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

/* ── Error banner ── */
.imggen-error {
    margin: 0 1.8rem;
    padding: 1rem 1.2rem;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-left: 4px solid rgba(239, 68, 68, 0.7);
    border-radius: 6px;
    font-size: 0.88rem;
    flex-shrink: 0;
    display: flex;
    gap: 0.9rem;
    align-items: flex-start;
}

.imggen-error.warn {
    background: rgba(234, 179, 8, 0.08);
    border-color: rgba(234, 179, 8, 0.3);
    border-left-color: rgba(234, 179, 8, 0.7);
}

.imggen-error-icon {
    font-size: 1.3rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.imggen-error-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.imggen-error-title {
    font-weight: 700;
    color: #fca5a5;
    font-size: 0.9rem;
}

.imggen-error.warn .imggen-error-title {
    color: #fde68a;
}

.imggen-error-msg {
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.55;
}

.imggen-error-tip {
    margin-top: 0.2rem;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.8rem;
    font-style: italic;
}

/* ── Footer (generate button) ── */
.imggen-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1.1rem 1.8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    flex-shrink: 0;
    flex-wrap: wrap;
}

.imggen-selection-summary {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.45);
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.imggen-generate-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff;
    border: none;
    padding: 0.85rem 1.8rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.25s;
    flex-shrink: 0;
}

.imggen-generate-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(124, 58, 237, 0.5);
}

.imggen-generate-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.imggen-btn-icon {
    font-size: 1rem;
}

/* Loading spinner on generate btn */
.imggen-generate-btn.loading .imggen-btn-icon {
    display: inline-block;
    animation: btnSpin 1s linear infinite;
}

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

    to {
        transform: rotate(360deg);
    }
}

/* ── Output settings row ── */
.imggen-settings-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.imggen-setting-group {
    flex: 1;
    min-width: 140px;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.imggen-setting-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}

/* ── Loading progress ── */
.imggen-progress {
    padding: 0.8rem 1.8rem 0;
    flex-shrink: 0;
}

.imggen-progress-track {
    height: 3px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.45rem;
}

.imggen-progress-fill {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #7c3aed, #a78bfa);
    border-radius: 2px;
    transition: width 3s ease;
}

.imggen-progress-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.03em;
}

/* ── Responsive ── */
@media (max-width: 600px) {
    .imggen-sheet {
        width: 100%;
        max-height: 100vh;
        border-radius: 12px 12px 0 0;
    }

    .imggen-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .imggen-generate-btn {
        width: 100%;
        justify-content: center;
    }

    .imggen-result-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .vpg-gen-fab-label {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────── */
/* CUSTOM PWA INSTALL POPUP                                    */
/* ─────────────────────────────────────────────────────────── */
.vpg-pwa-popup {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(150%);
    width: 90%;
    max-width: 400px;
    background: #1a1a1a;
    border: 1px solid rgba(139, 92, 246, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(139, 92, 246, 0.2);
    border-radius: 16px;
    z-index: 40000;
    padding: 1.5rem;
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.vpg-pwa-popup.show {
    transform: translateX(-50%) translateY(0);
}

.vpg-pwa-content {
    display: flex;
    flex-direction: column;
}

.vpg-pwa-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.vpg-pwa-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.vpg-pwa-title h4 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.vpg-pwa-title p {
    margin: 0;
    font-size: 0.85rem;
    color: var(--vpg-text-dim);
}

.vpg-pwa-actions {
    display: flex;
    gap: 0.8rem;
}

.vpg-pwa-btn {
    flex: 1;
    padding: 0.7rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.vpg-pwa-cancel {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.vpg-pwa-cancel:hover {
    background: rgba(255, 255, 255, 0.15);
}

.vpg-pwa-install {
    background: #8b5cf6;
    color: white;
}

.vpg-pwa-install:hover {
    background: #7c3aed;
}

/* Hide manual install buttons if already in the app */
@media all and (display-mode: standalone) {
    .vpg-install-manual-btn,
    #vpg-fab-install {
        display: none !important;
    }
}

/* Floating Install FAB pulse animation */
@keyframes installPulse {
    0%, 100% { box-shadow: 0 4px 20px rgba(16, 185, 129, 0.5); }
    50% { box-shadow: 0 4px 35px rgba(16, 185, 129, 0.85), 0 0 0 6px rgba(16, 185, 129, 0.15); }
}

@media (max-width: 768px) {
    .prompt-grid {
        grid-template-columns: 1fr;
    }

    /* Navbar — Hamburger on Mobile */
    .vpg-brand {
        font-size: 1.1rem;
    }

    /* Hide all nav links on mobile by default */
    .vpg-nav-links {
        display: none !important;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(10,10,10,0.98);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 2rem;
        z-index: 99999;
    }

    /* Show nav links when hamburger is open */
    .vpg-nav-links.mobile-open {
        display: flex !important;
    }

    .vpg-nav-link {
        font-size: 1.2rem;
        padding: 0.8rem 1.5rem;
    }

    /* Hamburger button */
    .vpg-hamburger {
        display: flex;
        flex-direction: column;
        gap: 5px;
        cursor: pointer;
        background: none;
        border: none;
        padding: 0.5rem;
        z-index: 100000;
    }

    .vpg-hamburger span {
        display: block;
        width: 24px;
        height: 2px;
        background: white;
        border-radius: 2px;
        transition: all 0.3s ease;
    }

    /* X icon when open */
    .vpg-hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
    .vpg-hamburger.open span:nth-child(2) { opacity: 0; }
    .vpg-hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

    /* Mobile nav close button */
    .vpg-mobile-close {
        display: block;
        position: absolute;
        top: 1.5rem;
        right: 1.5rem;
        background: none;
        border: none;
        color: white;
        font-size: 2rem;
        cursor: pointer;
    }

    /* Hero — deeper fix for text overlap and clipping */
    .vpg-hero {
        min-height: auto;
        padding: 7rem 1.2rem 2rem !important;
        margin-bottom: 1rem;
    }

    .vpg-hero h1 {
        font-size: 2.8rem !important;
        line-height: 1.1;
    }

    .vpg-hero-subtitle {
        font-size: 0.95rem;
        padding: 0 1rem;
    }

    /* FAB Position on mobile to avoid card overlap */
    #vpg-fab-install {
        bottom: 1.5rem !important;
        left: 1rem !important;
        transform: scale(0.9);
        transform-origin: bottom left;
    }
}