    /* ----- global reset / variables (unchanged dark premium look) ----- */
    * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
    }

    body {
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
        background: #0b0f17;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0;
        color: #eef2f8;
        background-image: radial-gradient(circle at 10% 20%, rgba(38, 70, 110, 0.2) 0%, transparent 40%),
                          radial-gradient(circle at 90% 70%, rgba(85, 120, 170, 0.15) 0%, transparent 45%);
        flex-direction: column;
    }

    .site-header {
        width: 100%;
        background: rgba(10, 18, 30, 0.75);
        backdrop-filter: blur(20px) saturate(200%);
        -webkit-backdrop-filter: blur(20px) saturate(200%);
        border-bottom: 1px solid rgba(72, 92, 124, 0.35);
        position: sticky;
        top: 0;
        z-index: 100;
        padding: 0.6rem 2.5rem;
        box-shadow: 0 10px 30px -10px rgba(0,0,0,0.5);
    }

    .header-container {
        max-width: 1400px;
        margin: 0 auto;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    /* ===== LOGO area – completely redesigned ===== */
    .logo {
        display: flex;
        align-items: center;
    }
    .logo a {
        display: flex;
        align-items: center;
        text-decoration: none;
        gap: 0.75rem;
        transition: opacity 0.2s;
    }
    .logo a:hover {
        opacity: 0.9;
    }
    /* brand icon (if image exists) – fallback */
    .brand-icon {
        width: 44px;
        height: 44px;
        background: linear-gradient(145deg, #25456b, #12263f);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 8px 12px -6px #00000080, 0 0 0 1px #3c6190 inset;
        overflow: hidden; /* in case image is larger */
    }
    .brand-icon img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        display: block;
    }
    .brand-name {
        font-weight: 700;
        font-size: 1.9rem;
        letter-spacing: -0.02em;
        background: linear-gradient(to right, #f5faff, #d4e2ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.2;
    }
    .brand-name span {
        background: linear-gradient(145deg, #87b0ff, #4f8cff);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
    }
    /* small device adj for logo */
    @media (max-width: 600px) {
        .site-header { padding: 0.5rem 1.2rem; }
        .brand-icon { width: 36px; height: 36px; border-radius: 10px; }
        .brand-name { font-size: 1.5rem; }
    }
    @media (max-width: 400px) {
        .brand-name { font-size: 1.3rem; }
    }

    /* right side header – user area (unchanged) */
    .header-right {
        display: flex;
        align-items: center;
        gap: 2rem;
    }
    .user-profile {
        display: flex;
        align-items: center;
        gap: 1.2rem;
    }
    .user-badge {
        background: #1f2e48;
        border-radius: 60px;
        padding: 0.4rem 1.2rem;
        border: 1px solid #3e5f8c;
        display: flex;
        align-items: center;
        gap: 0.6rem;
        font-weight: 500;
        color: #d7e5ff;
    }
    .vip-chip {
        background: linear-gradient(145deg, #f6b849, #f0a500);
        border-radius: 40px;
        padding: 0.3rem 1.2rem;
        font-weight: 700;
        color: #171e2c;
        font-size: 0.9rem;
        border: 1px solid #ffd966;
        display: flex;
        align-items: center;
        gap: 6px;
        box-shadow: 0 6px 14px #ffb34733;
    }
    .btn-outline-light {
        background: transparent;
        border: 1px solid #4c6f9e;
        border-radius: 2rem;
        padding: 0.5rem 1.4rem;
        color: #c5d6ff;
        font-weight: 500;
        text-decoration: none;
        transition: 0.15s;
    }
    .btn-outline-light:hover {
        background: #1f3552;
        border-color: #6f96d4;
        color: white;
    }
    .btn-logout {
        background: #b13e4b;
        padding: 0.4rem 1.2rem;
        border-radius: 2rem;
        color: white;
        text-decoration: none;
        font-weight: 500;
        border: 1px solid #dc6b78;
    }

    /* Hero section – english friendly */
    .hero-section {
        max-width: 1300px;
        width: 100%;
        margin: 1.2rem auto 0.5rem;
        background: linear-gradient(145deg, #101b2b, #07101e);
        border-radius: 2rem;
        padding: 1.4rem 2rem;
        box-shadow: 0 20px 35px -12px #000000b3, inset 0 1px 1px rgba(255,255,255,0.06);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.3rem;
        text-align: center;
    }
    .hero-title {
        font-size: 1.6rem;
        font-weight: 600;
        background: linear-gradient(to right, #ffffff, #b3d0ff);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        line-height: 1.3;
        letter-spacing: -0.01em;
        width: 100%;
        text-align: center;
    }
    .hero-description {
        font-size: 1rem;
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 0.2rem 0 0.2rem 0;
        width: 100%;
        color: #b0c8f0;
        justify-content: center;
    }
    .hero-description p {
        margin: 0;
        line-height: 1.4;
    }

    /* main card */
    .editor-card {
        max-width: 1300px;
        width: 100%;
        margin: 1.2rem auto 1.5rem;
        background: rgba(18, 25, 38, 0.75);
        backdrop-filter: blur(35px) saturate(200%);
        -webkit-backdrop-filter: blur(35px) saturate(200%);
        border-radius: 3rem;
        box-shadow: 0 40px 80px -25px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06) inset, 0 0 0 1px rgba(255, 255, 255, 0.03);
        padding: 1.8rem 2.8rem 2.2rem;
        border: 1px solid rgba(72, 92, 124, 0.25);
    }

    .info-card {
        background: rgba(28, 40, 60, 0.6);
        border-radius: 1.5rem;
        padding: 1rem 1.5rem;
        margin-bottom: 1.5rem;
        border: 1px solid #304560;
        display: flex;
        justify-content: space-between;
        align-items: center;
        flex-wrap: wrap;
    }
    .editnum {
        color: #ffd966;
        font-weight: 700;
    }

    .main-row {
        display: flex;
        gap: 2.5rem;
        align-items: stretch;
        margin-bottom: 2.5rem;
        flex-wrap: wrap;
    }
    .left-upload {
        flex: 1;
        min-width: 320px;
        display: flex;
        flex-direction: column;
    }
    .right-compare {
        flex: 1.6;
        min-width: 480px;
        display: flex;
        flex-direction: column;
    }
    .section-label {
        font-weight: 600;
        font-size: 0.95rem;
        text-transform: uppercase;
        letter-spacing: 0.8px;
        color: #9db4db;
        margin-bottom: 1.1rem;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .section-label i {
        font-size: 1.2rem;
        color: #558df0;
    }

    .drop-zone {
        background: rgba(12, 20, 30, 0.7);
        backdrop-filter: blur(8px);
        border-radius: 2rem;
        padding: 1.6rem 1.8rem;
        border: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 25px 40px -20px black, inset 0 1px 1px rgba(255,255,255,0.02);
        display: flex;
        flex-direction: column;
        flex: 1;
    }

    /* right slider wrapper */
    .right-compare .slider-wrapper {
        background: rgba(12, 20, 30, 0.7);
        backdrop-filter: blur(8px);
        border-radius: 2rem;
        padding: 1.6rem 1.8rem;
        border: 1px solid rgba(255,255,255,0.05);
        box-shadow: 0 25px 40px -20px black, inset 0 1px 1px rgba(255,255,255,0.02);
        display: flex;
        flex-direction: column;
        flex: 1;
    }
    .slider-container {
        position: relative;
        width: 100%;
        aspect-ratio: 1/1;
        border-radius: 1.5rem;
        overflow: hidden;
        box-shadow: 0 30px 55px -20px #000, 0 0 0 1px rgba(255,255,255,0.08) inset;
        background: #101a26;
        user-select: none;
        margin-bottom: 1rem;
        border: 1px solid #304560;
    }
    .compare-img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: contain;
        pointer-events: none;
        background: #0e1624;
    }
    .after-img {
        clip-path: inset(0 0 0 50%);
    }
    .slider-handle {
        position: absolute;
        top: 0;
        left: 50%;
        width: 4px;
        height: 100%;
        background: rgba(230, 240, 255, 0.7);
        box-shadow: 0 0 25px #b5d0ff;
        transform: translateX(-50%);
        z-index: 25;
        cursor: col-resize;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .handle-circle {
        width: 54px;
        height: 54px;
        background: #263e60;
        border-radius: 40px;
        box-shadow: 0 16px 28px -8px #000, 0 0 0 2px #90b4ff;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #ffffff;
        font-size: 1.5rem;
        backdrop-filter: blur(4px);
    }
    .slider-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 20;
        cursor: col-resize;
    }
    .compare-labels {
        display: flex;
        justify-content: space-between;
        font-weight: 500;
        color: #bbd2fc;
        padding: 0 0.4rem;
        margin-bottom: 0.3rem;
        font-size: 0.95rem;
    }

    /* upload area */
    .main-upload-area {
        border: 2px dashed #314a70;
        background: rgba(24, 38, 58, 0.6);
        padding: 2.8rem 1rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.2s ease;
        color: #c3d6ff;
        margin-bottom: 22px;
        border-radius: 1.8rem;
    }
    .main-upload-area:hover {
        border-color: #5f8af0;
        background: rgba(35, 55, 85, 0.7);
    }
    .main-upload-area i {
        font-size: 3rem;
        margin-bottom: 10px;
        color: #6792f0;
    }
    .main-upload-area .main-prompt {
        font-weight: 600;
        font-size: 1.2rem;
        color: #e8f0ff;
    }
    .main-upload-area .sub-prompt {
        font-size: 0.85rem;
        color: #8da7d0;
        margin-top: 6px;
    }

    .preview-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
        margin-bottom: 22px;
    }
    .image-cell {
        aspect-ratio: 1 / 1;
        position: relative;
        background: #1c2b3f;
        overflow: hidden;
        border-radius: 1.2rem;
        box-shadow: 0 15px 20px -14px black;
        grid-column: span 3;
    }
    .image-cell img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
    .remove-btn {
        position: absolute;
        top: 6px;
        right: 6px;
        background: #c7424f;
        width: 26px;
        height: 26px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 0.9rem;
        border-radius: 8px;
        cursor: pointer;
        z-index: 10;
        box-shadow: 0 4px 10px rgba(0,0,0,0.5);
        transition: 0.1s;
        border: 1px solid rgba(255,255,255,0.2);
    }
    .remove-btn:hover {
        background: #e35b68;
    }

    .input-row {
        display: flex;
        align-items: center;
        background: rgba(20, 30, 45, 0.7);
        backdrop-filter: blur(8px);
        border-radius: 3rem;
        padding: 0.2rem 0.2rem 0.2rem 1.5rem;
        border: 1px solid rgba(110, 150, 220, 0.6);
        box-shadow: 0 4px 12px rgba(0, 10, 30, 0.6), inset 0 1px 4px rgba(255,255,255,0.1);
        margin: 0.8rem 0;
        transition: border 0.2s, box-shadow 0.2s;
    }
    .input-row:focus-within {
        border-color: #8bb0ff;
        box-shadow: 0 0 0 3px rgba(120, 170, 255, 0.3), 0 4px 12px rgba(0,0,0,0.5);
    }
    .input-row i {
        color: #aac3f0;
        font-size: 1rem;
        margin-right: 0.3rem;
    }
    .input-row input, .input-row select {
        border: none;
        background: transparent;
        padding: 0.9rem 0.7rem;
        width: 100%;
        font-size: 0.95rem;
        outline: none;
        color: #f0f5ff;
        font-weight: 400;
    }
    .input-row select option {
        background: #1e2c3f;
        color: #eef3ff;
    }
    .input-row input::placeholder {
        color: #b0caf0;
        font-weight: 300;
        opacity: 0.9;
    }

    .button-group {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin: 1.5rem 0;
        flex-wrap: wrap;
    }
    .btn-primary {
        background: linear-gradient(145deg, #1f354f, #112336);
        color: white;
        border: none;
        border-radius: 3rem;
        padding: 1rem 2rem;
        font-weight: 600;
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 18px 28px -18px #000, 0 0 0 1px #3366aa inset;
        cursor: pointer;
        transition: 0.2s;
        border: 1px solid rgba(255,255,255,0.03);
        flex: 1 1 auto;
        min-width: 160px;
    }
    .btn-primary:hover:not(:disabled) {
        background: linear-gradient(145deg, #274466, #193455);
        box-shadow: 0 22px 32px -18px #030b14;
    }
    .btn-primary:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }
    .btn-secondary {
        background: #314a70;
        border: none;
        border-radius: 3rem;
        padding: 1rem 2rem;
        font-weight: 600;
        color: #dbeafe;
        box-shadow: 0 2px 8px #1b2e48;
        cursor: pointer;
        font-size: 1rem;
        border: 1px solid #3e5b84;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 1 1 auto;
        min-width: 140px;
    }

    /* AI result area */
    .result-showcase {
        margin-top: 2rem;
        background: rgba(12, 22, 36, 0.6);
        backdrop-filter: blur(8px);
        border-radius: 2rem;
        padding: 1.5rem;
        border: 1px solid rgba(255,255,255,0.04);
        transition: all 0.2s;
    }
    .result-header {
        display: flex;
        align-items: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
        color: #b8d0ff;
        font-weight: 500;
    }
    .result-header i {
        font-size: 1.4rem;
        color: #ffb347;
    }
    .result-image-container {
        width: 100%;
        border-radius: 1.8rem;
        overflow: hidden;
        box-shadow: 0 20px 30px -10px black;
        background: #0e1624;
        display: flex;
        justify-content: center;
        align-items: center;
        border: 1px solid #2f4468;
        cursor: pointer;
        margin-bottom: 1rem;
    }
    .result-image-container img {
        max-width: 100%;
        max-height: 400px;
        width: auto;
        height: auto;
        object-fit: contain;
        display: block;
        margin: 0 auto;
    }
    .btn-download {
        background: linear-gradient(145deg, #2f4b70, #1d3450);
        color: white;
        border: none;
        border-radius: 3rem;
        padding: 1rem 2rem;
        font-weight: 600;
        font-size: 1.1rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 18px 28px -18px #000, 0 0 0 1px #5580bb inset;
        cursor: pointer;
        transition: 0.2s;
        width: 100%;
        margin-top: 0.5rem;
    }
    .btn-download:hover {
        background: linear-gradient(145deg, #385f8a, #25486b);
    }

    .result-showcase.empty {
        display: none;
    }

    /* modals */
    .image-modal {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.9);
        z-index: 2000;
        align-items: center;
        justify-content: center;
        padding: 20px;
    }
    .image-modal img {
        max-width: 100%;
        max-height: 90%;
        object-fit: contain;
        border-radius: 16px;
        border: 2px solid rgba(255,255,255,0.2);
    }
    .image-modal .close-modal {
        position: absolute;
        top: 30px;
        right: 40px;
        color: white;
        font-size: 3rem;
        cursor: pointer;
        opacity: 0.7;
        transition: 0.2s;
    }
    .image-modal .close-modal:hover {
        opacity: 1;
    }

    .footer-bar {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding-top: 1.8rem;
        border-top: 1px solid rgba(82, 113, 163, 0.25);
        color: #8ba2cc;
        font-size: 0.9rem;
    }
    .footer-links a {
        text-decoration: none;
        color: #aec4ec;
        margin-right: 2.2rem;
        font-weight: 500;
        opacity: 0.8;
        transition: all 0.3s ease;
        position: relative;
    }
    .footer-links a:hover {
        opacity: 1;
        color: white;
    }
    .footer-links a::after {
        content: '';
        position: absolute;
        bottom: -4px;
        left: 0;
        width: 0;
        height: 2px;
        background: linear-gradient(90deg, #ffd966, #ffb347);
        transition: width 0.3s ease;
    }
    .footer-links a:hover::after {
        width: 100%;
    }
    .footer-link {
        color: #b8d1ff;
        text-decoration: none;
        font-weight: 600;
        position: relative;
        padding: 0 4px;
        transition: all 0.3s ease;
        background: linear-gradient(90deg, #ffd966, #ffb347);
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        text-shadow: 0 2px 10px rgba(255, 200, 100, 0.3);
        border-bottom: 1px solid rgba(255, 200, 100, 0.3);
    }
    .footer-link:hover {
        border-bottom-color: #ffb347;
        text-shadow: 0 2px 15px rgba(255, 180, 70, 0.6);
        transform: translateY(-1px);
    }
    .flops {
        display: flex;
        align-items: center;
        gap: 4px;
        color: #8ba2cc;
        font-size: 0.9rem;
    }

    /* renewal modal */
    .modal {
        display: none;
        position: fixed;
        top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.7);
        z-index: 1000;
        align-items: center;
        justify-content: center;
    }
    .modal-content {
        background: #1f2b3b;
        border-radius: 2rem;
        padding: 2rem;
        max-width: 400px;
        width: 90%;
        color: white;
        border: 1px solid #3f5a80;
    }
    .renewal-price {
        font-size: 2.5rem;
        color: #ffd966;
        font-weight: bold;
        margin: 1rem 0;
    }
    .pay-type-btn {
        background: #2c3f5c;
        border: 1px solid #4f6f9b;
        color: white;
        display: block;
        padding: 0.8rem;
        border-radius: 2rem;
        margin: 0.5rem 0;
        cursor: pointer;
        text-align: center;
    }
    .pay-type-btn.active {
        background: #3f60a0;
        border-color: #8bb0ff;
    }
    .hidden {
        display: none !important;
    }
    .finecms-file-ts {
        color: #8fa9d4;
        font-size: 0.85rem;
        margin: 0.6rem 0;
    }
    .vip-upgrade-btn {
        background: linear-gradient(145deg, #fdba3a, #ff9800);
        border: none;
        border-radius: 60px;
        padding: 0.7rem 2rem 0.7rem 1.5rem;
        font-weight: 600;
        font-size: 1.1rem;
        color: #1b1f2b;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        box-shadow: 0 12px 24px -6px rgba(255, 160, 0, 0.4), 0 0 0 1px #ffe6a6 inset, 0 0 0 1px rgba(0,0,0,0.1);
        cursor: pointer;
        transition: all 0.25s ease;
        border: 1px solid rgba(255,215,100,0.7);
        letter-spacing: 0.3px;
        backdrop-filter: blur(2px);
        white-space: nowrap;
    }
    .vip-upgrade-btn i {
        font-size: 1.3rem;
        color: #2b2a1f;
    }
    .vip-upgrade-btn:hover {
        background: linear-gradient(145deg, #ffc522, #ffa700);
        box-shadow: 0 16px 28px -6px #f0b340, 0 0 0 2px #fff3cf inset;
        transform: translateY(-2px);
    }

    /* mobile fine-tunes */
    @media screen and (max-width: 900px) {
        .site-header { padding: 0.4rem 1rem; }
        .brand-name { font-size: 1.5rem; }
        .brand-icon { width: 38px; height: 38px; border-radius: 10px; }
        .header-right { gap: 0.5rem; }
        .user-profile { gap: 0.6rem; flex-wrap: wrap; justify-content: flex-end; }
        .vip-chip, .user-badge { display: none !important; }
        .hero-title { text-align: center; }
        .hero-section { padding: 0.8rem 1.2rem; margin: 0.5rem 1rem; }
        .hero-title { font-size: 1.3rem; }
        .hero-description { font-size: 0.9rem; justify-content: center; }
        .editor-card { padding: 1rem 1.2rem 1.5rem; border-radius: 2rem; margin: 0.5rem 1rem 1rem; }
        .main-row { flex-direction: column; gap: 1.5rem; }
        .left-upload, .right-compare { min-width: auto; width: 100%; }
        .slider-container { aspect-ratio: 1/1; }
        .handle-circle { width: 44px; height: 44px; font-size: 1.2rem; }
        .button-group { flex-direction: column; gap: 0.7rem; }
        .btn-primary, .btn-secondary, .btn-download { width: 100%; padding: 0.9rem 1rem; }
        .footer-bar { flex-direction: column; gap: 0.8rem; align-items: center; text-align: center; }
        .footer-links a { margin: 0 1rem; }
        .info-card { padding: 0.8rem 1rem; font-size: 0.9rem; }
        .vip-upgrade-btn { padding: 0.4rem 1rem; font-size: 0.9rem; white-space: normal; }
        .main-upload-area i { font-size: 2.5rem; }
        .main-upload-area .main-prompt { font-size: 1rem; }
        .result-image-container img { max-height: 300px; }
        .result-showcase { padding: 1rem; }
    }
    @media screen and (max-width: 480px) {
        .brand-name { font-size: 1.2rem; }
        .brand-icon { width: 34px; height: 34px; }
        .btn-logout, .btn-outline-light { padding: 0.3rem 0.8rem; font-size: 0.8rem; }
        .hero-title { font-size: 1.1rem; }
    }