* {
  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;
}

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: 0 auto; /* Centered horizontally */
}

.top {
  margin-bottom: 30px;
}

.title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 16px;
}

.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: 10px;
}

.icon-box i {
  font-size: 56px;
}

h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -2px;
}

.desc {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 15px;
}

.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: #6958ff;
}

.feature:nth-child(2) i {
  color: #11b56d;
}

.feature:nth-child(3) i {
  color: #4d8dff;
}

.feature:nth-child(4) i {
  color: #ff8b2d;
}

.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;
}

.left-file {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.img-mini {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #eef3ff;
  color: #4d8dff;
  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;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.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;
}

.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 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 select: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;
}

.option-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.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;
}

.option-box h4 {
  font-size: 15px;
  margin-bottom: 4px;
}

.option-box p {
  font-size: 13px;
  color: #7f8799;
  line-height: 1.6;
}

.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;
}

.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;
}

/* ==============================================
   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: 112px !important;
    height: 112px !important;
    border-radius: 20px;
  }

  .icon-box i {
    font-size: 64px;
  }

  h1 {
    font-size: 54px;
    letter-spacing: -2.2px;
  }

  .desc {
    font-size: 16px;
    max-width: 60vw;
  }

  .features {
    gap: 16px;
    margin-top: 20px;
  }

  .feature {
    font-size: 14px;
    padding: 13px 18px;
  }

  .tool-box {
    padding: 36px;
    border-radius: 32px;
  }

  .section-title {
    font-size: 24px;
  }

  .sub {
    font-size: 15px;
    margin-bottom: 26px;
  }

  .drop {
    min-height: 320px;
    border-radius: 28px;
  }

  .upload-circle {
    width: 88px;
    height: 88px;
    font-size: 34px;
    margin-bottom: 26px;
  }

  .drop h2 {
    font-size: 32px;
  }

  .drop p {
    font-size: 15px;
    margin-bottom: 28px;
  }

  .browse-btn {
    height: 56px;
    padding: 0 26px;
    font-size: 15px;
  }

  .file {
    padding: 20px;
    border-radius: 20px;
  }

  .img-mini {
    width: 54px;
    height: 54px;
    font-size: 22px;
    border-radius: 16px;
  }

  .file-name {
    font-size: 15px;
    max-width: 600px;
  }

  .size {
    font-size: 13px;
  }

  .trash {
    width: 48px;
    height: 48px;
    font-size: 18px;
  }

  .setting-card {
    padding: 28px;
    border-radius: 28px;
  }

  .format-row {
    gap: 22px;
  }

  .format-group label {
    font-size: 14px;
    margin-bottom: 12px;
  }

  .format-group select {
    height: 58px;
    font-size: 15px;
    border-radius: 18px;
  }

  .extra-options {
    gap: 20px;
  }

  .option-box {
    padding: 22px;
    border-radius: 20px;
  }

  .option-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    border-radius: 16px;
  }

  .option-box h4 {
    font-size: 16px;
  }

  .option-box p {
    font-size: 14px;
  }

  .switch label {
    font-size: 14px;
  }

  .switch input {
    width: 20px;
    height: 20px;
  }

  .progress-wrap {
    height: 12px;
  }

  .progress-text {
    font-size: 14px;
  }

  .convert-btn {
    height: 62px;
    font-size: 16px;
    border-radius: 18px;
  }
}

/* ——— 1600 px ——— */
@media (min-width: 1600px) {
  body {
    padding: 38px 3vw;
  }

  h1 {
    font-size: 60px;
    letter-spacing: -2.5px;
  }

  .desc {
    font-size: 17px;
  }

  .icon-box {
    width: 120px;
    height: 120px;
  }

  .icon-box i {
    font-size: 70px;
  }

  .tool-box {
    padding: 40px;
  }

  .section-title {
    font-size: 26px;
  }

  .drop {
    min-height: 350px;
  }

  .upload-circle {
    width: 94px;
    height: 94px;
    font-size: 36px;
  }

  .drop h2 {
    font-size: 36px;
  }

  .drop p {
    font-size: 16px;
  }

  .browse-btn {
    height: 60px;
    font-size: 16px;
  }

  .file {
    padding: 22px;
  }

  .img-mini {
    width: 58px;
    height: 58px;
    font-size: 24px;
  }

  .file-name {
    font-size: 16px;
    max-width: 700px;
  }

  .setting-card {
    padding: 32px;
  }

  .format-group select {
    height: 62px;
    font-size: 16px;
  }

  .option-box {
    padding: 26px;
  }

  .option-icon {
    width: 52px;
    height: 52px;
    font-size: 22px;
  }

  .option-box h4 {
    font-size: 17px;
  }

  .option-box p {
    font-size: 15px;
  }

  .convert-btn {
    height: 66px;
    font-size: 17px;
  }
}

