* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f7f8ff;
  --card: #ffffff;
  --text: #161b33;
  --muted: #727b91;
  --muted-2: #8a91a5;
  --border: #ececff;
  --primary: #6958ff;
  --primary-2: #836dff;
  --primary-soft: #f0edff;
  --success: #11b56d;
  --warning: #ff8b2d;
  --danger: #ff5d5d;
}

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: 1180px;
  margin: auto;
}

.main-card {
  padding-bottom: 10px;
}

.top {
  margin-bottom: 30px;
}

.title {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-box {
  width: 100px;
  height: 100px;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff, #f5f3ff);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 40px rgba(99, 91, 255, 0.14);
  color: var(--primary);
  flex-shrink: 0;
  margin-bottom: 20px;
}

.icon-box i {
  font-size: 54px;
}

h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -2px;
  margin-bottom: 0px !important;
}

.desc {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
  margin-top: 0px;
  margin-left: 0px !important;
}

.features {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 500;
  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: var(--success);
}
.feature:nth-child(3) i {
  color: #4d8dff;
}
.feature:nth-child(4) i {
  color: var(--warning);
}

.tool-box {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 28px;
  box-shadow: 0 14px 35px rgba(99, 91, 255, 0.06);
}

.section-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}

.sub {
  font-size: 14px;
  color: var(--muted-2);
  margin-bottom: 22px;
}

