/* Prompt archive */
.ps-prompt-archive {
    max-width: 1180px;
    margin: 0 auto;
}

.ps-archive-header {
    margin: 0 auto 32px;
    max-width: 780px;
    text-align: center;
}

.ps-archive-header h1 {
    margin-bottom: 12px;
}

.ps-archive-header p {
    margin: 0;
    line-height: 1.7;
}

.ps-archive-search {
    display: flex;
    gap: 10px;
    max-width: 680px;
    margin: 0 auto 36px;
}

.ps-archive-search input {
    min-width: 0;
    flex: 1;
    padding: 12px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font: inherit;
}

.ps-archive-search button {
    padding: 12px 18px;
    border: 0;
    border-radius: 4px;
    background: #2563eb;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.ps-archive-search button:hover {
    background: #1d4ed8;
}

@media (max-width: 560px) {
    .ps-archive-search {
        flex-direction: column;
    }
}

.ps-archive-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(200px, 1fr));
    gap: 28px;
    align-items: start;
}

.ps-archive-card {
    overflow: hidden;
    border: 1px solid #c4d2e5;
    border-radius: 18px;
    background: #fff;
}

.ps-archive-card-image {
    display: block;
    background: #f1f5f9;
    line-height: 0;
    text-decoration: none;
}

.ps-archive-card-image img {
    display: block;
    width: 100%;
    height: auto;
    max-height: none;
    object-fit: initial;
}

.ps-archive-no-image {
    height: 200px;
    display: flex;
    color: #000000;
    font-weight: 600;
    flex-wrap: nowrap;
    justify-content: center;
    align-items: center;
}

.ps-archive-card-content {
    padding: 20px;
}

.ps-archive-card-content h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    line-height: 1.3;
}

.ps-archive-card-content h2 a {
    color: inherit;
    text-decoration: none;
}

.ps-archive-card-category {
    margin-bottom: 10px;
    font-size: .875rem;
}

.ps-archive-card-category a {
    color: #2563eb;
}

.ps-archive-card-content p {
    margin: 0 0 16px;
    line-height: 1.6;
}

.ps-archive-card-link {
    display: inline-flex;
    width: 100%;
    box-sizing: border-box;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    border-radius: 12px;
    background: #2563eb;
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.ps-archive-card-link:hover,
.ps-archive-card-link:focus-visible {
    background: #1d4ed8;
    color: #fff;
}

.ps-archive-card-link span {
    transition: transform 0.2s ease;
}

.ps-archive-card-link:hover span {
    transform: translateX(3px);
}

.ps-archive-pagination {
    margin: 36px 0 12px;
}

.ps-archive-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ps-archive-pagination a,
.ps-archive-pagination span {
    display: inline-block;
    padding: 8px 12px;
    border: 1px solid #dbe4ef;
    border-radius: 4px;
    text-decoration: none;
}

.ps-archive-pagination .current {
    background: #2563eb;
    color: #fff;
}

@media (max-width: 800px) {
    .ps-archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .ps-archive-grid {
        grid-template-columns: 1fr;
    }
}

    .prompt-images {
        gap: 18px;
        display: flex;
        flex-wrap: nowrap;
        flex-direction: row;
        align-content: center;
        justify-content: center;
        align-items: center;
        margin-bottom: 30px;
        align-items: flex-start;
    }

    .ref-image-titles {
        font-weight: bolder;
    }

    .prompt-images .ref-image,
    .prompt-images .output-image {
        flex: 1 1 auto;
        max-width: 45%;
        margin: 0;
        text-align: center;
    }

    .prompt-images .ref-image img,
    .prompt-images .output-image img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 4px 10px rgba(0,0,0,0.1);
        cursor: pointer !important;
    }

    .prompt-images a {
        display: block;
        cursor: zoom-in;
        transition: transform 0.2s ease;
    }

    .prompt-images a:hover {
        transform: scale(1.02);
    }

.no-images {
    text-align: center;
    padding: 20px;
    background-color: #f5f5f5;
    border-radius: 6px;
    font-weight: 700;
    font-size: medium;
}

    /* Related Prompts */
    .related-prompts {
        background-color: #fff;
        padding: 20px;
        border-radius: 6px;
        margin-bottom: 30px;
    }

    .related-prompts h2 {
        margin-bottom: 15px;
        font-size: 1.3rem;
    }

    .related-prompts ul {
        list-style-type: disc;
        padding-left: 20px;
    }

    .related-prompts ul li {
        margin-bottom: 10px;
    }

    /* CTA Box */
    .ps-cta-box {
        background-color: #eaf5ff;
        border: 1px solid #b6e0fe;
        padding: 20px;
        border-radius: 8px;
        text-align: center;
        margin-bottom: 30px;
    }

    .ps-cta-box h2 {
        margin-bottom: 12px;
        font-size: 1.4rem;
    }

    .ps-cta-box p {
        font-size: 1rem;
        line-height: 1.6;
    }

    .ps-cta-box .button {
        background-color: #0073e6;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        display: inline-block;
        margin-top: 12px;
    }

    .ps-cta-box .button:hover {
        background-color: #005bb5;
    }

    /* Tags Section */
    .prompt-tags {
        margin-top: 20px;
        font-size: 0.95rem;
    }

    .prompt-tags strong {
        font-weight: 600;
    }

    .prompt-tags a {
        color: #0073e6;
        text-decoration: none;
        margin-right: 8px;
    }

    .prompt-tags a:hover {
        text-decoration: underline;
    }
    /* How to Use This Prompt */
    .prompt-howto {
        background: #f5f8ff;
        border-left: 4px solid #3b82f6; /* blue accent */
        padding: 20px;
        margin: 30px 0;
        border-radius: 8px;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    }

    .prompt-howto h2, .prompt-ai-tools h2 {
        color: #1770e2;
        font-size: 1.6em;
        margin-bottom: 10px;
    }

    .prompt-howto p {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 10px;
        color: #1f2937;
    }

    .prompt-howto ul {
        list-style: disc;
        padding-left: 20px;
        margin-bottom: 10px;
    }

    .prompt-howto ul li {
        margin-bottom: 6px;
    }

    /* Inspired / Submit Prompt Box */
    .prompt-inspire {
        background: #fff7ed;
        border-left: 4px solid #f97316; /* orange accent */
        padding: 40px;
        margin: 30px 0;
        border-radius: 8px;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    }

    .prompt-inspire h2 {
        color: #1770e2;
        font-size: 1.6em;
        margin-bottom: 10px;
        text-align: center;
    }

    .prompt-inspire p {
        font-size: 1em;
        line-height: 1.6;
        margin-bottom: 15px;
        color: #78350f;
    }

    .prompt-inspire a.button {
        background-color: #f97316;
        color: #fff;
        text-decoration: none;
        font-weight: 600;
        display: inline-block;
        transition: background-color 0.3s ease;
    }

    .prompt-inspire a.button:hover {
        background-color: #c2410c;
    }

    .prompt-ai-tools {
        background: #f5f8ff;
        border-left: 4px solid #3b82f6; /* blue accent */
        padding: 20px;
        margin: 30px 0;
        border-radius: 8px;
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    }

    .ai-tool-card {
        margin-bottom: 2rem;
    }

    .prompt-ai-tools h3 {
        margin-bottom: 2px !important;
    }

    .prompt-ai-tools i {
        margin-bottom: 2px !important;
    }

