/* =========================================
   PDFLooks - Image Size Reducer
   COMPLETE STYLES
   BLUE IMAGE TOOL THEME
========================================= */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: #111827;
}


/* =========================================
   HEADER
========================================= */

.header {
  width: 100%;
  height: 76px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 42px;
  background: #ffffff;
  border-bottom: 1px solid #eeeeee;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
}


/* =========================================
   LOGO
========================================= */

.logo {
  flex-shrink: 0;
}

.logo a {
  display: block;
}

.logo img {
  display: block;
  width: auto;
  height: 55px;
}


/* =========================================
   DESKTOP NAVIGATION
========================================= */

.navigation {
  margin-left: 65px;
}

.navigation ul {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
}

.navigation a {
  color: #111111;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.navigation a:hover {
  color: #287BE8;
}


/* =========================================
   HEADER RIGHT
========================================= */

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-actions a {
  color: #222222;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.header-actions a:hover {
  color: #287BE8;
}


/* =========================================
   SIGN UP
========================================= */

.signup-btn {
  min-width: 96px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border-radius: 8px;
  background: #287BE8;
  color: #ffffff !important;
  box-shadow: 0 5px 14px rgba(40, 123, 232, 0.20);
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.signup-btn:hover {
  background: #1769d0;
  color: #ffffff !important;
  transform: translateY(-1px);
}


/* =========================================
   MOBILE MENU BUTTON
========================================= */

.menu-btn {
  display: none;
  border: none;
  background: transparent;
  color: #111111;
  font-size: 25px;
  cursor: pointer;
}


/* =========================================
   MOBILE MENU
========================================= */

.mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 18px;
  width: 230px;
  display: none;
  flex-direction: column;
  overflow: hidden;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.mobile-menu.show-menu {
  display: flex;
}

.mobile-menu a {
  padding: 15px 20px;
  border-bottom: 1px solid #eeeeee;
  color: #111111;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.mobile-menu a:hover {
  background: #f0f7ff;
  color: #287BE8;
}


/* =========================================
   MAIN IMAGE TOOL PAGE
========================================= */

.compress-page {
  width: 100%;
  min-height: calc(100vh - 76px);
  padding-top: 76px;
  display: flex;
  justify-content: center;

  background:
    radial-gradient(
      circle at 8% 10%,
      rgba(40, 123, 232, 0.07) 0,
      rgba(40, 123, 232, 0.07) 2px,
      transparent 3px
    ),
    radial-gradient(
      circle at 92% 90%,
      rgba(40, 123, 232, 0.06) 0,
      rgba(40, 123, 232, 0.06) 2px,
      transparent 3px
    ),
    linear-gradient(
      180deg,
      #f7fbff 0%,
      #fafdff 55%,
      #ffffff 100%
    );

  background-size:
    18px 18px,
    18px 18px,
    100% 100%;
}


/* =========================================
   HERO
========================================= */

.hero {
  width: 100%;
  min-height: 650px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 105px;
}


/* =========================================
   HERO HEADING
========================================= */

.hero h1 {
  font-size: 62px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -1.8px;
  color: #111111;
  margin-bottom: 28px;
}


/* =========================================
   HERO DESCRIPTION
========================================= */

.hero > p {
  font-size: 23px;
  line-height: 1.65;
  color: #4b5563;
  font-weight: 400;
}


/* =========================================
   INITIAL UPLOAD AREA
========================================= */

.upload-area {
  width: 100%;
  margin-top: 58px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}


/* =========================================
   SELECT IMAGE BUTTON
========================================= */

.select-btn {
  width: 490px;
  height: 145px;
  border-radius: 16px;
  background: #287BE8;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  font-size: 28px;
  font-weight: 700;
  cursor: pointer;

  box-shadow:
    0 10px 25px rgba(40, 123, 232, 0.24);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.select-btn:hover {
  background: #1769d0;
  transform: translateY(-2px);

  box-shadow:
    0 14px 30px rgba(40, 123, 232, 0.30);
}

.select-btn:active {
  transform: translateY(0);
}


/* =========================================
   IMAGE SVG
========================================= */

.file-svg {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}


/* =========================================
   CLOUD BUTTONS
========================================= */

.cloud-buttons {
  position: absolute;
  left: calc(50% + 275px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}

.cloud-btn {
  width: 62px;
  height: 62px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  box-shadow:
    0 5px 16px rgba(0, 0, 0, 0.10);

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.cloud-btn:hover {
  transform: translateY(-2px);

  box-shadow:
    0 8px 20px rgba(0, 0, 0, 0.15);
}

.drive-svg {
  width: 28px;
  height: 28px;
  display: block;
}

.dropbox-svg {
  width: 30px;
  height: 30px;
  display: block;
}


/* =========================================
   DROP TEXT
========================================= */

.drop-text {
  margin-top: 28px;
  font-size: 19px !important;
  line-height: 1.5;
  color: #4b5563 !important;
}


/* =========================================
   TARGET SIZE SETTINGS
   HIDDEN ON FIRST PAGE
========================================= */

.target-settings {
  display: none;

  width: min(900px, calc(100% - 40px));

  margin: 35px auto 0;

  padding: 26px;

  background: #ffffff;

  border: 1px solid #e1eaf5;

  border-radius: 16px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.07);

  text-align: left;
}


/* =========================================
   SHOW TARGET SETTINGS AFTER FILE SELECTION
========================================= */

.compress-page.has-files .target-settings {
  display: block;
}


/* =========================================
   TARGET SETTINGS HEADER
========================================= */

.target-settings-header {
  text-align: center;
  margin-bottom: 25px;
}

.target-settings-header h2 {
  font-size: 22px;
  font-weight: 700;
  color: #111111;
  margin-bottom: 7px;
}

.target-settings-header p {
  font-size: 14px;
  line-height: 1.5;
  color: #6b7280;
}


/* =========================================
   TARGET SIZE CONTROL
========================================= */

.target-size-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;

  padding: 16px 18px;

  background: #f7fbff;

  border: 1px solid #dceafa;

  border-radius: 12px;
}

.target-size-control label {
  font-size: 16px;
  font-weight: 700;
  color: #222222;
}

.target-input-wrap {
  width: 150px;
  height: 46px;

  display: flex;
  align-items: center;

  overflow: hidden;

  background: #ffffff;

  border: 1px solid #cfe0f3;

  border-radius: 8px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.target-input-wrap:focus-within {
  border-color: #287BE8;

  box-shadow:
    0 0 0 3px rgba(40, 123, 232, 0.10);
}

.target-input-wrap input {
  width: 100%;
  height: 100%;
  padding: 0 10px;
  border: none;
  outline: none;
  background: transparent;
  color: #111111;
  font-size: 16px;
  font-weight: 600;
}

.target-input-wrap span {
  padding-right: 13px;
  color: #6b7280;
  font-size: 14px;
  font-weight: 600;
}


/* =========================================
   REMOVE NUMBER ARROWS
========================================= */

.target-input-wrap input::-webkit-outer-spin-button,
.target-input-wrap input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.target-input-wrap input[type="number"] {
  -moz-appearance: textfield;
}


/* =========================================
   QUICK SIZE OPTIONS
========================================= */

.quick-size-options {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 15px;
}

.size-option {
  min-width: 72px;
  height: 38px;
  padding: 0 13px;

  border: 1px solid #d4e3f3;
  border-radius: 8px;

  background: #ffffff;
  color: #287BE8;

  font-size: 13px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.size-option:hover {
  background: #f0f7ff;
  border-color: #287BE8;
  transform: translateY(-1px);
}

.size-option.active {
  background: #287BE8;
  border-color: #287BE8;
  color: #ffffff;
}


/* =========================================
   RESIZE SETTINGS
========================================= */

.resize-settings {
  margin-top: 25px;
  padding-top: 23px;
  border-top: 1px solid #e8eef6;
}

.resize-settings h3,
.format-settings h3 {
  font-size: 17px;
  font-weight: 700;
  color: #222222;
  margin-bottom: 14px;
}

.resize-fields {
  display: flex;
  gap: 16px;
}

.resize-field {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.resize-field label {
  position: absolute;
  left: 13px;
  top: 8px;
  font-size: 11px;
  color: #7b8794;
  font-weight: 600;
  z-index: 1;
}

.resize-field input {
  width: 100%;
  height: 52px;

  padding:
    20px 45px 5px 13px;

  border: 1px solid #d4e3f3;

  border-radius: 9px;

  outline: none;

  background: #ffffff;

  color: #111111;

  font-size: 15px;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.resize-field input:focus {
  border-color: #287BE8;

  box-shadow:
    0 0 0 3px rgba(40, 123, 232, 0.10);
}

.resize-field > span {
  position: absolute;
  right: 13px;
  color: #7b8794;
  font-size: 13px;
  font-weight: 600;
}


/* =========================================
   KEEP ASPECT RATIO
========================================= */

.aspect-ratio-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: #4b5563;
  font-size: 14px;
  cursor: pointer;
  user-select: none;
}

.aspect-ratio-option input {
  width: 17px;
  height: 17px;
  accent-color: #287BE8;
  cursor: pointer;
}


/* =========================================
   OUTPUT FORMAT
========================================= */

.format-settings {
  margin-top: 23px;
  padding-top: 23px;

  border-top: 1px solid #e8eef6;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.format-settings h3 {
  margin-bottom: 0;
}

.format-settings select {
  width: 170px;
  height: 45px;

  padding: 0 12px;

  border: 1px solid #d4e3f3;
  border-radius: 8px;

  outline: none;

  background: #ffffff;

  color: #222222;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.format-settings select:focus {
  border-color: #287BE8;

  box-shadow:
    0 0 0 3px rgba(40, 123, 232, 0.10);
}


/* =========================================
   SELECTED FILES SECTION
========================================= */

.selected-files-section {
  width: min(900px, calc(100% - 40px));

  margin: 30px auto 0;

  padding: 26px;

  background: #ffffff;

  border-radius: 16px;

  box-shadow:
    0 8px 30px rgba(0, 0, 0, 0.08);

  display: none;
}


/* =========================================
   SELECTED FILES HEADER
========================================= */

.selected-files-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.selected-files-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: #111111;
}

.selected-files-header h2 span {
  color: #666666;
  font-weight: 500;
}

.total-size {
  font-size: 15px;
  color: #555555;
}


/* =========================================
   FILE LIST
========================================= */

.selected-files-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}


/* =========================================
   FILE CARD
========================================= */

.selected-file-card {
  width: 100%;
  min-height: 82px;

  padding: 12px 16px;

  display: flex;
  align-items: center;
  gap: 16px;

  border: 1px solid #e1eaf5;
  border-radius: 12px;

  background: #ffffff;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.selected-file-card:hover {
  border-color: #b8d5f7;

  box-shadow:
    0 4px 15px rgba(40, 123, 232, 0.08);
}


/* =========================================
   IMAGE FILE ICON
========================================= */

.jpg-file-icon,
.image-file-icon,
.pdf-file-icon {
  width: 52px;
  height: 58px;

  flex-shrink: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 9px;

  background: #e8f2ff;

  color: #287BE8;

  font-size: 12px;
  font-weight: 800;

  border: 1px solid #cfe3fb;
}


/* =========================================
   FILE INFORMATION
========================================= */

.file-info {
  flex: 1;
  min-width: 0;
}

.file-name {
  font-size: 16px;
  font-weight: 700;
  color: #111111;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-meta {
  margin-top: 7px;
  font-size: 14px;
  color: #6b7280;
}


/* =========================================
   PREVIEW BUTTON
========================================= */

.preview-btn {
  height: 40px;

  padding: 0 16px;

  border: 1px solid #d7e5f5;
  border-radius: 8px;

  background: #ffffff;

  color: #333333;

  font-size: 14px;
  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;
}

.preview-btn:hover {
  border-color: #287BE8;
  color: #287BE8;
  background: #f5f9ff;
}


/* =========================================
   REMOVE FILE
========================================= */

.remove-file-btn {
  width: 38px;
  height: 38px;

  border: none;

  background: transparent;

  color: #999999;

  font-size: 25px;

  cursor: pointer;

  transition: 0.2s ease;
}

.remove-file-btn:hover {
  color: #287BE8;
}


/* =========================================
   DRAG & DROP TEXT
========================================= */

.selected-drop-text {
  width: 100%;

  margin-top: 14px;
  margin-bottom: 4px;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 7px;

  color: #777777;

  font-size: 14px;
}

.selected-drop-text .drop-or {
  color: #aaaaaa;
}

.selected-drop-text button {
  padding: 0;

  border: none;

  background: transparent;

  color: #287BE8;

  font-size: 14px;
  font-weight: 700;

  cursor: pointer;
}

.selected-drop-text button:hover {
  text-decoration: underline;
}


/* =========================================
   ACTION BUTTONS
========================================= */

.file-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
}

.add-files-btn,
.compress-btn {
  height: 58px;

  border-radius: 10px;

  font-size: 17px;
  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;
}


/* =========================================
   ADD MORE
========================================= */

.add-files-btn {
  flex: 1;

  border: 1px solid #d7e5f5;

  background: #ffffff;

  color: #287BE8;
}

.add-files-btn:hover {
  background: #f3f8ff;
  border-color: #287BE8;
}

.plus-icon {
  margin-right: 8px;
  font-size: 25px;
  vertical-align: middle;
}


/* =========================================
   REDUCE IMAGE BUTTON
========================================= */

.compress-btn {
  flex: 1.5;

  border: none;

  background: #287BE8;

  color: #ffffff;

  box-shadow:
    0 7px 18px rgba(40, 123, 232, 0.22);
}

.compress-btn:hover {
  background: #1769d0;
}

.compress-btn:active {
  transform: translateY(1px);
}


/* =========================================
   SELECTED FILE STATE
========================================= */

.compress-page.has-files .hero > h1 {
  display: block;
}

.compress-page.has-files .hero > p {
  display: block;
}

.compress-page.has-files .hero > .upload-area,
.compress-page.has-files .hero > .drop-text {
  display: none;
}

.compress-page.has-files .selected-files-section {
  display: block;
}

.compress-page.has-files .hero {
  padding-top: 55px;
}


/* =========================================
   COMPRESSING / PROCESSING SCREEN
========================================= */

.compressing-screen {
  display: none;

  width: 100%;
  min-height: 520px;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  text-align: center;

  padding: 70px 20px;
}

.compressing-screen.active {
  display: flex;
}

.compressing-logo {
  font-size: 30px;

  font-weight: 800;

  color: #111111;

  margin-bottom: 55px;
}

.compressing-logo span {
  color: #287BE8;
}

.compressing-screen h2 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 12px;
  color: #111111;
}

.compressing-screen p {
  font-size: 17px;
  color: #6b7280;
  margin-bottom: 35px;
}


/* =========================================
   LOADING SPINNER
========================================= */

.loading-spinner {
  width: 64px;
  height: 64px;

  border-radius: 50%;

  border: 7px solid #e8f2ff;
  border-top-color: #287BE8;

  animation:
    pdfLooksSpin 0.9s linear infinite;
}

@keyframes pdfLooksSpin {

  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }

}


