*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    }
    
    body{
    font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
    
    background:
    radial-gradient(1200px 600px at 80% 100%, #dfe9f7 0%, transparent 60%),
    radial-gradient(900px 500px at 10% 90%, #e7edf7 0%, transparent 60%),
    linear-gradient(#f4f6fb,#eef2f8);
    
    min-height:100vh;
    color:#2b2b2b;
    }
    
    .container{
    max-width:1000px;
    margin:auto;
    padding:40px 20px;
    }
    
    /* language selector */
    
    .lang-selector{
    position:relative;
    display:inline-block;
    }
    
    .lang-current{
    background:#fff;
    border:1px solid #d2d7e1;
    border-radius:8px;
    padding:8px 32px 8px 12px;
    font-size:14px;
    cursor:pointer;
    display:flex;
    align-items:center;
    gap:6px;
    transition:all .2s;
    }
    
    .lang-current:hover{
    border-color:#4f7cff;
    background:#f8faff;
    }
    
    .lang-current::after{
    content:'▼';
    font-size:10px;
    color:#6b7280;
    position:absolute;
    right:12px;
    }
    
    .lang-dropdown{
    position:absolute;
    top:100%;
    right:0;
    background:#fff;
    border:1px solid #d2d7e1;
    border-radius:8px;
    box-shadow:0 8px 30px rgba(0,0,0,0.15);
    padding:6px;
    min-width:140px;
    display:none;
    z-index:1000;
    margin-top:4px;
    }
    
    .lang-selector.open .lang-dropdown{
    display:block;
    }
    
    .lang-option{
    display:block;
    padding:8px 12px;
    border-radius:6px;
    font-size:14px;
    color:#2b2b2b;
    cursor:pointer;
    transition:all .2s;
    }
    
    .lang-option:hover{
    background:#f8faff;
    color:#3b82f6;
    }
    
    .lang-option.active{
    background:#e8f0ff;
    color:#3b82f6;
    font-weight:600;
    }
    
    .header-top{
    display:flex;
    justify-content:flex-end;
    margin-bottom:15px;
    }
    
    /* header */
    
    header{
    text-align:center;
    margin-bottom:35px;
    }
    
    /* brand */

    .brand{
    display:flex;
    justify-content:center;
    margin-bottom:8px;
    }

    .brand-logo{

    font-size:38px;
    font-weight:900;
    letter-spacing:4px;

    background:linear-gradient(135deg,#4f7cff,#3b82f6);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;

    text-decoration:none;
    cursor:pointer;
    transition:opacity .2s;
    }

    .brand-logo:hover{
    opacity:0.8;
    }
    
    h1{
    font-size:40px;
    font-weight:700;
    letter-spacing:-0.02em;
    margin-bottom:8px;
    color:#1f2937;
    }
    
    .subtitle{
    color:#6b7280;
    font-size:16px;
    }
    
    /* upload */
    
    .upload-area{
    background:#fff;
    border-radius:16px;
    padding:45px;
    
    border:2px dashed #d8dde7;
    
    text-align:center;
    cursor:pointer;
    
    box-shadow:
    0 8px 30px rgba(0,0,0,0.08);
    
    transition:all .25s;
    margin-bottom:30px;
    }
    
    .upload-area:hover{
    border-color:#4f7cff;
    background:#f8faff;
    }
    
    .upload-area.dragover{
    border-color:#22c55e;
    background:#f3fff7;
    }
    
    .upload-icon{
    font-size:42px;
    margin-bottom:10px;
    }
    
    .browse{
    color:#3b82f6;
    font-weight:600;
    cursor:pointer;
    }
    
    .small{
    font-size:13px;
    color:#8a8f98;
    margin-top:8px;
    }
    
    /* controls */
    
    .controls{
    background:#fff;
    border-radius:16px;
    padding:30px;
    
    box-shadow:
    0 8px 30px rgba(0,0,0,0.08);
    }
    
    /* preview */
    
    .preview-container{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:25px;
    margin-bottom:25px;
    }
    
    .preview{
    text-align:center;
    }
    
    .preview h3{
    font-size:15px;
    margin-bottom:10px;
    color:#374151;
    font-weight:600;
    }
    
    .preview img{
    width:100%;
    max-height:260px;
    object-fit:cover;
    
    border-radius:12px;
    
    box-shadow:
    0 4px 14px rgba(0,0,0,0.08);
    
    background:#f4f6fa;
    }
    
    .image-info{
    font-size:13px;
    margin-top:8px;
    color:#6b7280;
    }
    
    /* action */
    
    .action-panel{
    display:flex;
    justify-content:center;
    align-items:center;
    gap:20px;
    margin-bottom:10px;
    }
    
    .scale-selector{
    display:flex;
    align-items:center;
    gap:8px;
    font-size:14px;
    }
    
    .scale-selector select{
    padding:8px 16px;
    
    border-radius:8px;
    border:1px solid #d2d7e1;
    
    background:#fff;
    
    font-size:14px;
    cursor:pointer;
    }
    
    /* button */
    
    .upscale-btn{
    
    padding:12px 36px;
    
    border-radius:10px;
    border:none;
    
    font-size:15px;
    font-weight:600;
    
    background:
    linear-gradient(180deg,#5f8cff,#3b6fff);
    
    color:white;
    
    cursor:pointer;
    
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    
    box-shadow:
    0 6px 16px rgba(59,111,255,0.35);
    
    transition:all .2s;
    }
    
    .upscale-btn:hover:not(:disabled){
    transform:translateY(-1px);
    box-shadow:
    0 8px 20px rgba(59,111,255,0.4);
    }
    
    .upscale-btn:disabled{
    opacity:.6;
    cursor:not-allowed;
    }
    
    /* spinner */
    
    .spinner{
    width:18px;
    height:18px;
    
    border:2px solid rgba(255,255,255,.4);
    border-top:2px solid white;
    
    border-radius:50%;
    
    animation:spin .8s linear infinite;
    
    display:none;
    }
    
    @keyframes spin{
    to{
    transform:rotate(360deg);
    }
    }
    
    /* note */
    
    .max-size-note{
    text-align:center;
    font-size:13px;
    color:#7a808a;
    margin-top:10px;
    }
    
    /* download */
    
    .download-container{
    text-align:center;
    margin-top:20px;
    }
    
    .download-btn{
    
    background:#22c55e;
    
    padding:12px 28px;
    
    border-radius:10px;
    
    color:white;
    text-decoration:none;
    
    font-weight:600;
    
    display:inline-block;
    }
    
    .download-btn:hover{
    background:#16a34a;
    }
    
    /* ad */
    
    .ad-placeholder{
    margin-top:25px;
    }
    
    .ad-banner{
    
    background:#f3f4f6;
    
    border-radius:12px;
    
    padding:35px;
    
    color:#9ca3af;
    
    text-align:center;
    
    font-size:14px;
    }
    
    /* seo */
    
    .seo-section{
    
    background:white;
    
    border-radius:16px;
    
    padding:28px;
    
    margin-top:25px;
    
    box-shadow:
    0 8px 30px rgba(0,0,0,0.08);
    
    line-height:1.6;
    }
    
    footer{
    
    margin-top:30px;
    
    text-align:center;
    
    font-size:13px;
    
    color:#6b7280;
    }
    
    /* responsive */
    
    @media(max-width:768px){
    
    .preview-container{
    grid-template-columns:1fr;
    }
    
    .action-panel{
    flex-direction:column;
    }
    
    h1{
    font-size:30px;
    }
    
    .brand-logo{
    font-size:30px;
    letter-spacing:3px;
    }
    
    }