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

/* =========================
   GLOBAL
========================= */

html,body{
    width:100%;
    height:100%;
    overflow:hidden; /* desktop default */
}

html{
    font-family:'Inter',sans-serif;
    background:linear-gradient(180deg,var(--primary-bg-color),#0f1117);
    color:var(--text-primary-color);
}

/* =========================
   NAVBAR
========================= */

.navbar{
    height:64px;
    width:100%;
    padding:0 var(--padding-2xl);
    display:flex;
    align-items:center;
    justify-content:space-between;
    background:linear-gradient(180deg,rgba(255,255,255,0.05),rgba(255,255,255,0.02));
    backdrop-filter:blur(10px);
    border-bottom:1px solid rgba(255,255,255,0.08);
    flex-shrink:0;
}

.logo{
    font-size:1.6rem;
    font-weight:700;
    letter-spacing:1px;
    background:linear-gradient(135deg,#ffffff,#bb0894);
    -webkit-background-clip:text;
    -webkit-text-fill-color:transparent;
}

.tagline{
    font-size:0.9rem;
    opacity:0.7;
}

/* =========================
   APP WRAPPER
========================= */

main{
    width:100%;
    height:100%;
    display:flex;
    flex-direction:column;
}

/* =========================
   MAIN EDITOR AREA (DESKTOP)
========================= */

main section{
    flex:1;
    display:flex;
    gap:var(--gutter-lg);
    padding:var(--padding-lg);
    height:calc(100vh - 64px);
}

/* =========================
   BUTTONS
========================= */

.btn{
    padding:var(--padding-sm) var(--padding-lg);
    border:none;
    border-radius:999px;
    background:linear-gradient(135deg,var(--bg-active-color),#870756);
    color:var(--text-active-color);
    cursor:pointer;
    font-weight:500;
    transition:0.15s ease;
    box-shadow:0 6px 18px rgba(0,0,0,0.3);
}

.btn:hover{
    transform:translateY(-1px);
}

/* =========================
   LEFT PANEL
========================= */

.left{
    width:70%;
    display:flex;
    flex-direction:column;
    gap:var(--gutter-lg);
}

.top{
    display:flex;
    gap:var(--gutter-md);
    flex-wrap:wrap;
}

.bottom{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
    background:
        radial-gradient(circle at top,rgba(255,255,255,0.08),transparent 60%),
        var(--bg-secondary-color);
    border-radius:var(--border-radius-2xl);
    overflow:hidden;
    box-shadow:0 25px 50px rgba(0,0,0,0.4);
}

.placeholder{
    opacity:0.6;
    text-align:center;
}

.placeholder i{
    font-size:7rem;
}

canvas{
    max-width:90%;
    max-height:90%;
    display:none;
    border-radius:14px;
    box-shadow:0 20px 40px rgba(0,0,0,0.45);
}

/* =========================
   RIGHT PANEL
========================= */

.right{
    width:30%;
    display:flex;
    flex-direction:column;
    gap:var(--gutter-lg);
    padding:var(--padding-lg);
    background:
        linear-gradient(180deg,rgba(255,255,255,0.04),rgba(255,255,255,0.01)),
        var(--bg-secondary-color);
    border-radius:var(--border-radius-2xl);
    box-shadow:0 25px 50px rgba(0,0,0,0.35);
    overflow:hidden;
}

.right h2{
    font-size:1.1rem;
    opacity:0.85;
}

.filters{
    flex:1;
    overflow-y:auto;
    padding-right:6px;
}

/* =========================
   SLIDERS
========================= */

.filter input{
    width:100%;
    appearance:none;
    cursor:pointer;
}

.filter input::-webkit-slider-runnable-track{
    height:4px;
    border-radius:999px;
    background:rgb(122,10,60);
}

.filter input::-webkit-slider-thumb{
    appearance:none;
    width:20px;
    height:20px;
    border-radius:50%;
    background:radial-gradient(circle,#fff,#cacaca);
    margin-top:-7px;
}

/* =========================
   PRESETS
========================= */

.presets{
    display:flex;
    flex-wrap:wrap;
    gap:var(--gutter-md);
}

/* =========================
   MOBILE RESPONSIVE (FIXED)
========================= */

@media(max-width:900px){

    /* ✅ allow full page scroll */
    html,body{
        overflow:auto;
    }

    main{
        height:auto;
    }

    main section{
        flex-direction:column;
        height:auto;
    }

    .left,
    .right{
        width:100%;
    }

    /* 🔑 canvas no longer steals height */
    .bottom{
        flex:none;
        min-height:260px;
    }

    /* 🔑 filters flow naturally */
    .right{
        overflow:visible;
    }

    .filters{
        flex:none;
        overflow:visible;
    }

    .placeholder i{
        font-size:4.5rem;
    }
}