*{margin:0;padding:0;box-sizing:border-box;}
body{
    font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;
    background:linear-gradient(135deg,#0c1222 0%,#1a1f2e 100%);
    color:#fff;min-height:100vh;display:flex;flex-direction:column;
}
.navbar{background:rgba(0,0,0,0.9)!important;backdrop-filter:blur(10px);padding:.5rem 0;height:60px;}
.brand-text{font-size:1.2rem;font-weight:700;margin-left:.5rem;}
.brand-icon{width:28px!important;height:28px!important;}
.main-wrapper{padding-top:80px;flex:1;}
.hero-title{font-size:1.5rem;font-weight:700;margin-bottom:.5rem;}
.hero-subtitle{font-size:.9rem;opacity:.8;margin-bottom:2rem;}
.input-card,.output-card{
    background:rgba(255,255,255,0.1);backdrop-filter:blur(10px);
    border:1px solid rgba(255,255,255,0.2);border-radius:12px;overflow:hidden;
}
.form-control{
    background:rgba(255,255,255,0.12)!important;border:1px solid rgba(255,255,255,0.2);
    color:#fff!important;caret-color:#fff;border-radius:8px;transition:all .2s;
}
.form-control::placeholder{color:rgba(255,255,255,0.6);}
.form-control:focus{
    background:rgba(255,255,255,0.18)!important;border-color:#6c5ce7;
    box-shadow:0 0 0 .2rem rgba(108,92,231,.25);
}
.btn-primary{background:linear-gradient(45deg,#6c5ce7,#a55eea);border:none;border-radius:8px;padding:.5rem 1.5rem;font-weight:600;}
.btn-ghost{background:transparent;border:1px solid rgba(255,255,255,0.3);color:#fff;border-radius:8px;}
.spinner-ring{
    width:40px;height:40px;border:4px solid rgba(255,255,255,0.3);
    border-top:4px solid #6c5ce7;border-radius:50%;animation:spin 1s linear infinite;margin:0 auto 1rem;
}
@keyframes spin{to{transform:rotate(360deg);}}
.preview-img{max-width:100%;border-radius:12px;box-shadow:0 10px 30px rgba(0,0,0,0.5);cursor:pointer;}
.color-preview{width:50px;height:50px;border-radius:50%;border:4px solid #fff;
    box-shadow:0 4px 15px rgba(0,0,0,0.4);cursor:pointer;}
@media(min-width:768px){
    .hero-title{font-size:2.5rem;}
    .hero-subtitle{font-size:1.1rem;}
    .brand-text{font-size:1.4rem;}
    .brand-icon{width:32px!important;height:32px!important;}
}
.image-modal{
    position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(0,0,0,0.95);
    display:flex;align-items:center;justify-content:center;z-index:9999;padding:20px;
}
.image-modal img{max-width:90vw;max-height:85vh;border-radius:12px;}
.image-modal-close{
    position:absolute;top:20px;right:20px;background:#ff4444;color:#fff;border:none;
    width:50px;height:50px;border-radius:50%;font-size:24px;cursor:pointer;
}
.image-modal-close:hover{background:#ff6666;}
.github-btn,.fb-btn{color:#fff;font-size:1.5rem;opacity:.7;transition:opacity .2s;}
.github-btn:hover,.fb-btn:hover{opacity:1;}
footer{
    text-align:center;padding:20px;font-size:0.95rem;opacity:0.8;
    background:rgba(0,0,0,0.3);backdrop-filter:blur(10px);
}
footer a{color:#a29bfe;text-decoration:none;font-weight:600;}
footer a:hover{text-decoration:underline;}