/* END of Single Prompt styles */


/* =========================================================
   Submission Form - Unified Design System
   ========================================================= */
#ps-form-wrapper {
    position: relative;
    min-height: 600px;
    box-sizing: border-box;
    margin: 48px auto;
    padding: 38px 32px 32px 32px;
    background: linear-gradient(120deg, #eaf6ff 0%, #f9faff 100%);
    border-radius: 18px;
    box-shadow: 0 8px 32px rgba(0,115,230,0.10), 0 1.5px 8px rgba(0,0,0,0.06);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    transition: box-shadow 0.3s;
    position: relative;
    overflow: hidden;
}
#ps-form-wrapper::before {
    content: "";
    position: absolute;
    top: -60px;
    right: -60px;
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, #b6e0fe 0%, transparent 70%);
    z-index: 0;
    pointer-events: none;
}
#ps-form-wrapper h2 {
    text-align: center;
    color: #0073e6;
    margin-bottom: 28px;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    z-index: 1;
    position: relative;
}
#ps-form-wrapper label {
    display: block;
    font-weight: 700;
    font-size: larger;
    margin-bottom: 8px;
    color: #1a2a3a;
    letter-spacing: 0.01em;
    z-index: 1;
    position: relative;
}
#ps-form-wrapper .required {
    color: red;
    margin-left: 4px;
}
#ps-form-wrapper input[type="text"],
#ps-form-wrapper textarea,
#ps-form-wrapper select,
#ps-form-wrapper input[type="file"] {
    width: 100%;
    padding: 13px 16px;
    border: 1.5px solid #b6e0fe;
    border-radius: 8px;
    font-size: 15px;
    background: #fff;
    transition: border-color 0.3s, box-shadow 0.3s;
    box-sizing: border-box;
    z-index: 1;
    position: relative;
}
#ps-form-wrapper input[type="text"]:focus,
#ps-form-wrapper textarea:focus,
#ps-form-wrapper select:focus,
#ps-form-wrapper input[type="file"]:focus {
    border-color: #0073e6;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,230,0.12);
}
#ps-form-wrapper textarea {
    resize: vertical;
    min-height: 120px;
    max-height: 520px;
}

/* Textarea wrapper with paste button */
.ps-field-with-paste .ps-textarea-wrapper {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    flex-direction: column;
}

.ps-field-with-paste textarea {
    padding-right: 50px;
}

/* Paste button styling */
.ps-paste-btn {
    position: absolute;
    right: 8px;
    bottom: 30px;
    color: #fff;
    background: #1a73e8;
    border: 1px solid #1a73e8;
    border-radius: 6px;
    padding: 5px 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
    z-index: 2;
}

.ps-paste-btn:hover {
    background: #e2e8f0;
    border-color: #94a3b8;
    color: #1e293b;
    transform: translateY(-1px);
}

.ps-paste-btn:active {
    transform: translateY(0);
    background: #1a73e8;
}

.ps-paste-btn i {
    font-size: 14px;
}

.ps-paste-text {
    display: inline;
}

/* Paste button feedback states */
.ps-paste-btn.ps-paste-success {
    background: #dcfce7;
    border-color: #86efac;
    color: #166534;
}

.ps-paste-btn.ps-paste-warning {
    background: #fef9c3;
    border-color: #fde047;
    color: #854d0e;
}

.ps-paste-btn.ps-paste-error {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}

.ps-paste-btn.ps-paste-info {
    background: #dbeafe;
    border-color: #93c5fd;
    color: #1e40af;
}

/* Mobile adjustments for paste button */
@media (max-width: 650px) {
    .ps-paste-btn {
        right: 6px;
        bottom: 30px;
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .ps-paste-text {
        display: none;
    }
    
    .ps-paste-btn i {
        font-size: 16px;
    }
    
    .ps-field-with-paste textarea {
        padding-right: 40px;
    }
}

/* Field spacing */
#ps-form-wrapper .ps-field {
    margin-bottom: 1.8rem;
    position: relative;
    z-index: 1;
}

.ps-consent-field {
    margin-top: 20px !important;
}

.ps-consent-label {
    display: flex !important;
    align-items: flex-start !important;
    gap: 10px !important;
    cursor: pointer !important;
    user-select: none !important;
}

.ps-consent-label span {
    font-size: 12px !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    color: inherit !important;
    font-family: inherit !important;
    text-decoration: none !important;
}

.ps-consent-label input[type="checkbox"] {
    flex: 0 0 auto !important;
    margin-top: 4px !important;
}

.ps-consent-label a {
    text-decoration: underline !important;
}