/* =========================================
   DOWNLOAD SCREEN
========================================= */

.download-screen {
  display: none;

  width: 100%;
  min-height: 520px;

  align-items: center;
  justify-content: center;

  flex-direction: column;

  text-align: center;

  padding: 70px 20px;
}

.download-screen.active {
  display: flex;
}

.download-logo {
  font-size: 30px;

  font-weight: 800;

  color: #111111;

  margin-bottom: 35px;
}

.download-logo span {
  color: #287BE8;
}

.download-screen h2 {
  font-size: 30px;
  margin-bottom: 12px;
}

.download-message {
  color: #6b7280;
  font-size: 17px;
  margin-bottom: 25px;
}

.download-file-card {
  min-width: 360px;

  padding: 18px 25px;

  background: #ffffff;

  border: 1px solid #d7e5f5;

  border-radius: 12px;

  margin-bottom: 22px;

  box-shadow:
    0 5px 20px rgba(40, 123, 232, 0.08);
}

.download-file-card strong {
  font-size: 17px;
}

.download-file-card span {
  color: #6b7280;
}

.download-file-card small {
  display: inline-block;
  margin-top: 7px;
  color: #287BE8;
  font-weight: 600;
}


/* =========================================
   DOWNLOAD BUTTON
========================================= */

.download-btn {
  border: none;

  min-width: 360px;
  height: 58px;

  padding: 0 28px;

  border-radius: 10px;

  background: #287BE8;

  color: #ffffff;

  font-size: 18px;
  font-weight: 700;

  cursor: pointer;

  box-shadow:
    0 8px 20px rgba(40, 123, 232, 0.22);

  transition: 0.2s ease;
}

