.upscale-upload-section {
    width: 100%;
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
}


/* Drag & Drop Box */

.upscale-upload-box {
    border: 2px dashed #b8b8b8;
    border-radius: 16px;

    padding: 45px 20px;

    background: #fafafa;

    cursor: pointer;

    transition: 0.3s;
}

.upscale-upload-box:hover {
    border-color: #6c63ff;
    background: #f7f6ff;
}


/* When dragging image */

.upscale-upload-box.dragging {
    border-color: #2563eb;
    background: #eef4ff;
}


.upload-arrow {
    font-size: 40px;
    margin-bottom: 10px;
}


.upscale-upload-box h3 {
    margin: 5px 0 10px;
    font-size: 22px;
}


.upscale-upload-box p {
    color: #666;
    margin: 8px 0;
}


.upscale-upload-box span {
    display: block;
    margin: 12px 0;
    color: #888;
}


/* Upload button */




/* Preview */

.upscale-preview-container {
    display: none;

    margin-top: 25px;
    padding: 18px;

    border: 1px solid #ddd;
    border-radius: 12px;

    background: #fafafa;

    text-align: center;

    box-sizing: border-box;
}


.upscale-preview-container p {
    font-weight: 600;
}


#upscalePreviewImage {
    display: block;

    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 400px;

    object-fit: contain;

    /* CENTER IMAGE */
    margin: 10px auto 0;

    border-radius: 8px;
}


/* ================================
   UPSCALE CONTROLS
================================ */

.upscale-controls {
    display: none;
    margin-top: 25px;
    text-align: center;
}

.upscale-controls h3 {
    margin-bottom: 15px;
    font-size: 20px;
}


.upscale-resolution-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 20px;
}


.upscale-resolution-btn {
    width: 110px;
    padding: 12px 20px;

    border: 2px solid #2563eb;
    border-radius: 10px;

    background: white;
    color: #2563eb;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;

    transition: 0.2s;
}


.upscale-resolution-btn:hover {
    background: #eef4ff;
}


.upscale-resolution-btn.active {
    background: #2563eb;
    color: white;
}


/* UPSCALE BUTTON */

.upscale-btn {
    width: 100%;
    padding: 14px;

    border: none;
    border-radius: 9px;

    background: #2563eb;
    color: white;

    font-size: 18px;
    font-weight: 600;

    cursor: pointer;
}


.upscale-btn:hover {
    background: #1d4ed8;
}


.upscale-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}


/* ================================
   UPSCALE RESULT
================================ */

.upscale-result {
    display: none;

    margin-top: 30px;
    padding: 20px;

    border: 1px solid #ddd;
    border-radius: 14px;

    background: #fafafa;

    text-align: center;
    box-sizing: border-box;
}


.upscale-result h3 {
    margin-bottom: 15px;
}


#upscaledResultImage {
    display: block;

    width: auto;
    max-width: 100%;

    height: auto;
    max-height: 500px;

    object-fit: contain;

    /* Center enhanced image */
    margin: 0 auto 20px;

    border-radius: 10px;
}


/* DOWNLOAD */

.upscale-download-btn {
    width: 100%;

    padding: 14px;

    border: none;
    border-radius: 9px;

    background: #111827;
    color: white;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;
}


.upscale-download-btn:hover {
    background: #000;
}

/* Mobile */

@media (max-width: 600px) {

    .upscale-upload-section {
        width: 90%;
        margin: 30px auto;
    }

    .upscale-upload-box {
        padding: 35px 15px;
    }

}


#upscaleFileInput {
    display: none;
}

