* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f7f8ff;
  --card: #ffffff;
  --card-soft: #fcfbff;
  --text: #161b33;
  --muted: #727b91;
  --muted-2: #8a91a5;
  --border: #ececff;
  --primary: #6958ff;
  --primary-2: #7c68ff;
  --primary-soft: #f0edff;
  --shadow: 0 18px 40px rgba(99, 91, 255, 0.08);
  --shadow-2: 0 14px 30px rgba(99, 91, 255, 0.15);
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top, rgba(105, 88, 255, 0.08), transparent 35%),
    var(--bg);
  color: var(--text);
  padding: 28px;
}

.container {
  max-width: 1150px;
  margin: 0 auto; /* Centered horizontally */
}

.main-card {
  padding-bottom: 10px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 34px;
  margin-bottom: 28px;
}

.left {
  flex: 1;
  min-width: 0;
}

.title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-box {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff, #f6f4ff);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 14px 28px rgba(105, 88, 255, 0.12);
  flex: 0 0 auto;
  margin-bottom: 20px;
}

.icon-box i {
  font-size: 54px;
}

h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -1.6px;
  margin-bottom: 0px !important;
}

.desc {
  max-width: 620px;
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
  margin-top: 0px;
}

.features {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.feature {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 15px;
  font-size: 13px;
  font-weight: 600;
  color: #5d6478;
}

.feature i {
  font-size: 13px;
  border: 7px solid #fff;
  border-radius: 50%;
  background: #fff;
}

.feature:nth-child(1) i {
  color: var(--primary);
}

.feature:nth-child(2) i {
  color: #11b56d;
}

.feature:nth-child(3) i {
  color: #4d8dff;
}

.tool-box {
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 28px rgba(99, 91, 255, 0.05);
}

.section-title {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: -0.3px;
  color: #161b33;
}

.sub {
  color: var(--muted-2);
  font-size: 13px;
  margin-bottom: 18px;
  margin-left: 0px !important;
  margin-right: 0px !important;
  margin-top: 0px !important;
}

.drop {
  border: 2px dashed #d9d2ff;
  background: linear-gradient(180deg, #ffffff, #fbfaff);
  border-radius: 22px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 22px;
  transition: 0.22s ease;
}

.drop.dragover {
  border-color: var(--primary);
  background: #f8f6ff;
  transform: translateY(-1px);
}

.upload-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--primary-2), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: white;
  font-size: 28px;
  box-shadow: 0 14px 28px rgba(99, 91, 255, 0.26);
}