.drop {
  min-height: 280px;
  border-radius: 24px;
  border: 2px dashed #d7d2ff;
  background: linear-gradient(180deg, #ffffff, #faf9ff);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  transition: 0.25s ease;
}

.drop:hover {
  border-color: var(--primary);
  background: #f8f6ff;
}

.upload-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: linear-gradient(to bottom, var(--primary-2), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 22px;
  color: white;
  font-size: 30px;
  box-shadow: 0 18px 35px rgba(99, 91, 255, 0.3);
}

.drop h2 {
  font-size: 28px;
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.drop p {
  color: var(--muted-2);
  font-size: 14px;
  margin-bottom: 24px;
  line-height: 1.7;
}

.browse-btn,
.convert-btn {
  border: none;
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.browse-btn {
  height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  background: linear-gradient(to right, var(--primary), var(--primary-2));
  color: white;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 14px 30px rgba(99, 91, 255, 0.22);
  transition: 0.2s ease;
}

.browse-btn:hover {
  transform: translateY(-2px);
}

.browse-btn i {
  margin-right: 8px;
}

.files {
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.file {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: white;
  border: 1px solid #ececff;
  border-radius: 18px;
  padding: 16px;
  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: 48px;
  height: 48px;
  border-radius: 14px;
  background: #fff1f1;
  color: #ff5d5d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.file-meta {
  min-width: 0;
}

.file-name {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 500px;
}

.size {
  color: var(--muted-2);
  font-size: 12px;
}

.trash {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: none;
  background: transparent;
  color: #a0a8bc;
  cursor: pointer;
  transition: 0.2s ease;
  flex-shrink: 0;
}

.trash:hover {
  background: #fff1f1;
  color: #ff5d5d;
}

.reorder {
  margin-top: 14px;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(154, 161, 184, 0.14);
  color: #8b93a8;
  font-size: 12px;
  font-weight: 600;
}

.reorder svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

.settings {
  margin-top: 24px;
}

.setting-card {
  border: 1px solid rgba(224, 227, 242, 0.95);
  border-radius: 24px;
  padding: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfbff 100%);
  box-shadow: 0 14px 30px rgba(99, 91, 255, 0.05);
}

.format-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.format-group label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #4f566b;
}

.format-group input,
.format-group select {
  width: 100%;
  height: 54px;
  border-radius: 16px;
  border: 1px solid #dde1ef;
  background: white;
  padding: 0 15px;
  outline: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #2f3547;
  transition: 0.22s ease;
}

.format-group input:focus,
.format-group select:focus,
.text-area:focus {
  border-color: #6958ff;
  box-shadow: 0 0 0 4px rgba(105, 88, 255, 0.12);
}

.extra-options {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.option-box {
  background: white;
  border: 1px solid #ececff;
  border-radius: 18px;
  padding: 18px;
  align-self: start;
}

.option-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 0;
}

.option-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: #f3f1ff;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.option-box h4 {
  font-size: 15px;
}

.option-box p {
  font-size: 13px;
  color: #7f8799;
  line-height: 1.6;
  margin: 0px !important;
}

.switch {
  margin-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.switch label {
  font-size: 13px;
  font-weight: 600;
  color: #555d74;
}

.switch input {
  width: 18px;
  height: 18px;
  accent-color: #6958ff;
}

.text-area {
  width: 100%;
  min-height: 68px;
  height: 81px;
  resize: vertical;
  border-radius: 16px;
  border: 1px solid #dde1ef;
  background: white;
  padding: 10px 15px;
  outline: none;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  color: #2f3547;
  transition: 0.22s ease;
  margin-top: 10px;
}

.progress-wrap {
  width: 100%;
  height: 10px;
  background: #ececff;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 22px;
  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;
  color: #7f8799;
  font-size: 13px;
  font-weight: 600;
}

.convert-btn {
  width: 100%;
  height: 58px;
  border-radius: 16px;
  margin-top: 22px;
  background: linear-gradient(to right, var(--primary), var(--primary-2));
  color: white;
  font-size: 15px;
  font-weight: 800;
  box-shadow: 0 18px 35px rgba(99, 91, 255, 0.24);
  transition: 0.22s ease;
}

.convert-btn:hover {
  transform: translateY(-2px);
}

.convert-btn i {
  margin-right: 8px;
}

/* COPY RESTRICTION SECTION */
.copy-section {
  margin-top: 22px;
}

.copy-box {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #ffffff 0%, #faf9ff 100%);
  border: 1px solid #e7e9f5;
  border-radius: 22px;
  padding: 22px;
  transition: 0.25s ease;
}

.copy-box:hover {
  transform: translateY(-2px);
  border-color: #d6d2ff;
  box-shadow: 0 16px 32px rgba(105, 88, 255, 0.08);
}

.copy-box::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  background: rgba(105, 88, 255, 0.05);
  border-radius: 50%;
  top: -70px;
  right: -70px;
}

.copy-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.copy-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.copy-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(to bottom, #7d6bff, #6958ff);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 21px;
  flex-shrink: 0;
  box-shadow: 0 14px 28px rgba(105, 88, 255, 0.22);
}

.copy-content h4 {
  font-size: 16px;
  font-weight: 800;
  color: #232842;
  margin-bottom: 5px;
}

.copy-content p {
  font-size: 13px;
  line-height: 1.7;
  color: #7f8799;
}

/* MODERN TOGGLE */
.modern-switch {
  margin-top: 10px;
  padding-top: 10px;
}

.toggle-switch {
  position: relative;
  width: 60px;
  height: 34px;
  display: inline-block;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  border-radius: 999px;
  background: #d9ddeb;
  transition: 0.25s ease;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  width: 26px;
  height: 26px;
  left: 4px;
  top: 4px;
  border-radius: 50%;
  background: white;
  transition: 0.25s ease;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.15);
}

.toggle-switch input:checked + .toggle-slider {
  background: linear-gradient(to right, #6958ff, #8c7bff);
}

.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(26px);
}

/* BADGE */
.copy-badge {
  margin-top: 8px;
  width: max-content;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: rgba(105, 88, 255, 0.08);
  color: #6958ff;
  font-size: 12px;
  font-weight: 700;
}

.copy-badge i {
  font-size: 12px;
}

/* NOTE OPTION */
.note-option .text-area {
  margin-top: 10px;
  min-height: 68px;
  height: 81px;
}

