* {
  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: #f7f8ff;
  padding: 30px;
  color: #161b33;
}

.container {
  max-width: 1150px;
  margin: auto;
}

.main-card {
  padding-bottom: 10px;
}

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  margin-bottom: 30px;
}

.left {
  flex: 1;
}

.title {
  display: flex;
  align-items: center;
  gap: 16px;
}

.icon-box {
  width: 100px;
  height: 100px;
  border-radius: 18px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6958ff;
  font-size: 24px;
  box-shadow: 0 10px 25px rgba(105, 88, 255, 0.12);
  margin-bottom: 20px;
}

.icon-box i {
  font-size: 58px;
}

h1 {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 0px !important;
}

.desc {
  max-width: 560px;
  color: #727b91;
  line-height: 1.7;
  font-size: 15px;
  margin-top: 0px;
}

.features {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  margin-left: -15px;
}

.feature {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  background: #f7f8ff;
  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: #6958ff;
}
.feature:nth-child(2) i {
  color: #11b56d;
}
.feature:nth-child(3) i {
  color: #ff5d73;
}

.graphic {
  width: 330px;
  height: 220px;
  position: relative;
  flex-shrink: 0;
}

.pdf {
  position: absolute;
  width: 72px;
  height: 92px;
  background: white;
  border-radius: 18px;
  border: 1px solid #ececff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 12px 25px rgba(99, 91, 255, 0.08);
}

.pdf i {
  font-size: 30px;
}

.pdf1 {
  left: 0;
  top: 0;
}
.pdf1 i {
  color: #ff6d6d;
}

.pdf2 {
  left: 20px;
  top: 60px;
}
.pdf2 i {
  color: #4d8dff;
}

.pdf3 {
  left: 0;
  top: 120px;
}
.pdf3 i {
  color: #18c77b;
}

.line {
  position: absolute;
  border-top: 2px dashed #d6d0ff;
  width: 95px;
  right: 118px;
}

.line1 {
  top: 45px;
  transform: rotate(-30deg);
  transform-origin: right center;
}
.line2 {
  top: 105px;
}
.line3 {
  top: 165px;
  transform: rotate(30deg);
  transform-origin: right center;
}

.line::after {
  content: "";
  position: absolute;
  right: -6px;
  top: -5px;
  width: 8px;
  height: 8px;
  border-top: 2px solid #d6d0ff;
  border-right: 2px solid #d6d0ff;
  transform: rotate(45deg);
}

.rotated {
  position: absolute;
  right: 0;
  top: 42px;
  width: 145px;
  height: 145px;
  border-radius: 32px;
  background: #faf9ff;
  border: 2px solid #ebe7ff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 15px 35px rgba(99, 91, 255, 0.07);
}

.rotated-file {
  width: 80px;
  height: 100px;
  background: white;
  border-radius: 18px;
  border: 1px solid #ececff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 10px 20px rgba(99, 91, 255, 0.08);
  transform: rotate(15deg);
}

.rotated-file i {
  color: #6958ff;
  font-size: 34px;
}

.turn {
  position: absolute;
  right: -8px;
  bottom: -8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #6958ff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  box-shadow: 0 10px 20px rgba(99, 91, 255, 0.3);
}

.tool-box {
  border: 1px solid #ececff;
  border-radius: 24px;
  padding: 24px;
  background: #fff;
}

.section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sub {
  color: #8a91a5;
  font-size: 13px;
  margin-bottom: 18px;
}

.drop {
  border: 2px dashed #d9d2ff;
  background: #fcfbff;
  border-radius: 22px;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 20px;
}

