
/* =========================================
   HANDYBOX — COMPLETE DESIGN SYSTEM
   Dark Gaming-Tech / Modern SaaS
========================================= */

:root {
    --bg: #090b12;
    --surface: #111520;
    --surface-light: #191f2e;
    --border: #292f40;

    --primary: #925cff;
    --primary-hover: #ad83ff;
    --primary-glow: rgba(146, 92, 255, 0.18);

    --text: #f4f5fa;
    --muted: #9ba3b5;
    --success: #36d399;

    --radius: 16px;
    --shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(ellipse at 50% -20%, #24183f 0%, transparent 55%),
        var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

/* =========================================
   NAVIGATION
========================================= */

header {
    position: sticky;
    top: 0;
    z-index: 100;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 18px 8%;

    background: rgba(9, 11, 18, 0.91);
    backdrop-filter: blur(16px);

    border-bottom: 1px solid rgba(255,255,255,0.07);
}

.logo {
    font-size: 28px;
    font-weight: 900;
    letter-spacing: -1.5px;
    color: #ffffff;
}

.logo-accent {
    color: var(--primary);
}

nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.25s;
}

nav a:hover {
    color: var(--primary-hover);
}

/* =========================================
   HOMEPAGE HERO
========================================= */

.hero {
    position: relative;
    text-align: center;
    padding: 125px 20px 115px;
    overflow: hidden;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    color: #c4a9ff;
    background: rgba(146, 92, 255, 0.10);

    border: 1px solid rgba(146, 92, 255, 0.3);
    border-radius: 50px;

    padding: 8px 18px;
    margin-bottom: 28px;

    letter-spacing: 2px;
    font-size: 11px;
    font-weight: bold;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: #a77aff;
    border-radius: 50%;
    box-shadow: 0 0 12px #925cff;
}

.hero h1 {
    font-size: clamp(42px, 6vw, 76px);
    line-height: 1.12;
    letter-spacing: -2.5px;
    margin-bottom: 24px;
}

.hero h1 span {
    background: linear-gradient(
        90deg,
        #ffffff,
        #b99aff,
        #925cff
    );

    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 550px;
    margin: 0 auto 35px;

    color: var(--muted);
    font-size: 17px;
}

.hero-note {
    margin-top: 18px;
    color: #747d91;
    font-size: 12px;
}

/* =========================================
   SEARCH BOX
========================================= */

.search-box {
    display: flex;
    gap: 10px;

    max-width: 540px;
    margin: auto;
}

.search-box input {
    flex: 1;
    min-width: 0;

    padding: 16px 19px;

    color: white;
    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 11px;
    outline: none;

    transition: 0.25s;
}

.search-box input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.search-box button {
    padding: 14px 25px;

    background: var(--primary);
    color: white;

    border: none;
    border-radius: 11px;

    font-weight: bold;
    transition: 0.25s;
}

.search-box button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* =========================================
   TOOLS SECTION
========================================= */

.tools-section {
    padding: 65px 8% 110px;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;

    max-width: 1150px;
    margin: 0 auto 40px;
}

.section-label {
    color: var(--primary-hover);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 2.5px;
    margin-bottom: 10px;
}

.section-heading h2 {
    font-size: 36px;
    letter-spacing: -1.5px;
}

.section-heading h2 span {
    color: var(--primary);
}

.section-heading > div:first-child > p:last-child {
    color: var(--muted);
    margin-top: 8px;
}

.tool-count {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.tool-count strong {
    font-size: 32px;
    color: var(--primary-hover);
}

.tool-count span {
    font-size: 10px;
    color: var(--muted);
    letter-spacing: 1.5px;
}

.tool-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;

    max-width: 1150px;
    margin: auto;
}

/* TOOL CARDS */

.tool-card {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: flex-start;

    min-height: 255px;
    padding: 27px;

    text-align: left;
    text-decoration: none;
    color: var(--text);

    background: linear-gradient(
        145deg,
        #151b29,
        #0f1420
    );

    border: 1px solid var(--border);
    border-radius: var(--radius);

    overflow: hidden;
    transition: 0.3s ease;
}

.tool-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;

    width: 100%;
    height: 2px;

    background: linear-gradient(
        90deg,
        transparent,
        var(--primary),
        transparent
    );

    opacity: 0;
    transition: 0.3s;
}

.tool-card:hover {
    transform: translateY(-7px);
    border-color: var(--primary);

    box-shadow: 0 15px 40px rgba(146, 92, 255, 0.12);
}

.tool-card:hover::before {
    opacity: 1;
}

.tool-icon {
    display: flex;
    justify-content: center;
    align-items: center;

    width: 48px;
    height: 48px;

    margin-bottom: 20px;

    color: #c5aaff;
    background: rgba(146, 92, 255, 0.12);

    border: 1px solid rgba(146, 92, 255, 0.2);
    border-radius: 13px;

    font-size: 24px;
    font-weight: bold;
}

.tool-category {
    color: #a889e8;
    font-size: 10px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
}

.tool-card h3 {
    font-size: 19px;
    margin-bottom: 9px;
}

.tool-card p {
    color: var(--muted);
    font-size: 13px;
}

.tool-card .tool-link {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    margin-top: auto;
    padding-top: 22px;

    color: #bd9dff;
    font-size: 13px;
    font-weight: bold;
}

.tool-link span {
    font-size: 17px;
    transition: 0.25s;
}

.tool-card:hover .tool-link span {
    transform: translate(4px, -3px);
}

/* =========================================
   ABOUT SECTION
========================================= */

.about-section {
    max-width: 850px;
    margin: 0 auto 100px;
    padding: 65px 30px;

    text-align: center;

    background: linear-gradient(
        145deg,
        #171b2a,
        #10131e
    );

    border: 1px solid var(--border);
    border-radius: 22px;
}

.about-section h2 {
    font-size: clamp(32px, 5vw, 45px);
    line-height: 1.2;
    margin: 15px 0;
}

.about-section h2 span {
    color: var(--primary-hover);
}

.about-section > p:last-child {
    max-width: 550px;
    margin: auto;
    color: var(--muted);
}

/* =========================================
   GENERAL TOOL PAGES
========================================= */

.calculator-page,
.percentage-page,
.word-page,
.qr-page,
.compressor-page {
    text-align: center;
    padding: 75px 20px 100px;
}

.calculator-page h1,
.percentage-page h1,
.word-page h1,
.qr-page h1,
.compressor-page h1 {
    font-size: clamp(30px, 5vw, 42px);
    letter-spacing: -1px;
    margin-bottom: 10px;
}

.calculator-page > p,
.percentage-page > p,
.word-page > p,
.qr-page > p,
.compressor-page > p {
    color: var(--muted);
    margin-bottom: 40px;
}

/* =========================================
   SHARED INPUTS
========================================= */

input:not([type="range"]):not([type="file"]),
textarea {
    background: #0b101b;
    color: white;

    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;

    transition: 0.25s;
}

input:not([type="range"]):not([type="file"]):focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

input::placeholder,
textarea::placeholder {
    color: #75819a;
}

/* =========================================
   SHARED BUTTONS
========================================= */

.calculator-page button,
.percentage-card button,
.word-container button,
.qr-container button,
.compressor-container button {
    background: var(--primary);
    color: white;

    border: none;
    border-radius: 9px;

    font-weight: bold;
    transition: 0.25s ease;
}

.calculator-page button:hover,
.percentage-card button:hover,
.word-container button:hover,
.qr-container button:hover,
.compressor-container button:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* =========================================
   CALCULATOR
========================================= */