/* ==============================================
   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;
  }

  h1 {
    font-size: 52px;
    letter-spacing: -2.2px;
  }
  .desc {
    max-width: 55vw;
    font-size: 16px;
  }

  .icon-box {
    width: 112px;
    height: 112px;
    border-radius: 20px;
  }
  .icon-box i {
    font-size: 66px;
  }

  .features {
    gap: 18px;
    margin-top: 18px;
  }
  .feature {
    font-size: 14px;
    padding: 12px 18px;
  }

  .tool-box {
    padding: 32px;
    border-radius: 32px;
  }
  .section-title {
    font-size: 22px;
  }
  .sub {
    font-size: 15px;
  }

  .drop {
    min-height: 300px;
    border-radius: 26px;
  }
  .drop h2 {
    font-size: 30px;
  }
  .drop p {
    font-size: 15px;
  }
  .upload-circle {
    width: 86px;
    height: 86px;
    font-size: 34px;
  }
  .browse-btn {
    height: 56px;
    padding: 0 26px;
    font-size: 15px;
  }

  .file {
    padding: 20px 22px;
    border-radius: 20px;
  }
  .file-name {
    font-size: 15px;
  }
  .size {
    font-size: 13px;
  }
  .pdf-mini {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .setting-card {
    padding: 28px;
    border-radius: 26px;
  }
  .format-group label {
    font-size: 14px;
  }
  .format-group input,
  .format-group select {
    height: 56px;
    font-size: 15px;
  }

  .extra-options {
    gap: 20px;
  }
  .option-box {
    padding: 22px;
    border-radius: 20px;
  }
  .option-icon {
    width: 46px;
    height: 46px;
    font-size: 20px;
  }
  .option-box h4 {
    font-size: 16px;
  }
  .option-box p {
    font-size: 14px;
  }
  .switch label {
    font-size: 14px;
  }

  .text-area {
    font-size: 15px;
  }

  .copy-box {
    padding: 26px;
    border-radius: 26px;
  }
  .copy-box::before {
    width: 160px;
    height: 160px;
    top: -80px;
    right: -80px;
  }
  .copy-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }
  .copy-content h4 {
    font-size: 17px;
  }
  .copy-content p {
    font-size: 14px;
  }
  .copy-badge {
    font-size: 13px;
    padding: 10px 16px;
  }

  .convert-btn {
    height: 62px;
    font-size: 16px;
  }
}

/* ——— 1600 px ——— */
@media (min-width: 1600px) {
  body {
    padding: 38px 3vw;
  }
  h1 {
    font-size: 58px;
    letter-spacing: -2.4px;
  }
  .desc {
    font-size: 16.5px;
  }

  .icon-box {
    width: 120px;
    height: 120px;
  }
  .icon-box i {
    font-size: 72px;
  }

  .tool-box {
    padding: 36px;
  }
  .section-title {
    font-size: 24px;
  }
  .sub {
    font-size: 16px;
  }

  .drop {
    min-height: 320px;
  }
  .drop h2 {
    font-size: 32px;
  }
  .drop p {
    font-size: 16px;
  }
  .upload-circle {
    width: 92px;
    height: 92px;
    font-size: 36px;
  }
  .browse-btn {
    height: 58px;
    font-size: 16px;
  }

  .file {
    padding: 22px 24px;
  }
  .file-name {
    font-size: 16px;
  }
  .size {
    font-size: 13.5px;
  }
  .pdf-mini {
    width: 56px;
    height: 56px;
    font-size: 24px;
  }

  .setting-card {
    padding: 32px;
  }
  .format-group input,
  .format-group select {
    height: 58px;
  }

  .option-box {
    padding: 26px;
  }
  .option-icon {
    width: 50px;
    height: 50px;
    font-size: 22px;
  }
  .option-box h4 {
    font-size: 17px;
  }

  .copy-icon {
    width: 64px;
    height: 64px;
    font-size: 26px;
  }
  .copy-content h4 {
    font-size: 18px;
  }

  .convert-btn {
    height: 66px;
    font-size: 17px;
  }
}

