/* ===== RESET ===== */
*{
  box-sizing:border-box;
  margin:0;
  padding:0;
  font-family:"Inter",system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif;
}

html,
body{
  overflow-x:hidden;
}

body{
  background:#0b0f19;
  color:#fff;
  line-height:1.6;
}

#gallery{
  width:100%;
  padding:0;
}

.gallery-header-block{
  margin-bottom:12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}

.gallery-top-row{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
}

.gallery-title{
  font-size:1.55rem;
  line-height:1.2;
  font-weight:700;
}

.storage-usage-card{
  padding:12px;
  border:1px solid rgba(148,163,184,0.2);
  border-radius:14px;
  background:linear-gradient(180deg,rgba(30,41,59,0.65),rgba(15,23,42,0.45));
  display:flex;
  flex-direction:column;
  gap:6px;
}

.storage-usage-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.storage-usage-title{
  font-size:1rem;
  font-weight:700;
  color:#f8fafc;
}

.storage-usage-text,
.storage-percent,
.storage-warning,
.storage-meta-text{
  font-size:0.82rem;
  color:#cbd5e1;
}

.storage-percent{
  font-weight:700;
  color:#93c5fd;
}

.storage-meta-text{
  color:#9ca3af;
  margin-top:2px;
}

.storage-progress-track{
  width:100%;
  height:8px;
  border-radius:999px;
  background:#111827;
  overflow:hidden;
  border:1px solid rgba(148,163,184,0.2);
}

.storage-progress-bar{
  height:100%;
  width:0;
  border-radius:999px;
  background:linear-gradient(90deg,#38bdf8,#3b82f6 60%,#6366f1);
  transition:width .5s ease;
}

.storage-warning{
  min-height:1.1em;
  color:#fbbf24;
}

.tabs{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin-bottom:0;
}

.shared-tabs{
  margin-bottom:14px;
}

.gallery-actions-row{
  display:flex;
  align-items:center;
  gap:10px;
}

.gallery-action-row {
  display: flex;
  gap: 12px;
  margin: 16px 0;
  flex:1;
}

.gallery-action-row button {
  flex: 1;
}

.img-box{
  cursor:pointer;
}

.primary-action{
  width:auto;
  min-width:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.9rem;
  font-weight:700;
  height:40px;
  padding:0 16px;
}

.upgrade-storage-btn{
  width:auto;
  font-size:0.95rem;
  font-weight:700;
}
.select-toggle-btn.is-close{
  font-size:0.95rem;
  line-height:1;
}

.select-toggle-btn.is-delete{
  background:linear-gradient(135deg,#f97373,#ef4444 60%,#dc2626);
  box-shadow:0 10px 24px rgba(220,38,38,0.3),inset 0 1px 0 rgba(255,255,255,0.2);
}


.premium-btn{
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,#2a2f5f,#3a2f68 55%,#4a3a74);
  color:#fff;
  font-weight:700;
  cursor:pointer;
  box-shadow:0 8px 20px rgba(0,0,0,0.4),inset 0 1px 0 rgba(255,255,255,0.16);
  transition:transform .15s ease, box-shadow .15s ease, filter .15s ease;
  padding:11px 18px;
}

.premium-btn:hover{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 10px 24px rgba(0,0,0,0.45),0 0 14px rgba(121,106,173,0.28),inset 0 1px 0 rgba(255,255,255,0.18);
}

.premium-btn:active{
  transform:translateY(0);
}

.premium-btn.active{
  box-shadow:0 10px 24px rgba(0,0,0,0.45),0 0 0 1px rgba(173,164,224,0.5) inset;
}


.tabs button{
  width:100%;
  padding:10px 16px;
  font-weight:700;
}

/* ===== AUTH ===== */
#authModal{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  height:100vh;
  background:rgba(15,17,21,0.75);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  padding:20px 16px;
}

.auth-card{
  width:90%;
  max-width:420px;
  padding:24px;
  border-radius:18px;
  background:#161a22;
  animation:fadeIn 0.25s ease-out;
  box-shadow:0 0 40px rgba(100,150,255,0.15);
}

.card{
  width:100%;
}

#login,
#signup{
  margin:0 auto;
}