/* ——— 1920 px ——— */
@media (min-width: 1920px) {
  body {
    padding: 42px 3vw;
  }

  h1 {
    font-size: 70px;
    letter-spacing: -2.8px;
  }

  .desc {
    max-width: 56vw;
    font-size: 18px;
    line-height: 1.85;
  }

  .top {
    margin-bottom: 40px;
  }

  .title {
    gap: 24px;
    margin-bottom: 20px;
  }

  .icon-box {
    width: 134px;
    height: 134px;
    border-radius: 30px;
  }

  .icon-box i {
    font-size: 80px;
  }

  .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: 30px;
    margin-bottom: 12px;
  }

  .sub {
    font-size: 17px;
    margin-bottom: 32px;
  }

  .drop {
    min-height: 400px;
    border-radius: 32px;
    border-width: 3px;
  }

  .upload-circle {
    width: 106px;
    height: 106px;
    font-size: 42px;
    margin-bottom: 30px;
    box-shadow: 0 24px 48px rgba(99, 91, 255, 0.35);
  }

  .drop h2 {
    font-size: 42px;
    margin-bottom: 16px;
  }

  .drop p {
    font-size: 18px;
    margin-bottom: 34px;
  }

  .browse-btn {
    height: 66px;
    padding: 0 32px;
    font-size: 17px;
    border-radius: 16px;
  }

  .files {
    margin-top: 24px;
    gap: 18px;
  }

  .file {
    padding: 26px;
    border-radius: 24px;
  }

  .left-file {
    gap: 18px;
  }

  .img-mini {
    width: 66px;
    height: 66px;
    font-size: 28px;
    border-radius: 18px;
  }

  .file-name {
    font-size: 18px;
    margin-bottom: 6px;
    max-width: 900px;
  }

  .size {
    font-size: 14px;
  }

  .trash {
    width: 56px;
    height: 56px;
    font-size: 22px;
    border-radius: 16px;
  }

  .reorder {
    margin-top: 20px;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
  }

  .settings {
    margin-top: 32px;
  }

  .setting-card {
    padding: 40px;
    border-radius: 32px;
  }

  .format-row {
    gap: 28px;
  }

  .format-group label {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .format-group select {
    height: 70px;
    font-size: 17px;
    border-radius: 20px;
    padding: 0 20px;
  }

  .extra-options {
    margin-top: 30px;
    gap: 26px;
  }

  .option-box {
    padding: 30px;
    border-radius: 24px;
  }

  .option-top {
    gap: 16px;
    margin-bottom: 16px;
  }

  .option-icon {
    width: 60px;
    height: 60px;
    font-size: 26px;
    border-radius: 20px;
  }

  .option-box h4 {
    font-size: 19px;
    margin-bottom: 6px;
  }

  .option-box p {
    font-size: 15px;
    line-height: 1.7;
  }

  .switch {
    margin-top: 18px;
  }

  .switch label {
    font-size: 15px;
  }

  .switch input {
    width: 22px;
    height: 22px;
  }

  .progress-wrap {
    height: 14px;
    margin-top: 28px;
  }

  .progress-text {
    margin-top: 14px;
    font-size: 15px;
  }

  .convert-btn {
    height: 74px;
    font-size: 19px;
    border-radius: 20px;
    margin-top: 30px;
  }
}