/* ——— 1920 px ——— */
@media (min-width: 1920px) {
  body {
    padding: 42px 3vw;
  }
  h1 {
    font-size: 68px;
    letter-spacing: -2.6px;
  }
  .desc {
    max-width: 52vw;
    font-size: 18px;
    line-height: 1.8;
  }
  .title {
    gap: 24px;
    margin-bottom: 20px;
  }
  .top {
    margin-bottom: 40px;
  }

  .icon-box {
    width: 134px;
    height: 134px;
    border-radius: 28px;
  }
  .icon-box i {
    font-size: 80px;
  }

  .features {
    gap: 20px;
    margin-top: 22px;
  }
  .feature {
    font-size: 16px;
    padding: 14px 22px;
    gap: 10px;
  }
  .feature i {
    font-size: 16px;
  }

  .tool-box {
    padding: 44px;
    border-radius: 36px;
  }
  .section-title {
    font-size: 26px;
    margin-bottom: 12px;
  }
  .sub {
    font-size: 17px;
    margin-bottom: 26px;
  }

  .drop {
    min-height: 360px;
    border-radius: 30px;
  }
  .drop h2 {
    font-size: 36px;
    margin-bottom: 14px;
  }
  .drop p {
    font-size: 18px;
    margin-bottom: 28px;
  }
  .upload-circle {
    width: 100px;
    height: 100px;
    font-size: 40px;
    margin-bottom: 26px;
  }
  .browse-btn {
    height: 62px;
    padding: 0 32px;
    font-size: 17px;
    border-radius: 16px;
  }

  .files {
    gap: 18px;
  }
  .file {
    padding: 24px 28px;
    border-radius: 22px;
  }
  .left-file {
    gap: 18px;
  }
  .file-name {
    font-size: 18px;
    margin-bottom: 6px;
  }
  .size {
    font-size: 14.5px;
  }
  .pdf-mini {
    width: 60px;
    height: 60px;
    font-size: 26px;
    border-radius: 16px;
  }
  .trash {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .setting-card {
    padding: 36px;
    border-radius: 28px;
  }
  .format-row {
    gap: 24px;
  }
  .format-group label {
    font-size: 16px;
    margin-bottom: 14px;
  }
  .format-group input,
  .format-group select {
    height: 62px;
    font-size: 16px;
    border-radius: 14px;
    padding: 0 18px;
  }

  .extra-options {
    gap: 26px;
    margin-top: 28px;
  }
  .option-box {
    padding: 30px;
    border-radius: 22px;
  }
  .option-top {
    gap: 16px;
    margin-bottom: 0;
  }
  .option-icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 26px;
  }
  .option-box h4 {
    font-size: 19px;
    margin-bottom: 6px;
  }
  .option-box p {
    font-size: 16px;
    line-height: 1.65;
  }
  .switch {
    margin-top: 18px;
  }
  .switch label {
    font-size: 16px;
  }

  .text-area {
    font-size: 16px;
    padding: 14px 18px;
    border-radius: 14px;
  }

  .copy-section {
    margin-top: 28px;
  }
  .copy-box {
    padding: 32px;
    border-radius: 28px;
  }
  .copy-box::before {
    width: 200px;
    height: 200px;
    top: -100px;
    right: -100px;
  }
  .copy-top {
    gap: 24px;
  }
  .copy-left {
    gap: 22px;
  }
  .copy-icon {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    font-size: 32px;
  }
  .copy-content h4 {
    font-size: 22px;
    margin-bottom: 8px;
  }
  .copy-content p {
    font-size: 16px;
  }

  .modern-switch {
    margin-top: 14px;
    padding-top: 14px;
  }
  .toggle-switch {
    width: 68px;
    height: 38px;
  }
  .toggle-slider::before {
    width: 30px;
    height: 30px;
    left: 4px;
    top: 4px;
  }
  .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(30px);
  }

  .copy-badge {
    font-size: 14px;
    padding: 12px 18px;
    gap: 10px;
    margin-top: 12px;
  }
  .copy-badge i {
    font-size: 14px;
  }

  .convert-btn {
    height: 72px;
    font-size: 19px;
    border-radius: 20px;
    margin-top: 28px;
  }
  .reorder {
    font-size: 14px;
    padding: 10px 18px;
    margin-top: 20px;
  }
  .reorder svg {
    width: 18px;
    height: 18px;
  }
}

