* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  }

:root {
--bg: #07111f;
--bg-soft: #0b1728;
--card: rgba(15, 29, 49, 0.92);
--card-soft: #101f35;
--border: rgba(96, 165, 250, 0.16);
--border-strong: rgba(96, 165, 250, 0.30);
--blue: #3b82f6;
--blue-bright: #60a5fa;
--blue-dark: #2563eb;
--text: #f8fafc;
--text-soft: #cbd5e1;
--muted: #8fa3bb;
--success: #4ade80;
}

body {
font-family: Arial, sans-serif;
min-height: 100vh;
padding: 34px 14px 50px;
background:
radial-gradient(circle at 50% -10%, rgba(37, 99, 235, 0.20), transparent 38%),
linear-gradient(180deg, #07111f 0%, #091522 100%);
color: var(--text);
}

.container {
width: 100%;
max-width: 720px;
margin: 0 auto;
text-align: center;
}

/* ========================================
LOGO
======================================== */

.logo {
font-size: 48px;
font-weight: 800;
letter-spacing: -2px;
margin-bottom: 10px;
color: #ffffff;
text-shadow: 0 0 30px rgba(59, 130, 246, 0.20);
}

.logo::after {
content: ".";
color: var(--blue-bright);
}

.subtitle {
color: var(--muted);
font-size: 16px;
line-height: 1.6;
margin-bottom: 30px;
}

/* ========================================
MAIN UPLOAD CARD
======================================== */

.upload-box {
position: relative;
overflow: hidden;
background: linear-gradient(
145deg,
rgba(17, 34, 56, 0.96),
rgba(10, 24, 41, 0.96)
);
border: 1px solid var(--border);
border-radius: 24px;
padding: 42px 30px;
box-shadow:
0 25px 70px rgba(0, 0, 0, 0.30),
0 0 0 1px rgba(255, 255, 255, 0.02) inset;
transition:
border-color 0.25s ease,
transform 0.25s ease,
box-shadow 0.25s ease;
}

.upload-box::before {
content: "";
position: absolute;
top: -120px;
left: 50%;
width: 280px;
height: 280px;
transform: translateX(-50%);
background: rgba(59, 130, 246, 0.08);
filter: blur(70px);
pointer-events: none;
}

.upload-box.drag-over {
border-color: rgba(96, 165, 250, 0.70);
transform: translateY(-2px);
box-shadow:
0 30px 80px rgba(0, 0, 0, 0.35),
0 0 35px rgba(59, 130, 246, 0.10);
}

/* ========================================
UPLOAD AREA
======================================== */

.upload-icon {
position: relative;
font-size: 44px;
margin-bottom: 16px;
}

.upload-box h2 {
position: relative;
font-size: 25px;
margin-bottom: 9px;
color: #ffffff;
}

.upload-description {
position: relative;
color: var(--muted);
font-size: 14px;
line-height: 1.5;
margin-bottom: 24px;
}

#fileInput {
display: none !important;
}

.file-button {
position: relative;
display: inline-block;
background: linear-gradient(
135deg,
#3b82f6,
#2563eb
);
color: white;
padding: 14px 24px;
border: 1px solid rgba(255, 255, 255, 0.12);
border-radius: 12px;
font-weight: bold;
cursor: pointer;
box-shadow:
0 10px 25px rgba(37, 99, 235, 0.25);
transition:
transform 0.2s ease,
box-shadow 0.2s ease,
filter 0.2s ease;
}

.file-button:hover {
transform: translateY(-2px);
filter: brightness(1.08);
box-shadow:
0 14px 32px rgba(37, 99, 235, 0.32);
}

.file-button:active {
transform: translateY(0);
}

.file-hint {
position: relative;
margin-top: 13px;
color: #71859d;
font-size: 12px;
}

#fileName {
margin-top: 16px;
color: var(--text-soft);
font-size: 14px;
}

/* ========================================
IMAGE PREVIEW
======================================== */

#previewContainer {
display: none;
margin-top: 28px;
}

#preview {
display: block;
max-width: 100%;
max-height: 300px;
margin: 0 auto;
border-radius: 16px;
border: 1px solid var(--border);
box-shadow:
0 18px 40px rgba(0, 0, 0, 0.30);
}

/* ========================================
CONTROLS
======================================== */

#controls {
display: none;
margin-top: 30px;
padding-top: 25px;
border-top: 1px solid var(--border);
text-align: left;
}

#controls label {
display: block;
margin-bottom: 11px;
color: var(--text-soft);
font-size: 14px;
font-weight: 600;
}

#quality {
width: 100%;
height: 6px;
accent-color: var(--blue);
cursor: pointer;
}

