/* =========================================
   PDFLooks - CROP IMAGE
   COMPLETE STYLES
   IMAGE TOOL HEADER + CROP IMAGE TOOL
========================================= */

* {
  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: #1d68c7;
  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: #f3f8ff;
  color: #287BE8;
}


/* =========================================
   MAIN CROP IMAGE 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%,
      #f9fcff 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.22);

  transition:
    transform 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.select-btn:hover {
  background: #1d68c7;

  transform: translateY(-2px);

  box-shadow:
    0 14px 30px rgba(40, 123, 232, 0.28);
}

.select-btn:active {
  transform: translateY(0);
}


/* =========================================
   IMAGE SVG ICON
========================================= */

.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;
}


/* =========================================
   SELECTED FILES SECTION
========================================= */

.selected-files-section {
  width: min(900px, calc(100% - 40px));

  margin: 45px 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;
}


/* =========================================
   IMAGE FILE CARD
========================================= */

.selected-file-card {
  width: 100%;

  min-height: 82px;

  padding: 12px 16px;

  display: flex;

  align-items: center;

  gap: 16px;

  border: 1px solid #dfe7f1;

  border-radius: 12px;

  background: #ffffff;
}


/* =========================================
   IMAGE FILE THUMBNAIL
========================================= */

.image-file-icon {
  width: 70px;
  height: 58px;

  flex-shrink: 0;

  display: flex;

  align-items: center;
  justify-content: center;

  overflow: hidden;

  border-radius: 7px;

  background: #eef5ff;

  color: #287BE8;

  font-size: 13px;

  font-weight: 800;
}

.image-file-icon img {
  width: 100%;
  height: 100%;

  object-fit: cover;

  display: block;
}


/* =========================================
   FALLBACK IMAGE ICON
========================================= */

.image-file-placeholder {
  width: 100%;
  height: 100%;

  display: flex;

  align-items: center;
  justify-content: center;

  color: #287BE8;

  font-size: 13px;

  font-weight: 800;
}


/* =========================================
   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 #d8e3f0;

  border-radius: 8px;

  background: #ffffff;

  color: #287BE8;

  font-size: 14px;

  font-weight: 600;

  cursor: pointer;

  transition: 0.2s ease;
}

.preview-btn:hover {
  border-color: #287BE8;

  color: #ffffff;

  background: #287BE8;
}


/* =========================================
   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 IMAGES
========================================= */

.add-files-btn {
  flex: 1;

  border: 1px solid #d8e3f0;

  background: #ffffff;

  color: #287BE8;
}

.add-files-btn:hover {
  background: #f3f8ff;
}

.plus-icon {
  margin-right: 8px;

  font-size: 25px;

  vertical-align: middle;
}


/* =========================================
   CROP IMAGE MAIN BUTTON
========================================= */

.compress-btn {
  flex: 1.5;

  border: none;

  background: #287BE8;

  color: #ffffff;

  box-shadow:
    0 7px 18px rgba(40, 123, 232, 0.20);
}

.compress-btn:hover {
  background: #1d68c7;
}

.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;
}


/* =========================================
   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 #eeeeee;

  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 #dfe7f1;

  border-radius: 12px;

  margin-bottom: 22px;

  box-shadow:
    0 5px 20px rgba(0, 0, 0, 0.06);
}

.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.20);

  transition: 0.2s ease;
}

.download-btn:hover {
  background: #1d68c7;

  transform: translateY(-1px);
}


/* =========================================
   SCREEN SWITCHING
========================================= */

.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;
}


/* =========================================
   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.04);

  display: flex;

  align-items: center;
  justify-content: center;

  color: #287BE8;

  font-size: 28px;

  font-weight: 700;

  pointer-events: none;

  z-index: 99999;
}


/* =========================================
   CROP ANOTHER IMAGE BUTTON
========================================= */