.download-btn:hover {
  background: #1769d0;
  transform: translateY(-1px);
}


/* =========================================
   REDUCE ANOTHER IMAGE
   RED BUTTON
========================================= */

.another-pdf-btn,
#anotherImageBtn {
  min-width: 360px;

  height: 52px;

  margin-top: 14px;

  padding: 0 24px;

  border: none;

  border-radius: 10px;

  background: #ef1b23 !important;

  color: #ffffff !important;

  font-size: 16px;
  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;

  box-shadow:
    0 6px 16px rgba(239, 27, 35, 0.22);
}

.another-pdf-btn:hover,
#anotherImageBtn:hover {
  background: #d9141b !important;

  color: #ffffff !important;

  transform: translateY(-1px);

  box-shadow:
    0 8px 20px rgba(239, 27, 35, 0.28);
}


/* =========================================
   SCREEN SWITCHING
========================================= */

.compress-page.is-compressing .hero {
  display: none !important;
}

.compress-page.is-downloaded .hero {
  display: none !important;
}

.compress-page.is-downloaded
.compressing-screen {
  display: none !important;
}


/* =========================================
   FOOTER
========================================= */

.footer {
  width: 100%;

  min-height: 78px;

  display: flex;

  align-items: center;
  justify-content: center;

  background: #ffffff;

  border-top: 1px solid #eeeeee;
}