#compressButton {
width: 100%;
margin-top: 22px;
padding: 15px;
border: none;
border-radius: 12px;
background: linear-gradient(
135deg,
#172b48,
#10223a
);
color: #ffffff;
border: 1px solid var(--border-strong);
font-size: 15px;
font-weight: bold;
cursor: pointer;
transition:
background 0.2s ease,
transform 0.2s ease,
border-color 0.2s ease,
box-shadow 0.2s ease;
}

#compressButton:hover:not(:disabled) {
background: linear-gradient(
135deg,
#1c3960,
#142a47
);
border-color: rgba(96, 165, 250, 0.45);
transform: translateY(-1px);
box-shadow:
0 10px 25px rgba(0, 0, 0, 0.20);
}

#compressButton:disabled {
opacity: 0.55;
cursor: not-allowed;
}

/* ========================================
RESULT SECTION
======================================== */

#result {
display: none;
margin-top: 30px;
padding: 28px 0 0;
border-top: 1px solid var(--border);
}

.success-message {
color: var(--blue-bright);
font-size: 18px;
font-weight: bold;
margin-bottom: 20px;
}

.stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
margin-bottom: 18px;
}

.stat {
background: linear-gradient(
145deg,
rgba(25, 47, 75, 0.90),
rgba(15, 32, 53, 0.90)
);
border: 1px solid var(--border);
border-radius: 14px;
padding: 17px 10px;
box-shadow:
0 8px 22px rgba(0, 0, 0, 0.14);
}

.stat span {
display: block;
color: var(--muted);
font-size: 12px;
margin-bottom: 7px;
}

.stat strong {
font-size: 17px;
color: #ffffff;
}

#savedPercent {
color: var(--success);
}

#status {
background: rgba(15, 31, 51, 0.75);
border: 1px solid var(--border);
border-radius: 11px;
padding: 12px 14px;
color: var(--muted);
font-size: 13px;
line-height: 1.5;
margin-bottom: 18px;
}

/* ========================================
DOWNLOAD
======================================== */

#downloadButton {
display: inline-block;
width: 100%;
padding: 15px 22px;
border-radius: 12px;
border: 1px solid rgba(255, 255, 255, 0.10);
background: linear-gradient(
135deg,
#3b82f6,
#2563eb
);
color: white;
text-decoration: none;
font-weight: bold;
box-shadow:
0 12px 28px rgba(37, 99, 235, 0.25);
transition:
transform 0.2s ease,
box-shadow 0.2s ease,
filter 0.2s ease;
}

#downloadButton:hover {
transform: translateY(-2px);
filter: brightness(1.08);
box-shadow:
0 16px 35px rgba(37, 99, 235, 0.32);
}

/* ========================================
RESET
======================================== */

#resetButton {
display: none;
width: 100%;
margin-top: 10px;
padding: 14px;
border: 1px solid var(--border-strong);
border-radius: 12px;
background: transparent;
color: var(--text-soft);
font-size: 14px;
font-weight: bold;
cursor: pointer;
transition:
background 0.2s ease,
border-color 0.2s ease,
color 0.2s ease;
}

#resetButton:hover {
background: rgba(59, 130, 246, 0.07);
border-color: rgba(96, 165, 250, 0.45);
color: #ffffff;
}

/* ========================================
BATCH RESULTS
======================================== */

#individualResults {
margin-top: 24px;
}

.batch-header {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding: 15px 17px;
background: rgba(20, 40, 66, 0.85);
border: 1px solid var(--border);
border-radius: 13px;
text-align: left;
}

.batch-header strong {
color: #ffffff;
font-size: 14px;
}

.batch-header span {
color: var(--muted);
font-size: 12px;
white-space: nowrap;
}

/* ========================================
INDIVIDUAL RESULT CARDS
======================================== */

.individual-result {
position: relative;
background: linear-gradient(
145deg,
rgba(16, 34, 56, 0.94),
rgba(11, 27, 46, 0.94)
);
border: 1px solid var(--border);
border-radius: 15px;
padding: 16px;
margin-top: 9px;
text-align: left;
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.16);
transition:
transform 0.2s ease,
border-color 0.2s ease,
box-shadow 0.2s ease;
}

.individual-result:hover {
transform: translateY(-1px);
border-color: var(--border-strong);
box-shadow:
0 12px 30px rgba(0, 0, 0, 0.22);
}

.individual-result strong {
display: block;
color: #f8fafc;
font-size: 14px;
line-height: 1.4;
margin-bottom: 12px;
word-break: break-word;
}

.individual-stats {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 8px;
}

.individual-stats span {
background: rgba(7, 17, 31, 0.55);
border: 1px solid rgba(96, 165, 250, 0.10);
border-radius: 9px;
padding: 9px 7px;
color: var(--muted);
font-size: 12px;
text-align: center;
line-height: 1.3;
}