/* Clarity callout - helps users understand this is a showcase, not a photo editor */
.ps-clarity-callout {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: #fff7e6;
    border: 1px solid #ffe0a3;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 0 0 18px 0;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #7c5a00;
}
.ps-clarity-callout > i {
    font-size: 1.2rem;
    color: #f59e0b;
    margin-top: 2px;
    flex-shrink: 0;
}
.ps-clarity-callout strong {
    color: #5b4200;
}

/* Upload grid & areas */
.ps-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.ps-upload-area {
    position: relative;
    text-align: center;
    padding: 22px 18px;
    min-height: 210px;
    border-radius: 20px !important;
    cursor: pointer;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s, background 0.25s;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.ps-upload-before{
    border: 2px dashed #c6d8f2;
    background: #f8fbff;
}

.ps-upload-after {
    border: 2px dashed #4caf50;
    border-radius: 8px;
    background: #f1f8e9;
}
.ps-upload-area:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.1);
}
.ps-upload-area.ps-dragover {
    transform: translateY(-3px) scale(1.01);
    border-color: #0073e6;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.14), 0 14px 32px rgba(26, 115, 232, 0.12);
}

.ps-upload-label {
    display: block;
    font-weight: 700 !important;
    font-size: 14px;
    letter-spacing: 0.04em;
    margin-bottom: 10px;
    cursor: pointer;
}
.ps-upload-before .ps-upload-label { color: #1a73e8 !important; }

.ps-upload-after .ps-upload-label { color: #4caf50 !important; }

.ps-upload-placeholder {
    display: flex;
    margin: 6px 0;
    color: #64748b;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}
.ps-upload-placeholder i {
    display: block;
    font-size: 30px;
    margin-bottom: 10px;
    color: #7aa9e8;
    text-align: center !important;
    transition: transform 0.3s;
}
.ps-upload-area:hover .ps-upload-placeholder i {
    transform: translateY(-3px) scale(1.1);
}
.ps-upload-main {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}
.ps-upload-sub {
    font-size: 12px;
    color: #94a3b8;
}

/* Uploaded preview */
.ps-img-preview {
    display: none;
    margin: 10px 0 0 0;
    max-height: 200px;
    overflow: hidden;
}
.ps-img-preview img {
    max-width: 100%;
    max-height: 150px;
    border-radius: 14px;
    object-fit: contain;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.18);
}

.ps-upload-area input[type="file"] {
    display: none;
}

/* Guides */
.ps-guide {
    display: block;
    font-size: 13px;
    color: #64748b;
    margin-top: 7px;
    margin-bottom: 0;
}
.ps-guide strong { color: #334155; }

/* Submit button - modern blue CTA */
#ps-form-wrapper button[type="submit"] {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 15px 0;
    margin-top: 24px;
    margin-bottom: 0;
    border: none;
    border-radius: 8px;
    background: #0073e6;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0,115,230,0.3), 0 1px 0 rgba(255,255,255,0.1);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), background 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1;
}
#ps-form-wrapper button[type="submit"]::after {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s;
}
#ps-form-wrapper button[type="submit"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 32px rgba(0,115,230,0.4), 0 1px 0 rgba(255,255,255,0.2);
    background: #005bb5;
}
#ps-form-wrapper button[type="submit"]:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}
#ps-form-wrapper button[type="submit"]:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 2px 8px rgba(0,115,230,0.3), 0 1px 0 rgba(255,255,255,0.15);
    background: #004a99;
}
#ps-form-wrapper button[type="submit"] i {
    font-size: 18px;
    transition: transform 0.25s;
}
#ps-form-wrapper button[type="submit"]:hover i {
    transform: translateX(4px) rotate(-8deg);
}

/* Thank-you action buttons - unified */
#ps-form-wrapper #ps-new-submission {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 0;
    margin-top: 8px;
    border: none;
    border-radius: 12px;
    background: #0073e6;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0, 115, 230, 0.25);
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    z-index: 1;
}
#ps-form-wrapper #ps-new-submission:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 115, 230, 0.32);
    background: #005bb5;
}
#ps-form-wrapper #ps-view-submissions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 0;
    margin-top: 8px;
    text-decoration: none;
    background: #ffffff;
    color: #0073e6;
    border: 2px solid #0073e6;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 115, 230, 0.1);
    transition: background 0.3s, color 0.3s, transform 0.2s, box-shadow 0.2s;
    z-index: 1;
}
#ps-form-wrapper #ps-view-submissions:hover {
    background: #0073e6;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 115, 230, 0.28);
}

/* Form header & how-it-works */
.ps-form-header {
    text-align: center;
    margin-bottom: 24px;
    padding: 32px 28px;
    border-radius: 18px;
    border: 1px solid #e3ebf6;
    background: linear-gradient(120deg, #eaf6ff 0%, #f9faff 100%);
    box-shadow: 0 8px 32px rgba(0,115,230,0.10), 0 1.5px 8px rgba(0,0,0,0.04);
    position: relative;
    z-index: 1;
    margin-top: 48px;
    margin-left: 0;
    margin-right: 0;
    padding: 32px 28px 20px 28px;
}
.ps-form-header::before {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle at 100% 100%, #b6e0fe 0%, transparent 70%);
    border-radius: 18px;
    z-index: 0;
    pointer-events: none;
}

.ps-form-header h2 {
    margin: 0 0 12px 0;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: #0073e6;
}
.ps-form-intro {
    margin: 0 auto 20px auto;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.7;
    color: #475569;
}
.ps-form-intro strong {
    color: #0073e6;
}

.ps-how-it-works {
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
    flex-direction: column;
    align-items: stretch;
}

.ps-step {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid #e3ebf6;
    border-radius: 999px;
    padding: 7px 14px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, 0.05);
}
.ps-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #0073e6;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}
.ps-step-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
}

/* Prompt example placeholder */
#ps-form-wrapper textarea::placeholder {
    color: #94a3b8;
    font-style: italic;
    font-size: 14px;
}