.upload-image-btn {
    display: inline-block;
    background: #2563eb;
    color: white;
    padding: 12px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.upload-image-btn:hover {
    background: #1d4ed8;
}
/* =========================================
   BEFORE / AFTER SHOWCASE
========================================= */

.before-image {
    display: block;
    width: min(720px, 90%);
    height: auto;

    margin: 90px auto 25px;

    border-radius: 18px;
    object-fit: contain;
}


/* FEATURES UNDER BEFORE/AFTER IMAGE */

.paragraph1 {
    width: min(720px, 90%);

    margin: 0 auto 70px;

    padding: 24px 30px;

    background: #f8f9ff;

    border: 1px solid #e7e9f5;
    border-radius: 16px;

    font-family: Arial, sans-serif;

    font-size: 17px;
    font-weight: 500;

    line-height: 1.9;

    color: #333;

    box-sizing: border-box;
}


/* =========================================
   MAIN BOTTOM CONTENT
========================================= */

.bottom-content {
    width: 100%;
    padding: 0 20px;

    box-sizing: border-box;
}


/* LINE ABOVE HOW TO USE */

.bottom-content > hr {
    width: min(1000px, 90%);

    margin: 0 auto 70px;

    border: none;
    border-top: 1px solid #e5e5e5;
}


/* SECTION TITLES */

.bottom-content > h2 {
    width: min(900px, 100%);

    margin: 65px auto 20px;

    font-family: Arial, sans-serif;

    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;

    line-height: 1.25;

    color: #171717;

    text-align: center;
}


/* NORMAL CONTENT */

.bottom-content > p {
    width: min(850px, 100%);

    margin: 0 auto 55px;

    font-family: Arial, sans-serif;

    font-size: 17px;

    line-height: 2;

    color: #555;

    text-align: left;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .before-image {
        width: 94%;
        margin-top: 55px;
        border-radius: 12px;
    }

    .paragraph1 {
        width: 94%;

        padding: 20px;

        font-size: 15px;

        margin-bottom: 50px;
    }

    .bottom-content {
        padding: 0 16px;
    }

    .bottom-content > hr {
        width: 100%;
        margin-bottom: 50px;
    }

    .bottom-content > h2 {
        font-size: 28px;

        margin-top: 50px;
        margin-bottom: 18px;
    }

    .bottom-content > p {
        font-size: 16px;

        line-height: 1.9;

        margin-bottom: 45px;
    }
}








/* =========================================================
   6. FAQ
   ========================================================= */

.faq-section {
    width: 90%;
    max-width: 900px;
    margin: 80px auto;
}

.faq-section h2 {
    text-align: center;
    font-size: 36px;
    margin: 0 0 10px;
}

.faq-subtitle {
    text-align: center;
    color: #666;
    margin: 0 0 35px;
    line-height: 1.6;
}

.faq-container {
    width: 100%;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    background: white;
}

.faq-question {
    width: 100%;
    padding: 22px 10px;
    border: none;
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    text-align: left;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
}

.faq-question:hover {
    color: #8e67dc;
}

.faq-icon {
    flex: 0 0 auto;
    font-size: 14px;
    transition: transform 0.3s ease;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.faq-answer p {
    padding: 0 10px 20px;
    margin: 0;
    color: #555;
    line-height: 1.7;
    font-size: 16px;
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}


/* =========================================================
   7. IMAGE ENHANCEMENT GUIDE
   ========================================================= */

.enhancement-guide {
    width: 100%;
    background: #fafafa;
    padding: 80px 0;
    margin-top: 80px;
}

.guide-container {
    width: 90%;
    max-width: 1000px;
    margin: auto;
}

.enhancement-guide h2 {
    text-align: center;
    font-size: 38px;
    margin: 0 0 15px;
    color: #222;
    line-height: 1.3;
}

.guide-intro {
    max-width: 700px;
    margin: 0 auto 50px;
    text-align: center;
    color: #666;
    font-size: 17px;
    line-height: 1.7;
}

.guide-card {
    background: white;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.04);
}

.guide-card h3 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.guide-card p {
    color: #555;
    font-size: 16px;
    line-height: 1.8;
    margin: 0 0 15px;
}
/* =========================================================
   8. COMPARISON TABLE
   ========================================================= */

.guide-table {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 20px;
}

.table-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.table-row > div {
    padding: 16px;
    border-bottom: 1px solid #eee;
    overflow-wrap: anywhere;
}

.table-row > div:first-child {
    border-right: 1px solid #eee;
}

.table-header {
    font-weight: 700;
    background: #f5efff;
    color: #6f45a5;
}
/* =========================================================
   9. RESOLUTION LIST
   ========================================================= */

.resolution-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.resolution-list div {
    background: #faf7ff;
    border: 1px solid #eadcf7;
    border-radius: 12px;
    padding: 20px;
}

.resolution-list strong {
    display: block;
    font-size: 20px;
    color: #8e67dc;
    margin-bottom: 5px;
}

.resolution-list span {
    color: #666;
    font-size: 14px;
}

.guide-note {
    background: #f8f8f8;
    border-left: 4px solid #8e67dc;
    padding: 15px 18px;
}

.guide-list {
    padding-left: 25px;
}

.guide-list li {
    margin-bottom: 12px;
    color: #555;
    line-height: 1.7;
}

/* =========================================================
   10. FOOTER
   ========================================================= */

.footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 80px;
    border-top: 1px solid #ddd;
    background: #f8f8f8;
}