input,
select,
textarea{
  font-size:16px !important;
}

input{
  width:100%;
  padding:12px 14px;
  margin:0;
  border-radius:14px;
  border:1px solid rgba(148,163,184,0.3);
  background:linear-gradient(180deg,rgba(30,41,59,0.58),rgba(15,23,42,0.45));
  color:white;
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  transition:border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

input::placeholder{
  color:#9ca3af;
}

input:focus{
  outline:none;
  border-color:rgba(96,165,250,0.75);
  box-shadow:0 0 0 3px rgba(59,130,246,0.22),0 12px 26px rgba(30,64,175,0.2);
}

.auth-form{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:12px;
}

.auth-actions{
  margin-top:14px;
  display:flex;
  gap:10px;
}

.auth-actions-stack{
  flex-direction:column;
}

.auth-btn{
  flex:1;
  width:100%;
  padding:12px 18px;
  border-radius:14px;
  font-weight:700;
  cursor:pointer;
  text-decoration:none;
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease, filter .2s ease, background .2s ease, border-color .2s ease;
}

.auth-btn-primary{
  border:none;
  background:linear-gradient(135deg,#1d4ed8,#2563eb 55%,#4f46e5);
  color:#fff;
  font-weight:800;
  box-shadow:0 10px 24px rgba(29,78,216,0.38),0 0 20px rgba(59,130,246,0.2),inset 0 1px 0 rgba(255,255,255,0.25);
}

.auth-btn-outline,
.auth-btn-subtle{
  border:1px solid rgba(148,163,184,0.45);
  background:rgba(15,23,42,0.35);
  color:#cbd5e1;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.08);
}

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

.auth-btn-primary:hover{
  filter:brightness(1.06);
  box-shadow:0 14px 30px rgba(37,99,235,0.45),0 0 24px rgba(59,130,246,0.24),inset 0 1px 0 rgba(255,255,255,0.25);
}

.auth-btn-outline:hover,
.auth-btn-subtle:hover{
  background:rgba(59,130,246,0.1);
  box-shadow:0 12px 28px rgba(37,99,235,0.26),0 0 20px rgba(56,189,248,0.2);
}

.auth-btn-google{
  border:1px solid #d1d5db;
  background:#ffffff;
  color:#111827;
  box-shadow:0 6px 14px rgba(17,24,39,0.14);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
}

.auth-btn-google:hover{
  background:#f9fafb;
  border-color:#c7ccd4;
  box-shadow:0 10px 20px rgba(17,24,39,0.18);
}

.auth-btn-google .google-g-logo{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.auth-btn-google .google-g-logo svg{
  width:18px;
  height:18px;
  display:block;
}

#showSignupBtn{
  border:1px solid rgba(148,163,184,0.45);
  background:linear-gradient(180deg,rgba(30,41,59,0.4),rgba(15,23,42,0.28));
  color:#dbeafe;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.16),0 8px 20px rgba(15,23,42,0.32);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
}

#showSignupBtn:hover{
  background:linear-gradient(180deg,rgba(37,99,235,0.18),rgba(15,23,42,0.36));
  border-color:rgba(147,197,253,0.6);
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.2),0 10px 22px rgba(30,64,175,0.26),0 0 18px rgba(96,165,250,0.2);
}

.confirm-modal{
  position:fixed;
  inset:0;
  background:rgba(2,6,23,0.7);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  z-index:10000;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:16px;
}

.confirm-modal-card{
  width:min(420px,100%);
  border-radius:16px;
  border:1px solid rgba(148,163,184,0.35);
  background:#111827;
  color:#e5e7eb;
  padding:20px;
}

.confirm-modal-card h2{
  font-size:1.1rem;
  line-height:1.3;
  margin-bottom:6px;
}

.confirm-modal-card p{
  color:#94a3b8;
  font-size:0.9rem;
}


.download-modal-card{
  width:min(360px,100%);
}

.download-option-list{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:8px;
}

.download-option-item{
  display:flex;
  align-items:center;
  gap:8px;
  color:#cbd5e1;
  font-size:0.92rem;
}

.download-option-item input{
  width:auto;
  margin:0;
  accent-color:#2563eb;
}