.drop h2 {
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.drop p {
  color: var(--muted-2);
  margin-bottom: 18px;
  font-size: 14px;
}

.browse-btn,
.merge-btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.browse-btn {
  height: 46px;
  padding: 0 20px;
  border-radius: 12px;
  background: linear-gradient(to right, var(--primary), var(--primary-2));
  color: white;
  font-weight: 700;
  font-size: 14px;
  box-shadow: 0 12px 25px rgba(99, 91, 255, 0.22);
  transition: 0.2s ease;
}

.browse-btn:hover {
  transform: translateY(-1px);
}

.browse-btn i {
  margin-right: 8px;
}

.files {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.file {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  background: #fff;
  transition: 0.2s ease;
}

.file:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 25px rgba(99, 91, 255, 0.06);
}

.left-file {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pdf-mini {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #fff3f3;
  color: #ff6161;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex: 0 0 auto;
}

.file-meta {
  min-width: 0;
}

.file-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 540px;
}

.size {
  font-size: 12px;
  color: var(--muted-2);
}

.file-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trash {
  color: #9aa1b6;
  cursor: pointer;
  transition: 0.2s;
  flex: 0 0 auto;
  padding: 10px;
  border: 0px;
  border-radius: 10px;
  background: transparent;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trash:hover {
  color: #ff6161;
  background: #fff3f3;
}

.reorder {
  margin-top: 12px;
  color: #9aa1b2;
  font-size: 12px;
  background: rgba(154, 161, 184, 0.18);
  width: max-content;
  padding: 7px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reorder svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

/* Settings & Format */

.settings {
  margin-top: 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.setting-card {
  border: 1px solid rgba(224, 227, 242, 0.95);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfffd 100%);
  box-shadow: 0 14px 30px rgba(31, 157, 87, 0.06);
  display: flex;
  flex-direction: column;
}

.format-row {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  flex-wrap: wrap;
  width: 100%;
}

.format-group {
  flex: 1 1 200px;
  min-width: 0;
}

.format-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #4f566b;
}

.format-group select {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: 1px solid #dde1ef;
  background: #fff;
  padding: 0 15px;
  outline: none;
  font-family: "Inter", sans-serif;
  color: #2f3547;
  font-size: 14px;
  transition: 0.22s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.format-group select:hover {
  border-color: #cbd2e8;
}

.format-group select:focus {
  border-color: #6958ff;
  box-shadow: 0 0 0 4px rgba(31, 157, 87, 0.12);
}

.format-group select option {
  color: #2f3547;
}

.safe {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.shield {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 24px;
  flex: 0 0 auto;
}

.safe-text {
  min-width: 0;
}

.safe h4 {
  font-size: 17px;
  margin-bottom: 0;
}

.safe p {
  color: #7f8799;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 5px;
  margin-bottom: 0px;
}

/* Progress */

.progress-wrap {
  width: 100%;
  height: 10px;
  background: #ececff;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 18px;
  display: none;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(to right, #6958ff, #836dff);
  transition: width 0.25s ease;
}

.progress-text {
  margin-top: 10px;
  font-size: 13px;
  color: #7f8799;
  font-weight: 500;
}

/* Merge Button */

.merge-btn {
  width: 100%;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(to right, var(--primary), #836dff);
  margin-top: 18px;
  color: white;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 30px rgba(99, 91, 255, 0.22);
  transition: 0.22s ease;
}

.merge-btn:hover {
  transform: translateY(-2px);
}

.merge-btn i {
  margin-right: 8px;
}

.merge-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none;
}

/* ==============================================
   LARGE SCREENS — starts at 1200px
=============================================== */

@media (min-width: 1200px) {
  body {
    padding: 30px 3vw;
  }

  .page-container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .container {
    max-width: 94vw !important;
    width: 94vw !important;
  }
}

/* ——— 1440 px ——— */
@media (min-width: 1440px) {
  body {
    padding: 36px 3vw;
  }

  .container {
    max-width: 94vw !important;
    width: 94vw !important;
  }

  .icon-box {
    width: 110px;
    height: 110px;
    border-radius: 26px;
  }

  .icon-box i {
    font-size: 62px;
  }

  h1 {
    font-size: 52px;
    letter-spacing: -2px;
  }

  .desc {
    font-size: 16px;
    max-width: 55vw;
  }

  .features {
    gap: 16px;
    margin-top: 20px;
  }

  .feature {
    font-size: 14px;
    padding: 13px 18px;
  }

  .tool-box {
    padding: 34px;
    border-radius: 30px;
  }

  .section-title {
    font-size: 22px;
  }

  .sub {
    font-size: 14px;
    margin-bottom: 24px;
  }

  .drop {
    min-height: 300px;
    border-radius: 26px;
  }

  .upload-circle {
    width: 84px;
    height: 84px;
    font-size: 32px;
    margin-bottom: 22px;
  }

  .drop h2 {
    font-size: 28px;
  }

  .drop p {
    font-size: 15px;
    margin-bottom: 22px;
  }

  .browse-btn {
    height: 52px;
    padding: 0 24px;
    font-size: 15px;
  }

  .file {
    padding: 18px 20px;
    border-radius: 18px;
  }

  .left-file {
    gap: 16px;
  }

  .pdf-mini {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 14px;
  }

  .file-name {
    font-size: 15px;
    max-width: 650px;
  }

  .size {
    font-size: 13px;
  }

  .trash {
    padding: 12px;
    font-size: 18px;
  }

  .setting-card {
    padding: 28px;
    border-radius: 26px;
  }

  .format-group select {
    height: 56px;
    font-size: 15px;
  }

  .shield {
    width: 66px;
    height: 66px;
    font-size: 26px;
  }

  .safe h4 {
    font-size: 18px;
  }

  .safe p {
    font-size: 14px;
  }

  .merge-btn {
    height: 60px;
    font-size: 16px;
  }

  .progress-wrap {
    height: 12px;
  }

  .progress-text {
    font-size: 14px;
  }
}

/* ——— 1600 px ——— */
@media (min-width: 1600px) {
  body {
    padding: 38px 3vw;
  }

  h1 {
    font-size: 58px;
    letter-spacing: -2.2px;
  }

  .desc {
    font-size: 17px;
  }

  .icon-box {
    width: 118px;
    height: 118px;
  }

  .icon-box i {
    font-size: 68px;
  }

  .tool-box {
    padding: 40px;
  }

  .section-title {
    font-size: 24px;
  }

  .drop {
    min-height: 340px;
  }

  .upload-circle {
    width: 90px;
    height: 90px;
    font-size: 34px;
  }

  .drop h2 {
    font-size: 32px;
  }

  .drop p {
    font-size: 16px;
  }

  .browse-btn {
    height: 56px;
    font-size: 16px;
  }

  .file {
    padding: 22px;
  }

  .pdf-mini {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .file-name {
    font-size: 16px;
    max-width: 750px;
  }

  .setting-card {
    padding: 32px;
  }

  .format-group select {
    height: 60px;
    font-size: 16px;
  }

  .shield {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }

  .safe h4 {
    font-size: 19px;
  }

  .merge-btn {
    height: 64px;
    font-size: 17px;
  }
}

/* ——— 1920 px ——— */
@media (min-width: 1920px) {
  body {
    padding: 42px 3vw;
  }

  h1 {
    font-size: 68px;
    letter-spacing: -2.5px;
  }

  .desc {
    max-width: 52vw;
    font-size: 18px;
    line-height: 1.8;
  }

  .top {
    gap: 50px;
    margin-bottom: 40px;
  }

  .title {
    gap: 24px;
  }

  .icon-box {
    width: 132px;
    height: 132px;
    border-radius: 30px;
  }

  .icon-box i {
    font-size: 78px;
  }

  .features {
    gap: 20px;
    margin-top: 24px;
  }

  .feature {
    font-size: 16px;
    padding: 15px 22px;
    gap: 10px;
  }

  .feature i {
    font-size: 16px;
  }

  .tool-box {
    padding: 48px;
    border-radius: 36px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .sub {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .drop {
    min-height: 400px;
    border-radius: 32px;
    border-width: 3px;
  }

  .upload-circle {
    width: 104px;
    height: 104px;
    font-size: 40px;
    margin-bottom: 28px;
    box-shadow: 0 24px 48px rgba(99, 91, 255, 0.32);
  }

  .drop h2 {
    font-size: 38px;
    margin-bottom: 14px;
  }

  .drop p {
    font-size: 18px;
    margin-bottom: 30px;
  }

  .browse-btn {
    height: 62px;
    padding: 0 30px;
    font-size: 17px;
    border-radius: 16px;
  }

  .files {
    margin-top: 24px;
    gap: 16px;
  }

  .file {
    padding: 26px;
    border-radius: 22px;
  }

  .left-file {
    gap: 18px;
  }

  .pdf-mini {
    width: 60px;
    height: 60px;
    font-size: 26px;
    border-radius: 16px;
  }

  .file-name {
    font-size: 18px;
    margin-bottom: 6px;
    max-width: 900px;
  }

  .size {
    font-size: 14px;
  }

  .trash {
    padding: 14px;
    font-size: 22px;
  }

  .reorder {
    margin-top: 20px;
    gap: 10px;
    padding: 12px 18px;
    font-size: 14px;
  }

  .reorder svg {
    width: 18px;
    height: 18px;
  }

  .settings {
    margin-top: 30px;
    gap: 24px;
  }

  .setting-card {
    padding: 38px;
    border-radius: 30px;
  }

  .format-row {
    gap: 24px;
  }

  .format-group label {
    font-size: 15px;
    margin-bottom: 14px;
  }

  .format-group select {
    height: 68px;
    font-size: 16px;
    border-radius: 18px;
    padding: 0 18px;
  }

  .shield {
    width: 82px;
    height: 82px;
    border-radius: 22px;
    font-size: 34px;
  }

  .safe h4 {
    font-size: 21px;
  }

  .safe p {
    font-size: 15px;
    line-height: 1.5;
  }

  .progress-wrap {
    height: 14px;
    margin-top: 26px;
  }

  .progress-text {
    margin-top: 14px;
    font-size: 15px;
  }

  .merge-btn {
    height: 72px;
    font-size: 19px;
    border-radius: 18px;
    margin-top: 28px;
  }
}

/* ——— 2560 px ——— */
@media (min-width: 2560px) {
  body {
    padding: 52px 3vw;
  }

  h1 {
    font-size: 88px;
    letter-spacing: -3.5px;
  }

  .desc {
    max-width: 50vw;
    font-size: 22px;
    line-height: 1.9;
  }

  .top {
    gap: 70px;
    margin-bottom: 56px;
  }

  .title {
    gap: 30px;
  }

  .icon-box {
    width: 170px;
    height: 170px;
    border-radius: 38px;
  }

  .icon-box i {
    font-size: 100px;
  }

  .features {
    gap: 26px;
    margin-top: 28px;
  }

  .feature {
    font-size: 20px;
    padding: 18px 28px;
    gap: 14px;
  }

  .feature i {
    font-size: 20px;
    border-width: 9px;
  }

  .tool-box {
    padding: 64px;
    border-radius: 44px;
  }

  .section-title {
    font-size: 36px;
    margin-bottom: 32px;
  }

  .sub {
    font-size: 20px;
    margin-bottom: 40px;
  }

  .drop {
    min-height: 520px;
    border-radius: 40px;
    border-width: 4px;
  }

  .upload-circle {
    width: 132px;
    height: 132px;
    font-size: 52px;
    margin-bottom: 36px;
    box-shadow: 0 30px 60px rgba(99, 91, 255, 0.38);
  }

  .drop h2 {
    font-size: 52px;
    margin-bottom: 20px;
  }

  .drop p {
    font-size: 22px;
    margin-bottom: 40px;
  }

  .browse-btn {
    height: 84px;
    padding: 0 44px;
    font-size: 21px;
    border-radius: 20px;
  }

  .files {
    margin-top: 32px;
    gap: 22px;
  }

  .file {
    padding: 34px;
    border-radius: 28px;
  }

  .left-file {
    gap: 26px;
  }

  .pdf-mini {
    width: 82px;
    height: 82px;
    font-size: 36px;
    border-radius: 22px;
  }

  .file-name {
    font-size: 23px;
    margin-bottom: 8px;
    max-width: 1200px;
  }

  .size {
    font-size: 18px;
  }

  .trash {
    padding: 18px;
    font-size: 28px;
    border-radius: 16px;
  }

  .reorder {
    margin-top: 28px;
    gap: 14px;
    padding: 16px 26px;
    font-size: 18px;
  }

  .reorder svg {
    width: 22px;
    height: 22px;
  }

  .settings {
    margin-top: 42px;
    gap: 34px;
  }

  .setting-card {
    padding: 52px;
    border-radius: 38px;
  }

  .format-row {
    gap: 34px;
  }

  .format-group label {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .format-group select {
    height: 86px;
    font-size: 20px;
    border-radius: 24px;
    padding: 0 24px;
  }

  .shield {
    width: 108px;
    height: 108px;
    border-radius: 28px;
    font-size: 44px;
  }

  .safe h4 {
    font-size: 26px;
  }

  .safe p {
    font-size: 18px;
    line-height: 1.6;
  }

  .progress-wrap {
    height: 18px;
    margin-top: 36px;
  }

  .progress-text {
    margin-top: 18px;
    font-size: 18px;
  }

  .merge-btn {
    height: 92px;
    font-size: 24px;
    border-radius: 24px;
    margin-top: 38px;
  }
}

/* =========================
   EXISTING RESPONSIVE (small/medium screens)
========================= */

@media (max-width: 950px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }

  .settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .icon-box {
    display: none;
  }

  .feature {
    padding: 11px 16px 11px 0px;
  }
}

@media (max-width: 700px) {
  .format-row {
    flex-direction: column;
    align-items: stretch;
  }

  .format-group {
    flex: 1 1 auto;
  }
}

@media (max-width: 600px) {
  body {
    padding: 14px;
  }

  .main-card {
    padding: 18px;
    border-radius: 22px;
  }

  .tool-box {
    padding: 18px;
    border-radius: 20px;
  }

  .title {
    align-items: flex-start;
  }

  h1 {
    font-size: 32px;
  }

  .drop h2 {
    font-size: 20px;
  }

  .drop {
    min-height: 220px;
    padding: 16px;
  }

  .file-name {
    max-width: 180px;
  }
}

/* =========================
   MOBILE BREAKPOINTS
========================= */

@media (max-width: 425px) {
  body {
    padding: 10px;
    font-size: 13px;
  }

  .main-card {
    padding-bottom: 6px;
  }

  h1 {
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .desc {
    font-size: 13px;
    line-height: 1.6;
  }

  .section-title {
    font-size: 16px;
  }

  .sub {
    font-size: 12px;
  }

  .feature {
    font-size: 11px;
    padding: 7px 8px;
    gap: 5px;
  }

  .feature i {
    font-size: 11px;
    border-width: 5px;
  }

  .tool-box {
    padding: 14px;
    border-radius: 18px;
  }

  .drop {
    min-height: 190px;
    padding: 16px;
    border-radius: 18px;
  }

  .upload-circle {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 14px;
  }

  .drop h2 {
    font-size: 20px;
    letter-spacing: -0.5px;
  }

  .drop p {
    font-size: 12px;
    margin-bottom: 14px;
  }

  .browse-btn {
    height: 44px;
    font-size: 13px;
    padding: 0 16px;
  }

  .file {
    padding: 12px;
    border-radius: 14px;
  }

  .left-file {
    gap: 10px;
  }

  .pdf-mini {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 10px;
  }

  .file-name {
    font-size: 13px;
    max-width: 130px;
  }

  .size {
    font-size: 11px;
  }

  .trash {
    padding: 8px;
    font-size: 14px;
  }

  .reorder {
    font-size: 10.5px;
    padding: 6px 10px;
  }

  .setting-card {
    padding: 14px;
    border-radius: 18px;
  }

  .format-row {
    gap: 12px;
  }

  .format-group label {
    font-size: 12px;
    margin-bottom: 6px;
  }

  .format-group select {
    height: 44px;
    font-size: 13px;
    border-radius: 12px;
  }

  .shield {
    width: 46px;
    height: 46px;
    font-size: 20px;
    border-radius: 12px;
  }

  .safe h4 {
    font-size: 14px;
  }

  .safe p {
    font-size: 12px;
  }

  .progress-wrap {
    height: 8px;
  }

  .progress-text {
    font-size: 11px;
  }

  .merge-btn {
    height: 48px;
    font-size: 13px;
    border-radius: 12px;
  }
}

@media (max-width: 375px) {
  body {
    padding: 8px;
    font-size: 12.5px;
  }

  h1 {
    font-size: 23px;
    line-height: 1.2;
  }

  .desc {
    font-size: 12px;
    line-height: 1.5;
  }

  .section-title {
    font-size: 15px;
  }

  .sub {
    font-size: 11.5px;
  }

  .feature {
    font-size: 10.5px;
    padding: 6px 7px;
  }

  .tool-box {
    padding: 12px;
    border-radius: 16px;
  }

  .drop {
    min-height: 170px;
    padding: 14px;
    border-radius: 16px;
  }

  .upload-circle {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .drop h2 {
    font-size: 18px;
  }

  .drop p {
    font-size: 11.5px;
  }

  .browse-btn {
    height: 42px;
    font-size: 12.5px;
  }

  .file {
    padding: 10px;
  }

  .pdf-mini {
    width: 32px;
    height: 32px;
    font-size: 14px;
  }

  .file-name {
    font-size: 12.5px;
    max-width: 110px;
  }

  .size {
    font-size: 10.5px;
  }

  .trash {
    font-size: 13px;
  }

  .setting-card {
    padding: 12px;
    border-radius: 16px;
  }

  .format-group select {
    height: 42px;
    font-size: 12.5px;
  }

  .shield {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .safe h4 {
    font-size: 13px;
  }

  .safe p {
    font-size: 11px;
  }

  .merge-btn {
    height: 46px;
    font-size: 12.5px;
  }
}

@media (max-width: 325px) {
  body {
    padding: 6px;
    font-size: 12px;
  }

  h1 {
    font-size: 21px;
    line-height: 1.18;
  }

  .desc {
    font-size: 11.5px;
    line-height: 1.45;
  }

  .section-title {
    font-size: 14px;
  }

  .sub {
    font-size: 10.5px;
  }

  .feature {
    font-size: 10px;
    padding: 5px 6px;
    gap: 4px;
  }

  .tool-box {
    padding: 10px;
    border-radius: 14px;
  }

  .drop {
    min-height: 150px;
    padding: 12px;
    border-radius: 14px;
  }

  .upload-circle {
    width: 46px;
    height: 46px;
    font-size: 20px;
    margin-bottom: 10px;
  }

  .drop h2 {
    font-size: 16px;
  }

  .drop p {
    font-size: 10.5px;
    margin-bottom: 12px;
  }

  .browse-btn {
    height: 40px;
    font-size: 12px;
  }

  .file {
    padding: 8px;
    border-radius: 12px;
  }

  .left-file {
    gap: 8px;
  }

  .pdf-mini {
    width: 30px;
    height: 30px;
    font-size: 13px;
    border-radius: 8px;
  }

  .file-name {
    font-size: 12px;
    max-width: 90px;
  }

  .size {
    font-size: 10px;
  }

  .trash {
    padding: 6px;
    font-size: 12px;
  }

  .reorder {
    font-size: 10px;
    padding: 5px 8px;
    gap: 4px;
  }

  .setting-card {
    padding: 10px;
    border-radius: 14px;
  }

  .format-row {
    gap: 10px;
  }

  .format-group label {
    font-size: 10.5px;
    margin-bottom: 5px;
  }

  .format-group select {
    height: 38px;
    font-size: 12px;
    border-radius: 10px;
  }

  .shield {
    width: 36px;
    height: 36px;
    font-size: 16px;
    border-radius: 10px;
  }

  .safe h4 {
    font-size: 12px;
  }

  .safe p {
    font-size: 10px;
  }

  .progress-wrap {
    height: 6px;
  }

  .progress-text {
    font-size: 10px;
  }

  .merge-btn {
    height: 42px;
    font-size: 12px;
    border-radius: 10px;
  }
}

/* =========================
   PDF TO WORD - DARK MODE
========================= */

body.dark {
  color-scheme: dark;

  --bg: #0b1120;
  --card: #111827;
  --card-2: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #94a3b8;
  --border: rgba(148, 163, 184, 0.14);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.12);
}

/* Background */
body.dark {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
}

body.dark .tool-box,
body.dark .setting-card,
body.dark .drop,
body.dark .files,
body.dark .progress-wrap {
  background: var(--card) !important;
  border-color: var(--border) !important;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.25) !important;
}

/* Headings */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark .section-title {
  color: #ffffff !important;
}

/* Text */
body.dark .desc,
body.dark .sub,
body.dark p,
body.dark label,
body.dark .setting-note,
body.dark .progress-text,
body.dark .reorder span {
  color: var(--muted) !important;
}

/* Feature badges */
body.dark .features {
  background: transparent !important;
  border: none !important;
}

body.dark .feature {
  background: transparent !important;
  color: #dbeafe !important;
}

body.dark .feature i {
  color: #60a5fa !important;
  border-color: transparent !important;
}

/* Upload area */
body.dark .drop {
  background: var(--card-2) !important;
}

body.dark .drop:hover,
body.dark .drop.drag-over {
  border-color: var(--primary) !important;
  background: #121c30 !important;
}

body.dark .upload-circle {
  background: linear-gradient(to bottom, var(--primary-hover), var(--primary));
}

/* Buttons */
body.dark .browse-btn,
body.dark .merge-btn {
  background: var(--primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28) !important;
}

body.dark .browse-btn:hover,
body.dark .merge-btn:hover {
  background: var(--primary-hover) !important;
  transform: translateY(-2px);
}

/* File list */
body.dark .file {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

body.dark .file:hover {
  border-color: rgba(59, 130, 246, 0.35) !important;
  background: #131d33 !important;
}

body.dark .file-name {
  color: #f1f5f9 !important;
}

body.dark .size {
  color: #94a3b8 !important;
}

body.dark .pdf-mini {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #60a5fa !important;
}

body.dark .trash {
  color: #64748b;
  background: transparent;
}

body.dark .trash:hover {
  background: rgba(248, 113, 113, 0.1) !important;
  color: #f87171 !important;
}

body.dark .file-item,
body.dark .file-card {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.12) !important;
}

/* Settings */
body.dark .setting-card {
  background: var(--card) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.2) !important;
}

body.dark .format-group select {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  box-shadow: none !important;
}

body.dark .format-group select:hover {
  border-color: #475569 !important;
}

body.dark .format-group select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

body.dark .format-group select option {
  background: #0f172a;
  color: #f8fafc;
}

body.dark .shield {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #60a5fa !important;
}

/* Progress bar */
body.dark .progress-wrap {
  background: #1e293b !important;
}

body.dark .progress-bar {
  background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
}

/* Reorder info */
body.dark .reorder {
  background: rgba(59, 130, 246, 0.08) !important;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
  color: #94a3b8 !important;
}

body.dark .reorder svg {
  color: #60a5fa !important;
}

/* Scrollbar */
body.dark ::-webkit-scrollbar {
  width: 10px;
}

body.dark ::-webkit-scrollbar-track {
  background: #0f172a;
}

body.dark ::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 999px;
}

body.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Selection */
body.dark ::selection {
  background: rgba(59, 130, 246, 0.35);
  color: #ffffff;
}

/* =========================
   DARK MODE MOBILE FIXES
========================= */

@media (max-width: 768px) {
  body.dark .main-card,
  body.dark .tool-box,
  body.dark .setting-card,
  body.dark .drop {
    border-radius: 22px;
  }
}

@media (max-width: 600px) {
  .page-container {
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-top: 0px !important;
  }
}