.another-pdf-btn {
  min-width: 360px;

  height: 52px;

  margin-top: 14px;

  padding: 0 24px;

  border: none;

  border-radius: 10px;

  background: #ef233c;

  color: #ffffff;

  font-size: 16px;

  font-weight: 700;

  cursor: pointer;

  transition: 0.2s ease;

  box-shadow:
    0 6px 16px rgba(239, 35, 60, 0.20);
}

.another-pdf-btn:hover {
  background: #d91f36;

  transform: translateY(-1px);

  box-shadow:
    0 8px 20px rgba(239, 35, 60, 0.25);
}

.another-pdf-btn:active {
  transform: translateY(0);
}


/* =========================================
   VISUAL CROP EDITOR
========================================= */

.crop-editor-section {
  display: none;

  position: relative;

  width: 100%;

  box-sizing: border-box;

  padding: 35px 20px 45px;

  background: #f7fbff;

  clear: both;

  text-align: left;
}

.crop-editor-section.active {
  display: block;
}


/* =========================================
   EDITOR CARD
========================================= */

.crop-editor-card {
  width: min(1050px, calc(100% - 20px));

  margin: 0 auto;

  box-sizing: border-box;

  background: #ffffff;

  border: 1px solid #e1e8f0;

  border-radius: 18px;

  box-shadow:
    0 10px 35px rgba(0, 0, 0, 0.10);

  overflow: hidden;
}


/* =========================================
   EDITOR HEADER
========================================= */

.crop-editor-header {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 20px;

  padding: 22px 26px;

  border-bottom: 1px solid #eeeeee;

  background: #ffffff;
}

.crop-editor-header h2 {
  margin: 0 0 5px;

  font-size: 24px;

  line-height: 1.2;

  font-weight: 800;

  color: #111111;
}

.crop-editor-header p {
  margin: 0;

  font-size: 14px;

  line-height: 1.5;

  color: #777777;
}

.crop-close-btn {
  width: 40px;
  height: 40px;

  flex-shrink: 0;

  border: none;

  border-radius: 50%;

  background: #f7f7f7;

  color: #555555;

  font-size: 26px;

  line-height: 1;

  cursor: pointer;

  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.crop-close-btn:hover {
  background: #eef5ff;

  color: #287BE8;

  transform: rotate(3deg);
}


/* =========================================
   EDITOR TOOLBAR
========================================= */

.crop-toolbar {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 15px;

  padding: 14px 24px;

  background: #fafafa;

  border-bottom: 1px solid #eeeeee;
}

.crop-page-info {
  display: flex;

  align-items: center;

  gap: 8px;

  font-size: 14px;

  color: #777777;
}

.crop-page-info strong {
  color: #111111;
}

.crop-toolbar-actions {
  display: flex;

  align-items: center;

  gap: 8px;
}

.crop-tool-btn {
  height: 38px;

  padding: 0 15px;

  border: 1px solid #d9e3ef;

  border-radius: 8px;

  background: #ffffff;

  color: #333333;

  font-size: 13px;

  font-weight: 600;

  cursor: pointer;

  transition:
    border-color 0.2s ease,
    color 0.2s ease,
    background 0.2s ease;
}

.crop-tool-btn:hover {
  border-color: #287BE8;

  color: #287BE8;

  background: #f4f8ff;
}


/* =========================================
   IMAGE PREVIEW AREA
========================================= */

.crop-preview-wrapper {
  width: 100%;

  min-height: 570px;

  padding: 35px;

  display: flex;

  align-items: center;
  justify-content: center;

  box-sizing: border-box;

  background: #eeeeee;

  overflow: auto;
}

.crop-preview {
  position: relative;

  display: inline-block;

  width: fit-content;

  max-width: 100%;

  line-height: 0;

  background: #ffffff;

  box-shadow:
    0 5px 20px rgba(0, 0, 0, 0.18);
}

#cropCanvas {
  display: block;

  max-width: 100%;

  max-height: 500px;

  width: auto;

  height: auto;

  background: #ffffff;
}


/* =========================================
   CROP OVERLAY
========================================= */

.crop-overlay {
  position: absolute;

  inset: 0;

  pointer-events: none;
}


/* =========================================
   CROP SELECTION
========================================= */