/* ——— 2560 px ——— */
@media (min-width: 2560px) {
  body {
    padding: 52px 3vw;
  }
  h1 {
    font-size: 86px;
    letter-spacing: -3px;
  }
  .desc {
    max-width: 50vw;
    font-size: 22px;
    line-height: 1.8;
  }
  .title {
    gap: 30px;
    margin-bottom: 28px;
  }
  .top {
    margin-bottom: 56px;
  }

  .icon-box {
    width: 170px;
    height: 170px;
    border-radius: 34px;
  }
  .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: 10px;
  }

  .tool-box {
    padding: 60px;
    border-radius: 42px;
  }
  .section-title {
    font-size: 34px;
    margin-bottom: 16px;
  }
  .sub {
    font-size: 21px;
    margin-bottom: 34px;
  }

  .drop {
    min-height: 460px;
    border-radius: 38px;
    border-width: 3px;
  }
  .drop h2 {
    font-size: 48px;
    margin-bottom: 18px;
    letter-spacing: -1px;
  }
  .drop p {
    font-size: 23px;
    margin-bottom: 38px;
  }
  .upload-circle {
    width: 130px;
    height: 130px;
    font-size: 54px;
    margin-bottom: 34px;
    box-shadow: 0 24px 48px rgba(99, 91, 255, 0.3);
  }
  .browse-btn {
    height: 80px;
    padding: 0 48px;
    font-size: 21px;
    border-radius: 20px;
  }

  .files {
    gap: 24px;
  }
  .file {
    padding: 32px 38px;
    border-radius: 28px;
  }
  .left-file {
    gap: 26px;
  }
  .file-name {
    font-size: 23px;
    margin-bottom: 7px;
  }
  .size {
    font-size: 18px;
  }
  .pdf-mini {
    width: 76px;
    height: 76px;
    font-size: 34px;
    border-radius: 20px;
  }
  .trash {
    width: 60px;
    height: 60px;
    font-size: 26px;
    border-radius: 16px;
  }

  .setting-card {
    padding: 44px;
    border-radius: 34px;
  }
  .format-row {
    gap: 30px;
  }
  .format-group label {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .format-group input,
  .format-group select {
    height: 78px;
    font-size: 19px;
    border-radius: 18px;
    padding: 0 24px;
  }

  .extra-options {
    gap: 34px;
    margin-top: 36px;
  }
  .option-box {
    padding: 38px;
    border-radius: 28px;
  }
  .option-top {
    gap: 22px;
  }
  .option-icon {
    width: 70px;
    height: 70px;
    border-radius: 22px;
    font-size: 32px;
  }
  .option-box h4 {
    font-size: 24px;
    margin-bottom: 10px;
  }
  .option-box p {
    font-size: 19px;
    line-height: 1.7;
  }
  .switch {
    margin-top: 24px;
  }
  .switch label {
    font-size: 20px;
  }
  .switch input {
    width: 24px;
    height: 24px;
  }

  .text-area {
    font-size: 19px;
    padding: 18px 24px;
    border-radius: 18px;
    min-height: 100px;
    height: 120px;
  }

  .copy-section {
    margin-top: 36px;
  }
  .copy-box {
    padding: 44px;
    border-radius: 34px;
  }
  .copy-box::before {
    width: 260px;
    height: 260px;
    top: -130px;
    right: -130px;
  }
  .copy-top {
    gap: 32px;
  }
  .copy-left {
    gap: 28px;
  }
  .copy-icon {
    width: 94px;
    height: 94px;
    border-radius: 28px;
    font-size: 42px;
  }
  .copy-content h4 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  .copy-content p {
    font-size: 19px;
  }

  .modern-switch {
    margin-top: 20px;
    padding-top: 20px;
  }
  .toggle-switch {
    width: 82px;
    height: 46px;
  }
  .toggle-slider::before {
    width: 38px;
    height: 38px;
    left: 4px;
    top: 4px;
  }
  .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(36px);
  }

  .copy-badge {
    font-size: 18px;
    padding: 14px 22px;
    gap: 12px;
    margin-top: 16px;
    border-radius: 999px;
  }
  .copy-badge i {
    font-size: 18px;
  }

  .convert-btn {
    height: 90px;
    font-size: 23px;
    border-radius: 24px;
    margin-top: 36px;
    box-shadow: 0 24px 48px rgba(99, 91, 255, 0.28);
  }
  .reorder {
    font-size: 18px;
    padding: 14px 24px;
    margin-top: 26px;
    border-radius: 50px;
    gap: 12px;
  }
  .reorder svg {
    width: 22px;
    height: 22px;
  }
}