/* Form responsive */
@media (max-width: 768px) {
    .ps-upload-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .ps-upload-area {
        min-height: 180px;
        padding: 18px 14px;
    }
    .ps-upload-placeholder i {
        font-size: 24px;
    }
    .ps-upload-main {
        font-size: 13px;
    }
    .ps-upload-sub {
        font-size: 11px;
    }
}

/* Fullscreen overlay */
.ps-img-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.ps-img-fullscreen img {
    max-width: 90%;
    max-height: 90%;
}


    @media (max-width: 650px) {
        #ps-form-wrapper {
            padding: 24px 14px 28px 14px;
            max-width: 98vw;
        }
        #ps-form-wrapper h2,
        .ps-form-header h2 {
            font-size: 1.3rem;
        }
        #ps-form-wrapper button[type="submit"],
        #ps-form-wrapper #ps-new-submission,
        #ps-form-wrapper #ps-view-submissions {
            font-size: 15px;
            padding: 13px 0;
        }
    }

    /* =========================================================
   Submission UX - Toasts, Validation, Button States
   ========================================================= */

/* Toast notification */
#ps-toast {
    position: fixed;
    top: 40px;
    left: 50%;
    transform: translate(-50%, -16px);
    z-index: 99999;
    max-width: 92vw;
    min-width: 280px;
    padding: 12px 42px 12px 22px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: #fff;
    background: #1e293b;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.35);
    opacity: 0;
}
#ps-toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

#ps-toast.ps-toast-success { background: #10b981; }
#ps-toast.ps-toast-error   { background: #ef4444; }
#ps-toast.ps-toast-error .ps-toast-close   { color: white; }
#ps-toast.ps-toast-info    { background: #0073e6; }

/* Close button inside toast */
#ps-toast .ps-toast-close {
    padding-left: 10px;
    position: absolute;
    right: 10px;
    top: 8px;
    width: 18px;
    height: 18px;
    font-size: 18px;
    font-weight: bold;
    color: #ccc;
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
    z-index: 999999;
}
#ps-toast .ps-toast-close:hover,
#ps-toast .ps-toast-close:focus {
    color: #fff;
}

/* Slide down entrance animation */
@keyframes psToastSlideDownIn {
    0% { opacity: 0; transform: translate(-50%, -20px); }
    100% { opacity: 1; transform: translate(-50%, 0); }
}

/* Slide up exit animation */
@keyframes psToastSlideUpOut {
    0% { opacity: 1; transform: translate(-50%, 0); }
    100% { opacity: 0; transform: translate(-50%, -20px); }
}

/* Animation classes */
.ps-toast-slide-down-in {
    animation: psToastSlideDownIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ps-toast-slide-up-out {
    animation: psToastSlideUpOut 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Inline validation state */
#ps-form input.ps-invalid,
#ps-form textarea.ps-invalid,
#ps-form select.ps-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
    animation: psShake 0.4s ease;
}
.ps-upload-area.ps-invalid {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14) !important;
    animation: psShake 0.4s ease;
}
.ps-upload-grid.ps-invalid {
    position: relative;
    animation: psShake 0.4s ease;
}
.ps-consent-field.ps-invalid {
    border: 2px solid #ef4444 !important;
    border-radius: 8px !important;
    padding: 12px !important;
    background: #fef2f2 !important;
    animation: psShake 0.4s ease;
}
.ps-consent-field.ps-invalid input[type="checkbox"] {
    outline: 2px solid #ef4444 !important;
    outline-offset: 2px !important;
}
.ps-upload-grid.ps-invalid::after {
    content: "";
    position: absolute;
    inset: -8px;
    border: 2px solid #ef4444;
    border-radius: 20px;
    pointer-events: none;
}
@keyframes psShake {
    0%, 100% { transform: translateX(0); }
    20%      { transform: translateX(-6px); }
    40%      { transform: translateX(6px); }
    60%      { transform: translateX(-4px); }
    80%      { transform: translateX(4px); }
}

/* Submit button preparing state */
#ps-submit-btn .ps-btn-spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: psBtnSpin 0.8s linear infinite;
}
#ps-submit-btn.is-loading {
    pointer-events: none;
    cursor: wait;
    filter: brightness(0.95);
}
#ps-submit-btn.is-loading .ps-btn-label,
#ps-submit-btn.is-loading .ps-btn-icon {
    display: none;
}
#ps-submit-btn.is-loading .ps-btn-spinner {
    display: inline-block;
}
@keyframes psBtnSpin {
    to { transform: rotate(360deg); }
}

    /* =========================================================
   Loading Overlay - Magical Creation Experience
   ========================================================= */
#ps-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    background: #f7fafd;
    overflow: hidden;
    opacity: 1;
    transition: opacity 0.4s ease-in-out;
}

/* Frosted glass container */
.ps-loading-container {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 44px 48px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    background: #ffffff;
    border: 1px solid #e3ebf6;
    border-radius: 20px;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.08);
}

/* ---- Magic Orb Loader ---- */
.ps-loader-visual {
    position: relative;
    width: 120px;
    height: 120px;
    margin-bottom: 28px;
}

.ps-orb {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ps-orb-core {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    color: #fff;
    border-radius: 50%;
    background: #0073e6;
    box-shadow:
        0 0 0 6px rgba(0, 115, 230, 0.1),
        0 0 20px rgba(0, 115, 230, 0.35),
        0 6px 22px rgba(0, 115, 230, 0.28);
    animation: psCoreFloat 2.4s ease-in-out infinite;
}

.ps-orb-core i {
    animation: psWandWave 2.4s ease-in-out infinite;
    transform-origin: 50% 100%;
}

@keyframes psCoreFloat {
    0%, 100% { transform: translateY(0) scale(1); }
    50%      { transform: translateY(-6px) scale(1.04); }
}

@keyframes psWandWave {
    0%, 100% { transform: rotate(-8deg) scale(1); }
    50%      { transform: rotate(8deg) scale(1.08); }
}

/* Rotating rings */
.ps-orb-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    animation: psSpin 3s linear infinite;
}
.ps-orb-ring-1 {
    border-top-color: #4285f4;
    border-right-color: rgba(66, 133, 244, 0.25);
}
.ps-orb-ring-2 {
    inset: 12px;
    border-top-color: #4285f4;
    border-left-color: rgba(66, 133, 244, 0.25);
    animation-duration: 2.2s;
    animation-direction: reverse;
}
.ps-orb-ring-3 {
    inset: -10px;
    border-bottom-color: #4285f4;
    border-top-color: rgba(66, 133, 244, 0.15);
    animation-duration: 4s;
    animation-delay: -1s;
}