.upload-circle {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(to bottom, #7a68ff, #6958ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  color: white;
  font-size: 28px;
  box-shadow: 0 12px 25px rgba(99, 91, 255, 0.25);
  margin-bottom: 18px;
}

.drop h2 {
  font-size: 24px;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.drop p {
  color: #8a91a5;
  margin-bottom: 20px;
  font-size: 14px;
}

.browse-btn {
  border: none;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  background: linear-gradient(to right, #6958ff, #7c68ff);
  color: white;
  font-weight: 600;
  cursor: pointer;
  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-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  margin-bottom: 14px;
}

.files-top h3 {
  font-size: 15px;
}

.files-top.hidden {
  display: none !important;
}

.clear {
  color: #6958ff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.files {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
}

.file {
  border: 1px solid #ececff;
  border-radius: 16px;
  padding: 15px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  transition: 0.2s;
  margin-top: 10px;
}

.file:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(99, 91, 255, 0.05);
}

.left-file {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.pdf-mini {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: #fff3f3;
  color: #ff6161;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.file-meta {
  min-width: 0;
}

.file-name {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 540px;
}

.size {
  font-size: 12px;
  color: #8a91a5;
}

.trash {
  color: #9aa1b6;
  cursor: pointer;
  transition: 0.2s;
  flex: 0 0 auto;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
}

.trash:hover {
  color: #ff6161;
  background: #fff3f3;
}

.settings {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.setting-card {
  height: auto;
  border: 1px solid #ececff;
  border-radius: 18px;
  padding: 20px;
  background: #fcfbff;
}

.setting-card label {
  display: block;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 600;
}

select {
  width: 100%;
  height: 46px;
  border-radius: 12px;
  border: 1px solid #dde1ef;
  padding: 0 14px;
  outline: none;
  font-family: "Inter", sans-serif;
  color: #4f566b;
  background: #fff;
  transition: 0.22s ease;
}

select:focus {
  border-color: #6958ff;
  box-shadow: 0 0 0 4px rgba(105, 88, 255, 0.12);
}

.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;
}

.safe p {
  color: #7f8799;
  font-size: 13px;
  line-height: 1.3;
  margin-top: 5px;
  margin-bottom: 0px;
}

.rotate-btn {
  width: 100%;
  height: 54px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(to right, #6958ff, #836dff);
  margin-top: 18px;
  color: white;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 18px 30px rgba(99, 91, 255, 0.25);
  transition: 0.25s;
}

.rotate-btn:hover {
  transform: translateY(-2px);
}

.rotate-btn i {
  margin-right: 8px;
}

.rotate-btn.disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
  transform: none !important;
  box-shadow: none;
}

.status {
  margin-top: 15px;

  font-size: 13px;
  color: #7f8799;
}

.reorder {
  margin-top: 12px;
  color: #9aa1b2;
  font-size: 12px;
  background: #9aa1b834;
  width: max-content;
  padding: 6px 12px;
  border-radius: 50px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.reorder svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: block;
}

/* ==============================================
   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: 50px;
    letter-spacing: -1.8px;
  }
  .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;
  }

  .graphic {
    width: 380px;
    height: 250px;
  }

  .tool-box {
    padding: 32px;
    border-radius: 28px;
  }
  .section-title {
    font-size: 21px;
  }
  .sub {
    font-size: 14px;
  }

  .drop {
    min-height: 270px;
    border-radius: 24px;
  }
  .drop h2 {
    font-size: 27px;
  }
  .drop p {
    font-size: 15px;
  }
  .upload-circle {
    width: 80px;
    height: 80px;
    font-size: 32px;
  }
  .browse-btn {
    height: 50px;
    padding: 0 26px;
    font-size: 15px;
  }

  .file {
    padding: 18px 20px;
    border-radius: 18px;
  }
  .file-name {
    font-size: 15px;
  }
  .size {
    font-size: 13px;
  }
  .pdf-mini {
    width: 46px;
    height: 46px;
    font-size: 21px;
  }

  .settings {
    margin-top: 28px;
    gap: 20px;
  }
  .setting-card {
    padding: 24px;
    border-radius: 20px;
  }
  .setting-card label {
    font-size: 14px;
  }
  select {
    height: 50px;
    font-size: 14px;
  }

  .shield {
    width: 68px;
    height: 68px;
    font-size: 26px;
  }
  .safe h4 {
    font-size: 16px;
  }
  .safe p {
    font-size: 14px;
  }

  .rotate-btn {
    height: 58px;
    font-size: 16px;
  }
}

/* ——— 1600 px ——— */
@media (min-width: 1600px) {
  body {
    padding: 38px 3vw;
  }
  h1 {
    font-size: 56px;
    letter-spacing: -2px;
  }
  .desc {
    font-size: 16.5px;
  }

  .icon-box {
    width: 120px;
    height: 120px;
  }
  .icon-box i {
    font-size: 72px;
  }

  .graphic {
    width: 420px;
    height: 270px;
  }

  .tool-box {
    padding: 36px;
  }
  .section-title {
    font-size: 23px;
  }
  .sub {
    font-size: 15px;
  }

  .drop {
    min-height: 290px;
  }
  .drop h2 {
    font-size: 30px;
  }
  .drop p {
    font-size: 16px;
  }
  .upload-circle {
    width: 86px;
    height: 86px;
    font-size: 34px;
  }
  .browse-btn {
    height: 54px;
    font-size: 15.5px;
  }

  .file {
    padding: 20px 22px;
  }
  .file-name {
    font-size: 16px;
  }
  .size {
    font-size: 13.5px;
  }
  .pdf-mini {
    width: 50px;
    height: 50px;
    font-size: 23px;
  }

  .setting-card {
    padding: 26px;
  }
  select {
    height: 52px;
  }

  .shield {
    width: 72px;
    height: 72px;
    font-size: 28px;
  }
  .safe h4 {
    font-size: 17px;
  }
  .rotate-btn {
    height: 62px;
    font-size: 17px;
  }
}

/* ——— 1920 px ——— */
@media (min-width: 1920px) {
  body {
    padding: 42px 3vw;
  }
  h1 {
    font-size: 66px;
    letter-spacing: -2.2px;
  }
  .desc {
    max-width: 52vw;
    font-size: 18px;
    line-height: 1.75;
  }
  .title {
    gap: 24px;
    margin-bottom: 20px;
  }
  .top {
    gap: 60px;
    margin-bottom: 40px;
  }

  .icon-box {
    width: 134px;
    height: 134px;
    border-radius: 24px;
  }
  .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;
  }

  .graphic {
    width: 480px;
    height: 310px;
  }
  .pdf {
    width: 92px;
    height: 118px;
    border-radius: 22px;
  }
  .pdf i {
    font-size: 40px;
  }
  .pdf2 {
    left: 26px;
    top: 76px;
  }
  .pdf3 {
    top: 152px;
  }
  .rotated {
    width: 182px;
    height: 182px;
    border-radius: 40px;
    top: 50px;
  }
  .rotated-file {
    width: 100px;
    height: 126px;
    border-radius: 22px;
  }
  .rotated-file i {
    font-size: 44px;
  }
  .turn {
    width: 38px;
    height: 38px;
    font-size: 17px;
  }
  .line {
    width: 118px;
    right: 148px;
  }
  .line1 {
    top: 56px;
  }
  .line2 {
    top: 132px;
  }
  .line3 {
    top: 208px;
  }

  .tool-box {
    padding: 44px;
    border-radius: 34px;
  }
  .section-title {
    font-size: 26px;
    margin-bottom: 10px;
  }
  .sub {
    font-size: 17px;
    margin-bottom: 26px;
  }

  .drop {
    min-height: 330px;
    border-radius: 28px;
  }
  .drop h2 {
    font-size: 34px;
    margin-bottom: 14px;
  }
  .drop p {
    font-size: 18px;
    margin-bottom: 28px;
  }
  .upload-circle {
    width: 96px;
    height: 96px;
    font-size: 38px;
    margin-bottom: 26px;
  }
  .browse-btn {
    height: 58px;
    padding: 0 32px;
    font-size: 17px;
    border-radius: 14px;
  }

  .files-top {
    margin-top: 34px;
    margin-bottom: 20px;
  }
  .files-top h3 {
    font-size: 18px;
  }
  .clear {
    font-size: 15px;
  }
  .files {
    gap: 16px;
  }
  .file {
    padding: 22px 26px;
    border-radius: 22px;
  }
  .left-file {
    gap: 18px;
  }
  .file-name {
    font-size: 18px;
    margin-bottom: 5px;
  }
  .size {
    font-size: 14.5px;
  }
  .pdf-mini {
    width: 56px;
    height: 56px;
    font-size: 26px;
    border-radius: 14px;
  }
  .trash {
    font-size: 18px;
  }

  .settings {
    margin-top: 38px;
    gap: 26px;
  }
  .setting-card {
    padding: 32px;
    border-radius: 24px;
  }
  .setting-card label {
    font-size: 16px;
    margin-bottom: 14px;
  }
  select {
    height: 60px;
    font-size: 16px;
    border-radius: 14px;
    padding: 0 18px;
  }

  .safe {
    gap: 22px;
  }
  .shield {
    width: 74px;
    height: 74px;
    border-radius: 22px;
    font-size: 32px;
  }
  .safe h4 {
    font-size: 19px;
    margin-bottom: 8px;
  }
  .safe p {
    font-size: 16px;
    line-height: 1.65;
  }

  .rotate-btn {
    height: 70px;
    font-size: 19px;
    border-radius: 18px;
    margin-top: 28px;
  }
  .reorder {
    font-size: 14px;
    padding: 9px 16px;
    margin-top: 20px;
  }
  .reorder svg {
    width: 18px;
    height: 18px;
  }
}

/* ——— 2560 px ——— */
@media (min-width: 2560px) {
  body {
    padding: 52px 3vw;
  }
  h1 {
    font-size: 84px;
    letter-spacing: -3px;
  }
  .desc {
    max-width: 50vw;
    font-size: 22px;
    line-height: 1.8;
  }
  .title {
    gap: 30px;
    margin-bottom: 28px;
  }
  .top {
    gap: 80px;
    margin-bottom: 56px;
  }

  .icon-box {
    width: 170px;
    height: 170px;
    border-radius: 30px;
  }
  .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;
  }

  .graphic {
    width: 620px;
    height: 400px;
  }
  .pdf {
    width: 116px;
    height: 150px;
    border-radius: 28px;
  }
  .pdf i {
    font-size: 54px;
  }
  .pdf2 {
    left: 34px;
    top: 98px;
  }
  .pdf3 {
    top: 196px;
  }
  .rotated {
    width: 250px;
    height: 250px;
    border-radius: 56px;
    top: 68px;
    border-width: 3px;
  }
  .rotated-file {
    width: 136px;
    height: 170px;
    border-radius: 28px;
  }
  .rotated-file i {
    font-size: 60px;
  }
  .turn {
    width: 52px;
    height: 52px;
    font-size: 23px;
    right: -12px;
    bottom: -12px;
    box-shadow: 0 16px 32px rgba(99, 91, 255, 0.35);
  }
  .line {
    width: 154px;
    right: 198px;
    border-top-width: 3px;
  }
  .line::after {
    width: 12px;
    height: 12px;
    right: -8px;
    top: -7px;
    border-top-width: 3px;
    border-right-width: 3px;
  }
  .line1 {
    top: 74px;
  }
  .line2 {
    top: 170px;
  }
  .line3 {
    top: 270px;
  }

  .tool-box {
    padding: 60px;
    border-radius: 42px;
  }
  .section-title {
    font-size: 34px;
    margin-bottom: 14px;
  }
  .sub {
    font-size: 21px;
    margin-bottom: 34px;
  }

  .drop {
    min-height: 430px;
    border-radius: 36px;
    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: 124px;
    height: 124px;
    font-size: 52px;
    margin-bottom: 34px;
    box-shadow: 0 24px 48px rgba(99, 91, 255, 0.3);
  }
  .browse-btn {
    height: 78px;
    padding: 0 48px;
    font-size: 21px;
    border-radius: 20px;
  }

  .files-top {
    margin-top: 46px;
    margin-bottom: 26px;
  }
  .files-top h3 {
    font-size: 23px;
  }
  .clear {
    font-size: 19px;
  }
  .files {
    gap: 24px;
  }
  .file {
    padding: 30px 36px;
    border-radius: 28px;
  }
  .left-file {
    gap: 26px;
  }
  .file-name {
    font-size: 23px;
    margin-bottom: 7px;
  }
  .size {
    font-size: 18px;
  }
  .pdf-mini {
    width: 74px;
    height: 74px;
    font-size: 34px;
    border-radius: 18px;
  }
  .trash {
    font-size: 26px;
  }

  .settings {
    margin-top: 54px;
    gap: 34px;
  }
  .setting-card {
    padding: 42px;
    border-radius: 30px;
  }
  .setting-card label {
    font-size: 20px;
    margin-bottom: 20px;
  }
  select {
    height: 78px;
    font-size: 19px;
    border-radius: 18px;
    padding: 0 24px;
  }

  .safe {
    gap: 30px;
  }
  .shield {
    width: 94px;
    height: 94px;
    border-radius: 28px;
    font-size: 42px;
  }
  .safe h4 {
    font-size: 24px;
    margin-bottom: 12px;
  }
  .safe p {
    font-size: 19px;
    line-height: 1.7;
  }

  .rotate-btn {
    height: 88px;
    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: 12px 22px;
    margin-top: 26px;
    border-radius: 50px;
    gap: 12px;
  }
  .reorder svg {
    width: 22px;
    height: 22px;
  }
}

/* =========================
   SMALL SCREENS
========================= */

@media (max-width: 950px) {
  .top {
    flex-direction: column;
    align-items: flex-start;
  }
  .graphic {
    width: 100%;
  }
  .settings {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  body {
    padding: 15px;
  }
  .main-card {
    padding: 20px;
  }
  h1 {
    font-size: 34px;
  }
  .drop h2 {
    font-size: 20px;
  }
  .icon-box {
    display: none;
  }
  .graphic {
    display: none; /* Hide complex graphic on mobile */
  }
  .feature {
    padding: 11px 16px 11px 0px;
  }
}

@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;
  }
}