/* =========================
   SMALL SCREENS
========================= */

@media (max-width: 950px) {
  .format-row,
  .extra-options {
    grid-template-columns: 1fr;
  }
  .copy-option,
  .note-option {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .icon-box {
    display: none;
  }
  .feature {
    padding: 11px 16px 11px 0px;
  }
}

@media (max-width: 650px) {
  body {
    padding: 14px;
  }
  .tool-box {
    padding: 18px;
    border-radius: 22px;
  }
  .title {
    flex-direction: column;
    align-items: flex-start;
  }
  .icon-box {
    width: 80px;
    height: 80px;
  }
  .icon-box i {
    font-size: 42px;
  }
  h1 {
    font-size: 34px;
  }
  .drop {
    min-height: 240px;
  }
  .drop h2 {
    font-size: 22px;
  }
  .file-name {
    max-width: 180px;
  }
  .copy-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .toggle-switch {
    margin-left: 70px;
  }
  .copy-box {
    padding: 18px;
  }
  .copy-left {
    align-items: flex-start;
  }
}

@media (max-width: 425px) {
  body {
    padding: 10px;
    font-size: 13px;
  }
  .main-card {
    padding-bottom: 0;
  }
  h1 {
    font-size: 26px;
    line-height: 1.15;
  }
  .desc {
    font-size: 13px;
    line-height: 1.6;
  }
  .section-title {
    font-size: 16px;
  }
  .sub {
    font-size: 12px;
  }
  .feature {
    font-size: 12px;
    padding: 9px 12px;
    gap: 6px;
  }
  .feature i {
    font-size: 12px;
  }
  .drop h2 {
    font-size: 18px;
  }
  .drop p {
    font-size: 12px;
  }
  .browse-btn,
  .convert-btn {
    font-size: 13px;
    height: 46px;
  }
  .file-name {
    font-size: 13px;
  }
  .size {
    font-size: 11px;
  }
  .setting-card label {
    font-size: 12px;
  }
  .format-group input,
  .format-group select {
    font-size: 13px;
    height: 46px;
  }
  .option-box h4 {
    font-size: 13px;
  }
  .option-box p {
    font-size: 12px;
  }
  .switch label {
    font-size: 12px;
  }
  .text-area {
    font-size: 13px;
  }
  .copy-content h4 {
    font-size: 14px;
  }
  .copy-content p {
    font-size: 12px;
  }
  .copy-badge {
    font-size: 11px;
  }
  .icon-box {
    display: none;
  }
  .tool-box,
  .setting-card {
    padding: 14px;
    border-radius: 16px;
  }
  .drop {
    min-height: 180px;
    padding: 16px;
  }
  .settings {
    gap: 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;
  }
  .title {
    gap: 10px;
  }
  .feature {
    font-size: 11.5px;
    padding: 8px 10px;
  }
  .drop {
    min-height: 165px;
    padding: 14px;
    border-radius: 16px;
  }
  .drop h2 {
    font-size: 17px;
  }
  .drop p {
    font-size: 11.5px;
  }
  .upload-circle {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }
  .browse-btn,
  .convert-btn {
    font-size: 12.5px;
    height: 44px;
    border-radius: 10px;
  }
  .file {
    padding: 12px;
  }
  .file-name {
    font-size: 12.5px;
  }
  .size {
    font-size: 10.5px;
  }
  .pdf-mini {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }
  .setting-card {
    padding: 12px;
    border-radius: 14px;
  }
  .setting-card label {
    font-size: 11.5px;
  }
  .format-group input,
  .format-group select {
    font-size: 12.5px;
    height: 42px;
    border-radius: 10px;
  }
  .text-area {
    font-size: 12.5px;
    height: 70px;
    min-height: 60px;
  }
  .copy-icon {
    width: 46px;
    height: 46px;
    font-size: 18px;
  }
  .reorder {
    font-size: 10.5px;
    padding: 5px 9px;
  }
  .tool-box {
    padding: 12px;
    border-radius: 16px;
  }
  .icon-box {
    display: none;
  }
}

@media (max-width: 325px) {
  body {
    padding: 6px;
    font-size: 12px;
  }
  .tool-box,
  .setting-card,
  .copy-box {
    padding: 10px;
    border-radius: 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;
  }
  .title {
    gap: 8px;
  }
  .feature {
    font-size: 10.5px;
    padding: 7px 9px;
    gap: 5px;
  }
  .drop {
    min-height: 150px;
    padding: 12px;
    border-radius: 14px;
  }
  .drop h2 {
    font-size: 15px;
  }
  .drop p {
    font-size: 10.5px;
    margin-bottom: 14px;
  }
  .upload-circle {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 14px;
  }
  .browse-btn,
  .convert-btn {
    height: 42px;
    font-size: 12px;
    border-radius: 10px;
  }
  .file {
    padding: 10px;
    border-radius: 12px;
  }
  .left-file {
    gap: 8px;
  }
  .pdf-mini {
    width: 32px;
    height: 32px;
    font-size: 15px;
    border-radius: 10px;
  }
  .file-name {
    font-size: 12px;
  }
  .size {
    font-size: 10px;
  }
  .setting-card label {
    font-size: 11px;
    margin-bottom: 8px;
  }
  .format-group input,
  .format-group select {
    height: 40px;
    font-size: 12px;
    border-radius: 10px;
  }
  .text-area {
    font-size: 12px;
    height: 60px;
    min-height: 50px;
  }
  .option-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }
  .option-box h4 {
    font-size: 12px;
  }
  .option-box p {
    font-size: 11px;
  }
  .switch label {
    font-size: 11px;
  }
  .copy-icon {
    width: 42px;
    height: 42px;
    font-size: 16px;
  }
  .copy-content h4 {
    font-size: 13px;
  }
  .copy-content p {
    font-size: 11px;
  }
  .toggle-switch {
    width: 52px;
    height: 30px;
  }
  .toggle-slider::before {
    width: 22px;
    height: 22px;
  }
  .toggle-switch input:checked + .toggle-slider::before {
    transform: translateX(22px);
  }
  .copy-badge {
    font-size: 10px;
    padding: 6px 10px;
  }
  .reorder {
    font-size: 10px;
    padding: 4px 8px;
    gap: 4px;
  }
  .icon-box {
    display: none;
  }
}