.calculator {
    width: 100%;
    max-width: 370px;
    margin: auto;
    padding: 25px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;

    box-shadow: var(--shadow);
}

#display {
    width: 100%;
    height: 75px;
    padding: 15px;
    margin-bottom: 20px;

    text-align: right;
    font-size: 27px;

    background: #090d16;
    color: white;

    border: 1px solid var(--border);
    border-radius: 12px;
}

.calculator-buttons {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.calculator-buttons button {
    min-width: 0;
    height: 60px;

    background: var(--surface-light);
    color: white;

    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 12px;

    font-size: 19px;
    transition: 0.2s;
}

.calculator-buttons button:hover {
    background: #30364a;
    transform: translateY(-2px);
}

.calculator-buttons button:active {
    transform: scale(0.96);
}

.calculator-buttons .equal {
    background: var(--primary);
    grid-column: span 2;
}

.calculator-buttons .equal:hover {
    background: var(--primary-hover);
}

/* =========================================
   PERCENTAGE CALCULATOR
========================================= */

.percentage-container {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;

    max-width: 1150px;
    margin: auto;
}

.percentage-card {
    padding: 27px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);

    text-align: left;
    transition: 0.25s;
}

.percentage-card:hover {
    border-color: var(--primary);
}

.percentage-card h3 {
    font-size: 18px;
    min-height: 55px;
    margin-bottom: 20px;
}

.percentage-card input {
    display: block;
    width: 100%;
    padding: 14px;
    margin-bottom: 13px;
}

.percentage-card button {
    width: 100%;
    padding: 14px;
}

.percentage-card p {
    color: #bd9dff;
    font-weight: bold;
    margin-top: 18px;
    overflow-wrap: anywhere;
}

/* =========================================
   WORD COUNTER
========================================= */

.word-container {
    max-width: 850px;
    margin: auto;
    padding: 25px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
}

.word-container textarea {
    display: block;
    width: 100%;
    min-height: 250px;
    padding: 18px;

    resize: vertical;
    font-size: 15px;
    font-family: Arial, sans-serif;
    line-height: 1.7;
}

.word-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.stat-card {
    padding: 20px 10px;

    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 12px;
}

.stat-card h2 {
    color: #bd9dff;
    font-size: 27px;
}

.stat-card p {
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}

.clear-button {
    margin-top: 22px;
    padding: 13px 26px;
}

/* =========================================
   QR CODE GENERATOR
========================================= */

.qr-container {
    width: 100%;
    max-width: 460px;
    margin: auto;
    padding: 30px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: var(--shadow);
}

.qr-container input {
    width: 100%;
    padding: 15px;
    margin-bottom: 15px;
}

.qr-container button {
    width: 100%;
    padding: 14px;
    margin-bottom: 10px;
}

#qrResult {
    margin: 20px 0;
}

#qrResult img {
    display: block;
    width: 200px;
    max-width: 100%;
    margin: auto;
    padding: 10px;

    background: white;
    border-radius: 12px;
}

#downloadQR[hidden] {
    display: none;
}

/* =========================================
   IMAGE COMPRESSOR
========================================= */

.compressor-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;

    width: 100%;
    max-width: 550px;
    margin: auto;
    padding: 30px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;

    box-shadow: var(--shadow);
}

/* Upload area */

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;

    width: 100%;
    padding: 30px 15px;

    background: #0b101b;
    border: 2px dashed var(--primary);
    border-radius: 13px;

    cursor: pointer;
    transition: 0.25s;
}

.upload-area:hover {
    background: #17172b;
    border-color: var(--primary-hover);
}

.upload-area span {
    font-size: 36px;
}

.upload-area h3 {
    margin: 10px 0;
}

.upload-area p {
    color: var(--muted);
    font-size: 14px;
}

.upload-area input {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 15px auto 0;

    color: white;
    font-size: 13px;
}

.upload-area input::file-selector-button {
    padding: 11px 16px;
    margin-right: 8px;

    background: var(--primary);
    color: white;

    border: none;
    border-radius: 8px;

    cursor: pointer;
    transition: 0.25s;
}

.upload-area input::file-selector-button:hover {
    background: var(--primary-hover);
}

/* Quality controls */

.compressor-container label[for="quality"] {
    text-align: center;
    font-weight: bold;
    margin-top: 8px;
}

#quality {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

#qualityValue {
    color: #bd9dff;
    text-align: center;
    font-weight: bold;
}

/* Compressor buttons */

.compressor-container button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 13px 18px;
    margin: 0;

    font-size: 15px;
}

/* Image previews */

#imagePreview {
    text-align: center;
    overflow-wrap: anywhere;
}

#imagePreview img {
    display: block;
    max-width: 100%;
    max-height: 300px;
    margin: 15px auto;

    object-fit: contain;

    border: 1px solid var(--border);
    border-radius: 12px;
}

#imagePreview p {
    color: var(--muted);
    margin-top: 10px;
}

#compressedResult {
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

#downloadImage[hidden] {
    display: none;
}

/* =========================================
   QR GENERATOR — TWO MODES
========================================= */

.qr-tabs {
    display: flex;
    justify-content: center;
    gap: 12px;

    max-width: 460px;
    margin: 0 auto 25px;
}

.qr-tabs button {
    flex: 1;
    padding: 15px;

    background: var(--surface-light);
    color: var(--muted);

    border: 1px solid var(--border);
    border-radius: 10px;

    font-weight: bold;
    transition: 0.25s;
}

.qr-tabs button:hover {
    border-color: var(--primary);
    color: white;
}

.qr-tabs button.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

#urlMode,
#imageMode {
    margin-top: 0;
}

#imageMode[hidden],
#urlMode[hidden] {
    display: none;
}

#imageMode > p {
    color: var(--muted);
    margin: 12px 0 20px;
}

#uploadedImagePreview img {
    display: block;
    max-width: 100%;
    max-height: 250px;
    margin: 20px auto;

    border-radius: 12px;
    border: 1px solid var(--border);
}

#uploadStatus {
    margin-top: 15px;
    color: #bd9dff;
    overflow-wrap: anywhere;
}

#imageQRResult {
    margin-top: 20px;
}

#imageQRResult img {
    display: block;
    width: 200px;
    max-width: 100%;
    margin: auto;
    padding: 10px;

    background: white;
    border-radius: 12px;
}

#downloadImageQR[hidden] {
    display: none;
}

#uploadImageButton {
    margin-top: 15px;
}

/* =========================================
   FOOTER
========================================= */

footer {
    padding: 40px 20px;
    text-align: center;

    color: var(--muted);
    border-top: 1px solid rgba(255,255,255,0.07);

    font-size: 14px;
}

.footer-logo {
    color: white;
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 5px;
}

.footer-logo span {
    color: var(--primary);
}

.copyright {
    margin-top: 18px;
    font-size: 12px;
    color: #727b8f;
}

/* =========================================
   RESPONSIVE DESIGN
========================================= */

@media (max-width: 850px) {

    .tool-container,
    .percentage-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}