.crop-selection {
  position: absolute;

  left: 0;
  top: 0;

  width: 100%;
  height: 100%;

  box-sizing: border-box;

  border: 2px solid #287BE8;

  box-shadow:
    0 0 0 9999px rgba(0, 0, 0, 0.42);

  pointer-events: auto;

  cursor: move;

  touch-action: none;

  user-select: none;

  background: rgba(255, 255, 255, 0.001);
}


/* =========================================
   CROP GRID
========================================= */

.crop-grid-line {
  position: absolute;

  display: block;

  pointer-events: none;

  background: rgba(40, 123, 232, 0.45);
}

.crop-grid-line.horizontal {
  left: 0;
  right: 0;

  height: 1px;
}

.crop-grid-line.vertical {
  top: 0;
  bottom: 0;

  width: 1px;
}

.crop-grid-line.horizontal.top {
  top: 33.333%;
}

.crop-grid-line.horizontal.middle {
  top: 50%;
}

.crop-grid-line.horizontal.bottom {
  top: 66.666%;
}

.crop-grid-line.vertical.left {
  left: 33.333%;
}

.crop-grid-line.vertical.middle {
  left: 50%;
}

.crop-grid-line.vertical.right {
  left: 66.666%;
}


/* =========================================
   CROP HANDLES
========================================= */

.crop-handle {
  position: absolute;

  width: 14px;
  height: 14px;

  box-sizing: border-box;

  background: #ffffff;

  border: 3px solid #287BE8;

  border-radius: 50%;

  z-index: 5;

  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18);
}

.crop-handle.nw {
  left: -8px;
  top: -8px;

  cursor: nwse-resize;
}

.crop-handle.n {
  left: 50%;
  top: -8px;

  transform: translateX(-50%);

  cursor: ns-resize;
}

.crop-handle.ne {
  right: -8px;
  top: -8px;

  cursor: nesw-resize;
}

.crop-handle.e {
  right: -8px;
  top: 50%;

  transform: translateY(-50%);

  cursor: ew-resize;
}

.crop-handle.se {
  right: -8px;
  bottom: -8px;

  cursor: nwse-resize;
}

.crop-handle.s {
  left: 50%;
  bottom: -8px;

  transform: translateX(-50%);

  cursor: ns-resize;
}

.crop-handle.sw {
  left: -8px;
  bottom: -8px;

  cursor: nesw-resize;
}

.crop-handle.w {
  left: -8px;
  top: 50%;

  transform: translateY(-50%);

  cursor: ew-resize;
}


/* =========================================
   CROP INFORMATION
========================================= */

.crop-info-bar {
  display: flex;

  align-items: stretch;
  justify-content: center;

  width: 100%;

  background: #ffffff;

  border-top: 1px solid #eeeeee;

  border-bottom: 1px solid #eeeeee;
}

.crop-info-item {
  min-width: 150px;

  padding: 14px 22px;

  text-align: center;

  border-right: 1px solid #eeeeee;
}

.crop-info-item:last-child {
  border-right: none;
}

.crop-info-item span {
  display: block;

  margin-bottom: 4px;

  font-size: 12px;

  line-height: 1.3;

  color: #888888;
}

.crop-info-item strong {
  display: block;

  font-size: 14px;

  line-height: 1.3;

  color: #222222;
}


/* =========================================
   EDITOR ACTIONS
========================================= */

.crop-editor-actions {
  display: flex;

  align-items: center;
  justify-content: flex-end;

  gap: 12px;

  padding: 18px 24px;

  background: #ffffff;
}