/* =========================
   PROTECT PDF DARK MODE
========================= */

body.dark {
  color-scheme: dark;

  --bg: #0b1120;
  --card: #111827;
  --card-2: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --border: rgba(148, 163, 184, 0.14);

  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.12);
  --danger: #f87171;
}

body.dark {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 35%),
    var(--bg);
  color: var(--text);
}

/* Main containers */
body.dark .tool-box,
body.dark .setting-card,
body.dark .drop,
body.dark .files,
body.dark .progress-wrap,
body.dark .copy-box {
  background: var(--card) !important;
  border-color: var(--border) !important;
}

body.dark .copy-box::before {
  background: rgba(59, 130, 246, 0.06) !important;
}

body.dark .copy-box:hover {
  border-color: rgba(59, 130, 246, 0.3) !important;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2) !important;
}

/* Titles */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark .section-title,
body.dark .option-top h4,
body.dark .copy-content h4 {
  color: #ffffff !important;
}

/* Text */
body.dark .desc,
body.dark .sub,
body.dark p,
body.dark label,
body.dark .progress-text,
body.dark .reorder span,
body.dark .option-top p,
body.dark .copy-badge,
body.dark .note-option textarea::placeholder {
  color: var(--muted) !important;
}

/* Features: no background */
body.dark .features {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.dark .feature {
  background: transparent !important;
  color: #dbeafe !important;
  box-shadow: none !important;
}

body.dark .feature i {
  color: #60a5fa !important;
}

/* Upload box */
body.dark .drop {
  background: var(--card-2) !important;
  border-color: rgba(148, 163, 184, 0.25) !important;
}

body.dark .drop:hover,
body.dark .drop.drag-over {
  border-color: var(--primary) !important;
}

body.dark .upload-circle {
  background: linear-gradient(
    to bottom,
    var(--primary-hover),
    var(--primary)
  ) !important;
}

/* Inputs & Textarea */
body.dark input[type="password"],
body.dark input[type="text"],
body.dark textarea,
body.dark .text-area {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}

body.dark input[type="password"]::placeholder,
body.dark input[type="text"]::placeholder,
body.dark textarea::placeholder {
  color: #64748b !important;
}

body.dark input[type="password"]:focus,
body.dark input[type="text"]:focus,
body.dark textarea:focus,
body.dark .text-area:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  outline: none;
}