@media (max-width: 600px) {

    header {
        flex-direction: column;
        gap: 15px;
        padding: 18px 15px;
    }

    nav {
        gap: 22px;
    }

    .hero {
        padding: 80px 20px;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .search-box {
        flex-direction: column;
    }

    .search-box input,
    .search-box button {
        width: 100%;
    }

    .tools-section {
        padding: 45px 20px 75px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 15px;
    }

    .section-heading h2 {
        font-size: 28px;
    }

    .tool-count {
        display: none;
    }

    .tool-container,
    .percentage-container {
        grid-template-columns: 1fr;
    }

    .tool-card {
        min-height: 220px;
    }

    .percentage-card h3 {
        min-height: auto;
    }

    .word-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .word-container,
    .qr-container,
    .compressor-container {
        padding: 20px;
    }

    .calculator {
        padding: 18px;
    }

    .calculator-buttons {
        gap: 7px;
    }

    .calculator-buttons button {
        height: 54px;
    }

    .about-section {
        margin: 0 20px 70px;
        padding: 45px 20px;
    }

}

@media (max-width: 450px) {

    .qr-tabs {
        gap: 8px;
    }

    .qr-tabs button {
        padding: 12px 8px;
        font-size: 13px;
    }

}

@media (max-width: 350px) {

    nav {
        gap: 13px;
    }

    nav a {
        font-size: 13px;
    }

    .calculator-buttons button {
        height: 48px;
        font-size: 16px;
    }

}
/* WORD COUNTER DESCRIPTIONS */

.stat-card small {
    display: block;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
    margin-top: 8px;
}

.word-info {
    max-width: 850px;
    margin: 35px auto;
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.word-info h2 {
    margin-bottom: 12px;
}

.word-info p {
    color: var(--muted);
    line-height: 1.7;
}
/* QR CODE INFORMATION */

.qr-info {
    max-width: 850px;
    margin: 35px auto;
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.qr-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.qr-info p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.qr-info p:last-child {
    margin-bottom: 0;
}
/* IMAGE COMPRESSOR INFORMATION */

.compression-settings {
    margin: 25px 0;
}

.compression-settings h3 {
    margin-bottom: 10px;
}

.compression-settings > p {
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 15px;
}

.quality-guide {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 15px;
}

.quality-guide div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.quality-guide strong {
    font-size: 13px;
}

.quality-guide small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

.compressor-info {
    max-width: 850px;
    margin: 35px auto;
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.compressor-info h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.compressor-info p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 22px;
}

.compressor-info p:last-child {
    margin-bottom: 0;
}

@media (max-width: 500px) {
    .quality-guide {
        flex-direction: column;
    }
}

/* =====================================
   HANDYBOX - PASSWORD GENERATOR
===================================== */

.tool-page {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}

.tool-heading {
    text-align: center;
    margin-bottom: 40px;
}

.tool-heading h1 {
    font-size: 36px;
    margin-bottom: 12px;
}

.tool-heading p {
    color: var(--muted);
    line-height: 1.7;
}

/* MAIN CONTAINER */

.password-container {
    max-width: 650px;
    margin: auto;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.password-container h2 {
    margin-bottom: 18px;
    font-size: 21px;
}

/* PASSWORD DISPLAY */

.password-output {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
}

.password-output input {
    flex: 1;
    min-width: 0;
    background: var(--bg);
    color: var(--primary-hover);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 14px;
    font-family: monospace;
    font-size: 15px;
}

.password-output button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 0 20px;
    cursor: pointer;
    font-weight: bold;
}

/* SETTINGS */

.password-settings {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-settings label {
    color: var(--text);
    font-size: 14px;
}

.password-settings h3 {
    margin-top: 12px;
    font-size: 17px;
}

.password-settings input[type="range"] {
    width: 100%;
    accent-color: var(--primary);
    cursor: pointer;
}

.password-settings input[type="checkbox"] {
    accent-color: var(--primary);
    margin-right: 8px;
    cursor: pointer;
}

/* GENERATE BUTTON */

.generate-button {
    width: 100%;
    margin-top: 28px;
    padding: 15px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.generate-button:hover,
.password-output button:hover {
    background: var(--primary-hover);
}

/* STATUS */

#passwordStatus {
    text-align: center;
    color: var(--success);
    font-size: 13px;
    margin-top: 15px;
}

/* INFORMATION SECTION */

.password-info {
    max-width: 850px;
    margin: 45px auto;
    padding: 25px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.password-info h2 {
    font-size: 20px;
    margin-bottom: 12px;
}

.password-info p {
    color: var(--muted);
    line-height: 1.7;
    margin-bottom: 25px;
}

.password-info p:last-child {
    margin-bottom: 0;
}

/* MOBILE RESPONSIVE */

@media (max-width: 500px) {

    .tool-heading h1 {
        font-size: 28px;
    }

    .password-container {
        padding: 20px;
    }

    .password-output {
        flex-direction: column;
    }

    .password-output button {
        padding: 13px;
    }

}

/* =====================================
   HANDYBOX - UNIT CONVERTER
===================================== */

.unit-container {
    max-width: 650px;
    margin: auto;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.unit-container > h2 {
    font-size: 22px;
    margin-bottom: 25px;
}

.unit-container > label {
    display: block;
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    margin: 18px 0 8px;
}

.unit-container select,
.unit-container input {
    width: 100%;
    padding: 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font-size: 15px;
}

.unit-container select:focus,
.unit-container input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.unit-container select {
    cursor: pointer;
}

.unit-container .generate-button {
    width: 100%;
}

/* CONVERSION RESULT */

.unit-result {
    margin-top: 25px;
    padding: 22px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    text-align: center;
}

.unit-result span {
    display: block;
    color: var(--muted);
    font-size: 11px;
    font-weight: bold;
    letter-spacing: 1.5px;
    margin-bottom: 12px;
}

.unit-result h2 {
    color: var(--primary-hover);
    font-size: 20px;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* MOBILE RESPONSIVE */

@media (max-width: 500px) {

    .unit-container {
        padding: 20px;
    }

    .unit-result h2 {
        font-size: 17px;
    }

}

/* =====================================
   HANDYBOX - STUDY PLANNER
===================================== */

/* STATISTICS */

.planner-stats {
    max-width: 850px;
    margin: 0 auto 30px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.planner-stat {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    text-align: center;
}

.planner-stat span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 10px;
}

.planner-stat h2 {
    color: var(--primary-hover);
    font-size: 30px;
}


/* MAIN PLANNER CONTAINERS */

.planner-container {
    max-width: 850px;
    margin: 0 auto 25px;
    padding: 30px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.planner-container > h2 {
    font-size: 21px;
    margin-bottom: 22px;
}


/* FORM */

#taskForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#taskForm label {
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    margin-top: 8px;
}

#taskForm input,
#taskForm select {
    width: 100%;
    padding: 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

#taskForm input:focus,
#taskForm select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

#taskForm .generate-button {
    width: 100%;
    margin-top: 15px;
}


/* TASK LIST HEADING */

.task-list-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 22px;
}

.task-list-heading h2 {
    font-size: 21px;
}

.task-list-heading select {
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 9px;
    padding: 10px;
    outline: none;
    cursor: pointer;
}


/* TASK CARDS */

#taskList {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: 0.2s;
}

.task-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.task-info {
    min-width: 0;
}

.task-info h3 {
    font-size: 17px;
    margin-bottom: 9px;
    overflow-wrap: anywhere;
}

.task-info p {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 7px;
    overflow-wrap: anywhere;
}


/* PRIORITY LABELS */

.priority {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: bold;
    margin-top: 7px;
}

.priority-low {
    background: rgba(54, 211, 153, 0.12);
    color: #36d399;
}

.priority-medium {
    background: rgba(255, 190, 70, 0.12);
    color: #ffbe46;
}

.priority-high {
    background: rgba(255, 90, 110, 0.12);
    color: #ff647c;
}


/* TASK ACTION BUTTONS */

.task-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex-shrink: 0;
}

.task-actions button {
    padding: 9px 13px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.complete-button {
    background: var(--primary);
    color: white;
}

.complete-button:hover {
    background: var(--primary-hover);
}

.delete-button {
    background: rgba(255, 90, 110, 0.12);
    color: #ff647c;
}

.delete-button:hover {
    background: rgba(255, 90, 110, 0.22);
}


/* COMPLETED TASKS */

.task-card.completed {
    opacity: 0.65;
}

.task-card.completed .task-info h3 {
    text-decoration: line-through;
    color: var(--muted);
}


/* EMPTY MESSAGE */

.empty-message {
    padding: 35px 15px;
    text-align: center;
    color: var(--muted);
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 12px;
    line-height: 1.6;
}


/* MOBILE RESPONSIVE */

@media (max-width: 600px) {

    .planner-stats {
        gap: 8px;
    }

    .planner-stat {
        padding: 15px 8px;
    }

    .planner-stat span {
        font-size: 11px;
    }

    .planner-stat h2 {
        font-size: 24px;
    }

    .planner-container {
        padding: 20px;
    }

    .task-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-actions {
        width: 100%;
        flex-direction: row;
    }

    .task-actions button {
        flex: 1;
    }

    .task-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

}

/* ==========================================
   HANDYBOX - ADVANCED STUDY PLANNER
========================================== */


/* WELCOME SECTION */

.planner-welcome {
    max-width: 850px;
    margin: 0 auto 25px;
    padding: 35px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background:
        radial-gradient(circle at 90% 20%, rgba(146,92,255,0.22), transparent 40%),
        var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.planner-welcome h2 {
    font-size: 25px;
    margin: 12px 0;
}

.planner-welcome p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.dashboard-label {
    color: var(--primary-hover);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.welcome-icon {
    width: 75px;
    height: 75px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 22px;
    background: var(--primary-glow);
    border: 1px solid rgba(146,92,255,0.3);
    color: var(--primary-hover);
    font-size: 35px;
}


/* ADVANCED STATISTICS */

.advanced-stats {
    grid-template-columns: repeat(4, 1fr);
}

.advanced-stats .planner-stat {
    text-align: left;
    padding: 22px;
    transition: 0.25s;
}

.advanced-stats .planner-stat:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}

.advanced-stats .planner-stat h2 {
    margin: 12px 0 5px;
    font-size: 32px;
}

.advanced-stats .planner-stat small {
    color: var(--muted);
    font-size: 11px;
}


/* SECTION HEADINGS */

.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.section-heading h2 {
    font-size: 21px;
    margin-top: 7px;
}

.section-icon {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    background: var(--primary-glow);
    color: var(--primary-hover);
    border-radius: 12px;
    font-size: 24px;
}


/* PROGRESS DASHBOARD */

.progress-container {
    margin-bottom: 25px;
}

.progress-number {
    color: var(--primary-hover);
    font-size: 27px;
    font-weight: 800;
}

.progress-track {
    width: 100%;
    height: 12px;
    background: var(--bg);
    border-radius: 50px;
    overflow: hidden;
    margin: 20px 0 14px;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #925cff, #c09bff);
    border-radius: 50px;
    transition: width 0.6s ease;
}

.progress-container > p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}


/* FORM */

#taskForm {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#taskForm label {
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
    margin-top: 8px;
}

#taskForm input,
#taskForm select {
    width: 100%;
    padding: 14px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    transition: 0.2s;
}

#taskForm input:focus,
#taskForm select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

#taskForm select {
    cursor: pointer;
}

.planner-form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.planner-form-row > div {
    min-width: 0;
}

#taskForm .generate-button {
    width: 100%;
    margin-top: 15px;
}