.footer p {
  font-size: 16px;
  color: #555555;
}

.footer span {
  color: #287BE8;
  font-weight: 600;
}

.footer b {
  margin: 0 8px;
  color: #999999;
}


/* =========================================
   GLOBAL DRAG & DROP
========================================= */

body.global-drag-over {
  position: relative;
}

body.global-drag-over::after {
  content: "Drop image files anywhere";

  position: fixed;

  inset: 12px;

  border: 3px dashed #287BE8;

  border-radius: 18px;

  background: rgba(40, 123, 232, 0.05);

  display: flex;

  align-items: center;
  justify-content: center;

  color: #287BE8;

  font-size: 28px;
  font-weight: 700;

  pointer-events: none;

  z-index: 99999;
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 1200px) {

  .header {
    padding: 0 30px;
  }

  .navigation {
    margin-left: 40px;
  }

  .navigation ul {
    gap: 20px;
  }

  .navigation a {
    font-size: 14px;
  }

  .hero {
    padding-top: 85px;
  }

  .hero h1 {
    font-size: 54px;
  }

  .hero > p {
    font-size: 20px;
  }

  .upload-area {
    margin-top: 45px;
  }

  .select-btn {
    width: 430px;
    height: 125px;
    font-size: 25px;
  }

  .cloud-buttons {
    left: calc(50% + 245px);
  }

}