/* Orbiting glowing dots */
.ps-orb-dot {
    position: absolute;
    top: -6px;
    left: 50%;
    width: 10px;
    height: 10px;
    margin-left: -5px;
    border-radius: 50%;
    background: #4285f4;
    box-shadow: 0 0 12px rgba(66, 133, 244, 0.9);
}
.ps-orb-dot-1 {
    background: #4285f4;
    box-shadow: 0 0 12px rgba(66, 133, 244, 0.9);
}
.ps-orb-dot-2 {
    background: #4285f4;
    box-shadow: 0 0 12px rgba(66, 133, 244, 0.9);
}

@keyframes psSpin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Twinkling floating particles */
.ps-particle {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #1a73e8;
    opacity: 0;
    animation: psParticleRise 3.6s ease-in-out infinite;
}
.ps-particle-1  { left: 6%;   top: 70%; background: #4285f4; animation-delay: 0s; }
.ps-particle-2  { left: 22%;  top: 20%; background: #4285f4; animation-delay: 0.7s; }
.ps-particle-3  { left: 84%;  top: 26%; background: #4285f4; animation-delay: 1.3s; }
.ps-particle-4  { left: 92%;  top: 62%; background: #4285f4; animation-delay: 1.9s; }
.ps-particle-5  { left: 46%;  top: 6%;  background: #4285f4; animation-delay: 2.4s; }
.ps-particle-6  { left: 70%;  top: 86%; background: #4285f4; animation-delay: 3s; }

@keyframes psParticleRise {
    0%   { transform: translateY(18px) scale(0.4); opacity: 0; }
    35%  { opacity: 0.9; }
    100% { transform: translateY(-34px) scale(1.1); opacity: 0; }
}

/* ---- Loading content ---- */
.ps-loading-content {
    position: relative;
    width: 100%;
    text-align: center;
}

#ps-loading-messages {
    min-height: 68px;
    margin-bottom: 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.loading-message {
    margin: 0;
    opacity: 0;
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.4px;
    color: #334155;
    transform: translateY(14px);
    transition: all 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.loading-message.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    animation: psMessagePop 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.loading-message.last-message {
    color: #0073e6;
    font-weight: 700;
}

@keyframes psMessagePop {
    0%   { opacity: 0; transform: translateY(14px) scale(0.96); }
    60%  { opacity: 1; transform: translateY(-2px) scale(1.02); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

/* ---- Progress bar with shimmer ---- */
.ps-loading-progress {
    width: 100%;
    margin-top: 6px;
}

.ps-progress-bar {
    position: relative;
    width: 100%;
    height: 6px;
    background: rgba(100, 116, 139, 0.14);
    border-radius: 999px;
    overflow: hidden;
}

.ps-progress-fill {
    position: relative;
    height: 100%;
    width: 0%;
    border-radius: 999px;
    background: #0073e6;
    transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
    box-shadow: 0 0 10px rgba(0, 115, 230, 0.4);
}

.ps-progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.55), transparent);
    animation: psGlide 1.4s ease-in-out infinite;
}

.ps-progress-fill.is-done {
    background: #10b981;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.45);
    animation: none;
}

@keyframes psGlide {
    0%   { transform: translateX(-110%); }
    100% { transform: translateX(110%); }
}

/* ---- Mobile responsive ---- */
@media (max-width: 768px) {
    .ps-loading-container {
        padding: 32px 26px;
        max-width: 320px;
        border-radius: 20px;
    }
    .ps-loader-visual {
        width: 96px;
        height: 96px;
        margin-bottom: 22px;
    }
    .ps-orb-core {
        width: 52px;
        height: 52px;
        font-size: 22px;
    }
    .loading-message {
        font-size: 15px;
    }
    #ps-loading-messages {
        min-height: 58px;
        margin-bottom: 18px;
    }
}

    /* Thank you message - celebration experience */
    #ps-thankyou {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 10;
        display: none;
        text-align: center;
        padding: 20px;
        box-sizing: border-box;
        background: #f7fafd;
        border-radius: 20px;
        overflow-y: auto;
        opacity: 1;
        transition: opacity 0.4s ease-in-out;
    }

    #ps-thankyou.show {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .ps-thankyou-container {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        max-width: 480px;
        margin: 0 auto;
        padding: 28px 36px;
        background: #ffffff;
        border: 1px solid #e3ebf6;
        border-radius: 20px;
        box-shadow: 0 6px 24px rgba(37, 99, 235, 0.08);
    }

    /* Success visual */
    .ps-success-visual {
        position: relative;
        width: 110px;
        height: 110px;
        margin-bottom: 18px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .ps-success-check {
        position: relative;
        z-index: 2;
        width: 64px;
        height: 64px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 30px;
        color: #fff;
        border-radius: 50%;
        background: #10b981;
        box-shadow:
            0 0 0 6px rgba(16, 185, 129, 0.1),
            0 0 20px rgba(16, 185, 129, 0.35),
            0 6px 22px rgba(16, 185, 129, 0.25);
        animation: psCheckPop 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
    }

    .ps-success-check i {
        animation: psCheckBounce 2.2s ease-in-out infinite;
    }

    .ps-success-ring {
        position: absolute;
        inset: 0;
        border-radius: 50%;
        border: 2px solid rgba(16, 185, 129, 0.35);
        animation: psSuccessPulse 2.4s ease-out infinite;
    }
    .ps-success-ring-2 {
        animation-delay: 0.8s;
    }

    @keyframes psSuccessPulse {
        0%   { transform: scale(0.6); opacity: 0.9; }
        100% { transform: scale(1.5); opacity: 0; }
    }

    @keyframes psCheckPop {
        0%   { transform: scale(0.2) rotate(-20deg); opacity: 0; }
        60%  { transform: scale(1.12) rotate(3deg); opacity: 1; }
        100% { transform: scale(1) rotate(0deg); opacity: 1; }
    }

    @keyframes psCheckBounce {
        0%, 100% { transform: scale(1); }
        50%      { transform: scale(1.12); }
    }

    /* Bursting sparkles */
    .ps-spark {
        position: absolute;
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: #34d399;
        opacity: 0;
        animation: psSparkBurst 1.6s ease-out infinite;
    }
    .ps-spark-1 { top: 8%;  left: 18%; background: #10b981; animation-delay: 0s; }
    .ps-spark-2 { top: 16%; right: 10%; background: #34d399; animation-delay: 0.25s; }
    .ps-spark-3 { bottom: 22%; left: 6%;  background: #059669; animation-delay: 0.5s; }
    .ps-spark-4 { bottom: 8%;  right: 20%; background: #34d399; animation-delay: 0.75s; }
    .ps-spark-5 { top: 42%; left: 0;       background: #10b981; animation-delay: 1s; }
    .ps-spark-6 { top: 38%; right: 0;      background: #059669; animation-delay: 1.25s; }

    @keyframes psSparkBurst {
        0%   { transform: translate(0, 0) scale(0.3); opacity: 0; }
        30%  { opacity: 1; }
        100% { transform: translate(-14px, -18px) scale(1.3); opacity: 0; }
    }

    #ps-thankyou h2 {
        margin: 0 0 12px 0;
        font-size: 26px;
        font-weight: 700;
        letter-spacing: 0.2px;
        color: #0073e6;
    }

    #ps-thankyou p {
        font-size: 15px;
        line-height: 1.7;
        color: #475569;
        max-width: 380px;
        margin: 0 0 10px 0;
    }

    #ps-thankyou p.ps-thankyou-note {
        color: #64748b;
        font-size: 14px;
        margin-bottom: 20px;
    }
    #ps-thankyou p.ps-thankyou-note i {
        color: #e73434;
        margin-right: 4px;
        animation: psHeartBeat 1.6s ease-in-out infinite;
    }

    @keyframes psHeartBeat {
        0%, 100% { transform: scale(1); }
        25%      { transform: scale(1.25); }
        40%      { transform: scale(0.95); }
        60%      { transform: scale(1.2); }
    }

    /* Actions */
    .ps-thankyou-actions {
        display: flex;
        flex-direction: column;
        gap: 10px;
        width: 100%;
        max-width: 320px;
    }

    @media (max-width: 650px) {
        .ps-thankyou-container {
            padding: 30px 20px;
        }
        #ps-thankyou h2 {
            font-size: 21px;
        }
    }

    /* Spinner */
    .ps-spinner {
        margin: 0 auto 15px auto;
        width: 40px;
        height: 40px;
        border: 4px solid #ddd;
        border-top: 4px solid #0073e6;
        border-radius: 50%;
        animation: ps-spin 1s linear infinite;
    }

    @keyframes ps-spin {
        0% { transform: rotate(0deg); }
        100% { transform: rotate(360deg); }
    }

    /* Responsive */
    @media (max-width: 650px) {
        #ps-form-wrapper {
            padding: 20px;
        }

        #ps-form-wrapper button[type="submit"],
        #ps-form-wrapper #ps-new-submission,
        #ps-form-wrapper #ps-view-submissions {
            width: 100%;
        }
    }

    /* Smooth fade-in/out helper classes */
    .hidden {
        opacity: 0;
        pointer-events: none;
        height: 0;
        overflow: hidden;
        transition: opacity 0.4s ease-in-out, height 0.4s ease-in-out;
    }
/* END of Submit form styles */

/* Enhanced Single Prompt Template Styles */
.prompt-description {
    margin: 30px 0;
    padding: 20px;
    background: #f5f8ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
}

.prompt-summary {
    margin-bottom: 0;
}

.prompt-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 15px;
}

.prompt-meta p {
    margin: 0;
    min-width: 0;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #1f2937;
    font-size: 14px;
    line-height: 1.6;
}

.prompt-meta p strong {
    color: #1f2937;
    font-weight: 600;
}

.prompt-meta p strong i {
    width: 18px;
    margin-right: 5px;
    color: #3b82f6;
    text-align: center;
}

.prompt-meta p a {
    color: #0073e6;
}

.prompt-meta .prompt-related-topics {
    grid-column: 1 / -1;
}

.section-intro {
    font-size: 16px;
    color: #555;
    margin-bottom: 20px;
    font-style: italic;
}

.image-caption {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
    font-style: italic;
}

.prompt-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.creator-details,
.prompt-stats {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.creator-details p,
.prompt-stats p {
    margin: 8px 0;
    font-size: 14px;
}

.pro-tip {
    background: #e3f2fd;
    padding: 15px;
    border-left: 4px solid #0073e6;
    border-radius: 4px;
    margin-bottom: 20px;
}

.prompt-usage-guide {
    margin-top: 20px;
    padding: 20px;
    background: #f5f5f5;
    border-radius: 8px;
}

.guidelines-list {
    margin: 15px 0;
    padding-left: 20px;
}

.guidelines-list li {
    margin: 8px 0;
    line-height: 1.5;
}

.expert-note {
    margin-top: 15px;
    padding: 15px;
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    border-radius: 4px;
}

.howto-intro,
.inspire-intro {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.ai-tools,
.best-practices,
.community-benefits,
.submission-guidelines {
    margin: 25px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
}

.tools-list,
.practices-list,
.benefits-list,
.guidelines-list {
    margin: 15px 0;
    padding-left: 20px;
}

.tools-list li,
.practices-list li,
.benefits-list li,
.guidelines-list li {
    margin: 10px 0;
    line-height: 1.5;
}

.expert-tip {
    background: #e8f5e8;
    padding: 15px;
    border-left: 4px solid #28a745;
    border-radius: 4px;
    margin-top: 20px;
}

/* FAQ */
.prompt-faq {
    margin: 40px 0;
}


.prompt-faq > h2 i {
    color: #1770e2;
}

/* FAQ list */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}

/* Question */
.faq-item {
    margin: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}

.faq-question {
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    background: #f9fafb;
    user-select: none;
    cursor: pointer;
}

.faq-list summary {
    position: relative;
    display: block;
    padding: 16px 44px 16px 18px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease;
}

.faq-list summary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.faq-list summary:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.faq-list summary h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    color: #1f2937;
}

/* Hide default marker */
.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::marker {
    display: none;
}

/* Plus */
.faq-list summary::after {
    content: "+";
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);

    font-size: 20px;
    font-weight: 400;
    color: #6b7280;
}

.faq-item[open] summary::after {
    content: "-";
}

/* Answer */
.faq-answer {
    padding: 0 18px;
    border-top: 1px solid #e5e7eb;
}

.faq-answer p {
    margin: 0;
    padding: 14px 0 18px;

    font-size: 14px;
    line-height: 1.7;
    color: #6b7280;
}

/* Mobile */
@media (max-width: 600px) {
    .prompt-faq {
        margin: 30px 0;
    }

    .prompt-faq > h2 {
        font-size: 20px;
    }

    .faq-list summary {
        padding: 14px 40px 14px 15px;
    }

    .faq-list summary h3 {
        font-size: 14px;
    }

    .faq-answer {
        padding: 0 15px;
    }
}

.cta-button {
    text-align: center;
    margin-top: 25px;
}

.cta-button .button {
    background: linear-gradient(90deg, #0073e6 60%, #1a73e8 100%);
    color: #fff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    display: inline-block;
    transition: background 0.3s, transform 0.2s;
}

.cta-button .button:hover {
    background: linear-gradient(90deg, #005bb5 60%, #1765c1 100%);
    transform: translateY(-2px);
}

/* =========================================
   Instagram Creator Section
========================================= */

.instagram-section {
    position: relative;
    margin: 50px 0;
    padding: 42px 30px;
    border-radius: 18px;
    text-align: center;
    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #833ab4 0%,
            #c13584 30%,
            #e1306c 55%,
            #f77737 78%,
            #fcaf45 100%
        );
}

/* Soft Instagram glow */

.instagram-section::before {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    top: -170px;
    right: -120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.instagram-section::after {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    bottom: -150px;
    left: -100px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.instagram-content {
    position: relative;
    z-index: 1;
}


/* Heading */

.instagram-section h2 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 28px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.instagram-section h2 .fab {
    margin-left: 7px;
    font-size: 25px;
    vertical-align: middle;
}


/* Intro */

.instagram-intro {
    max-width: 620px;
    margin: 0 auto 28px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 16px;
    line-height: 1.7;
}

.instagram-intro strong {
    color: #fff;
    font-weight: 700;
}


/* Benefits card */

.instagram-benefits {
    max-width: 760px;
    margin: 0 auto 28px;
    padding: 24px;
    border-radius: 14px;

    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    text-align: left;
}


/* Benefits heading */

.instagram-benefits h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin: 0 0 20px;

    color: #fff;
    font-size: 18px;
    line-height: 1.4;
    font-weight: 600;
}

.instagram-benefits h3 i {
    color: #fff;
}


/* Benefits list */

.instagram-benefits-list {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 14px 20px;

    list-style: none;
    padding: 0;
    margin: 0;
}

.instagram-benefits-list li {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 10px;

    margin: 0;
    color: rgba(255, 255, 255, 0.92);

    font-size: 14px;
    line-height: 1.6;
}

.instagram-benefits-list li i {
    flex: 0 0 auto;
    width: 18px;
    margin-top: 3px;

    color: #fff;
    font-size: 15px;
    text-align: center;
}

.instagram-benefits-list li strong {
    color: #fff;
    font-weight: 600;
}


/* CTA */

.instagram-cta {
    margin-top: 26px;
}

.instagram-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 44px;
    padding: 0 22px;

    border: 0;
    border-radius: 10px;

    background: #fff;
    color: #c13584;

    font-size: 14px;
    font-weight: 700;
    text-decoration: none;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.instagram-button .fab {
    font-size: 18px;
    color: #e1306c;
}

.instagram-button:hover {
    background: #fff;
    color: #c13584;
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

.instagram-button:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.65);
    outline-offset: 3px;
}


/* =========================================
   Tablet
========================================= */

@media (max-width: 768px) {

    .instagram-section {
        margin: 40px 0;
        padding: 34px 20px;
        border-radius: 16px;
    }

    .instagram-section h2 {
        font-size: 25px;
    }

    .instagram-intro {
        font-size: 15px;
    }

    .instagram-benefits {
        padding: 20px;
    }

    .instagram-benefits-list {
        grid-template-columns: 1fr;
    }
}


/* =========================================
   Mobile
========================================= */

@media (max-width: 480px) {

    .instagram-section {
        padding: 30px 16px;
        border-radius: 14px;
    }

    .instagram-section h2 {
        font-size: 22px;
    }

    .instagram-section h2 .fab {
        font-size: 20px;
    }

    .instagram-intro {
        margin-bottom: 22px;
        font-size: 14px;
        line-height: 1.6;
    }

    .instagram-benefits {
        padding: 17px;
        border-radius: 12px;
    }

    .instagram-benefits h3 {
        font-size: 17px;
    }

    .instagram-benefits-list {
        gap: 11px;
    }

    .instagram-benefits-list li {
        font-size: 13px;
    }

    .instagram-button {
        width: 100%;
        max-width: 320px;
        padding: 0 18px;
    }
}

/* Icon styling for list items */
.tools-list li,
.practices-list,
.benefits-list,
.guidelines-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.tools-list li,
.practices-list li,
.benefits-list li,
.guidelines-list li {
    position: relative;
    padding-left: 35px;
    margin-bottom: 12px;
    line-height: 1.5;
}

.tools-list li i,
.practices-list li i,
.benefits-list li i,
.guidelines-list li i {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 16px;
    color: #0073e6;
    width: 20px;
    text-align: center;
}

/* Section heading icons */
.ai-tools h3 i,
.best-practices h3 i,
.community-benefits h3 i,
.submission-guidelines h3 i {
    margin-right: 8px;
    font-size: 20px;
    color: #0073e6;
}

.inspire-content h2 i,
.howto-content h2 i {
    margin-right: 8px;
    font-size: 28px;
    color: #0073e6;
}

/* CTA button icon */
.cta-button .button i {
    margin-right: 8px;
    font-size: 16px;
}

.button-text {
    font-weight: 700;
}

/* SEO Breadcrumb Navigation */
.breadcrumb-nav {
    margin: 20px 0 30px 0;
    padding: 15px 0;
    border-bottom: 1px solid #e0e0e0;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 14px;
    flex-wrap: wrap;
}

.breadcrumb-list li {
    color: #666;
    margin-right: 4px;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '>';
    margin-left: 4px;
    color: #999;
}

.breadcrumb-list li a {
    color: #0073e6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-list li a:hover {
    color: #005bb5;
    text-decoration: underline;
}

.breadcrumb-list li.current {
    color: #333;
    font-weight: 600;
}

/* Mobile responsive breadcrumbs */
@media (max-width: 768px) {
    .breadcrumb-nav {
        margin: 15px 0 20px 0;
        padding: 10px 0;
    }
    
    .breadcrumb-list {
        font-size: 13px;
    }
    
    .breadcrumb-list li {
        margin-right: 6px;
    }
    
    .breadcrumb-list li:not(:last-child)::after {
        margin-left: 6px;
    }
}

@media (max-width: 480px) {
    .breadcrumb-list {
        font-size: 12px;
    }
    
    .breadcrumb-list li {
        margin-right: 4px;
    }
    
    .breadcrumb-list li:not(:last-child)::after {
        margin-left: 4px;
    }
}
@media (max-width: 768px) {
    .prompt-info {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .prompt-meta {
        grid-template-columns: 1fr;
    }

    .prompt-meta .prompt-related-topics {
        grid-column: auto;
    }
    
    .ai-tools,
    .best-practices,
    .community-benefits,
    .submission-guidelines {
        padding: 15px;
        margin: 20px 0;
    }
}

/* Enhanced Related Prompts with Thumbnails - New Structure */
.related-prompts-section {
    margin: 60px 0;
    padding: 40px 10px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 12px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 18px;
    color: #666;
    margin: 0;
    max-width: 600px;
    margin: 0 auto;
}

.related-prompts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.prompt-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 115, 230, 0.1);
}

.prompt-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 115, 230, 0.15);
    border-color: rgba(0, 115, 230, 0.3);
}