.confirm-modal-actions{
  margin-top:16px;
  display:flex;
  justify-content:flex-end;
  gap:10px;
}

.confirm-modal-actions .auth-btn{
  width:auto;
  min-width:92px;
}

.confirm-delete-btn{
  border:1px solid #dc2626;
  background:#dc2626;
  color:#fff;
}

.confirm-delete-btn:hover{
  background:#b91c1c;
}

.auth-helper-text{
  margin-top:10px;
  color:#94a3b8;
  font-size:0.82rem;
  text-align:center;
}

#login h1,
#signup h1{
  text-align:center;
  margin-bottom:2px;
}

.auth-title{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
}

.Vault-title-icon{
  width:24px;
  height:24px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  flex-shrink:0;
}

.Vault-title-icon svg{
  width:24px;
  height:24px;
  fill:none;
  stroke:#fff;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}

#signupError,
#error{
  margin-top:10px;
  text-align:center;
}

#uploadStatus{
  color:#86efac;
  font-weight:600;
  transition:opacity 0.3s ease, transform 0.3s ease;
}

.fade-out{
  opacity:0;
  transform:translateY(-4px);
  transition:opacity 0.4s ease, transform 0.4s ease;
}


@keyframes fadeIn{
  from{
    opacity:0;
    transform:scale(0.96);
  }

  to{
    opacity:1;
    transform:scale(1);
  }
}

/* ===== GRID (THE FIX) ===== */
#images{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:6px;
  width:100%;
  overflow:visible;
}

#gallerySentinel{
  grid-column:1/-1;
  height:1px;
}

/* container — strict square */
.img-box{
  position:relative;
  width:100%;
  aspect-ratio:1/1;
  overflow:hidden;
  border-radius:12px;
  background:#1a1d23;
}

/* both image + video thumbnails */
.img-box img,
.img-box video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  transition:filter .35s ease, transform .25s ease;
}

#images [data-object-name].is-selected .img-box img,
#images [data-object-name].is-selected .img-box video{
  transform:scale(0.95);
}

#images [data-object-name].is-selected .img-box::after{
  content:"";
  position:absolute;
  inset:0;
  background:rgba(10,132,255,0.24);
  pointer-events:none;
}

.selection-checkbox{
  position:absolute;
  top:8px;
  right:8px;
  width:18px;
  height:18px;
  border-radius:999px;
  border:1.5px solid rgba(255,255,255,0.9);
  background:rgba(255,255,255,0.06);
  backdrop-filter:blur(2px);
  -webkit-backdrop-filter:blur(2px);
  cursor:pointer;
  z-index:2;
  transition:background .18s ease,border-color .18s ease,transform .18s ease;
}

.selection-checkbox.is-selected{
  background:#0a84ff;
  border-color:#0a84ff;
}

.selection-checkbox.is-selected::after{
  content:"✓";
  color:#fff;
  font-size:12px;
  font-weight:700;
  line-height:1;
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
}

.selection-checkbox:focus-visible{
  outline:none;
  box-shadow:0 0 0 2px rgba(10,132,255,0.45);
}

/* blur loading effect */
.blur{
  filter:blur(20px);
  transform:scale(1.05);
}

/* ===== PREVIEW ===== */
.preview{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.92);
  display:none;
  align-items:center;
  justify-content:center;
  z-index:999;
}

.preview img,
.preview video{
  max-width:95%;
  max-height:95%;
  border-radius:12px;
}

.preview-message{
  max-width:95%;
  padding:18px 22px;
  border-radius:12px;
  background:#1a1d23;
  color:#e5e7eb;
  text-align:center;
}

.privacy-sequence-card{
  position:fixed;
  left:16px;
  bottom:16px;
  z-index:1000;
  max-width:min(340px,calc(100vw - 32px));
  padding:12px 14px;
  border-radius:12px;
  background:rgba(15,23,42,0.66);
  border:1px solid rgba(148,163,184,0.25);
  color:#fff;
  font-size:0.92rem;
  line-height:1.4;
  letter-spacing:0.01em;
  pointer-events:none;
  user-select:none;
  backdrop-filter:blur(8px);
  -webkit-backdrop-filter:blur(8px);
  box-shadow:0 10px 24px rgba(0,0,0,0.28);
  opacity:0;
  transform:translateY(10px);
  transition:opacity .45s ease,transform .45s ease;
}