/* ——— 2560 px ——— */
@media (min-width: 2560px) {
  body {
    padding: 52px 3vw;
  }

  h1 {
    font-size: 90px;
    letter-spacing: -3.5px;
  }

  .desc {
    max-width: 54vw;
    font-size: 22px;
    line-height: 1.9;
  }

  .top {
    margin-bottom: 56px;
  }

  .title {
    gap: 30px;
    margin-bottom: 28px;
  }

  .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: 38px;
    margin-bottom: 16px;
  }

  .sub {
    font-size: 21px;
    margin-bottom: 40px;
  }

  .drop {
    min-height: 520px;
    border-radius: 40px;
    border-width: 4px;
  }

  .upload-circle {
    width: 134px;
    height: 134px;
    font-size: 54px;
    margin-bottom: 38px;
    box-shadow: 0 30px 60px rgba(99, 91, 255, 0.38);
  }

  .drop h2 {
    font-size: 54px;
    margin-bottom: 20px;
  }

  .drop p {
    font-size: 22px;
    margin-bottom: 42px;
  }

  .browse-btn {
    height: 84px;
    padding: 0 44px;
    font-size: 21px;
    border-radius: 20px;
  }

  .files {
    margin-top: 32px;
    gap: 24px;
  }

  .file {
    padding: 34px;
    border-radius: 30px;
  }

  .left-file {
    gap: 26px;
  }

  .img-mini {
    width: 84px;
    height: 84px;
    font-size: 36px;
    border-radius: 24px;
  }

  .file-name {
    font-size: 23px;
    margin-bottom: 8px;
    max-width: 1200px;
  }

  .size {
    font-size: 18px;
  }

  .trash {
    width: 72px;
    height: 72px;
    font-size: 28px;
    border-radius: 20px;
  }

  .reorder {
    margin-top: 28px;
    gap: 14px;
    padding: 16px 26px;
    font-size: 18px;
  }

  .settings {
    margin-top: 42px;
  }

  .setting-card {
    padding: 52px;
    border-radius: 38px;
  }

  .format-row {
    gap: 36px;
  }

  .format-group label {
    font-size: 20px;
    margin-bottom: 20px;
  }

  .format-group select {
    height: 88px;
    font-size: 20px;
    border-radius: 24px;
    padding: 0 26px;
  }

  .extra-options {
    margin-top: 40px;
    gap: 34px;
  }

  .option-box {
    padding: 40px;
    border-radius: 30px;
  }

  .option-top {
    gap: 20px;
    margin-bottom: 20px;
  }

  .option-icon {
    width: 76px;
    height: 76px;
    font-size: 34px;
    border-radius: 26px;
  }

  .option-box h4 {
    font-size: 24px;
    margin-bottom: 8px;
  }

  .option-box p {
    font-size: 18px;
    line-height: 1.75;
  }

  .switch {
    margin-top: 24px;
  }

  .switch label {
    font-size: 18px;
  }

  .switch input {
    width: 26px;
    height: 26px;
  }

  .progress-wrap {
    height: 18px;
    margin-top: 36px;
  }

  .progress-text {
    margin-top: 18px;
    font-size: 18px;
  }

  .convert-btn {
    height: 92px;
    font-size: 24px;
    border-radius: 26px;
    margin-top: 38px;
  }
}

/* =========================
   EXISTING RESPONSIVE (small/medium screens)
========================= */

@media (max-width: 950px) {
  .format-row {
    grid-template-columns: 1fr;
  }

  .extra-options {
    grid-template-columns: 1fr;
  }
}

@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;
  }

  h1 {
    font-size: 34px;
  }

  .drop {
    min-height: 240px;
  }

  .drop h2 {
    font-size: 22px;
  }

  .file-name {
    max-width: 180px;
  }
}

/* =========================
   MOBILE BREAKPOINTS
========================= */