.crop-cancel-btn,
.crop-apply-btn {
  height: 48px;

  padding: 0 24px;

  border-radius: 9px;

  font-size: 15px;

  font-weight: 700;

  cursor: pointer;

  transition:
    background 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.crop-cancel-btn {
  border: 1px solid #d9e3ef;

  background: #ffffff;

  color: #444444;
}

.crop-cancel-btn:hover {
  background: #f5f8fc;
}

.crop-apply-btn {
  min-width: 155px;

  border: none;

  background: #287BE8;

  color: #ffffff;

  box-shadow:
    0 6px 16px rgba(40, 123, 232, 0.20);
}

.crop-apply-btn:hover {
  background: #1d68c7;

  transform: translateY(-1px);

  box-shadow:
    0 8px 20px rgba(40, 123, 232, 0.25);
}

.crop-apply-btn:active,
.crop-cancel-btn:active {
  transform: translateY(0);
}


/* =========================================
   EDITOR LAYOUT SAFETY
========================================= */

.compress-page > .crop-editor-section {
  flex: 0 0 100%;

  align-self: stretch;

  max-width: none;
}

.compress-page > .crop-editor-section * {
  box-sizing: border-box;
}

.compress-page > .crop-editor-section h2,
.compress-page > .crop-editor-section p {
  text-align: left;
}

.compress-page.is-compressing
.crop-editor-section,
.compress-page.is-downloaded
.crop-editor-section {
  display: none !important;
}


/* =========================================
   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);
  }

}


/* =========================================
   EDITOR TABLET
========================================= */

@media (max-width: 900px) {

  .crop-editor-section {
    padding: 25px 12px 35px;
  }

  .crop-editor-card {
    width: 100%;
  }

  .crop-preview-wrapper {
    min-height: 500px;

    padding: 25px 15px;
  }

  #cropCanvas {
    max-height: 460px;
  }

}


/* =========================================
   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 BUTTONS */

  .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;
  }


  /* 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;
  }

  .image-file-icon {
    width: 55px;
    height: 48px;
  }

  .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 TEXT */

  .selected-drop-text {
    flex-wrap: wrap;

    font-size: 13px;
  }

  .selected-drop-text button {
    font-size: 13px;
  }


  /* ACTION BUTTONS */

  .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 */

  .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 */

  .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 */

  .another-pdf-btn {
    width: calc(100% - 30px);

    min-width: 0;

    height: 52px;

    font-size: 15px;
  }


  /* 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;
  }


  /* CROP EDITOR MOBILE */

  .crop-editor-section {
    padding: 20px 10px 30px;
  }

  .crop-editor-header {
    padding: 17px;

    gap: 10px;
  }

  .crop-editor-header h2 {
    font-size: 20px;
  }

  .crop-editor-header p {
    font-size: 12px;
  }

  .crop-close-btn {
    width: 36px;
    height: 36px;

    font-size: 23px;
  }

  .crop-toolbar {
    padding: 10px 14px;
  }

  .crop-tool-btn {
    height: 35px;

    padding: 0 11px;

    font-size: 12px;
  }

  .crop-preview-wrapper {
    min-height: 420px;

    padding: 18px 8px;
  }

  #cropCanvas {
    max-height: 390px;

    max-width: 100%;
  }

  .crop-handle {
    width: 15px;
    height: 15px;
  }

  .crop-info-item {
    min-width: 0;

    flex: 1;

    padding: 11px 5px;
  }

  .crop-info-item span {
    font-size: 10px;
  }

  .crop-info-item strong {
    font-size: 12px;
  }

  .crop-editor-actions {
    padding: 14px;

    flex-direction: column-reverse;
  }

  .crop-cancel-btn,
  .crop-apply-btn {
    width: 100%;
  }

}


/* =========================================
   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;
  }

  .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-file-card {
    width: calc(100% - 20px);
  }

  .download-btn {
    width: calc(100% - 20px);
  }


  /* CROP EDITOR SMALL MOBILE */

  .crop-editor-header {
    padding: 14px;
  }

  .crop-editor-header h2 {
    font-size: 18px;
  }

  .crop-toolbar {
    padding: 9px 11px;
  }

  .crop-preview-wrapper {
    min-height: 360px;

    padding: 12px 5px;
  }

  #cropCanvas {
    max-height: 340px;
  }

  .crop-info-item {
    padding: 10px 3px;
  }

  .crop-info-item span {
    font-size: 9px;
  }

  .crop-info-item strong {
    font-size: 11px;
  }

}


/* =========================================
   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;
}