@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,
  .rotate-btn {
    font-size: 13px;
    height: 46px;
  }
  .file-name {
    font-size: 13px;
  }
  .size {
    font-size: 11px;
  }
  .setting-card label {
    font-size: 12px;
  }
  select {
    font-size: 13px;
    height: 44px;
  }
  .safe h4 {
    font-size: 13px;
  }
  .safe p {
    font-size: 12px;
    line-height: 1.5;
  }
  .reorder {
    font-size: 11px;
    padding: 5px 10px;
  }
  .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,
  .rotate-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;
  }
  select {
    font-size: 12.5px;
    height: 42px;
    border-radius: 10px;
  }
  .safe h4 {
    font-size: 12.5px;
  }
  .safe p {
    font-size: 11.5px;
  }
  .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 {
    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,
  .rotate-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;
  }
  select {
    height: 40px;
    font-size: 12px;
    border-radius: 10px;
  }
  .safe {
    gap: 10px;
  }
  .shield {
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 20px;
  }
  .safe h4 {
    font-size: 12px;
    margin-bottom: 4px;
  }
  .safe p {
    font-size: 10.5px;
    line-height: 1.45;
  }
  .reorder {
    font-size: 10px;
    padding: 4px 8px;
    gap: 4px;
  }
  .icon-box {
    display: none;
  }
}

