*{box-sizing:border-box}
:root{
  --blue:#1265c5;
  --blue-dark:#0d59b0;
  --cyan:#62d5f4;
  --green:#10d6ad;
  --text:#253238;
  --muted:#7d8b8e;
  --white:#fff;
  --shadow:0 8px 26px rgba(0,0,0,.10);
}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:"Segoe UI",Roboto,Arial,sans-serif;
  color:var(--text);
  background:#fff;
}
button,input,select{font:inherit}
button{cursor:pointer}
.topbar{
  height:116px;
  background:#111;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:0 28px;
  position:relative;
  z-index:10;
}
.brand{
  display:flex;align-items:center;justify-content:center;gap:14px;margin:0;
  color:#fff;text-decoration:none;font-size:48px;font-weight:500;letter-spacing:-1.5px;
}
.brand img{width:64px;height:64px}
.brand-accent{font-weight:700}
.hero{
  min-height:calc(100vh - 116px);
  background:linear-gradient(180deg,var(--blue) 0%,#176bc9 100%);
  padding:72px 18px 80px;
}
.converter-shell{
  width:min(850px,100%);
  margin:0 auto;
  text-align:center;
  color:#fff;
}
h1{
  margin:0;
  font-size:46px;
  line-height:1.2;
  font-weight:400;
  letter-spacing:-1px;
}
.subtitle{
  margin-top:22px;
  font-size:32px;
  font-weight:300;
}
.powered{
  margin:18px 0 54px;
  font-size:21px;
  font-weight:300;
}
.dropzone{
  min-height:250px;
  background:#fff;
  border:7px dashed var(--cyan);
  border-radius:26px;
  color:#526366;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:24px;
  transition:.18s ease;
  box-shadow:var(--shadow);
}
.dropzone.dragover{
  transform:scale(1.01);
  border-color:#12cfa9;
  background:#f8ffff;
}
.drop-icon{
  width:46px;height:46px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  color:#fff;background:var(--blue);font-size:28px;
  margin-bottom:12px;
}
.drop-title{font-size:29px;font-weight:300}
.drop-help{font-size:22px;color:#889597;margin-top:12px;font-weight:300}
.browse-btn{
  margin-top:20px;border:0;background:var(--blue);color:#fff;
  border-radius:7px;padding:13px 25px;font-weight:700;
}
.multi-note{margin:18px 0 8px;color:#eaf5ff;font-size:15px;opacity:.95}.cloud-row{
  display:flex;gap:34px;justify-content:center;margin:30px 0 20px;
}
.cloud-btn{
  min-width:280px;background:#fff;border:0;border-radius:12px;
  padding:18px 20px;color:#286fc4;font-size:22px;box-shadow:var(--shadow);
}
.cloud-symbol{display:inline-block;margin-right:9px;font-size:27px}
.cloud-symbol.dropbox{color:#6842e9}
.file-list-wrap{
  background:rgba(255,255,255,.97);color:var(--text);
  border-radius:12px;padding:16px;margin:20px 0;text-align:left;
}
.file-list-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px}
.text-btn{border:0;background:transparent;color:#1467c5;font-weight:700}
.file-list{display:grid;gap:8px}
.file-item{
  display:flex;align-items:center;gap:10px;
  padding:9px 10px;background:#f2f6fa;border-radius:8px;
}
.file-item .name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.file-item .size{font-size:12px;color:#748286}
.options{
  display:flex;justify-content:center;align-items:center;gap:20px;
  margin:30px 0 16px;
}
.check-row{display:flex;align-items:center;gap:10px;font-size:21px;font-weight:300}
.check-row input{position:absolute;opacity:0;pointer-events:none}
.check-box{
  width:28px;height:28px;border-radius:6px;background:#ffb21a;position:relative;
}
.check-row input:not(:checked)+.check-box{background:#fff}
.check-row input:checked+.check-box:after{
  content:"✓";position:absolute;left:5px;top:-2px;color:#fff;font-size:23px;font-weight:800;
}
.select-wrap{position:relative;display:inline-block}
.select-wrap:after{
  content:"⌄";position:absolute;right:16px;top:50%;transform:translateY(-54%);
  color:#344046;font-size:27px;pointer-events:none;
}
select{
  appearance:none;-webkit-appearance:none;
  min-width:280px;border:1px solid #cbd6dc;border-radius:10px;
  background:#fff;color:#29343a;padding:17px 48px 17px 22px;
  font-size:20px;box-shadow:0 2px 5px rgba(0,0,0,.08);
}
.merge-note{font-size:20px;font-style:italic;font-weight:300;margin:22px 0;color:#dcecff}
.merge-note a{color:#dcecff}
.terms{
  max-width:750px;margin:0 auto 30px;
  font-size:17px;line-height:1.5;color:#e8f3ff;
}
.terms a{color:#fff}
.filename-wrap{display:block;margin:0 auto 18px;max-width:490px}
.filename-wrap input{
  width:100%;border:1px solid #cbd6dc;border-radius:10px;
  padding:19px 22px;font-size:21px;color:#28343a;
  background:#fff;outline:none;box-shadow:0 2px 5px rgba(0,0,0,.08);
}
.save-row{
  display:flex;align-items:center;justify-content:center;gap:24px;
  font-size:21px;font-weight:300;margin:10px 0 30px;
}
.save-select select{min-width:280px}
.convert-btn{
  width:min(460px,90%);padding:22px 30px;border:0;border-radius:13px;
  background:var(--green);color:#062f2b;font-size:28px;font-weight:500;
  box-shadow:0 7px 0 rgba(0,0,0,.08);transition:.15s ease;
}
.convert-btn:hover{filter:brightness(1.04)}
.convert-btn:active{transform:translateY(4px);box-shadow:0 3px 0 rgba(0,0,0,.08)}
.convert-btn:disabled{opacity:.55;cursor:not-allowed}
.status{min-height:28px;margin-top:20px;font-size:17px}
.download-area{margin-top:12px}
.download-btn{
  display:inline-block;text-decoration:none;background:#fff;color:#1265c5;
  padding:14px 24px;border-radius:9px;font-weight:700;
}
.footer{
  padding:18px 24px;
  background:#101010;
  color:#aaa;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  font-size:13px;
}
.toast{
  position:fixed;left:50%;bottom:24px;transform:translate(-50%,20px);
  opacity:0;pointer-events:none;background:#101820;color:#fff;
  padding:13px 18px;border-radius:9px;z-index:50;transition:.2s;
}
.toast.show{opacity:1;transform:translate(-50%,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}

@media (max-width:700px){
  .topbar{height:78px;padding:0 12px}
  .brand{font-size:27px;gap:8px;margin:0}
  .brand img{width:39px;height:39px}
  .hero{padding:42px 12px 60px}
  h1{font-size:31px}
  .subtitle{font-size:25px;margin-top:14px}
  .powered{font-size:16px;margin:12px 0 32px}
  .dropzone{min-height:225px;border-width:5px;border-radius:22px}
  .drop-title{font-size:25px}
  .drop-help{font-size:18px}
  .multi-note{margin:18px 0 8px;color:#eaf5ff;font-size:15px;opacity:.95}.cloud-row{gap:10px}
  .cloud-btn{min-width:0;width:50%;padding:15px 8px;font-size:16px}
  .cloud-symbol{font-size:21px}
  .options{flex-direction:column;gap:15px}
  .check-row{font-size:18px}
  select{min-width:250px;font-size:18px}
  .merge-note{font-size:17px}
  .terms{font-size:14px}
  .save-row{gap:12px;font-size:18px}
  .save-select select{min-width:180px}
  .convert-btn{font-size:24px;padding:19px 24px}
}
@media (max-width:390px){
  .footer{padding-left:12px;padding-right:12px;font-size:11px;gap:8px}

  .brand{font-size:23px}
  .cloud-btn{font-size:14px}
  select{min-width:220px}
}

/* SEO content added in V6/V7 without changing the original converter styles. */
.seo-intro{
  max-width:760px;
  margin:20px auto 0;
  font-size:17px;
  line-height:1.6;
  font-weight:400;
}
.seo-content{
  width:min(850px,100%);
  margin:28px auto 0;
  padding:34px 38px;
  background:#fff;
  color:var(--text);
  border-radius:18px;
  box-shadow:var(--shadow);
  text-align:left;
  line-height:1.65;
}
.seo-content h2{
  margin:0 0 10px;
  color:#123f70;
  font-size:27px;
}
.seo-content h2:not(:first-child){margin-top:28px}
.seo-content h3{margin:20px 0 6px;font-size:19px;color:#1c4f83}
.seo-content p{margin:0 0 10px}
.seo-content ol{margin:8px 0 0;padding-left:24px}
.seo-links{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.seo-links a{display:inline-block;padding:9px 13px;border-radius:8px;background:#eef6ff;color:#1265c5;text-decoration:none;font-weight:600}
.seo-links a:hover{text-decoration:underline}
@media (max-width:640px){
  .seo-content{padding:25px 20px}
  .seo-content h2{font-size:23px}
  .seo-intro{font-size:16px}
}
