@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

body { font-family: 'Inter', sans-serif; margin: 0; padding: 0; background-color: #f0f4f8; color: #333; display: flex; flex-direction: column; align-items: center; min-height: 100vh; }

.navbar { width: 100%; background-color: white; padding: 15px 40px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; justify-content: space-between; align-items: center; box-sizing: border-box; }
.logo { font-weight: 800; font-size: 1.4rem; color: #3498db; }
.nav-right a { text-decoration: none; color: #555; margin-left: 20px; font-size: 0.95rem; font-weight: 500; }
.buy-btn { background-color: #3498db; color: white !important; padding: 10px 20px !important; border-radius: 12px; font-weight: 600; }

.main-content { flex-grow: 1; display: flex; flex-direction: column; align-items: center; padding: 60px 20px; width: 100%; max-width: 1000px; }
.generator-section { background-color: white; border-radius: 28px; box-shadow: 0 20px 40px rgba(0,0,0,0.06); display: flex; flex-direction: column; align-items: center; padding: 50px; width: 100%; max-width: 850px; box-sizing: border-box; }

.lock-icon { font-size: 70px; background: linear-gradient(135deg, #3498db, #2ecc71); -webkit-background-clip: text; -webkit-text-fill-color: transparent; margin-bottom: 15px; }

h2 { font-size: 2.2rem; color: #1a2a3a; font-weight: 800; }
.subtitle { color: #7f8c8d; margin-bottom: 40px; }

.password-display { display: flex; background: #f1f5f9; border: 2px solid #e2e8f0; border-radius: 20px; padding: 10px; margin-bottom: 40px; align-items: center; width: 100%; max-width: 600px; }
#passwordOutput { flex-grow: 1; border: none; background: transparent; padding: 10px 20px; font-family: 'Consolas', monospace; font-size: 1.5rem; font-weight: 700; color: #1e293b; outline: none; }
.refresh-btn-circular { background: #3498db; color: white; border: none; width: 45px; height: 45px; border-radius: 50%; cursor: pointer; margin-right: 10px; display: flex; align-items: center; justify-content: center; transition: 0.3s; box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3); }
.refresh-btn-circular:hover { transform: rotate(180deg); background: #2980b9; }
.copy-button { background: #3498db; color: white; border: none; padding: 12px 30px; border-radius: 15px; font-weight: 700; cursor: pointer; }

.length-slider-wrapper { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 15px; }
.length-badge { background: #3498db; color: white; padding: 2px 10px; border-radius: 8px; }
.step-btn { background: #e2e8f0; border: none; width: 35px; height: 35px; border-radius: 50%; cursor: pointer; color: #64748b; }
#passwordLength { width: 300px; height: 8px; background: #e2e8f0; border-radius: 10px; appearance: none; outline: none; }
#passwordLength::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; background: white; border: 4px solid #3498db; border-radius: 50%; cursor: pointer; }

.checkbox-group-modern { display: flex; flex-wrap: wrap; justify-content: center; gap: 15px; margin-top: 15px; }
.modern-cb input { position: absolute; opacity: 0; }
.cb-custom { display: inline-block; padding: 12px 25px; background: #f8fafc; border: 2px solid #e2e8f0; border-radius: 16px; font-weight: 600; color: #64748b; cursor: pointer; transition: 0.2s; }
.modern-cb input:checked + .cb-custom { background: #3498db; border-color: #3498db; color: white; box-shadow: 0 5px 15px rgba(52, 152, 219, 0.2); }

.download-desktop-button { background: linear-gradient(to right, #2ecc71, #27ae60); color: white; border: none; border-radius: 20px; padding: 22px 60px; font-size: 1.4rem; font-weight: 800; margin-top: 50px; cursor: pointer; box-shadow: 0 10px 30px rgba(46, 204, 113, 0.25); transition: 0.3s; }
.download-desktop-button:hover { transform: translateY(-4px); }
.flag-icon { vertical-align: middle; margin-left: 5px; }