.privacy-sequence-card.is-visible{
  opacity:1;
  transform:translateY(0);
}

/* ===== MOBILE ===== */
@media (max-width:600px){
  .gallery-top-row{
    align-items:flex-start;
    flex-wrap:wrap;
  }

  .tabs{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }

  .tabs button{
    padding:10px 10px;
    font-size:0.84rem;
  }

  .auth-actions{
    flex-direction:column;
  }


  .privacy-sequence-card{
    left:12px;
    bottom:12px;
    max-width:min(320px,calc(100vw - 24px));
    font-size:0.88rem;
    padding:11px 12px;
  }
}


#smartPdfInput{
  display:none;
}

.file-upload-box{
  margin-top:14px;
  min-height:188px;
  padding:20px 20px;
  border-radius:18px;
  border:2px dashed rgba(167,139,250,0.38);
  background:
    radial-gradient(120% 120% at 50% 0%,rgba(109,63,180,0.18),rgba(15,23,42,0.2) 52%,rgba(11,15,25,0.72) 100%),
    linear-gradient(180deg,rgba(15,23,42,0.65),rgba(11,15,25,0.78));
  color:#dbeafe;
  text-align:center;
  font-weight:600;
  cursor:pointer;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  transition:border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.file-upload-box:hover,
.file-upload-box:focus-visible,
.file-upload-box.drag-over{
  outline:none;
  transform:translateY(-1px);
  border-color:rgba(196,181,253,0.78);
  box-shadow:0 0 0 1px rgba(196,181,253,0.22) inset,0 0 24px rgba(109,63,180,0.28);
}

.file-upload-icon{
  width:36px;
  height:36px;
  fill:#c4b5fd;
  opacity:0.94;
  margin-bottom:8px;
}

.file-upload-primary{
  font-size:1.2rem;
  font-weight:700;
  line-height:1.3;
}

.file-upload-secondary{
  font-size:0.94rem;
  color:#d8cfff;
}

.file-upload-micro{
  margin-top:8px;
  color:#9ca3af;
  font-size:0.79rem;
}

.file-upload-count{
  margin-top:8px;
  color:#9ca3af;
  font-size:0.86rem;
}

.quality-selector{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}

.quality-selector button{
  border:1px solid rgba(148,163,184,0.24);
  border-radius:999px;
  padding:8px 15px;
  background:linear-gradient(180deg,rgba(30,41,59,0.78),rgba(15,23,42,0.82));
  color:#cbd5e1;
  font-weight:600;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,0.04);
  transition:all .2s ease;
}

.quality-selector button:hover{
  border-color:rgba(167,139,250,0.52);
  background:linear-gradient(180deg,rgba(51,65,85,0.78),rgba(30,41,59,0.85));
  color:#e2e8f0;
}

.quality-selector button.active{
  border-color:rgba(196,181,253,0.66);
  background:linear-gradient(135deg,#2a2f5f,#3a2f68 55%,#4a3a74);
  color:#fff;
  box-shadow:0 10px 24px rgba(0,0,0,0.45),0 0 16px rgba(121,106,173,0.34),inset 0 1px 0 rgba(255,255,255,0.2),inset 0 0 0 1px rgba(196,181,253,0.24);
}

#pdfTab{
  padding:6px 0 4px;
}