/* Selects */
body.dark select {
  background: #0f172a !important;
  color: #f8fafc !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}

body.dark select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Buttons */
body.dark .browse-btn,
body.dark .convert-btn {
  background: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.28) !important;
}

body.dark .browse-btn:hover,
body.dark .convert-btn:hover {
  background: var(--primary-hover) !important;
}

body.dark .convert-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Option cards */
body.dark .option-box {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
}

body.dark .option-icon {
  background: var(--primary-soft) !important;
  color: #60a5fa !important;
}

/* Switches */
body.dark .switch label {
  color: var(--muted) !important;
}

body.dark .toggle-slider {
  background: #334155;
}

body.dark .toggle-switch input:checked + .toggle-slider {
  background: var(--primary) !important;
}

/* Copy Box specifics */
body.dark .copy-icon {
  background: linear-gradient(
    to bottom,
    var(--primary-hover),
    var(--primary)
  ) !important;
  box-shadow: 0 14px 28px rgba(59, 130, 246, 0.2) !important;
}

body.dark .copy-badge {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #dbeafe !important;
  border: 1px solid rgba(59, 130, 246, 0.18) !important;
}

body.dark .copy-badge i {
  color: #60a5fa !important;
}

/* File List */
body.dark .file {
  background: #111827 !important;
  border: 1px solid rgba(148, 163, 184, 0.14) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
}

body.dark .file-name {
  color: #f8fafc !important;
}

body.dark .size {
  color: #94a3b8 !important;
}

body.dark .pdf-mini {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #f87171 !important;
}

body.dark .trash {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}

body.dark .trash:hover {
  background: #dc2626 !important;
  color: white !important;
}

/* Progress */
body.dark .progress-wrap {
  background: #1e293b !important;
}

body.dark .progress-bar {
  background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
}

/* Reorder notice */
body.dark .reorder {
  background: rgba(148, 163, 184, 0.06) !important;
  border: 1px solid rgba(148, 163, 184, 0.1) !important;
}

body.dark .reorder svg,
body.dark .reorder i {
  color: #60a5fa !important;
}

/* Scrollbar */
body.dark ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
body.dark ::-webkit-scrollbar-track {
  background: #0f162a;
}
body.dark ::-webkit-scrollbar-thumb {
  background: #283552;
  border-radius: 999px;
}
body.dark ::-webkit-scrollbar-thumb:hover {
  background: #34456a;
}

/* Responsive */
@media (max-width: 768px) {
  body.dark .main-card,
  body.dark .tool-box,
  body.dark .setting-card,
  body.dark .drop {
    border-radius: 22px;
  }
}