/* TASK TOOLBAR */

.task-toolbar {
    display: grid;
    grid-template-columns: 1fr 180px;
    gap: 12px;
    margin-bottom: 22px;
}

.task-toolbar input,
.task-toolbar select {
    width: 100%;
    padding: 13px;
    background: var(--bg);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 10px;
    outline: none;
    font-size: 13px;
}

.task-toolbar input:focus,
.task-toolbar select:focus {
    border-color: var(--primary);
}

.task-toolbar select {
    cursor: pointer;
}


/* TASK LIST */

#taskList {
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.task-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 13px;
    transition: 0.25s;
}

.task-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
}

.task-info {
    min-width: 0;
}

.task-info h3 {
    font-size: 16px;
    margin-bottom: 9px;
    overflow-wrap: anywhere;
}

.task-info p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 7px;
    overflow-wrap: anywhere;
}


/* PRIORITY */

.priority {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 800;
    margin-top: 7px;
}

.priority-low {
    background: rgba(54,211,153,0.12);
    color: #36d399;
}

.priority-medium {
    background: rgba(255,190,70,0.12);
    color: #ffbe46;
}

.priority-high {
    background: rgba(255,90,110,0.12);
    color: #ff647c;
}


/* OVERDUE LABEL */

.overdue-label {
    display: inline-block;
    margin: 7px 0 0 7px;
    padding: 6px 9px;
    border-radius: 6px;
    background: rgba(255,90,110,0.13);
    color: #ff647c;
    font-size: 10px;
    font-weight: 800;
}


/* ACTION BUTTONS */

.task-actions {
    display: flex;
    flex-direction: column;
    gap: 9px;
    flex-shrink: 0;
}

.task-actions button {
    padding: 10px 14px;
    border: none;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
}

.complete-button {
    background: var(--primary);
    color: white;
}

.complete-button:hover {
    background: var(--primary-hover);
}

.delete-button {
    background: rgba(255,90,110,0.12);
    color: #ff647c;
}

.delete-button:hover {
    background: rgba(255,90,110,0.22);
}


/* COMPLETED TASKS */

.task-card.completed {
    opacity: 0.65;
}

.task-card.completed .task-info h3 {
    text-decoration: line-through;
    color: var(--muted);
}


/* EMPTY MESSAGE */

.empty-message {
    padding: 35px 15px;
    text-align: center;
    color: var(--muted);
    background: var(--bg);
    border: 1px dashed var(--border);
    border-radius: 12px;
    line-height: 1.6;
}


/* STUDY TIPS */

.planner-tips {
    line-height: 1.7;
}

.planner-tips h2 {
    margin: 12px 0;
}

.planner-tips p {
    color: var(--muted);
    font-size: 14px;
}


/* RESPONSIVE DESIGN */

@media (max-width: 700px) {

    .advanced-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .planner-welcome {
        padding: 25px;
    }

    .planner-welcome h2 {
        font-size: 21px;
    }

}

@media (max-width: 500px) {

    .planner-container {
        padding: 20px;
    }

    .planner-form-row {
        grid-template-columns: 1fr;
    }

    .task-toolbar {
        grid-template-columns: 1fr;
    }

    .task-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-actions {
        width: 100%;
        flex-direction: row;
    }

    .task-actions button {
        flex: 1;
    }

    .welcome-icon {
        width: 50px;
        height: 50px;
        font-size: 25px;
    }

}

/* =========================================
   HANDYBOX HOMEPAGE — PREMIUM REDESIGN
   Append this section to the END of style.css
========================================= */

/* HOMEPAGE NAVIGATION */

.home-header {
    min-height: 76px;
    padding: 14px 8%;
    background: rgba(9, 11, 18, 0.88);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.home-header .logo {
    text-decoration: none;
    font-size: 27px;
}

.logo-period {
    color: #c5aaff;
}

.home-header nav {
    gap: 34px;
}

.home-header nav a {
    position: relative;
    padding: 8px 0;
}

.home-header nav a::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.25s ease;
}