.card-image-wrapper {
    position: relative;
    overflow: hidden;
}

.card-image-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.card-thumbnail {
    width: 100%;
    height: 220px;
    position: relative;
    overflow: hidden;
}

.card-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.prompt-card:hover .card-thumbnail img {
    transform: scale(1.08);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 20px;
}

.card-image-wrapper:hover .card-overlay {
    opacity: 1;
}

.overlay-text {
    color: #fff;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-content {
    text-align: center;
    color: #0073e6;
}

.placeholder-content i.fas {
    font-size: 48px;
    display: block;
    margin-bottom: 8px;
    opacity: 0.7;
    color: #0073e6;
}

.placeholder-label {
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.card-content {
    padding: 24px;
}

.card-header {
    margin-bottom: 16px;
}

.card-title {
    margin: 0 0 8px 0;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s ease;
}

.card-title a:hover {
    color: #0073e6;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: #666;
}

.author-name {
    font-weight: 500;
    color: #0073e6;
}

.author-text {
    font-weight: 500;
    color: #666;
}

.author-name a {
    color: #0073e6;
    text-decoration: none;
    transition: color 0.2s ease;
}

.author-name a:hover {
    color: #005bb5;
    text-decoration: underline;
}

.post-date {
    color: #999;
}

.card-excerpt {
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
    color: #555;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.card-categories {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.category-tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(0, 115, 230, 0.1);
    color: #0073e6;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.category-tag:hover {
    background: rgba(0, 115, 230, 0.2);
    transform: translateY(-1px);
}

.card-action {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #0073e6;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s ease;
}

.card-action:hover {
    color: #005bb5;
    gap: 10px;
}

.action-arrow {
    transition: transform 0.2s ease;
}

.card-action:hover .action-arrow {
    transform: translateX(2px);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 16px;
    border: 2px dashed #e0e0e0;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.5;
    color: #0073e6;
}

.empty-icon i.fas {
    font-size: 64px;
    display: block;
    color: #0073e6;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #333;
}

.empty-state p {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.button.primary {
    background: linear-gradient(90deg, #26962d 60%, #28a745 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.button.primary:hover {
    background: linear-gradient (90deg, #1e7e23 60%, #218838 100%);
    transform: translateY(-2px);
}

.button.secondary {
    background: linear-gradient(90deg, #0073e6 60%, #1a73e8 100%);
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: all 0.3s ease;
}

.button.secondary:hover {
    background: linear-gradient(90deg, #005bb5 60%, #1765c1 100%);
    transform: translateY(-2px);
}

.section-footer {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #0073e6;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
}

.view-all-link:hover {
    color: #005bb5;
    gap: 12px;
}

.link-arrow {
    transition: transform 0.2s ease;
}

.view-all-link:hover .link-arrow {
    transform: translateX(2px);
}

/* Mobile responsiveness for new structure */
@media (max-width: 768px) {
    .related-prompts-section {
        margin: 40px 0;
        padding: 30px 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .section-subtitle {
        font-size: 16px;
    }
    
    .related-prompts-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .card-thumbnail {
        height: 180px;
    }
    
    .card-content {
        padding: 20px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 24px;
    }
    
    .card-thumbnail {
        height: 160px;
    }
    
    .card-content {
        padding: 16px;
    }
    
    .overlay-text {
        font-size: 14px;
    }
}