/* ========================================
INDIVIDUAL DOWNLOAD
======================================== */

.individual-result .extra-download {
display: block;
width: 100%;
margin-top: 10px;
padding: 10px 14px;
background: rgba(59, 130, 246, 0.08);
border: 1px solid rgba(96, 165, 250, 0.18);
color: var(--blue-bright);
border-radius: 10px;
font-size: 13px;
font-weight: bold;
text-align: center;
text-decoration: none;
transition:
background 0.2s ease,
border-color 0.2s ease,
transform 0.2s ease;
}

.individual-result .extra-download:hover {
background: rgba(59, 130, 246, 0.15);
border-color: rgba(96, 165, 250, 0.35);
transform: translateY(-1px);
}

/* ========================================
PAGINATION
======================================== */

.batch-navigation {
display: flex;
align-items: center;
justify-content: space-between;
gap: 10px;
margin-top: 14px;
}

.batch-navigation button {
flex: 1;
padding: 10px 14px;
border: 1px solid var(--border);
border-radius: 10px;
background: rgba(16, 34, 56, 0.80);
color: var(--text-soft);
font-size: 12px;
font-weight: bold;
cursor: pointer;
transition:
background 0.2s ease,
border-color 0.2s ease,
color 0.2s ease,
transform 0.2s ease;
}

.batch-navigation button:hover:not(:disabled) {
background: rgba(59, 130, 246, 0.10);
border-color: var(--border-strong);
color: #ffffff;
transform: translateY(-1px);
}

.batch-navigation button:disabled {
opacity: 0.35;
cursor: not-allowed;
}

/* ========================================
HOW IT WORKS
======================================== */

.how-it-works {
margin-top: 48px;
}

.how-it-works h2 {
font-size: 23px;
margin-bottom: 22px;
color: #ffffff;
}

.steps {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}

.step {
background: linear-gradient(
145deg,
rgba(16, 34, 56, 0.92),
rgba(11, 27, 46, 0.92)
);
border: 1px solid var(--border);
border-radius: 15px;
padding: 22px 15px;
box-shadow:
0 8px 24px rgba(0, 0, 0, 0.14);
}

.step-number {
width: 35px;
height: 35px;
margin: 0 auto 12px;
display: flex;
align-items: center;
justify-content: center;
border-radius: 50%;
background: linear-gradient(
135deg,
#3b82f6,
#2563eb
);
color: white;
font-weight: bold;
box-shadow:
0 7px 18px rgba(37, 99, 235, 0.25);
}

.step h3 {
margin-bottom: 7px;
font-size: 15px;
color: #ffffff;
}

.step p {
color: var(--muted);
font-size: 12px;
line-height: 1.55;
}

/* ========================================
PRIVACY
======================================== */

.privacy {
margin-top: 28px;
color: #71859d;
font-size: 12px;
line-height: 1.5;
}

.privacy-link {
margin-top: 9px;
}

.privacy-link a {
color: var(--blue-bright);
text-decoration: none;
font-size: 12px;
font-weight: 600;
}

.privacy-link a:hover {
text-decoration: underline;
}

/* ========================================
PRIVACY PAGE
======================================== */

.privacy-page {
text-align: left;
border-style: solid;
}

.privacy-page h1 {
font-size: 30px;
margin-bottom: 20px;
text-align: center;
color: #ffffff;
}

.privacy-page h2 {
font-size: 19px;
margin-top: 28px;
margin-bottom: 8px;
color: #ffffff;
}

.privacy-page p {
color: var(--muted);
font-size: 15px;
line-height: 1.7;
}

.privacy-back {
margin-top: 30px;
text-align: center;
}

.privacy-back a {
color: var(--blue-bright);
text-decoration: none;
font-weight: bold;
}

.privacy-back a:hover {
text-decoration: underline;
}

/* ========================================
MOBILE
======================================== */

@media (max-width: 600px) {

body {
    padding: 24px 12px 38px;
}

.logo {
    font-size: 42px;
    letter-spacing: -1.7px;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 23px;
}

.upload-box {
    padding: 32px 18px;
    border-radius: 20px;
}

.upload-icon {
    font-size: 40px;
    margin-bottom: 13px;
}

.upload-box h2 {
    font-size: 22px;
}

.upload-description {
    font-size: 13px;
    margin-bottom: 20px;
}

.file-button {
    width: 100%;
    padding: 15px 18px;
    font-size: 15px;
}

#preview {
    max-height: 300px;
    border-radius: 13px;
}

#controls {
    margin-top: 25px;
    padding-top: 22px;
}

#compressButton {
    padding: 15px;
}