.pdf-shell{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.pdf-hero,
.pdf-upload-card,
.pdf-how-it-works,
.pdf-privacy-section,
.pdf-soft-cta{
  border:1px solid rgba(148,163,184,0.14);
  border-radius:18px;
  background:linear-gradient(180deg,rgba(30,41,59,0.42),rgba(15,23,42,0.3));
  box-shadow:0 20px 40px rgba(2,6,23,0.36),0 6px 20px rgba(8,15,32,0.28),inset 0 1px 0 rgba(255,255,255,0.05);
}

.pdf-hero{
  padding:28px 24px;
  text-align:center;
}

.pdf-eyebrow{
  color:#c4b5fd;
  text-transform:uppercase;
  letter-spacing:0.14em;
  font-size:0.68rem;
  font-weight:700;
  margin-bottom:12px;
}

.pdf-hero h2{
  font-size:clamp(1.45rem,3.4vw,2.1rem);
  line-height:1.2;
  letter-spacing:0.015em;
  margin-bottom:12px;
}


.pdf-local-badge{
  width:fit-content;
  margin:0 auto 12px;
  padding:6px 12px;
  border-radius:999px;
  border:1px solid rgba(148,163,184,0.24);
  background:rgba(30,41,59,0.52);
  color:#cbd5e1;
  font-size:0.8rem;
  display:block;
  text-align:center;
}

.pdf-hero-subtext{
  max-width:620px;
  margin:0 auto;
  color:#cbd5e1;
  font-size:0.96rem;
}

.pdf-hero-btn{
  margin-top:18px;
  min-width:210px;
}

.pdf-trust-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.pdf-trust-item{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  border:1px solid rgba(148,163,184,0.2);
  border-radius:999px;
  background:rgba(15,23,42,0.45);
  color:#cbd5e1;
  font-size:0.82rem;
  font-weight:600;
  min-height:38px;
}

.pdf-trust-item span{
  color:#c4b5fd;
  font-size:0.58rem;
}

.pdf-upload-card-wrap{
  display:flex;
  justify-content:center;
}

.pdf-upload-card{
  width:min(720px,100%);
  padding:24px 22px;
  display:flex;
  flex-direction:column;
  align-items:center;
}

.pdf-upload-card h3,
.pdf-how-it-works h3,
.pdf-privacy-section h3{
  font-size:1.2rem;
  margin-bottom:14px;
}

.pdf-upload-card .file-upload-box,
.pdf-upload-card .file-upload-count,
.pdf-upload-card #pdfStatus,
.pdf-upload-card .quality-selector,
.pdf-upload-card .pdf-quality-label,
.pdf-upload-card .pdf-generate-btn{
  width:min(560px,100%);
}

.pdf-quality-label{
  margin-top:14px;
  color:#cbd5e1;
  font-size:0.9rem;
  font-weight:600;
}

.pdf-generate-btn{
  margin-top:16px;
  min-height:52px;
  padding:0 30px;
  font-size:1.03rem;
  font-weight:700;
  justify-content:center;
  border-radius:999px;
  background:linear-gradient(135deg,#2a2f5f,#3a2f68 55%,#4a3a74);
  box-shadow:0 12px 28px rgba(0,0,0,0.48),0 0 18px rgba(121,106,173,0.34),inset 0 1px 0 rgba(255,255,255,0.22);
}

.pdf-generate-btn:hover{
  box-shadow:0 14px 30px rgba(0,0,0,0.5),0 0 20px rgba(121,106,173,0.4),inset 0 1px 0 rgba(255,255,255,0.24);
}

.pdf-generate-btn.is-processing{
  filter:saturate(1.05);
}

.pdf-progress{
  width:min(560px,100%);
  margin-top:10px;
  display:flex;
  justify-content:center;
  align-items:center;
}

.pdf-progress-row{
  margin:0;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
}

.pdf-progress-spinner{
  width:16px;
  height:16px;
  border-radius:50%;
  border:2px solid rgba(196,181,253,0.35);
  border-top-color:#8b5cf6;
  animation:pdf-spinner .8s linear infinite;
}

.pdf-progress-text{
  margin:0;
  font-size:0.9rem;
  color:#d8cfff;
  text-align:center;
}


#pdf-progress-bar{
width:100%;
height:6px;
background:rgba(255,255,255,0.1);
border-radius:6px;
margin-top:10px;
overflow:hidden;
}

#pdf-progress-fill{
width:0%;
height:100%;
background:linear-gradient(90deg,#7c5cff,#9b8cff);
transition:width .2s ease;
}

@keyframes pdf-spinner{
  to{transform:rotate(360deg)}
}

.pdf-performance-summary{
  width:min(560px,100%);
  margin-top:12px;
  padding:10px 12px;
  border:1px solid rgba(196,181,253,0.3);
  border-radius:12px;
  background:rgba(40,29,70,0.36);
}

.pdf-performance-summary-text{
  margin:0;
  font-size:0.89rem;
  color:#cbd5e1;
  text-align:center;
}

.pdf-performance-summary-text strong{
  font-weight:700;
  color:#e9ddff;
}

.pdf-privacy-note{
  margin-top:12px;
  color:#9ca3af;
  font-size:0.84rem;
  text-align:center;
}

.pdf-how-it-works,
.pdf-privacy-section,
.pdf-soft-cta{
  padding:24px 22px;
}

.pdf-steps-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}