/* =========================================
   SMALL LAPTOP HEIGHT
========================================= */

@media (min-width: 901px) and (max-height: 850px) {

  .hero {
    min-height: auto;
    padding-top: 55px;
    padding-bottom: 45px;
  }

  .hero h1 {
    font-size: 50px;
    margin-bottom: 18px;
  }

  .hero > p {
    font-size: 19px;
    line-height: 1.5;
  }

  .upload-area {
    margin-top: 35px;
  }

  .select-btn {
    width: 430px;
    height: 105px;
    font-size: 24px;
  }

  .cloud-buttons {
    left: calc(50% + 245px);
    gap: 10px;
  }

  .cloud-btn {
    width: 54px;
    height: 54px;
  }

  .drop-text {
    margin-top: 20px;
    font-size: 17px !important;
  }

  .footer {
    min-height: 65px;
  }

}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 650px) {

  .header {
    height: 68px;
    padding: 0 16px;
  }

  .logo img {
    height: 45px;
  }

  .navigation {
    display: none;
  }

  .header-actions {
    gap: 12px;
  }

  .header-actions > a:first-child {
    display: none;
  }

  .signup-btn {
    min-width: 78px;
    height: 38px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 13px;
  }

  .menu-btn {
    display: block;
    font-size: 24px;
  }


  /* MAIN */

  .compress-page {
    min-height: calc(100vh - 68px);
    padding-top: 68px;
  }


  /* HERO */

  .hero {
    min-height: auto;
    padding: 58px 16px 45px;
  }

  .hero h1 {
    font-size: 36px;
    line-height: 1.15;
    letter-spacing: -0.8px;
    margin-bottom: 16px;
  }

  .hero > p {
    max-width: 500px;
    font-size: 16px;
    line-height: 1.55;
  }

  .hero > p br {
    display: none;
  }


  /* UPLOAD */

  .upload-area {
    margin-top: 38px;
    gap: 10px;
  }

  .select-btn {
    width: clamp(210px, 70vw, 290px);
    height: 88px;
    border-radius: 12px;
    font-size: 18px;
    gap: 10px;
  }

  .file-svg {
    width: 25px;
    height: 25px;
  }


  /* CLOUD */

  .cloud-buttons {
    position: static;
    transform: none;
    gap: 8px;
    flex-shrink: 0;
  }

  .cloud-btn {
    width: 42px;
    height: 42px;
  }

  .drive-svg {
    width: 21px;
    height: 21px;
  }

  .dropbox-svg {
    width: 23px;
    height: 23px;
  }


  /* DROP TEXT */

  .drop-text {
    margin-top: 20px;
    font-size: 15px !important;
  }


  /* =====================================
     TARGET SETTINGS - MOBILE
  ===================================== */

  .target-settings {
    width: calc(100% - 24px);

    margin-top: 25px;

    padding: 18px;

    border-radius: 13px;
  }

  .target-settings-header {
    margin-bottom: 20px;
  }

  .target-settings-header h2 {
    font-size: 19px;
  }

  .target-settings-header p {
    font-size: 13px;
  }

  .target-size-control {
    padding: 14px;
    gap: 12px;
  }

  .target-size-control label {
    font-size: 14px;
  }

  .target-input-wrap {
    width: 125px;
    height: 43px;
  }

  .target-input-wrap input {
    font-size: 14px;
  }

  .quick-size-options {
    gap: 7px;
    margin-top: 13px;
  }

  .size-option {
    min-width: 61px;
    height: 35px;
    padding: 0 9px;
    font-size: 12px;
  }

  .resize-settings {
    margin-top: 21px;
    padding-top: 19px;
  }

  .resize-settings h3,
  .format-settings h3 {
    font-size: 15px;
  }

  .resize-fields {
    gap: 9px;
  }

  .resize-field input {
    height: 49px;
    padding-left: 10px;
    padding-right: 38px;
    font-size: 14px;
  }

  .resize-field label {
    left: 10px;
    font-size: 10px;
  }

  .resize-field > span {
    right: 10px;
    font-size: 12px;
  }

  .aspect-ratio-option {
    font-size: 13px;
    margin-top: 12px;
  }

  .format-settings {
    margin-top: 20px;
    padding-top: 19px;
  }

  .format-settings select {
    width: 135px;
    height: 42px;
    font-size: 13px;
  }


  /* =====================================
     SELECTED FILES
  ===================================== */

  .selected-files-section {
    width: calc(100% - 24px);

    margin-top: 25px;

    padding: 18px;

    border-radius: 13px;
  }

  .selected-files-header {
    align-items: flex-start;
    gap: 10px;
  }

  .selected-files-header h2 {
    font-size: 17px;
  }

  .total-size {
    font-size: 13px;
    white-space: nowrap;
  }

  .selected-file-card {
    min-height: 72px;
    padding: 10px;
    gap: 10px;
  }

  .jpg-file-icon,
  .image-file-icon,
  .pdf-file-icon {
    width: 44px;
    height: 48px;
    font-size: 10px;
  }

  .file-name {
    font-size: 14px;
  }

  .file-meta {
    margin-top: 4px;
    font-size: 12px;
  }

  .preview-btn {
    height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .remove-file-btn {
    width: 28px;
    height: 28px;
    font-size: 21px;
  }


  /* DRAG */

  .selected-drop-text {
    flex-wrap: wrap;
    font-size: 13px;
  }

  .selected-drop-text button {
    font-size: 13px;
  }


  /* ACTIONS */

  .file-actions {
    gap: 10px;
    margin-top: 18px;
  }

  .add-files-btn,
  .compress-btn {
    height: 50px;
    font-size: 14px;
  }

  .plus-icon {
    font-size: 20px;
    margin-right: 5px;
  }


  /* =====================================
     PROCESSING
  ===================================== */

  .compress-page.is-compressing
  .compressing-screen {
    min-height: calc(100vh - 128px);
  }

  .compressing-screen {
    min-height: 500px;
    padding: 50px 20px;
  }

  .compressing-logo {
    font-size: 25px;
    margin-bottom: 30px;
  }

  .compressing-screen h2 {
    font-size: 24px;
  }

  .compressing-screen p {
    font-size: 14px;
  }

  .loading-spinner {
    width: 58px;
    height: 58px;
    border-width: 6px;
  }


  /* =====================================
     DOWNLOAD
  ===================================== */

  .compress-page.is-downloaded
  .download-screen {
    min-height: calc(100vh - 128px);
  }

  .download-screen {
    min-height: 500px;
    padding: 50px 20px;
  }

  .download-logo {
    font-size: 25px;
    margin-bottom: 28px;
  }

  .download-screen h2 {
    font-size: 24px;
  }

  .download-message {
    font-size: 14px;
  }

  .download-file-card {
    width: calc(100% - 30px);
    min-width: 0;
  }

  .download-btn {
    width: calc(100% - 30px);
    min-width: 0;
    height: 54px;
    font-size: 15px;
  }


  /* =====================================
     ANOTHER IMAGE - RED
  ===================================== */

  .another-pdf-btn,
  #anotherImageBtn {
    width: calc(100% - 30px);

    min-width: 0;

    height: 52px;

    font-size: 15px;

    background: #ef1b23 !important;

    color: #ffffff !important;
  }


  /* FOOTER */

  .footer {
    min-height: 60px;
    padding: 0 12px;
  }

  .footer p {
    font-size: 12px;
    text-align: center;
  }


  /* GLOBAL DRAG */

  body.global-drag-over::after {
    inset: 8px;
    border-width: 2px;
    border-radius: 12px;
    font-size: 20px;
  }

}