#result {
    margin-top: 25px;
    padding-top: 23px;
}

.success-message {
    font-size: 17px;
}

.stats {
    grid-template-columns: 1fr;
    gap: 8px;
}

.stat {
    padding: 14px;
}

#status {
    padding: 11px 12px;
    font-size: 12px;
}

#downloadButton,
#resetButton {
    padding: 15px;
    font-size: 14px;
}

#individualResults {
    margin-top: 20px;
}

.batch-header {
    padding: 13px;
    border-radius: 12px;
}

.batch-header strong {
    font-size: 13px;
}

.batch-header span {
    font-size: 11px;
}

.individual-result {
    padding: 14px;
    border-radius: 13px;
}

.individual-result strong {
    font-size: 13px;
    margin-bottom: 10px;
}

.individual-stats {
    grid-template-columns: 1fr;
    gap: 6px;
}

.individual-stats span {
    text-align: left;
    padding: 8px 10px;
}

.individual-result .extra-download {
    padding: 11px 12px;
    font-size: 12px;
}

.batch-navigation {
    gap: 7px;
    margin-top: 12px;
}

.batch-navigation button {
    padding: 11px 7px;
    font-size: 11px;
}

.how-it-works {
    margin-top: 40px;
}

.how-it-works h2 {
    font-size: 21px;
}

.steps {
    grid-template-columns: 1fr;
    gap: 10px;
}

.step {
    padding: 20px 15px;
}

.privacy {
    margin-top: 24px;
    padding: 0 8px;
    font-size: 11px;
}

}
.file-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin: 16px 0;
    width: 100%;
}

.file-buttons .file-button {
    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;

    width: 190px !important;
    min-width: 190px !important;
    max-width: 190px !important;

    height: 44px !important;

    margin: 0 !important;
    padding: 0 10px !important;

    font-size: 14px;
    line-height: 1;
    text-align: center;
}

@media (max-width: 500px) {
    .file-buttons {
        flex-direction: column;
        gap: 12px;
    }

    .file-buttons .file-button {
        width: 80% !important;
        min-width: 0 !important;
        max-width: 260px !important;
    }
}
#singleFileInput,
#multipleFileInput {
    display: none;
}
.target-size-input {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 260px;
    margin-top: 8px;
    background: #151c2b;
    border: 1px solid #33415c;
    border-radius: 10px;
    overflow: hidden;
}

.target-size-input input {
    flex: 1;
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    color: #ffffff;
    padding: 12px 14px;
    font-size: 15px;
    font-weight: 500;
}

.target-size-input input::placeholder {
    color: #7f8aa3;
}

.target-size-input input:focus {
    background: #192237;
}

.target-size-input span {
    padding: 12px 14px;
    color: #aeb8cc;
    font-size: 14px;
    font-weight: 600;
    border-left: 1px solid #33415c;
}
/* ========================================
   CHOOSE ANOTHER IMAGE
======================================== */

#chooseAnotherButton {
    appearance: none;
    -webkit-appearance: none;

    display: none;

    margin: 16px auto 0 !important;
    padding: 10px 20px !important;

    width: auto !important;
    min-width: 0 !important;
    height: auto !important;

    background: #172b48 !important;
    color: #60a5fa !important;

    border: 1px solid rgba(96, 165, 250, 0.35) !important;
    border-radius: 10px !important;

    font-family: Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;

    cursor: pointer;

    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18) !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease !important;
}

#chooseAnotherButton:hover {
    background: #1c3960 !important;
    color: #ffffff !important;
    border-color: rgba(96, 165, 250, 0.55) !important;
    transform: translateY(-1px);
}

#chooseAnotherButton:active {
    transform: translateY(0);
}
/* ========================================
   ABOUT FILESHRINK
======================================== */

.about-file-shrink {
    max-width: 820px;
    margin: 50px auto 20px;
    padding: 0 10px;
    text-align: center;
}

.about-file-shrink h2 {
    margin-bottom: 18px;
    color: var(--text);
    font-size: 24px;
}

.about-file-shrink p {
    margin: 0 auto 14px;
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.8;
}

.about-file-shrink p:last-child {
    margin-bottom: 0;
}
/* ========================================
   FAQ
======================================== */

.faq {
    max-width: 820px;
    margin: 55px auto 20px;
    padding: 0 10px;
}

.faq > h2 {
    margin-bottom: 28px;
    text-align: center;
    color: var(--text);
    font-size: 24px;
}

.faq-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
    border-top: 1px solid var(--border);
}

.faq-item h3 {
    margin-bottom: 8px;
    color: var(--text);
    font-size: 16px;
}

.faq-item p {
    color: var(--text-soft);
    font-size: 14px;
    line-height: 1.7;
}