body { 
  margin:0; 
  font-family: Arial,sans-serif; 
  background:#f4f4f4; 
  color:#111; 
  display:flex; 
  justify-content:center; 
  min-height:100vh; 
  box-sizing:border-box;
  padding-bottom: 120px; /* space for desktop ad */
}
@media (max-width:576px) { 
  body { padding-bottom:70px; } 
}

.site-wrapper { 
  width:100%; 
  display:flex; 
  justify-content:center; 
}
.site-content { 
  width:100%; 
  max-width:700px; 
  padding:20px; 
  box-sizing:border-box; 
}

.container { 
  background:#fff; 
  border-radius:12px; 
  padding:30px 25px; 
  box-shadow:0 4px 20px rgba(0,0,0,0.1); 
}

header { 
  text-align:center; 
  margin-bottom:25px; 
}
header h1 { 
  font-size:2rem; 
  margin-bottom:10px; 
}
.intro-text { 
  font-size:1rem; 
  color:#333; 
  line-height:1.5; 
}

.generator { 
  margin-bottom:30px; 
}
.password-wrapper { 
  display:flex; 
  width:100%; 
  margin-bottom:15px; 
  position:relative; 
}
.password-wrapper input { 
  flex:1; 
  padding:12px; 
  font-size:1.1rem; 
  border-radius:8px 0 0 8px; 
  border:1px solid #ccc; 
}

/* Buttons with Proton purple branding */
.button-wrapper button { 
  flex:1; 
  padding:12px; 
  border:none; 
  margin:0 2px; 
  border-radius:0 8px 8px 0; 
  background:#6c63ff; /* Proton purple */
  color:#fff; 
  cursor:pointer; 
  font-size:1rem; 
  transition:0.2s; 
}
.button-wrapper button:hover { 
  background:#5146d6; /* darker Proton purple */
}

.length-label { 
  display:block; 
  margin-bottom:10px; 
  font-weight:bold; 
}
input[type="range"] { 
  width:100%; 
  margin-bottom:15px; 
}

.password-manager-rec { 
  margin-bottom:20px; 
  background:#f1f5f9; 
  padding:20px; 
  border-radius:10px; 
  box-shadow:0 2px 8px rgba(0,0,0,0.05); 
  line-height:1.6; 
}
.password-manager-rec h2 { 
  margin-top:0; 
  font-size:1.5rem; 
  margin-bottom:10px; 
}

/* Proton affiliate links inside content */
.password-manager-rec a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 600;
}
.password-manager-rec a:hover {
  text-decoration: underline;
}

footer { 
  text-align:center; 
  font-size:0.85rem; 
  color:#666; 
  margin-top:10px; 
}
footer a { 
  color:#007bff; 
  text-decoration:none; 
}

/* Sticky ad */
#sticky-ad { 
  position:fixed; 
  bottom:0; 
  left:0; 
  right:0; 
  z-index:99999; 
  text-align:center; 
  pointer-events:none; 
}
#sticky-ad .ad-container { 
  pointer-events:auto; 
  position:relative; 
  margin:0 auto; 
  width:100%; 
  max-width:980px; 
  box-sizing:border-box; 
  padding:0 8px; 
}
#sticky-ad .ad-frame { 
  width:100%; 
  margin:0 auto; 
}
#sticky-ad input#sticky-close { 
  display:none; 
}
#sticky-ad input#sticky-close:checked ~ .ad-container { 
  display:none; 
}
#sticky-ad .close-btn { 
  position:absolute; 
  right:12px; 
  top:-28px; 
  transform:translateY(-50%); 
  background:rgba(248,248,249,0.92); 
  border-radius:4px; 
  padding:4px; 
  cursor:pointer; 
  box-shadow:0 1px 3px rgba(0,0,0,0.12); 
  font-size:16px; 
  z-index:100; 
}

/* mobile tweaks */
@media (max-width:576px){ 
  #sticky-ad .ad-frame { height:50px; } 
}

/* Proton Pass CTA under generator with hover effect */
.protonpass-cta {
  margin-top: 0.8rem;
  padding: 0.6rem 0.8rem;
  background: #f5f7fa;
  border-left: 3px solid #6c63ff; /* Proton purple */
  font-size: 0.95rem;
  color: #333;
  border-radius: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.protonpass-cta:hover {
  transform: translateY(-2px); /* slight lift */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* soft shadow */
}

.protonpass-cta a {
  color: #6c63ff;
  text-decoration: none;
  font-weight: 600;
}

.protonpass-cta a:hover {
  text-decoration: underline;
}

/* Proton purple range slider */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: #ddd;
  border-radius: 3px;
  outline: none;
  transition: background 0.3s;
}
input[type=range]:hover {
  background: #ccc;
}

/* WebKit (Chrome, Safari) */
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6c63ff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}
input[type=range]::-webkit-slider-thumb:hover {
  background: #5146d6;
}

/* Firefox */
input[type=range]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6c63ff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}
input[type=range]::-moz-range-thumb:hover {
  background: #5146d6;
}

/* IE / Edge */
input[type=range]::-ms-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6c63ff;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 2px rgba(0,0,0,0.2);
}
input[type=range]::-ms-thumb:hover {
  background: #5146d6;
}

/* Copied toast message in Proton purple */
.copied-msg { 
  position:absolute; 
  top:-28px; 
  left:50%; 
  transform:translateX(-50%); 
  background:#6c63ff; /* Proton purple */
  color:#fff; 
  padding:4px 8px; 
  border-radius:6px; 
  font-size:0.85rem; 
  opacity:0; 
  pointer-events:none; 
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

/* Toast animation */
@keyframes slideFadeIn {
  0% { opacity: 0; transform: translate(-50%, -40%); }
  50% { opacity: 1; transform: translate(-50%, -50%); }
  100% { opacity: 0; transform: translate(-50%, -60%); }
}

.copied-msg.show {
  opacity: 1;
  animation: slideFadeIn 1.5s ease forwards;
}

.copy-hint { 
  font-size:0.8rem; 
  color:#666; 
  margin-left:10px; 
  align-self:center; 
}