/* =========================================
   SMALL MOBILE
========================================= */

@media (max-width: 390px) {

  .header {
    padding: 0 12px;
  }

  .logo img {
    height: 42px;
  }

  .signup-btn {
    min-width: 70px;
    padding: 0 9px;
    font-size: 12px;
  }

  .header-actions {
    gap: 8px;
  }

  .hero {
    padding-top: 50px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero > p {
    font-size: 15px;
  }

  .upload-area {
    gap: 8px;
  }

  .select-btn {
    width: calc(100vw - 95px);
    max-width: 245px;
    min-width: 205px;
    height: 82px;
    font-size: 16px;
  }

  .file-svg {
    width: 23px;
    height: 23px;
  }

  .cloud-buttons {
    gap: 7px;
  }

  .cloud-btn {
    width: 39px;
    height: 39px;
  }

  .drive-svg {
    width: 19px;
    height: 19px;
  }

  .dropbox-svg {
    width: 21px;
    height: 21px;
  }

  .drop-text {
    font-size: 14px !important;
  }


  /* TARGET SETTINGS */

  .target-settings {
    width: calc(100% - 18px);
    padding: 14px;
  }

  .target-size-control {
    flex-direction: column;
    align-items: stretch;
  }

  .target-input-wrap {
    width: 100%;
  }

  .quick-size-options {
    justify-content: stretch;
  }

  .size-option {
    flex: 1;
    min-width: 0;
  }

  .resize-fields {
    flex-direction: column;
    gap: 10px;
  }

  .format-settings {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .format-settings select {
    width: 100%;
  }


  /* SELECTED FILES */

  .selected-files-section {
    width: calc(100% - 18px);
    padding: 14px;
  }

  .selected-files-header {
    flex-direction: column;
  }

  .total-size {
    align-self: flex-end;
  }

  .selected-file-card {
    gap: 7px;
  }

  .preview-btn {
    display: none;
  }

  .file-actions {
    flex-direction: column;
  }

  .add-files-btn,
  .compress-btn {
    width: 100%;
    flex: none;
  }


  /* DOWNLOAD */

  .download-file-card {
    width: calc(100% - 20px);
  }

  .download-btn {
    width: calc(100% - 20px);
  }

  .another-pdf-btn,
  #anotherImageBtn {
    width: calc(100% - 20px);

    min-width: 0;

    height: 52px;

    font-size: 14px;

    background: #ef1b23 !important;

    color: #ffffff !important;
  }

}


/* =========================================
   FINAL SCREEN STATE FIX
========================================= */

.compress-page.is-compressing
.compressing-screen {
  display: flex !important;
}

.compress-page.is-downloaded
.download-screen {
  display: flex !important;
}

.compress-page.is-downloaded
.compressing-screen {
  display: none !important;
}