.pdf-step-card{
  border:1px solid rgba(148,163,184,0.24);
  border-radius:14px;
  background:rgba(15,23,42,0.52);
  padding:14px;
  display:flex;
  flex-direction:column;
  gap:7px;
}

.pdf-step-number{
  width:26px;
  height:26px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.82rem;
  font-weight:700;
  color:#dbeafe;
  background:linear-gradient(135deg,#2a2f5f,#3a2f68 55%,#4a3a74);
}

.pdf-step-card p{
  color:#cbd5e1;
  font-size:0.9rem;
}

.pdf-privacy-section ul{
  list-style:none;
  display:grid;
  gap:8px;
}

.pdf-privacy-section li{
  color:#cbd5e1;
  font-size:0.9rem;
  position:relative;
  padding-left:16px;
}

.pdf-privacy-section li::before{
  content:"";
  position:absolute;
  top:0.52em;
  left:0;
  width:6px;
  height:6px;
  border-radius:999px;
  background:#c4b5fd;
}

.pdf-soft-cta{
  text-align:center;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:12px;
  background:
    radial-gradient(85% 120% at 50% 0%,rgba(97,70,168,0.24),rgba(74,58,116,0.22) 45%,rgba(15,23,42,0.25) 100%),
    linear-gradient(180deg,rgba(30,41,59,0.5),rgba(15,23,42,0.35));
  box-shadow:0 18px 40px rgba(2,6,23,0.42),0 0 26px rgba(97,70,168,0.22),inset 0 1px 0 rgba(255,255,255,0.06);
}

.pdf-soft-cta-heading{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  color:#dbeafe;
  font-size:1rem;
  font-weight:750;
}

.pdf-soft-cta-icon{
  font-size:0.95rem;
  line-height:1;
}

.pdf-secondary-cta{
  width:auto;
  min-width:190px;
  box-shadow:0 10px 24px rgba(0,0,0,0.45),0 0 0 1px rgba(173,164,224,0.35) inset;
}

.pdf-secondary-cta:hover{
  transform:translateY(-1px) scale(1.02);
  box-shadow:0 14px 28px rgba(0,0,0,0.46),0 0 18px rgba(121,106,173,0.34),inset 0 1px 0 rgba(255,255,255,0.2);
}

.pdf-soft-cta-subtext{
  color:#cbb8ea;
  font-size:0.82rem;
}



#pdfStatus{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap;
  border:0;
}

.toast-container{
  position:fixed;
  top:18px;
  right:18px;
  z-index:1200;
  display:flex;
  flex-direction:column;
  gap:10px;
  pointer-events:none;
}

.toast-item{
  min-width:220px;
  max-width:min(340px,calc(100vw - 28px));
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(148,163,184,0.26);
  background:rgba(15,23,42,0.92);
  color:#dbeafe;
  box-shadow:0 12px 28px rgba(2,6,23,0.45);
  font-size:0.87rem;
  opacity:0;
  transform:translateY(8px);
  transition:opacity .18s ease,transform .18s ease;
}

.toast-item.show{
  opacity:1;
  transform:translateY(0);
}

@media (max-width:600px){
  .pdf-hero,
  .pdf-how-it-works,
  .pdf-privacy-section,
  .pdf-soft-cta,
  .pdf-upload-card{
    padding:21px 16px;
    border-radius:16px;
  }

  .pdf-trust-strip{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }

  .pdf-trust-item{
    min-height:36px;
    font-size:0.78rem;
  }

  .pdf-steps-grid{
    grid-template-columns:1fr;
  }

  .pdf-upload-card .pdf-generate-btn{
    width:min(560px,100%);
  }
}