@media (max-width: 425px) {
  body {
    padding: 10px;
    font-size: 13px;
  }

  .main-card {
    padding: 6px;
  }

  h1 {
    font-size: 26px;
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .desc {
    font-size: 13px;
    line-height: 1.6;
  }

  .section-title {
    font-size: 17px;
  }

  .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: 200px;
    padding: 18px;
    border-radius: 18px;
  }

  .upload-circle {
    width: 60px;
    height: 60px;
    font-size: 24px;
    margin-bottom: 16px;
  }

  .drop h2 {
    font-size: 20px;
    letter-spacing: -0.5px;
  }

  .drop p {
    font-size: 12px;
    margin-bottom: 18px;
  }

  .browse-btn {
    height: 46px;
    font-size: 13px;
    padding: 0 18px;
  }

  .file {
    padding: 12px;
    border-radius: 14px;
  }

  .left-file {
    gap: 10px;
  }

  .img-mini {
    width: 38px;
    height: 38px;
    font-size: 16px;
    border-radius: 10px;
  }

  .file-name {
    font-size: 13px;
    max-width: 140px;
  }

  .size {
    font-size: 11px;
  }

  .trash {
    width: 36px;
    height: 36px;
    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;
  }

  .extra-options {
    margin-top: 14px;
    gap: 12px;
  }

  .option-box {
    padding: 14px;
    border-radius: 14px;
  }

  .option-top {
    gap: 8px;
    margin-bottom: 8px;
  }

  .option-icon {
    width: 36px;
    height: 36px;
    font-size: 15px;
    border-radius: 10px;
  }

  .option-box h4 {
    font-size: 13px;
    margin-bottom: 3px;
  }

  .option-box p {
    font-size: 11.5px;
    line-height: 1.5;
  }

  .switch {
    margin-top: 10px;
  }

  .switch label {
    font-size: 11.5px;
  }

  .switch input {
    width: 16px;
    height: 16px;
  }

  .progress-wrap {
    height: 8px;
  }

  .progress-text {
    font-size: 11px;
  }

  .convert-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: 16px;
  }

  .sub {
    font-size: 11.5px;
  }

  .feature {
    font-size: 10.5px;
    padding: 6px 7px;
  }

  .tool-box {
    padding: 12px;
    border-radius: 16px;
  }

  .drop {
    min-height: 180px;
    padding: 16px;
    border-radius: 16px;
  }

  .upload-circle {
    width: 54px;
    height: 54px;
    font-size: 22px;
    margin-bottom: 14px;
  }

  .drop h2 {
    font-size: 18px;
  }

  .drop p {
    font-size: 11.5px;
    margin-bottom: 16px;
  }

  .browse-btn {
    height: 44px;
    font-size: 12.5px;
  }

  .file {
    padding: 10px;
  }

  .img-mini {
    width: 34px;
    height: 34px;
    font-size: 15px;
  }

  .file-name {
    font-size: 12.5px;
    max-width: 120px;
  }

  .size {
    font-size: 10.5px;
  }

  .trash {
    width: 34px;
    height: 34px;
    font-size: 13px;
  }

  .setting-card {
    padding: 12px;
    border-radius: 16px;
  }

  .format-group select {
    height: 42px;
    font-size: 12.5px;
  }

  .option-box {
    padding: 12px;
  }

  .option-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
  }

  .option-box h4 {
    font-size: 12.5px;
  }

  .option-box p {
    font-size: 11px;
  }

  .switch label {
    font-size: 11px;
  }

  .progress-text {
    font-size: 10.5px;
  }

  .convert-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: 15px;
  }

  .sub {
    font-size: 10.5px;
  }

  .feature {
    font-size: 10px;
    padding: 5px 6px;
    gap: 4px;
  }

  .tool-box {
    padding: 10px;
    border-radius: 14px;
  }

  .drop {
    min-height: 160px;
    padding: 14px;
    border-radius: 14px;
  }

  .upload-circle {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .drop h2 {
    font-size: 16px;
  }

  .drop p {
    font-size: 10.5px;
    margin-bottom: 14px;
  }

  .browse-btn {
    height: 42px;
    font-size: 12px;
  }

  .file {
    padding: 8px;
    border-radius: 12px;
  }

  .left-file {
    gap: 8px;
  }

  .img-mini {
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
  }

  .file-name {
    font-size: 12px;
    max-width: 100px;
  }

  .size {
    font-size: 10px;
  }

  .trash {
    width: 32px;
    height: 32px;
    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: 40px;
    font-size: 12px;
    border-radius: 10px;
  }

  .extra-options {
    margin-top: 10px;
    gap: 10px;
  }

  .option-box {
    padding: 10px;
    border-radius: 12px;
  }

  .option-top {
    gap: 6px;
    margin-bottom: 6px;
  }

  .option-icon {
    width: 30px;
    height: 30px;
    font-size: 12px;
    border-radius: 8px;
  }

  .option-box h4 {
    font-size: 12px;
    margin-bottom: 2px;
  }

  .option-box p {
    font-size: 10px;
    line-height: 1.4;
  }

  .switch {
    margin-top: 8px;
  }

  .switch label {
    font-size: 10px;
  }

  .switch input {
    width: 14px;
    height: 14px;
  }

  .progress-wrap {
    height: 6px;
  }

  .progress-text {
    font-size: 10px;
  }

  .convert-btn {
    height: 42px;
    font-size: 12px;
    border-radius: 10px;
  }
}