.home-header nav a:hover::after,
.home-header nav a.nav-active::after {
    width: 100%;
}

.home-header nav a.nav-active {
    color: white;
}

.nav-cta {
    padding: 10px 17px;
    color: white;
    background: rgba(146,92,255,0.13);
    border: 1px solid rgba(146,92,255,0.35);
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s;
}

.nav-cta span {
    margin-left: 5px;
}

.nav-cta:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
}


/* HERO SECTION */

.hero {
    min-height: 650px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 20px 65px;
    isolation: isolate;
    background:
        linear-gradient(180deg, rgba(9,11,18,0.1), var(--bg)),
        radial-gradient(ellipse at 50% 15%, rgba(113,65,204,0.18), transparent 55%);
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-glow {
    position: absolute;
    z-index: -1;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(110px);
    pointer-events: none;
    opacity: 0.2;
}

.hero-glow-one {
    top: 15%;
    left: 8%;
    background: #713eea;
}

.hero-glow-two {
    right: 8%;
    bottom: 5%;
    background: #3e5cff;
    opacity: 0.12;
}

.hero-badge {
    background: rgba(146,92,255,0.09);
    border-color: rgba(146,92,255,0.27);
    font-size: 10px;
    letter-spacing: 2px;
}

.status-dot {
    animation: handyPulse 2s infinite;
}

@keyframes handyPulse {
    0%, 100% {
        box-shadow: 0 0 5px #925cff;
        opacity: 1;
    }

    50% {
        box-shadow: 0 0 16px #925cff;
        opacity: 0.65;
    }
}

.hero h1 {
    font-size: clamp(45px, 7vw, 82px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -3.5px;
    margin-bottom: 25px;
}

.hero h1 span {
    background: linear-gradient(
        100deg,
        #ffffff 5%,
        #c6aaff 45%,
        #925cff 90%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-description {
    max-width: 570px;
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.search-box {
    max-width: 590px;
    padding: 7px;
    gap: 8px;
    background: rgba(17,21,32,0.9);
    border: 1px solid #343047;
    border-radius: 14px;
    box-shadow:
        0 12px 45px rgba(0,0,0,0.28),
        0 0 30px rgba(146,92,255,0.06);
}

.search-icon {
    display: flex;
    align-items: center;
    padding-left: 13px;
    color: #a98aff;
    font-size: 25px;
}

.search-box input {
    padding: 13px 8px;
    background: transparent;
    border: none;
    box-shadow: none;
    font-size: 14px;
}

.search-box input:focus {
    border: none;
    box-shadow: none;
}

.search-box button {
    padding: 13px 20px;
    border-radius: 9px;
    white-space: nowrap;
}

.search-box button span {
    margin-left: 5px;
}

.hero-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 9px;
    margin-top: 23px;
    color: #858da0;
    font-size: 12px;
}

.hero-note > span:not(.note-divider) {
    color: #a98aff;
    font-weight: bold;
}

.note-divider {
    color: #454b5c;
}

.hero-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    max-width: 650px;
    margin-top: auto;
    padding-top: 80px;
    color: #646d82;
    font-size: 9px;
    font-weight: bold;
    letter-spacing: 1.7px;
}

.hero-bottom-line {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, #39334d, transparent);
}


/* TOOLS SECTION */

.tools-section {
    position: relative;
    padding: 90px 8% 100px;
    background: linear-gradient(
        180deg,
        rgba(14,17,27,0.4),
        rgba(9,11,18,0.1)
    );
}

.section-heading {
    max-width: 1150px;
    margin-bottom: 38px;
}

.section-label {
    letter-spacing: 2px;
}

.section-heading h2 {
    font-size: clamp(29px, 4vw, 39px);
    letter-spacing: -1.5px;
}

.section-heading > div:first-child > p:last-child {
    font-size: 14px;
}

.tool-count {
    padding: 14px 20px;
    background: rgba(146,92,255,0.07);
    border: 1px solid rgba(146,92,255,0.17);
    border-radius: 12px;
}

.tool-count strong {
    font-size: 30px;
}

.tool-count span {
    font-size: 9px;
}


/* TOOL GRID */

.tool-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.tool-card {
    min-height: 270px;
    padding: 25px;
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(146,92,255,0.075),
            transparent 42%
        ),
        linear-gradient(145deg, #151a29, #0e121d);
    border: 1px solid #272d3e;
    border-radius: 15px;
    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        background 0.3s ease;
}

.tool-card::before {
    height: 2px;
}

.tool-card:hover {
    transform: translateY(-6px);
    border-color: rgba(166,124,255,0.7);
    box-shadow:
        0 18px 40px rgba(0,0,0,0.3),
        0 0 28px rgba(146,92,255,0.09);
}

.tool-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.tool-icon {
    width: 49px;
    height: 49px;
    margin-bottom: 19px;
    border-radius: 13px;
    background: linear-gradient(
        145deg,
        rgba(146,92,255,0.2),
        rgba(146,92,255,0.07)
    );
    border: 1px solid rgba(146,92,255,0.24);
    color: #c9afff;
}

.tool-number {
    color: #555d72;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.tool-category {
    color: #ad8aff;
    font-size: 9px;
    letter-spacing: 1.7px;
}

.tool-card h3 {
    font-size: 18px;
    letter-spacing: -0.3px;
}

.tool-card p {
    font-size: 12px;
    line-height: 1.7;
    max-width: 290px;
}

.tool-card .tool-link {
    padding-top: 20px;
    color: #c2a7ff;
    font-size: 12px;
}

.tool-link span {
    font-size: 18px;
}


/* FEATURED TOOLS */

.featured-tool {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(146,92,255,0.16),
            transparent 50%
        ),
        linear-gradient(145deg, #19172b, #111421);
    border-color: rgba(146,92,255,0.28);
}

.ai-tool {
    background:
        radial-gradient(
            circle at 100% 0%,
            rgba(111,77,255,0.23),
            transparent 50%
        ),
        linear-gradient(145deg, #1c1933, #111421);
}

.ai-tool .tool-icon {
    background: linear-gradient(145deg, #925cff, #6336c7);
    color: white;
    border-color: rgba(190,160,255,0.5);
    box-shadow: 0 5px 22px rgba(146,92,255,0.2);
}

.no-results {
    padding: 25px;
    text-align: center;
    color: var(--muted);
    border: 1px dashed var(--border);
    border-radius: 12px;
}


/* FEATURE STRIP */

.feature-strip {
    max-width: 1150px;
    margin: 0 auto 100px;
    padding: 27px 30px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    background: linear-gradient(120deg, #151a28, #111520);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-symbol {
    display: grid;
    place-items: center;
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    border-radius: 12px;
    background: rgba(146,92,255,0.12);
    border: 1px solid rgba(146,92,255,0.2);
    color: #c2a7ff;
    font-size: 20px;
}

.feature-item h3 {
    font-size: 13px;
    margin-bottom: 4px;
}

.feature-item p {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}


/* ABOUT SECTION */

.about-section {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 110px;
    padding: 85px 30px;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse at 50% 0%,
            rgba(146,92,255,0.2),
            transparent 65%
        ),
        linear-gradient(145deg, #171b2b, #10131e);
    border: 1px solid rgba(146,92,255,0.2);
    border-radius: 22px;
}

.about-decoration {
    position: absolute;
    right: 35px;
    bottom: -65px;
    color: rgba(255,255,255,0.025);
    font-size: 190px;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -15px;
    pointer-events: none;
}

.about-section .section-label,
.about-section h2,
.about-section > p:not(.section-label),
.about-button {
    position: relative;
    z-index: 1;
}

.about-section h2 {
    font-size: clamp(36px, 5vw, 52px);
    letter-spacing: -1.8px;
}

.about-section h2 span {
    background: linear-gradient(90deg, #c8adff, #925cff);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.about-section > p:last-of-type {
    font-size: 14px;
    line-height: 1.8;
}

.about-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    padding: 13px 21px;
    background: var(--primary);
    color: white;
    border-radius: 9px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    transition: 0.25s;
}

.about-button:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}


/* HOMEPAGE FOOTER */

.home-footer {
    padding: 40px 8% 25px;
    background: #080a10;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 1150px;
    margin: auto;
    padding-bottom: 30px;
}

.footer-logo {
    font-size: 26px;
}

.footer-logo span {
    color: var(--primary);
}

.footer-logo b {
    color: #c5aaff;
}

.footer-main > div > p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 5px;
}

.footer-top-link {
    color: #bd9dff;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
}

.footer-top-link:hover {
    color: white;
}

.footer-bottom {
    max-width: 1150px;
    margin: auto;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
    border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-bottom p {
    color: #737d91;
    font-size: 11px;
}

.footer-bottom span {
    color: #ad8aff;
}


/* HOMEPAGE RESPONSIVE DESIGN */

@media (max-width: 1000px) {

    .tool-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .feature-strip {
        margin-left: 5%;
        margin-right: 5%;
    }

}

@media (max-width: 700px) {

    .home-header {
        padding: 15px 5%;
        gap: 12px;
    }

    .home-header nav {
        gap: 18px;
    }

    .nav-cta {
        display: none;
    }

    .hero {
        min-height: 570px;
        padding-top: 80px;
    }

    .hero h1 {
        font-size: clamp(40px, 8vw, 58px);
        letter-spacing: -2px;
    }

    .hero-bottom {
        padding-top: 60px;
        font-size: 8px;
        gap: 9px;
    }

    .tools-section {
        padding: 65px 5% 75px;
    }

    .feature-strip {
        grid-template-columns: 1fr;
        margin-bottom: 75px;
        padding: 25px;
    }

    .about-section {
        margin: 0 5% 75px;
    }

}

@media (max-width: 550px) {

    .home-header {
        flex-wrap: wrap;
        justify-content: center;
        padding: 14px 12px;
    }

    .home-header .logo {
        width: 100%;
        text-align: center;
    }

    .home-header nav {
        gap: 23px;
    }

    .home-header nav a {
        font-size: 12px;
    }

    .hero {
        min-height: auto;
        padding: 80px 18px 55px;
    }

    .hero-badge {
        padding: 8px 12px;
        font-size: 8px;
        letter-spacing: 1.3px;
    }

    .hero h1 {
        font-size: 41px;
        letter-spacing: -1.8px;
    }

    .hero-description {
        font-size: 14px;
    }

    .search-box {
        display: flex;
        flex-wrap: wrap;
        padding: 9px;
    }

    .search-icon {
        display: none;
    }

    .search-box input {
        width: 100%;
        flex: 1 1 100%;
        padding: 13px;
        border: 1px solid var(--border);
        border-radius: 9px;
    }

    .search-box button {
        width: 100%;
    }

    .hero-note {
        flex-wrap: wrap;
        font-size: 10px;
        gap: 6px;
    }

    .hero-bottom {
        padding-top: 55px;
        font-size: 7px;
        letter-spacing: 1px;
    }

    .section-heading {
        align-items: flex-start;
    }

    .section-heading h2 {
        font-size: 29px;
    }

    .tool-count {
        display: none;
    }

    .tool-container {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .tool-card {
        min-height: 245px;
        padding: 23px;
    }

    .about-section {
        padding: 60px 22px;
    }

    .about-decoration {
        font-size: 130px;
        right: 15px;
    }

    .footer-main,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

}

/* =====================================
   HANDYAI STUDY PLANNER PROMOTION
===================================== */

.handyai-promo {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 35px;
    border: 1px solid rgba(146, 92, 255, 0.35);
    background:
        radial-gradient(
            circle at 90% 50%,
            rgba(146, 92, 255, 0.17),
            transparent 35%
        ),
        linear-gradient(135deg, #151326, #111520);
}

.handyai-promo-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.handyai-promo h2 {
    margin: 14px 0;
    font-size: clamp(25px, 4vw, 36px);
    line-height: 1.2;
}

.handyai-promo h2 span {
    display: block;
    color: #ad83ff;
}

.handyai-promo p {
    color: var(--muted);
    line-height: 1.8;
    max-width: 570px;
}

.handyai-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin: 22px 0;
}

.handyai-benefits span {
    color: #c9b5ff;
    font-size: 13px;
}

.handyai-promo-button {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 13px 23px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 700;
    transition: 0.25s;
}

.handyai-promo-button:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

.handyai-promo-content small {
    display: block;
    margin-top: 15px;
    color: var(--muted);
}

.handyai-promo-icon {
    position: relative;
    flex-shrink: 0;
    width: 145px;
    height: 145px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(146, 92, 255, 0.12);
    border: 1px solid rgba(146, 92, 255, 0.3);
}

.handyai-promo-icon > span {
    font-size: 65px;
    color: #ad83ff;
    text-shadow: 0 0 30px rgba(146, 92, 255, 0.8);
}

.ai-orbit {
    position: absolute;
    inset: -12px;
    border: 1px solid rgba(173, 131, 255, 0.25);
    border-radius: 50%;
}

.orbit-two {
    inset: -25px;
    border-style: dashed;
    opacity: 0.5;
}

@media (max-width: 650px) {

    .handyai-promo {
        padding: 25px 20px;
    }

    .handyai-promo-icon {
        display: none;
    }

    .handyai-benefits {
        flex-direction: column;
        gap: 10px;
    }

}

/* =========================================
   HANDYBOX — MOBILE RESPONSIVE UPGRADE
   Navigation + Layout + Forms
========================================= */

/* HAMBURGER BUTTON */

.mobile-menu-button {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 6px;

    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    cursor: pointer;
}

.mobile-menu-button span {
    display: block;
    width: 19px;
    height: 2px;
    background: white;
    border-radius: 5px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-button.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.mobile-menu-button.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-button.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.mobile-nav-cta {
    display: none;
}


/* GLOBAL RESPONSIVE FIXES */

html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

img,
video,
canvas,
iframe {
    max-width: 100%;
}

.tool-container,
.percentage-container,
.planner-stats,
.advanced-stats,
.feature-strip {
    min-width: 0;
}

.tool-card,
.percentage-card,
.planner-container,
.planner-stat,
.task-card {
    min-width: 0;
}

input,
select,
textarea,
button {
    max-width: 100%;
}


/* TABLET NAVIGATION */

@media (max-width: 700px) {

    .home-header {
        position: sticky;
        top: 0;
        z-index: 1000;

        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;

        min-height: 68px;
        padding: 10px 5%;
    }

    .home-header .logo {
        width: auto;
        text-align: left;
        font-size: 25px;
    }

    .mobile-menu-button {
        display: flex;
        margin-left: auto;
    }

    .home-header nav {
        position: absolute;
        top: calc(100% + 1px);
        left: 0;
        right: 0;

        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;

        padding: 8px 5% 18px;

        background: rgba(9, 11, 18, 0.98);
        border-bottom: 1px solid var(--border);
        box-shadow: 0 18px 30px rgba(0,0,0,0.35);

        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);

        transition:
            opacity 0.2s ease,
            transform 0.2s ease,
            visibility 0.2s ease;
    }

    .home-header nav.menu-open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .home-header nav a {
        display: block;
        width: 100%;
        padding: 14px 12px;
        font-size: 14px;

        border-bottom: 1px solid rgba(255,255,255,0.05);
    }

    .home-header nav a:last-child {
        border-bottom: none;
    }

    .home-header nav a::after {
        display: none;
    }

    .home-header .nav-cta {
        display: none;
    }

    .home-header .mobile-nav-cta {
        display: block;
        color: #c5aaff;
        font-weight: 700;
    }

}


/* TABLET LAYOUTS */

@media (max-width: 850px) {

    .tool-container,
    .percentage-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .word-container,
    .word-info,
    .qr-info,
    .compressor-info,
    .password-info {
        width: calc(100% - 40px);
    }

    .planner-welcome,
    .planner-stats,
    .planner-container {
        width: calc(100% - 40px);
    }

    .advanced-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* PHONE LAYOUTS */

@media (max-width: 550px) {

    body {
        font-size: 14px;
    }

    /* HERO */

    .hero {
        min-height: auto;
        padding: 65px 18px 45px;
    }

    .hero h1 {
        font-size: clamp(34px, 9vw, 43px);
        line-height: 1.15;
        letter-spacing: -1.5px;
    }

    .hero-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .hero-bottom {
        gap: 8px;
        font-size: 7px;
        letter-spacing: 0.8px;
    }

    /* SEARCH */

    .search-box {
        width: 100%;
        max-width: 100%;
        flex-wrap: wrap;
    }

    .search-box input {
        min-width: 0;
        min-height: 48px;
        font-size: 16px;
    }

    .search-box button {
        min-height: 46px;
    }

    /* SECTION HEADINGS */

    .section-heading {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .section-heading h2 {
        font-size: 27px;
    }

    /* TOOL GRID */

    .tools-section {
        padding: 55px 18px 65px;
    }

    .tool-container,
    .percentage-container {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .tool-card {
        min-height: 225px;
        padding: 22px;
    }

    /* FEATURES */

    .feature-strip {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        margin: 0 18px 65px;
        padding: 22px;
    }

    /* ABOUT */

    .about-section {
        width: auto;
        margin: 0 18px 65px;
        padding: 50px 22px;
    }

    /* GENERAL TOOL PAGES */

    .calculator-page,
    .percentage-page,
    .word-page,
    .qr-page,
    .compressor-page {
        padding: 45px 16px 65px;
    }

    .tool-page {
        width: 100%;
        margin: 40px auto;
        padding: 0 16px;
    }

    .tool-heading {
        margin-bottom: 28px;
    }

    .tool-heading h1 {
        font-size: 29px;
    }

    /* TOOL CONTAINERS */

    .calculator,
    .percentage-card,
    .word-container,
    .qr-container,
    .compressor-container,
    .password-container,
    .unit-container,
    .planner-container {
        width: 100%;
        max-width: 100%;
        padding: 20px;
    }

    .word-info,
    .qr-info,
    .compressor-info,
    .password-info {
        width: 100%;
        margin: 25px auto;
        padding: 20px;
    }

    /* INPUTS */

    input:not([type="range"]):not([type="file"]),
    select,
    textarea {
        font-size: 16px;
    }

    .percentage-card input,
    .qr-container input,
    .unit-container input,
    .unit-container select {
        min-height: 48px;
    }

    /* WORD COUNTER */

    .word-container textarea {
        min-height: 200px;
    }

    .word-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .stat-card {
        padding: 16px 8px;
    }

    .stat-card h2 {
        font-size: 23px;
    }

    /* CALCULATOR */

    .calculator {
        max-width: 370px;
    }

    .calculator-buttons {
        gap: 8px;
    }

    .calculator-buttons button {
        height: 55px;
        font-size: 18px;
    }

    /* QR CODE */

    .qr-tabs {
        width: 100%;
    }

    .qr-tabs button {
        min-height: 46px;
    }

    /* PASSWORD GENERATOR */

    .password-output {
        flex-direction: column;
    }

    .password-output input {
        width: 100%;
        min-height: 48px;
    }

    .password-output button {
        min-height: 46px;
    }

    /* STUDY PLANNER */

    .planner-welcome {
        width: calc(100% - 32px);
        padding: 22px;
    }

    .planner-welcome h2 {
        font-size: 20px;
    }

    .planner-stats,
    .advanced-stats {
        width: calc(100% - 32px);
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .planner-stat {
        padding: 16px 10px;
    }

    .advanced-stats .planner-stat {
        padding: 16px;
    }

    .advanced-stats .planner-stat h2 {
        font-size: 26px;
    }

    .planner-form-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .task-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .task-list-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .task-list-heading select {
        width: 100%;
        min-height: 44px;
    }

    .task-card {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
        padding: 17px;
    }

    .task-actions {
        width: 100%;
        flex-direction: row;
    }

    .task-actions button {
        flex: 1;
        min-height: 42px;
    }

    /* HANDYAI PROMOTION */

    .handyai-promo {
        width: calc(100% - 32px);
        padding: 23px 19px;
    }

    .handyai-promo h2 {
        font-size: 25px;
    }

    .handyai-promo p {
        font-size: 13px;
    }

    .handyai-benefits {
        flex-direction: column;
        gap: 10px;
    }

    /* FOOTER */

    .home-footer {
        padding: 30px 20px 22px;
    }

    .footer-main,
    .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

}


/* SMALL PHONES */

@media (max-width: 380px) {

    .home-header {
        padding: 10px 15px;
    }

    .home-header .logo {
        font-size: 23px;
    }

    .hero h1 {
        font-size: 34px;
    }

    .hero-badge {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .hero-note {
        font-size: 9px;
    }

    .tool-card {
        padding: 19px;
    }

    .calculator {
        padding: 14px;
    }

    .calculator-buttons {
        gap: 6px;
    }

    .calculator-buttons button {
        height: 49px;
        font-size: 16px;
    }

    .planner-stats,
    .advanced-stats {
        gap: 8px;
    }

    .planner-stat {
        padding: 13px 7px;
    }

    .planner-stat h2 {
        font-size: 22px;
    }

}


/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {

    .mobile-menu-button span,
    .home-header nav {
        transition: none;
    }

}


/* ==========================================
   HANDYBOX - FINAL MOBILE POLISH
   Keeps the existing desktop design unchanged.
========================================== */

html {
    scroll-padding-top: 90px;
}

body {
    overflow-x: hidden;
}

img,
svg,
video,
canvas {
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

@media (max-width: 700px) {
    .home-header {
        min-height: 68px;
        height: auto;
        gap: 12px;
        padding: 10px 20px;
    }

    .home-header nav {
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        overscroll-behavior: contain;
        z-index: 1000;
    }

    .home-header nav a {
        min-height: 46px;
        display: flex;
        align-items: center;
        padding: 12px 15px;
    }

    .mobile-menu-button {
        flex: 0 0 44px;
        min-width: 44px;
        min-height: 44px;
        touch-action: manipulation;
    }

    .nav-cta {
        display: none;
    }

    .mobile-nav-cta {
        display: flex !important;
    }

    .hero,
    .tools-section,
    .feature-strip,
    .about-section {
        max-width: 100%;
    }

    .search-box {
        width: 100%;
    }

    .search-box input {
        min-width: 0;
        width: 100%;
        min-height: 48px;
        font-size: 16px;
    }

    .search-box button {
        min-height: 48px;
        flex-shrink: 0;
    }

    .tool-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tool-card {
        min-width: 0;
        overflow-wrap: anywhere;
    }

    .tool-card p {
        overflow-wrap: anywhere;
    }

    .feature-strip {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        width: 100%;
    }
}

@media (max-width: 520px) {
    .home-header {
        padding-inline: 16px;
    }

    .hero {
        padding-inline: 18px;
    }

    .hero h1 {
        font-size: clamp(31px, 8vw, 42px);
        line-height: 1.12;
    }

    .hero-description {
        max-width: 100%;
        font-size: 14px;
    }

    .search-box {
        display: flex;
        gap: 7px;
        padding: 7px;
    }

    .search-box input {
        padding-inline: 8px;
    }

    .search-box button {
        padding-inline: 12px;
        white-space: nowrap;
    }

    .tools-section {
        padding-inline: 16px;
    }

    .section-heading {
        align-items: flex-start;
        gap: 14px;
    }

    .tool-count {
        flex-shrink: 0;
    }

    .tool-container {
        gap: 12px;
    }

    .tool-card {
        padding: 17px;
        min-height: 220px;
    }

    .tool-card h3 {
        font-size: 16px;
        line-height: 1.35;
    }

    .tool-card p {
        font-size: 12px;
        line-height: 1.55;
    }

    .about-section {
        margin-inline: 16px;
        width: auto;
    }

    .home-footer {
        overflow: hidden;
    }
}

@media (max-width: 370px) {
    .tool-container {
        grid-template-columns: 1fr;
    }

    .section-heading {
        flex-direction: column;
    }

    .tool-count {
        align-self: flex-start;
    }

    .search-box button {
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   HANDYBOX - CALCULATOR INFORMATION
========================================= */

.calculator-page .tool-information {
    width: 100%;
    max-width: 650px;
    margin: 65px auto 35px;
    padding: 30px;
    background: #111520;
    border: 1px solid #292f40;
    border-radius: 18px;
    text-align: left;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.18);
}

/* INFORMATION HEADINGS */

.calculator-page .tool-information h2 {
    color: #ffffff;
    font-size: 21px;
    font-weight: 700;
    margin: 0 0 14px;
    letter-spacing: -0.4px;
}

.calculator-page .tool-information h2:not(:first-child) {
    margin-top: 30px;
}

/* INFORMATION PARAGRAPHS */

.calculator-page .tool-information p {
    color: #9ba3b5;
    font-size: 14px;
    line-height: 1.9;
    margin: 0;
}

/* INSTRUCTIONS LIST */

.calculator-page .tool-information ul {
    padding-left: 20px;
    margin: 0;
}

.calculator-page .tool-information li {
    color: #9ba3b5;
    font-size: 14px;
    line-height: 1.9;
    padding-left: 5px;
    margin-bottom: 8px;
}

.calculator-page .tool-information li::marker {
    color: #925cff;
}

/* HOVER EFFECT */

.calculator-page .tool-information li:hover {
    color: #ffffff;
    transition: color 0.2s ease;
}

/* RESPONSIVE DESIGN */

@media (max-width: 600px) {

    .calculator-page .tool-information {
        margin-top: 45px;
        padding: 22px 18px;
        border-radius: 14px;
    }

    .calculator-page .tool-information h2 {
        font-size: 19px;
    }

    .calculator-page .tool-information p,
    .calculator-page .tool-information li {
        font-size: 13px;
    }

}

/* =========================================
   HANDYBOX - IMAGE COMPRESSOR DESIGN
========================================= */

.compressor-page {
    width: 100%;
    max-width: 850px;
    margin: 65px auto;
    padding: 0 20px;
    text-align: center;
}

.compressor-page h1 {
    color: #ffffff;
    font-size: clamp(30px, 5vw, 42px);
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 12px;
}

.compressor-page > p {
    color: #9ba3b5;
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 35px;
}

.compressor-container {
    width: 100%;
    padding: 30px;
    background: #111520;
    border: 1px solid #292f40;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* Upload area */

.upload-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 190px;
    padding: 25px;
    border: 2px dashed #45405f;
    border-radius: 15px;
    background: rgba(146, 92, 255, 0.05);
    cursor: pointer;
    transition: 0.25s ease;
}

.upload-area:hover {
    border-color: #925cff;
    background: rgba(146, 92, 255, 0.1);
}

.upload-area input {
    max-width: 100%;
    color: #9ba3b5;
}

.upload-area::before {
    content: "↑";
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: rgba(146, 92, 255, 0.15);
    color: #b58aff;
    font-size: 28px;
    font-weight: 700;
}

.upload-area p {
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
}

/* Image preview */

#imagePreview {
    margin-top: 25px;
    color: #ffffff;
}

#imagePreview h3,
#compressedResult h3 {
    color: #ffffff;
    font-size: 18px;
    margin: 20px 0 12px;
}

#imagePreview img,
#compressedResult img {
    display: block;
    width: 100%;
    max-width: 420px;
    max-height: 350px;
    object-fit: contain;
    margin: 15px auto;
    border-radius: 12px;
    background: #090b12;
    border: 1px solid #292f40;
}

#imagePreview p,
#compressedResult p {
    color: #9ba3b5;
    font-size: 13px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

/* Compression settings */

.compression-settings {
    margin-top: 30px;
    padding: 22px;
    background: #191f2e;
    border: 1px solid #292f40;
    border-radius: 14px;
    text-align: left;
}

.compression-settings label {
    display: block;
    color: #ffffff;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 15px;
}

#quality {
    width: 100%;
    accent-color: #925cff;
    cursor: pointer;
}

#qualityValue {
    display: inline-block;
    color: #b58aff;
    font-size: 14px;
    font-weight: 700;
    margin-top: 10px;
}

.quality-guide {
    color: #9ba3b5;
    font-size: 12px;
    line-height: 1.7;
    margin-top: 12px;
}

/* Buttons */

.compressor-container button {
    display: inline-block;
    margin: 20px 6px 0;
    padding: 13px 24px;
    border: none;
    border-radius: 10px;
    background: #925cff;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.25s ease;
}

.compressor-container button:hover {
    background: #ad83ff;
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(146, 92, 255, 0.2);
}

#downloadImage {
    background: #242b3b;
    border: 1px solid #45405f;
}

#downloadImage:hover {
    background: #343d52;
}

/* Compression result */

#compressedResult {
    margin-top: 30px;
    padding: 22px;
    background: #191f2e;
    border: 1px solid #34304d;
    border-radius: 15px;
}

/* Information section */

.compressor-info {
    margin-top: 55px;
    padding: 30px;
    background: #111520;
    border: 1px solid #292f40;
    border-radius: 18px;
    text-align: left;
}

.compressor-info h2 {
    color: #ffffff;
    font-size: 20px;
    margin: 0 0 12px;
}

.compressor-info h2:not(:first-child) {
    margin-top: 28px;
}

.compressor-info p,
.compressor-info li {
    color: #9ba3b5;
    font-size: 14px;
    line-height: 1.9;
}

.compressor-info ul {
    padding-left: 22px;
}

.compressor-info li::marker {
    color: #925cff;
}

/* Mobile */

@media (max-width: 600px) {
    .compressor-page {
        margin: 40px auto;
        padding: 0 14px;
    }

    .compressor-container {
        padding: 18px;
        border-radius: 15px;
    }

    .upload-area {
        min-height: 160px;
        padding: 18px;
    }

    .compression-settings {
        padding: 17px;
    }

    .compressor-container button {
        width: 100%;
        margin: 10px 0 0;
    }

    .compressor-info {
        padding: 22px 18px;
    }
}