.footer h3 {
    margin: 0 0 8px;
    font-size: 24px;
}

.footer p {
    color: #666;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    margin: 25px 0;
}

.footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 15px;
}

.footer-links a:hover {
    color: #8e67dc;
    text-decoration: underline;
}

.copyright {
    font-size: 14px;
}









/* =========================================
   FINAL LOWER PAGE POLISH
========================================= */

.faq-section {
    max-width: 900px;
    margin: 100px auto;
    padding: 0 20px;
    box-sizing: border-box;
}

.faq-section h2 {
    font-family: Arial, sans-serif;
    font-size: clamp(28px, 4vw, 38px);
    color: #171717;
}

.faq-subtitle {
    font-family: Arial, sans-serif;
    font-size: 16px;
}

.faq-item {
    border-bottom: 1px solid #e8e8e8;
}

.faq-question {
    font-family: Arial, sans-serif;
    padding: 22px 5px;
    font-size: 17px;
}


/* GUIDE */

.enhancement-guide {
    background: #f8f9fc;
    padding: 90px 20px;
    box-sizing: border-box;
}

.guide-container {
    max-width: 1000px;
}

.enhancement-guide h2 {
    font-family: Arial, sans-serif;
    font-size: clamp(30px, 4vw, 40px);
}

.guide-card {
    padding: 32px;

    border: 1px solid #e8e8e8;
    border-radius: 18px;

    box-shadow:
        0 4px 15px rgba(0, 0, 0, 0.03);
}

.guide-card h3 {
    font-family: Arial, sans-serif;
    font-size: 22px;
}

.guide-card p,
.guide-list li {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.8;
}


/* MOBILE GUIDE */

@media (max-width: 600px) {

    .faq-section {
        width: 100%;
        margin: 65px auto;
    }

    .enhancement-guide {
        padding: 60px 15px;
    }

    .guide-container {
        width: 100%;
    }

    .guide-card {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .resolution-list {
        grid-template-columns: 1fr;
    }
}


/* Login popup overlay */
.login-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    padding: 18px;
}

.login-popup-overlay[hidden] {
    display: none !important;
}

/* Popup card */
.login-popup-card {
    width: 100%;
    max-width: 420px;
    background: white;
    border-radius: 22px;
    padding: 34px 27px;
    position: relative;
    box-shadow: 0 18px 65px rgba(0, 0, 0, 0.2);
    text-align: center;
    animation: loginPopupIn 0.25s ease-out;
    color: #172033;
}

.login-popup-close {
    position: absolute;
    right: 18px;
    top: 13px;
    font-size: 29px;
    background: transparent;
    border: none;
    color: #64748b;
    cursor: pointer;
}

.login-popup-icon {
    font-size: 38px;
    background: #edf4ff;
    width: 74px;
    height: 74px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    margin: 0 auto 16px;
}

.login-popup-card h2 {
    font-size: 25px;
    margin: 0 0 12px;
    font-weight: 750;
}

.login-popup-description {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 22px;
}

.login-popup-benefits {
    background: #f4f7ff;
    border-radius: 14px;
    padding: 15px;
    text-align: left;
    margin-bottom: 24px;
}

.login-popup-benefits p {
    margin: 11px 0;
    font-size: 14px;
    color: #334155;
}

.login-popup-button {
    display: block;
    background: #2563eb;
    color: white;
    text-decoration: none;
    padding: 15px;
    border-radius: 12px;
    font-weight: 650;
    transition: background 0.2s;
}

.login-popup-button:hover {
    background: #1d4ed8;
}

.login-popup-footer {
    color: #64748b;
    font-size: 12px;
    margin: 18px 0 0;
}

@keyframes loginPopupIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@media (max-width: 480px) {
    .login-popup-card {
        padding: 30px 20px;
    }

    .login-popup-card h2 {
        font-size: 22px;
    }
}