/* =========================
   JPG TO PDF DARK MODE
========================= */

/* Main Containers */
body.dark {
  color-scheme: dark;

  --bg: #0b1020;
  --card: #11172a;
  --card-2: #0f1628;
  --text: #edf2ff;
  --muted: #a7b0ca;
  --muted-2: #8d97b4;
  --border: #24304a;

  --primary: #8b7bff;
  --primary-2: #a18fff;
  --primary-soft: rgba(139, 123, 255, 0.12);
}

body.dark {
  background:
    radial-gradient(circle at top, rgba(139, 123, 255, 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: #111827 !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
}

body.dark .drop {
  background: var(--card-2) !important;
}

body.dark .drop:hover,
body.dark .drop.drag-over {
  border-color: var(--primary) !important;
}

body.dark .reorder {
  background: rgba(139, 123, 255, 0.12);
  color: #c8cfff;
}

/* Headings */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark .section-title {
  color: #f8fafc !important;
}

/* Text */
body.dark .desc,
body.dark .sub,
body.dark .progress-text,
body.dark .reorder span,
body.dark p,
body.dark label {
  color: #94a3b8 !important;
}

/* Features - NO BG */
body.dark .features {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
}

body.dark .feature {
  background: transparent !important;
  color: #cbd5e1 !important;
  box-shadow: none !important;
}

body.dark .feature i {
  color: #60a5fa !important;
  border-color: transparent !important;
}

/* Upload Area */
body.dark .drop {
  background: #0f172a !important;
}

body.dark .drop:hover {
  border-color: #3b82f6 !important;
}

/* Buttons */
body.dark .browse-btn,
body.dark .convert-btn {
  background: #2563eb !important;
  color: #ffffff !important;
}

body.dark .browse-btn:hover,
body.dark .convert-btn:hover {
  background: #1d4ed8 !important;
}

body.dark .convert-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Inputs & Select */
body.dark select,
body.dark input {
  background: #0f172a !important;
  color: #f1f5f9 !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
}

body.dark select:focus,
body.dark input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

body.dark .switch input {
  accent-color: #3b82f6;
}

/* Progress */
body.dark .progress-wrap {
  background: #1e293b !important;
}

body.dark .progress-bar {
  background: linear-gradient(90deg, #3b82f6, #2563eb) !important;
}

/* =========================
   FILES DARK THEME
========================= */

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:hover {
  border-color: rgba(96, 165, 250, 0.35) !important;
  background: #131c31 !important;
}

body.dark .file-item,
body.dark .file-row,
body.dark .file-card {
  background: #0f172a !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
  color: #e2e8f0 !important;
}

body.dark .file-item:hover,
body.dark .file-row:hover,
body.dark .file-card:hover {
  border-color: rgba(96, 165, 250, 0.35) !important;
  background: #131c31 !important;
}

body.dark .file-name,
body.dark .file-title {
  color: #f8fafc !important;
}

body.dark .file-size,
body.dark .file-meta,
body.dark .file-status,
body.dark .size {
  color: #94a3b8 !important;
}

body.dark .img-mini {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #60a5fa !important;
}

body.dark .file-icon {
  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 .remove-file,
body.dark .delete-file {
  background: #1e293b !important;
  color: #e2e8f0 !important;
  border: 1px solid rgba(148, 163, 184, 0.12) !important;
}

body.dark .remove-file:hover,
body.dark .delete-file:hover {
  background: #dc2626 !important;
  color: white !important;
  border-color: transparent !important;
}

/* Option Boxes */
body.dark .option-box {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.14) !important;
}

body.dark .option-icon {
  background: rgba(59, 130, 246, 0.12) !important;
  color: #60a5fa !important;
}

body.dark .file::-webkit-scrollbar {
  width: 8px;
}

body.dark .file::-webkit-scrollbar-track {
  background: #0f172a;
}

body.dark .file::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 20px;
}

body.dark .file::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* =========================
   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;
  }
}