/* =========================
   ROTATE PDF - DARK MODE
========================= */

body.dark {
  color-scheme: dark;

  --bg: #0b1220;
  --card: #111827;
  --card-2: #0f172a;
  --text: #f8fafc;
  --muted: #94a3b8;
  --muted-2: #8d97b4;
  --border: rgba(148, 163, 184, 0.14);
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-soft: rgba(59, 130, 246, 0.12);
}

body.dark {
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.1), transparent 40%),
    var(--bg);
  color: var(--text);
}

/* Main Boxes */
body.dark .tool-box,
body.dark .setting-card,
body.dark .drop {
  background: var(--card) !important;
  border-color: var(--border) !important;
}

/* Titles & Text */
body.dark h1,
body.dark h2,
body.dark h3,
body.dark h4,
body.dark .section-title {
  color: #ffffff !important;
}

body.dark p,
body.dark .desc,
body.dark .sub,
body.dark label,
body.dark .status,
body.dark .reorder span {
  color: var(--muted) !important;
}

/* Features */
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;
}

/* Graphic overrides */
body.dark .pdf,
body.dark .rotated-file {
  background: #1e293b !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}
body.dark .rotated {
  background: rgba(59, 130, 246, 0.06) !important;
  border-color: rgba(59, 130, 246, 0.18) !important;
}
body.dark .line,
body.dark .line::after {
  border-color: rgba(148, 163, 184, 0.25) !important;
}

/* Drop Zone */
body.dark .drop {
  background: var(--card-2) !important;
  border: 1px dashed rgba(148, 163, 184, 0.25) !important;
}
body.dark .upload-circle {
  background: linear-gradient(
    to bottom,
    var(--primary-hover),
    var(--primary)
  ) !important;
}

/* Buttons */
body.dark .browse-btn,
body.dark .rotate-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 .rotate-btn:hover {
  background: var(--primary-hover) !important;
}
body.dark .rotate-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* 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(59, 130, 246, 0.12) !important;
  color: #60a5fa !important;
}
body.dark .trash {
  background: #1e293b !important;
  color: #e2e8f0 !important;
}
body.dark .trash:hover {
  background: #dc2626 !important;
  color: white !important;
}

/* Settings */
body.dark .setting-card {
  background: #0f172a !important;
  border-color: rgba(148, 163, 184, 0.12) !important;
}
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: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Shield / Safe */
body.dark .shield {
  background: var(--primary-soft) !important;
  color: #60a5fa !important;
}

/* Reorder Note */
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 {
  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: 10px;
}
body.dark ::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Mobile specific dark mode tweaks */
@media (max-width: 768px) {
  body.dark .main-card,
  body.dark .tool-box,
  body.dark .setting-card {
    border-radius: 20px;
  }
  body.dark .feature {
    font-size: 12px;
    padding: 8px 10px;
  }
}

@media (max-width: 600px) {
  .page-container {
    padding-left: 0px !important;
    padding-right: 0px !important;
    padding-top: 0px !important;
  }
}
